query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
findKthLargest(array, 2); quickSort(array); System.out.println(Arrays.toString(array));
public static void main(String[] args) { for (int i = 1; i <= 9; i++) { int[] array = { 3, 4, 1, 2, 9, 8, 6, 5, 7 }; System.out.println(findKthLargest(array,i)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void p215() {\n// int[] nums = {5, 2, 1, 8, 3};\n// int[] nums = {5, 2, 1, 8, 3, 5, 7};\n int[] nums = {3, 2, 3, 1, 2, 4, 5, 5, 6};\n int k = 4;\n// int ret1 = findKthLargestUsingSort(nums, k);\n// System.out.println(ret1);\n int ret2 = findKthLargestUsingPQ(nums, k);\n// System.out.println(ret2);\n int ret3 = findKthLargestUsingQuickSort(nums, k);\n System.out.println(ret3);\n }", "public static void main(String[] args) {\n\t\tint[] array = {1,2,3,4,5,6,8,9,10,7};\r\n\t\tArrayList<Integer> list = new ArrayList<>();\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tlist.add(array[i]);\r\n\t\t}\r\n\t\tnew KthLargestElement().kthLargestElement(10, list);\r\n\t\tSystem.err.println(new KthLargestElement().rs);\r\n\t}", "public int kthLargestElement(int k, int[] nums) {\n if(k<1||nums.length==0){\n return -1;\n }\n return quickSort(0,nums.length-1,k,nums);\n }", "public static int findKthLargest(int[] nums, int k) { \n\t\t//sorts the array\n\t\tArrays.sort(nums);\n\t\t//determines kth largest\n\t\tint kthLargest = nums.length - k;\n\t\treturn nums[kthLargest];\n\t}", "int sumKOfLargest(int[] array, int k){\n int heapSize = array.length;\n int sum = 0;\n buildMaxHeap(array,heapSize);\n for(int i = 0; i< k ; i++){\n sum = sum+array[0];\n extractMax(array,heapSize);\n heapSize--;\n heapify(array,i,heapSize);\n }\n return sum;\n }", "public static void main(String[] args) {\nint[] arr= {12,66,88,45,76,23,45,89,65,45,90,43};\n\n int largest=arr[0];\n int slargest=arr[0];\n int i;\n System.out.println(\"Display the Array \");\n for( i=0;i<arr.length;i++)\n {\n\t System.out.print(arr[i]+\" \");\n }\n for(i=0;i<arr.length;i++)\n {\n\t if(arr[i]>largest)\n\t {\n\t\t \n\t\t slargest=largest;\n\t\t largest=arr[i];\n\t\t \n\t }\n\t else if(arr[i]>slargest)\n\t {\n\t\t slargest=arr[i];\n\t }\n }\n System.out.println(\"second largest lement is \"+slargest);\n\t}", "public static void main(String[] args) {\n\t\tint[] nums = {3,2,1,5,6,4};\n\t\tKthLargestElementP215 p =new KthLargestElementP215();\n\t\tp.findKthLargest(nums, 2);\n\t}", "public static int findKthLargest(int[] nums, int k) {\n\t\tint start = 0, end = nums.length - 1, index = nums.length - k;\n\t\twhile (start < end) {\n\t\t\tint pivot = partition(nums, start, end);\n\t\t\tif (pivot < index)\n\t\t\t\tstart = pivot + 1;\n\t\t\telse if (pivot > index)\n\t\t\t\tend = pivot - 1;\n\t\t\telse\n\t\t\t\treturn nums[pivot];\n\t\t}\n\t\treturn nums[start];\n\t}", "public static int kthLargest(Node node, int k){\n return 0;\n }", "public static int findKthLargest(int[] nums, int k) {\n\n //min heap smallest element first\n PriorityQueue<Integer> heap = new PriorityQueue<Integer>((n1, n2) -> n1 - n2);\n\n //keep k largest elements in the heap\n for (int n : nums) {\n heap.add(n);\n if (heap.size() > k) {\n heap.poll();\n }\n }\n return heap.poll();\n }", "public int findKthLargest(int[] nums, int k) {\n if (nums.length == 0 || nums == null) return -1;\n PriorityQueue<Integer> pq = new PriorityQueue<>(k);\n for (int num : nums){\n if (pq.size() < k) pq.add(num);\n else if (num > pq.peek()){\n pq.remove();\n pq.add(num);\n }\n\n }\n return pq.peek();\n }", "public static void main(String[] args) {\n\t\t\n\t\tint arr[] = {7 ,10 ,4 ,3 ,20 ,15};\n\t\t\n\t\tSystem.out.println( kthMax2(arr , 2));\n\t\tSystem.out.println( kthMin2(arr , 2));\n\t\t\n\n\t}", "public int findKthLargest_Heap(int[] nums, int k) {\n\t\tPriorityQueue<Integer> heap = new PriorityQueue<>(Comparator.comparingInt(n1 -> n1));\n\t\tList<Double> lis = new ArrayList<>();\n\t\t// keep k largest elements in the heap\n\t\tfor (int n : nums) {\n\t\t\theap.add(n);\n\t\t\tif (heap.size() > k) {\n\t\t\t\theap.poll();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// output\n\t\treturn heap.poll();\n\t}", "private static int[] topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int n: nums){\n map.put(n, map.getOrDefault(n, 0) + 1);\n }\n\n // Step2: Build max heap.\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n for (int value: map.values()){\n pq.add(value);\n if (pq.size() > k){\n pq.poll();\n }\n }\n\n // Step3: Build result list.\n ArrayList<Integer> retList = new ArrayList<>();\n for (int n: pq){\n for (Map.Entry<Integer, Integer> entry: map.entrySet()){\n if (n == entry.getValue()){\n retList.add(entry.getKey());\n }\n }\n }\n\n return retList.stream().distinct().mapToInt(x -> x).toArray();\n }", "public static void main(String[] args) {\n\t\t\n\t\tint a[]={1,2,5,6,3,2}; \n\t\t\n\t\tint temp, size;\n\t\tsize = a.length;\n\n\t for(int i = 0; i<size; i++ ){\n\t for(int j = i+1; j<size; j++){\n\n\t if(a[i]>a[j]){\n\t temp = a[i];\n\t a[i] = a[j];\n\t a[j] = temp;\n\t }\n\t }\n\t }\n\t System.out.println(\"Third second largest number is:: \"+a[size-2]);\n\n\t}", "public static void main(String[] args) {\n int array[] = new int[]{5,3,7,4,1,9,0,5,11,19,13};\n quickSort(array,0,array.length-1);\n for(int i=0;i<array.length-1;i++){\n \t System.out.print(array[i]+\",\");\n }\n System.out.println(array[array.length-1]);\n\t}", "private static void p347() {\n int[] nums1 = {5, 5, 5, 3, 1, 1};\n int k1 = 2;\n int[] ret1 = topKFrequent(nums1, k1);\n System.out.println(Arrays.toString(ret1));\n// int[] nums2 = {1, 2};\n// int k2 = 2;\n// int[] ret2 = topKFrequent(nums2, k2);\n// System.out.println(Arrays.toString(ret2));\n int[] nums3 = {5, 5, 5, 5, 2, 2, 2, 4, 4, 1};\n int k3 = 2;\n int[] ret3 = topKFrequentOptimize(nums3, k3);\n System.out.println(Arrays.toString(ret3));\n\n int[] nums4 = {5, 5, 5, 5, 2, 2, 2, 4, 4, 4, 1};\n int k4 = 2;\n int[] ret4 = topKFrequentUsingBucket(nums4, k4);\n System.out.println(Arrays.toString(ret4));\n\n// int[] nums5 = {1};\n// int k5 = 1;\n// int[] ret5 = topKFrequentUsingBucket(nums5, k5);\n// System.out.println(Arrays.toString(ret5));\n }", "private static int solution2( int[] arr, int k) {\n\t\tif ( arr == null || arr.length < k ) {\n\t\t\treturn Integer.MIN_VALUE;\n\t\t}\n\t\t\n\t\tint[] a = Arrays.copyOfRange( arr, 0, arr.length );\n\t\t\n\t\tfor ( int i = 1; i <= k; ++i ) {\n\t\t\tfor ( int j = 0; j < a.length - i; ++j ) {\n\t\t\t\tif ( a[j] > a[j+1] ) {\n\t\t\t\t\tint tmp = a[j];\n\t\t\t\t\ta[j] = a[j+1];\n\t\t\t\t\ta[j+1] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//displayArray(a);\n\t\t}\n\t\t\n\t\treturn a[a.length-k];\n\t}", "public static void main(String[] args) {\n\n\t\tHeap hp = new Heap();\n\t\thp.add(20);\n\t\thp.add(10);\n\t\thp.add(70);\n\t\thp.add(80);\n\t\thp.add(1);\n//\t\thp.display();\n//\n//\t\twhile (hp.size() != 0) {\n//\t\t\tSystem.out.println(hp.remove());\n//\t\t}\n\n\t\tint[] arr = { 1, 5, 2, 3, 10, 20, 2, 1, 6, 7 };\n\n\t\tKthLargest(arr, 3);\n\t}", "public static int KthLargestWithMaxHeap(Integer[] arr, int k) {\n\t\tHeap<Integer> heap = new Heap<>(arr, false);\n\n\t\t// k removal from heap\n\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\theap.remove();\n\t\t}\n\n\t\treturn heap.getHP();\n\n\t\t// complexity is n+klogn\n\t}", "public int nthLargest(int i) {\n Vector<Integer> rVector;\n if (i <= 0 || i > arr.size()){\n throw new IllegalArgumentException();\n } else {\n rVector = quickSort(arr, i);\n return rVector.get(0);\n }\n }", "public static void main(String[] args) {\n int[] arr = {123,100,200,345,456,678,89,90,10,56};\n Arrays.sort(arr);\n System.out.println(Arrays.toString(arr));\n int lastIndex = arr.length-1;\n int secondIndexNUm =lastIndex-1; //arr.length-1-1;\n int secondMaxNum = arr[secondIndexNUm];\n System.out.println(secondMaxNum);\n\n int[]arr2 = {1,2,3,4,5,6};\n int num2 =secondMax(arr2);\n System.out.println(num2 );\n\n }", "public static int findNextHigher(int[] a, int k) {\n\t int low = 0; \n\t int high = a.length - 1;\n\t \n\t int result = Integer.MAX_VALUE;\n\t while (low <= high) {\n\t int mid = (low + high) / 2;\n\t \n\t if (a[mid] > k) {\n\t result = a[mid]; /*update the result and continue*/\n\t high = mid - 1;\n\t } else {\n\t low = mid + 1;\n\t }\n\t } \n\t \n\t return result;\n\t}", "public static void main(String[] args) {\n int[] data = new int[]{1, 1, 1, 2, 3, 4, 5, 2, 1, 2, 3, 4, 5, 1, 2, 3, 2, 2, 3};\n LeetCode347 obj = new LeetCode347();\n List<Integer> list = obj.topKFrequent(data, 2);\n System.out.println(\"result\");\n for (int n : list) {\n System.out.println(n);\n }\n }", "private static int partition(int[] array, int k) {\n final int item = array[k];\n\n swap(array, k, array.length - 1);\n k = array.length - 1;\n\n for (int i = 0; i < k; i++) {\n while (array[i] > item && k > i) {\n swap(array, i, k);\n swap(array, i, k - 1);\n k--;\n }\n }\n \n return k;\n }", "public static void main(String[] args) {\n\t\t int arr[] = { 14, 900, 47, 86, 92, 52, 48, 36, 66, 85 };\n\t\t\tint largest = arr[0];\n\t\t\tint secondLargest = arr[0];\n\t\t\t//int thirdLargest=arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t \n\t\t\t\tif (arr[i] > largest || arr[i]>secondLargest) {\n\t\t\t\t\t//thirdLargest=secondLargest;\n\t\t\t\t\tsecondLargest = largest;\n\t\t\t\t\tlargest = arr[i];\n\t \n\t\t\t\t}/* else if (arr[i] > secondLargest) {\n\t\t\t\t\tsecondLargest = arr[i];\n\t \n\t\t\t\t}v\n\t\t\t\t else if (arr[i] > thirdLargest) {\n\t\t\t\t\t thirdLargest = arr[i];\n\t\t \n\t\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nlargest number is:\" + largest);\n\n\t\t\tSystem.out.println(\"\\nSecond largest number is:\" + secondLargest);\n\t\t\tSystem.out.println(\"\\nThird largest number is:\" + thirdLargest);\n\n*/ \n\t\t\t}\n\t\t\tSystem.out.println(\"\\nSecond largest number is:\" + secondLargest);\n\t}", "public static void main(String[] args) {\n QuickSort quickSort=new QuickSort();\n int[] unsortedArray=new int[] {0,100,3,24,45,54};\n int[] sortrdArray= quickSort.quickSort(unsortedArray,0,unsortedArray.length-1);\n for (int i: sortrdArray){\n System.out.println(\"Sorted values =\"+i);\n }\n }", "public static void main(String[] args) {\n int[] arr={24,34,56,98,2,59};\r\n int val =arr [0];\r\n for(int i=0;i<arr.length;i++){\r\n \t if(arr[i]>val){\r\n \t\t val=arr[i];\r\n \t }\r\n }\r\n System.out.println(\"largest value\"+ val);\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint[] numberArr = {15,22,1,4,8,25,25};\n\t\t\n\t\t//Sort the arrays in ascending order\n\t\t\n\t\tArrays.sort(numberArr);\n\t\t\n\t\tSystem.out.println(\"The second higher number in the given array is \"+numberArr[numberArr.length-2]);\n\t}", "@Test\n public <T extends Comparable<T>> void testMethodGetMedianOfThree() {\n Integer[] testArray = new Integer[]{4, 1, 7};\n assertEquals(testArray[0], Quicksort.getMedianOfThree(testArray[0], testArray[1], testArray[2]));\n }", "public int kthLargestElement(int k, ArrayList<Integer> numbers) {\n\t\tthis.k = k;\r\n\t\tkthQsort(numbers, 0, numbers.size()-1);\r\n\t\treturn rs;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint[] arr = new int[]{1,2,5,6,3,2};\n\t\t\n\t\tSystem.out.println(\"Second Largest : \" + getLarg(arr,arr.length));\n\t}", "private static void findKLargestElementBad(List<Integer> a, int k) {\n PriorityQueue<Integer> maxHeap =\n new PriorityQueue<Integer>(a.size(), new MaxHeapComperator());\n for (Integer n : a) {\n maxHeap.add(n); // O(n)\n }\n int i = k + 1;\n while (i > 0) { // O(klogn)\n System.out.print(maxHeap.remove() + \" \");\n i--;\n }\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] array = new int[5];\n int max = 0;\n int index = 0;\n for (int i = 0; i < array.length; i++) {\n System.out.println(\"Enter array numbers\");\n array[i] = scanner.nextInt();\n }\n for (int i = 1; i < array.length; i += 2) {\n if (array[i - 1] > array[i] && array[i - 1] > max) {\n max = array[i - 1];\n index = i - 1;\n } else if (array[i - 1] < array[i] && array[i - 1] < max) {\n max = array[i];\n index = i;\n }\n }\n System.out.println(\"Largest number is : \" + max);\n System.out.println(\"index is : \" + index);\n }", "public static void main(String[] args)\n {\n int A[]={2,4,6,8,10,15,17,19,18};\n int sum=0;\n for(int i=0; i<A.length;i++)\n {\n sum=sum+A[i];\n }\n System.out.println(\"Sum of all elements : \"+ sum);\n\n //===== Searching an element========\n int key=6;\n for(int j=0;j<A.length;j++)\n {\n if(A[j]==key)\n {\n System.out.println(\"Key found at Index : \"+ j);\n break;\n }\n }\n\n //======== Finding maximum elements=========\n int max= Integer.MIN_VALUE;\n for(int k=0;k<A.length;k++)\n {\n if(max<A[k])\n {\n max=A[k];\n }\n }\n System.out.println(\"Max is: \" + max);\n\n //========= Finding Second Largest element =========\n\n int max1=A[0],max2=A[0];\n for(int l=0;l<A.length;l++)\n {\n if(max1<A[l])\n {\n max2=max1;\n max1=A[l];\n }\n else if(max1>A[l] && max2<A[l])\n {\n max2=A[l];\n }\n }\n System.out.println(\"Second Largest element: \"+ max2);\n\n\n }", "public static void main(String[] args){\n\tint[] o = {3,1,2,2,4};\n\tint[] p = {3,7,1,4,32,95,47,12,50,41};\n\tSystem.out.println(toString(o));\n\tSystem.out.println(toString(quicksort(o,0,o.length)));\n }", "public static int[] topKFrequent(int[] nums, int k) {\n int[] a = new int[k];\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for (int i = 0; i < nums.length; i++) {\n if (map.containsKey(nums[i])) {\n map.put(nums[i], map.get(nums[i]) + 1);\n } else {\n map.put(nums[i], 1);\n }\n }\n\n PriorityQueue<Map.Entry<Integer, Integer>> maxHeap = new PriorityQueue<Map.Entry<Integer, Integer>>(k, Map.Entry.<Integer, Integer>comparingByValue().reversed());\n for (Map.Entry<Integer, Integer> e : map.entrySet()) {\n maxHeap.offer(e);\n }\n\n while (k > 0) {\n a[--k] = maxHeap.poll().getKey();\n }\n\n return a;\n }", "@Test\n public void heapSort(){\n int[] array = {3, 9, 6, 5, 2, 8, 7};\n SortTestHelper.testSort(new QuickSort(), array);\n SortTestHelper.print(array);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Largest values in array: \"+largest());\n\t\tSystem.out.println(\"Largest values in arrays: \"+largest());\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint value = 8;\r\n\t\tint lowIndex = 0;\r\n\t\tint highIndex = arr.length - 1;\r\n\t\t\r\n\t\twhile(lowIndex <= highIndex) {\r\n\t\t\tint middleIndex = lowIndex + (highIndex-lowIndex)/2;\r\n\t\t\t\r\n\t\t\tif(arr[middleIndex] > value) {\r\n\t\t\t\thighIndex = middleIndex - 1;\r\n\t\t\t} else if(arr[middleIndex] < value) {\r\n\t\t\t\tlowIndex = middleIndex + 1;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(middleIndex);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint[] arr = {4,8,15,3,5,99,75,33};\n\t\tArrays.sort(arr);\n\t\t\n\t\tSystem.out.println(\"Largest number is : \" + arr[arr.length-1]);\n\t\t\n\t\t\n\t}", "private int quickSelect(int[] a, int low, int high,int k) {\n //using quick sort\n //put nums that are <= pivot to the left\n //put nums that are > pivot to the right\n int i = low, j = high, pivot = a[high];\n while(i < j) {\n if(a[i++] > pivot)\n swap(a, --i, --j);\n }\n swap(a, i, high);\n\n //count the nums that are <= pivot from low\n int m = i - low + 1;\n if(m == k)\n return i;\n //pivot is too big\n else if(m > k)\n return quickSelect(a, low, i-1, k);\n else\n return quickSelect(a, i+1, high, k - m);\n }", "public static void main(String[] args) {\n\t\t\n\t\t BinaryTree tree = new BinaryTree( 20 );\n\n\t\t int[] nums = {15, 200, 25, -5, 0, 100, 20, 12, 126, 1000, -150};\n\n\t\t for(int i : nums ) {\n\n\t\t tree.addNode( i );\n\n\t\t }\n\t\t \n\t\t System.out.println(kthSmallest(tree,10));\n\t\t System.out.println(kthLargest(tree,4));\n\t\t \n\t\t System.out.println( findKthLargestItem(tree, 4).data);\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint[] x = {9,2,4,5,6,7,8,2,44,55,90,1456,300,345654,1,76};\n\t\t\n\t\tSystem.out.println(Arrays.toString(x));\n\t\t\n\t\tint since = 0;\n\t\tint until = x.length - 1;\n\t\tquicksort(x,since,until);\n\t\tSystem.out.println(Arrays.toString(x));\n\t\t\n\t\t}", "public static int[] findThreeLargestNumbers(int[] array) {\n\n if(array==null || array.length==0) {\n int[] temp = {};\n return temp ;\n }\n int[] result = new int[3];\n Arrays.fill(result,Integer.MIN_VALUE);\n result[2] = array[0];\n for(int i=1 ; i<array.length ; i++) {\n\n if(result[2]<= array[i]) {\n result[0] = result[1];\n result[1] = result[2];\n result[2] = array[i];\n } else if(result[1] <= array[i]) {\n result[0] = result[1];\n result[1] = array[i];\n } else if(result[0] < array[i]){\n result[0] = array[i];\n }\n\n\n }\n\n return result;\n\n }", "public int findKth (ArrayList<Integer> arr, int k) {\n int start = 0;\n int end = arr.size()-1;\n int pivotIndex = 0;\n \n while (start < end) {\n pivotIndex = partition(arr, start, end);\n if (pivotIndex == k) return arr.get(k);\n else if (pivotIndex < k) {\n start = pivotIndex+1;\n } else {\n end = pivotIndex-1;\n }\n }\n \n //System.out.println(start +\" - \"+ arr.get(k));\n return arr.get(k);\n }", "public static void main(String[] args) {\n int[] array = {5, 35, 75, 25, 95, 55, 45};\n // Arrays.sort(array);\n\n\n int j = array.length-1;\n for (int i = array.length-1; i >= 0; i--){\n array[j] = array[i];\n j--;\n //System.out.println(array[i]);\n }\n\n System.out.println(\"##########################\");\n //int max2 = array[array.length-1];\n\n //System.out.println(max2);\n double[] arr2 = {5.7, 35.0, 75.6, 25.3, 95.15, 55.88, 55.45};\n\n char[] ch = {'A', 'C', 'F', 'G', 'D', 'E', 'H', 'B'};\n\n\n maxNumber(array);\n\n maxNumber(arr2);\n\n System.out.println(\"><><><><><><><><><><><><><><><\");\n\n int[ ] des = Descending(array);\n System.out.println(Arrays.toString(des));\n\n double[] dess = Descending(arr2);\n System.out.println(Arrays.toString(dess));\n\n char[] desss = Descending(ch);\n System.out.println(Arrays.toString(desss));\n\n System.out.println(\"><><><><><><><><><><><><><><><\");\n\n }", "public static ArrayList<Integer> kLargest(int arr[], int n, int k)\n {\n // code here \n PriorityQueue<Integer> minheap=new PriorityQueue<>();\n for(int i=0;i<k;i++)\n minheap.add(arr[i]);\n \n for(int i=k;i<n;i++)\n {\n if(minheap.peek()>arr[i])\n continue;\n else\n {\n minheap.poll();\n minheap.add(arr[i]);\n }\n }\n ArrayList<Integer> al= new ArrayList<>();\n \n Iterator iterator=minheap.iterator();\n while(iterator.hasNext())\n {al.add((int)iterator.next());}\n //also can use poll while pq is not empty\n \n Collections.sort(al,Collections.reverseOrder());\n return al;\n }", "int arraykey(int max);", "void quickSort(int arr[], int low, int high) \n { \n if (low < high) \n { \n /* pi is partitioning index, arr[pi] is \n now at right place */\n int pi = partition(arr, low, high); \n \n // Recursively sort elements before \n // partition and after partition \n quickSort(arr, low, pi-1); \n quickSort(arr, pi+1, high); \n } \n }", "public static void main(String[] args){\n int [] a= {18,10,23,46,9};\n quickSort(a,0,a.length-1);\n }", "public static ArrayList<Integer> kLargest(int input[], int k) {\n\tMaxPQComparator maxPQComparator = new MaxPQComparator();\n\t\tPriorityQueue<Integer> pQueue = new PriorityQueue<>(maxPQComparator);\n\t\tArrayList<Integer> output = new ArrayList<>();\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tpQueue.add(input[i]);\n\t\t}\n\t\twhile (pQueue.size() != k) {\n\t\t\tpQueue.remove();\n\t\t}\n\t\twhile (!pQueue.isEmpty()) {\n\t\t\toutput.add(pQueue.remove());\n\t\t}\n\t\treturn output;\t\n\t}", "public static int findLargest(int[] data){\n\t\tint lo=0, hi=data.length-1;\n\t\tint mid = (lo+hi)/2;\n\t\tint N = data.length-1;\n\t\twhile (lo <= hi){\n\t\t\tint val = data[mid];\n\t\t\tif(mid == 0 ) return (val > data[mid+1]) ? mid : -1;\n\t\t\telse if(mid == N) return (val > data[mid-1]) ? mid : -1;\n\t\t\telse{\n\t\t\t\tint prev = data[mid-1];\n\t\t\t\tint next = data[mid+1];\n\t\t\t\tif(prev < val && val < next) lo=mid+1;\n\t\t\t\telse if(prev > val && val > next) hi = mid-1;\n\t\t\t\telse return mid; // prev > val && val > next // is the only other case\n\t\t\t\tmid = (lo+hi)/2;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "private static int findKthSmallest(Integer[] arr, int kthSmallest) {\n\t\tArrays.sort(arr);\n\t\t\n\t\t// return kth element;\n\t\treturn arr[kthSmallest-1];\n\t\t\n\t}", "public static void main(String[] args) {\n int[] arr = {10, 7, 8, 9, 1, 5};\n QuickSort quickSort = new QuickSort();\n quickSort.sort(arr, 0, arr.length - 1);\n System.out.println(\"Sorted array:\");\n quickSort.printArray(arr);\n }", "void quick_sort(int intArray[], int low, int high)\n {\n if (low < high)\n {\n // partition the array around pi=>partitioning index and return pi\n int pi = partition(intArray, low, high);\n // sort each partition recursively\n quick_sort(intArray, low, pi - 1);\n quick_sort(intArray, pi + 1, high);\n }\n }", "private static <AnyType extends Comparable<? super AnyType>> void quickSelect(AnyType[] a, int left, int right, int k)\n {\n if(left + CUTOFF <= right)\n {\n AnyType pivot = median3(a, left, right);\n\n // Begin partitioning\n int i = left, j = right - 1;\n for( ; ; )\n {\n while(a[++i].compareTo(pivot) < 0);\n while(a[--j].compareTo(pivot) > 0);\n if(i < j)\n CommonFunc.swapReference(a, i, j);\n else \n break;\n }\n\n CommonFunc.swapReference(a, i, right - 1);\n\n // if k = i + 1, the a[i] is the kth smallest item\n if(k <= i)\n quickSelect(a, left, i - 1, k);\n else if(k > i + 1)\n quickSelect(a, i + 1, right, k);\n }\n else // Do an insertion sort on the subarray\n Insertionsort.insertionsort(a, left, right);\n }", "public static void main(String[] args)\n {\n double[] a = {7, 6, 8, 4, 3, 2, 1};\n System.out.println(a[findMax(a,a.length-1)]);\n //check swap\n print(a);\n swap(a, 0, 6);\n System.out.println(\"\");\n print(a);\n //check sort\n System.out.println(\"\");\n System.out.println(\"Sort\");\n print(a);\n sort(a);\n System.out.println(\"\");\n print(a);\n \n \n //////////////////////////////string sort test\n String[] array = {\"apple\", \"bottle\", \"cat\", \"deer\", \"firetruck\", \"hi\", \"jar\", \"kite\"};\n //String[] array = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\"};\n print(array);\n System.out.println(\"SWAP:\");\n swap(array, 0, array.length-1);\n swap(array, 3, 6);\n swap(array, 2, 4);\n print(array);\n System.out.println(\"FINDMAX:\");\n System.out.println(findMax(array, 5) + \", \" + array[findMax(array,5)]);\n System.out.println(\"SORT:\");\n print(array);\n sort(array);\n print(array);\n \n }", "public static void main(String[] args) {\n\t\tint[] arrays = {20,3,6,84,95,-5};\n\t\t\n\t\tint temp = 0;\n\t\t//时间复杂度(O (n^2))\n\t\tboolean flag = false; //优化算法\n\t\tfor(int i = 0; i < arrays.length-1; i++) {\n\t\t\tfor(int j = 0; j < arrays.length - 1 - i; j++) {\n\t\t\t\tif(arrays[j] > arrays[j+1]){\n\t\t\t\t\tflag = true;\n\t\t\t\t\ttemp = arrays[j];\n\t\t\t\t\tarrays[j] = arrays[j+1];\n\t\t\t\t\tarrays[j+1] = temp;\n\t\t\t\t}\t\n\t\t\t\tSystem.out.println(Arrays.toString(arrays));\n\t\t}\n\t\t\tif(!flag) {\n\t\t\t\t//数组过程中没有进行排序,说明数组已经排序好了\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tflag = true;\n\t\t\t}\n\t}\n\n\t\tfor(int i = 0; i < arrays.length; i++) {\n\t\t\tSystem.out.print(arrays[i] + \" \");\n\t\t}\n }", "private int findKth(int A[], int B[], int i, int j, int k) {\n\n if (i >= A.length) {\n return B[k - 1];\n }\n\n if (j >= B.length) {\n return A[k - 1];\n }\n\n if (k == 1) {\n return A[i] < B[j] ? A[i] : B[j];\n }\n\n int l = k / 2;\n int r = k - l;\n\n if (A.length - i < l) {\n l = A.length - i;\n r = k - l;\n } else if (B.length - j < r) {\n r = B.length - j;\n l = k - r;\n }\n\n if (A[i + l - 1] == B[j + r - 1]) {\n return A[i + l - 1];\n } else if (A[i + l - 1] > B[j + r - 1]) {\n return findKth(A, B, i, j + r, k - r);\n } else {\n return findKth(A, B, i + l, j, k - l);\n }\n }", "public static void main(String[] args) {\n\t\tint[] arr = {1,2};\r\n\t\tint[] arr1 = {3,4};\r\n//\t\tSystem.out.println(findMedianSortedArrays(arr, arr1));\r\n\t\tSystem.out.println(findMedianSortedArrays2(arr, arr1));\r\n\t\tint x = 123;\r\n//\t\tSystem.out.println((new StringBuilder(String.valueOf(x))).reverse());\r\n\t}", "public static void main(String[] args) {\n int [] nums= {45,5, 6, 47, 57, 8, 12,-25, 20, 30};\n\n\n int biggest = nums[0];\n for (int i=1;i<nums.length;i++){\n if (nums[i]>biggest){\n biggest=nums[i];\n }\n //System.out.println(biggest);\n }\n System.out.println(biggest);\n System.out.println(Arrays.toString(nums));\n //Arrays.sort(nums);\n // System.out.println(Arrays.toString(nums));\n // System.out.println(nums[nums.length-1]);// last element and biggest num\n // System.out.println(nums[0]); // first element and smallest num\n\n int smallest= nums[0];\n for (int x=1; x<nums.length; x++){\n if (nums[x]<smallest){\n smallest=nums[x];\n\n }// System.out.println(smallest);\n } System.out.println(smallest);\n\n\n\n }", "public static int findNextHigherIndex(int[] a, int k) {\n\t\tint start = 0, end = a.length - 1; \n\t \n int ans = -1; \n while (start <= end) { \n int mid = (start + end) / 2; \n \n // Move to right side if target is \n // greater. \n if (a[mid] <= k) { \n start = mid + 1; \n } \n \n // Move left side. \n else { \n ans = mid; \n end = mid - 1; \n } \n } \n return ans;\n\t}", "static void quickSort (double a[], int lo, int hi){\n int i=lo, j=hi;\r\n\t\tdouble h;\r\n double pivot=a[lo];\r\n\r\n // pembagian\r\n do{\r\n while (a[i]<pivot) i++;\r\n while (a[j]>pivot) j--;\r\n if (i<=j)\r\n {\r\n h=a[i]; a[i]=a[j]; a[j]=h;//tukar\r\n i++; j--;\r\n }\r\n } while (i<=j);\r\n\r\n // pengurutan\r\n if (lo<j) quickSort(a, lo, j);\r\n if (i<hi) quickSort(a, i, hi);\r\n }", "private static int findKthSmallestElementUsingQuickSelect(int[] a, int low, int high, int k) {\n\n //CHECKS\n //In your original method check if array is null or empty\n //k is from 1 to n\n\n //If k is smaller than number of elements in array\n if (k > 0 && k <= a.length) {\n\n int pi = partition(a, low, high);\n\n if (pi == k - 1) {\n return a[pi];\n }\n if (pi > k - 1) {\n return findKthSmallestElementUsingQuickSelect(a, low, pi - 1, k);\n } else {\n return findKthSmallestElementUsingQuickSelect(a, pi + 1, high, k);\n }\n }\n return Integer.MAX_VALUE;\n }", "public static void main(String[] args) \n {\n Integer[] a = new Integer[5];\n a[0] = new Integer(2);\n a[1] = new Integer(1);\n a[2] = new Integer(4);\n a[3] = new Integer(3);\n a[4] = new Integer(-1);\n\t// T will be instantiated to Integer as a resutl of this call\n \n quickSort.sort(a);\n\n \n\t// Print the result after the sorting\n for (int i = 0; i < a.length; i++)\n {System.out.println(a[i].toString());}\n\n }", "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}", "public void randomizedQuickSort(Comparable[] arr, int lowindex, int highindex) {\n\t\t//call helper method\n\t\tquickSort(arr, lowindex, highindex);\n\n\t\t//print the result sorted array\n\t\tfor (Comparable c : arr) {\n\t\t\tSystem.out.print(c + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "static double [] quickSort (double a[]){\r\n \tif(a==null||a.length==0) {\r\n \t\tSystem.out.print(\"Array empty\");\r\n \t\treturn null;\r\n \t}\r\n \tdoQuickSort(a,0,a.length-1);\r\n \treturn a;\r\n\r\n }", "private void quickSort(int low, int high) {\n\t\tint i = low;\n\t\tint k = high;\n\t\tint pivot = array[low + (high - low) / 2];\n\n\t\twhile (i <= k) {\n\t\t\t// Stops when element on left side is greater than the pivot\n\t\t\twhile (array[i] < pivot) {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t// Stops when the element on the right side is less than the pivot\n\t\t\twhile (array[k] > pivot) {\n\t\t\t\tk--;\n\t\t\t}\n\t\t\t// Swap the left and right elements, since the one on the left is\n\t\t\t// greater than the one on the right (proved via pivot)\n\t\t\tif (i <= k) {\n\t\t\t\texchangeNums(i, k);\n\t\t\t\t// Move on to the next elements\n\t\t\t\ti++;\n\t\t\t\tk--;\n\t\t\t}\n\t\t}\n\t\t// Recursive calls\n\t\tif (low < k) {\n\t\t\tquickSort(low, k);\n\t\t}\n\t\tif (i < high) {\n\t\t\tquickSort(i, high);\n\t\t}\n\t}", "@Test\n\tpublic void givenAnArrayWithTwoElements_ThenItIsSorted() {\n\t\tList<Integer> unsorted = new ArrayList<>();\n\t\tunsorted.add(2);\n\t\tunsorted.add(1);\n\t\t\n\t\t// Execute the code\n\t\tList<Integer> sorted = QuickSort.getInstance().sort(unsorted);\n\t\t\t\n\t\t// Verify the test result(s)\n\t\tassertThat(sorted.get(0), is(1));\n\t\tassertThat(sorted.get(1), is(2));\n\t}", "public int[] largestAndSecond(int[] array) {\n Element[] arr = convert(array);\n int largerLen = array.length;\n while (largerLen > 1) {\n compareAndSwap(arr, largerLen);\n largerLen = (largerLen + 1) / 2;\n }\n int[] res = new int[2];\n res[0] = arr[0].value;\n res[1] = getLargest(arr[0]);\n return res;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint [] arr= {3,43,2,320,143,4};\n\t\t\n\t\tint temp=0;\n\t\tint lenth=arr.length;\n\t\t\n\t\tfor(int i=0;i<lenth;i++) {\n\t\t\t\n\t\t\tfor(int j=1;j<(lenth-i);j++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(arr[j-1]>arr[j]) {\n\t\t\t\t\ttemp=arr[j-1];\n\t\t\t\t\tarr[j-1]=arr[j];\n\t\t\t\t\t\t\tarr[j]=temp;\n\t\t\t\t\tSystem.out.println(arr[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\n\t\t\n\n\t}", "public static int orderStatistics(int[] array, int k){\r\n\t\tk = k - 1; // since array index starts with 0\r\n\t\treturn kSmall(array, 0, array.length - 1, k);\r\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tThirdLargestDigit thirdLargestDigit = new ThirdLargestDigit();\r\n\t\tint[] array = thirdLargestDigit.readArray(sc);\r\n\t\r\n\t\tSystem.out.println(\"Third largest element is: \"+thirdLargestDigit.thirdLargestDigit(array));\r\n\t}", "public static void main(String[] args) {\nint arr[]=new int[] {10,20,36,50,30};\nint max=0,i;\nfor(i=0;i<arr.length;i++)\n{\n\tif(arr[i]>max)\n\t{\n\t\tmax=arr[i];\n\t}\n}\nSystem.out.println(max);\n\t}", "static int hireAssistant(int tab[]) {\n int best = 0;\n for(int i = 0; i<tab.length; i++) {\n if(tab[i] > best)\n best = tab[i];\n }\n return best;\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int k = scan.nextInt();\n int[] freeway = new int[n];\n\n for (int l = 0; l < freeway.length; ++l) {\n freeway[l] = scan.nextInt();\n }\n while (k > 0) {\n\n int i = scan.nextInt();\n int j = scan.nextInt();\n \n int largest = 3;\n for (int f = i; f<=j; ++f){\n if (freeway[f]< largest){\n largest = freeway[f];\n }\n }\n System.out.println(largest);\n k--;\n }\n }", "public static void main(String[] args) {\n\n\t\t\n\t int [] myArray = new int[10];\n myArray[0]= 10;\n myArray[1]= 20;\n myArray[2]= 30;\n myArray[3]= 40;\n myArray[4]= 50;\n myArray[5]= 60;\n myArray[6]= 70;\n myArray[7]= 80;\n myArray[8]= 90;\n myArray[9]= 100;\n \n System.out.println(Arrays.toString(myArray));\n int index=0;\n int largest = myArray[0];\n for (int i =0; i<myArray.length; i++){\n largest = myArray[i];\n index=i;\n }\n System.out.println(\"The largest number is \"+largest+\" and index is \"+index);\n \n }", "public static void main(String[] args) {\n\t\t\n\t\tint[] nums = {100, -90, 8787, 898, 0, 1, -90, 8787};\n int large = nums[0];\n int second = nums[0];\n for (int i = 0; i<nums.length; i++) {\n if (nums[i]>large) {\n second = large;\n large = nums[i];\n }else if (nums[i]>second) {\n large = nums[i];\n }\n }System.out.println(second);\n\n\t}", "private static int partition2 (List<Point> array, int low, int high)\n {\n int pivot = (int) array.get(high).getX(); \n \n int i = (low - 1); // Index of smaller element\n\n for (int j = low; j <= high- 1; j++)\n {\n // If current element is smaller than or\n // equal to pivot\n if (array.get(j).getX() <= pivot)\n {\n i++; // increment index of smaller element\n swap(array, i, j);\n }\n }\n swap(array, i + 1, high);\n return (i + 1);\n }", "private static int partition(String[] a, int lo, int hi) {\n int i=lo,j=hi+1;\n String tmp;\n while(true) {\n while(a[++i].compareTo(a[lo]) < 0) {\n if(i==hi) break;\n }\n while(a[lo].compareTo(a[--j])<0) {\n if(j==lo) break;\n }\n if(i>=j) break;\n tmp = a[i];\n a[i] = a[j];\n a[j] = tmp;\n }\n tmp = a[lo];\n a[lo] = a[j];\n a[j] = tmp;\n StdOut.printf(\"quicksort(%d, %d, %d): \", lo, j, hi);\n for(int k=0;k<a.length;k++) {\n StdOut.printf(\"%s \", a[k]);\n }\n StdOut.println();\n return j;\n }", "private void quickSort(int[] array, int left, int right) {\n if (left>=right){\n return;\n }\n\n //2. Pick a pivot element -> we will choose the centre element:\n // Note: Better would be to choose left + (right-left)/2 (as this would avoid overflow error for large arrays i.e. 2GB))\n\n int pivot = array[(left+right)/2];\n\n //3. Partition the array around this pivot and return the index of the partition.\n int index = partition(array,left,right,pivot);\n\n //4. Sort on the left and right side recursively.\n quickSort(array,left,index-1); //Left side\n quickSort(array,index,right); //Right side\n }", "public static void main(String[] args) {\n\t\tint [][] arr= {{2,5,7},{6,7,22,33,45},{22,47,67,88}};\r\n\t\tArrayList<Integer> Sorted=mergKsort(arr);\r\n\t\tSystem.out.println(Sorted);\r\n\t}", "public static void main(String[] args) {\n\n int[] arraySort = {9,77,63,22,92,9,14,54,8,38,18,19,38,68,58,19};\n //Arrays.sort(arraySort);\n //System.out.println(Arrays.toString(arraySort));\n\n\n\n //int[] intArray = {1000,1000,3,7};\n System.out.println(\" output--> \" + new ReduceArraySizeToTheHalfSolution().minSetSize(arraySort));\n }", "void sort(double arr[], long start, long end) \n { \n double biggest = 0, temp;\n int biggestIndex = 0;\n for(int j = 0; j > arr.length+1; j++){\n for(int i = 0; i < arr.length-j; i++){\n if(arr[i] > biggest){\n biggest = arr[i];\n biggestIndex = i;\n }\n }\n temp = arr[arr.length-1];\n arr[arr.length-1] = biggest;\n arr[biggestIndex] = temp;\n biggest = 0;\n biggestIndex = 0;\n }\n }", "public static void main(String[] args) {\n\r\n\t\tint [] array1 = {3,2,5,0,1};\r\n\t\tint [] array2 = {8,10,7,6,4};\r\n\t\tint [] array3= new int[array1.length+array2.length];\r\n\t\t\r\n\t\tint i=0,j=0;\r\n\t\t\r\n\t\twhile(i<array1.length){\r\n\t\t\tarray3[i]=array1[i];\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\twhile(j<array2.length){\r\n\t\t\tarray3[i]=array2[j];\r\n\t\t\ti++;\r\n\t\t\tj++;\r\n\t\t}\r\n\t\tQuickSort(array3,0,array3.length-1,false,false);\r\n\t\t\r\n\t}", "include<stdio.h>\nint main()\n{\n int arr_size;\n scanf(\"%d\",&arr_size);\n int arr[10];\n // Get the array elements\n for(int idx = 0; idx <= arr_size - 1; idx++)\n {\n scanf(\"%d\",&arr[idx]);\n }\n // Get the searching element 1\n int max;\n if(arr[0]>arr[1])\n {\n max=arr[0];\n }\n else\n {\n max=arr[1];\n }\n \n for(int idx = 2; idx <= arr_size - 1; idx++)\n {\n if(max< arr[idx])\n {\n max= arr[idx];\n }\n }\n printf(\"%d\\n\",max);\n return 0;\n}", "public void quicksort()\n { quicksort(this.heap, 0, heap.size()-1);\n }", "public static void main(String[] args) {\n int[] array_1 = { 2, 1, 5, 1, 3, 2 };\n int k_1 = 3;\n\n int[] array_2 = { 2, 3, 4, 1, 5 };\n int k_2 = 2;\n\n// System.out.println(findMaxSumSubArray(array_1, k_1));\n// System.out.println(findMaxSumSubArray(array_2, k_2));\n\n int[] array3 = { 2, 1, 5, 2, 3, 2 };\n System.out.println(findMinSubArray(7, array3));\n }", "public static void main(String[] args) {\n\t\t\n\t\tint sum=0;\n\t\tint[] num= {33, 54,22,787,9,2};\n\t\tfor(int i:num) {\n\t\t\tsum+=i;\n\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t\n\t\t\n\t\t// find the largest number in array\n\t\t\n\t\tint[] fig= {33, 54,22,787,9,2};\n\t\tint large =fig[0];\n\t\tfor(int a=1; a<fig.length; a++) {\n\t\t\tif(fig[a]>large) {\n\t\t\t\tlarge=fig[a];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(large);\n\t}", "public static void main(String[] args) {\n \n int swap = 0;\n \n Scanner scan = new Scanner(System.in);\n System.out.print(\"Kaç elemanlı = \");\n int max = scan.nextInt();\n\n int[] toSortArray = new int[max];\n\n toSortArray[0] = 0;\n\n for (int i = 1; i < max; i++) {\n\n toSortArray[i] = (int) (Math.random() * 100);\n toSortArray[0]++; //holds the number of values in the array;\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp;\n index = index / 2;\n\n }\n\n\t\t\t//Hence the heap is created!\n }\n\n System.out.println(\"The array to be sorted is:\");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n\n }\n\n System.out.println(\" | \");\n\n\t\t//Start\n\t\t//Let's Sort it out now!\n while (toSortArray[0] > 0) {\n\n int temp = toSortArray[1];\n toSortArray[1] = toSortArray[toSortArray[0]];\n toSortArray[toSortArray[0]] = temp;\n\n for (int i = 1; i < toSortArray[0]; i++) {\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp1 = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp1;\n index = index / 2;\n swap = swap+1;\n\n }\n\n }\n\n toSortArray[0]--;\n\n }\n\n\t\t//End\n System.out.println(\"The sorted array is: \");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n }\n\n System.out.println(\" | \");\n System.out.println(max + \" eleman için \"+ swap + \" adet eleman yerdeğiştirildi. \" );\n\n }", "public static void main(String[] args) {\n\n\t\tint [] arr={1,2,6,9,13,55,88};\n\t\tint key=3;\n\t\tint low=0;\n\t\tint high=arr.length-1;\n\t\tint local=-1;\n\t\t\n\t\twhile(low<=high)\n\t\t{\n\t\t\t//找中间位置\n\t\t\tint mid=(low+high)/2;\n\t\t\tif(key>arr[mid])\n\t\t\t{\n\t\t\t\tlow=mid+1;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(key<arr[mid])\n\t\t\t{\n\t\t\t\thigh=mid-1;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tlocal=mid;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\t\n\t\tif(local == -1)\n\t\t{\n\t\t\tSystem.out.println(\"没找到\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"找到了,位置是:\"+local);\n\t\t\n\t\t}\n\n\t\t/////////////////////////////////////\n\t\tint i,j;\n int a[]={9,27,10,1,49};\n for(i=0;i<a.length-1;i++){\n int k=i;\n for(j=i;j<a.length;j++)\n if(a[j]>a[k]) k=j;\n int temp=a[i];\n a[i]=a[k];\n a[k]=temp; \n }\n for(i=0;i<a.length;i++)\n System.out.println(a[i]+\"\");\n System.out.println();\n\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\t\n\t}", "static void quickSort (int a[], int lo, int hi){\n\t int i=lo, j=hi, h;\r\n\t int pivot=a[lo];\r\n\r\n\t // pembagian\r\n\t do{\r\n\t while (a[i]<pivot) i++;\r\n\t while (a[j]>pivot) j--;\r\n\t if (i<=j)\r\n\t {\r\n\t h=a[i]; a[i]=a[j]; a[j]=h;//tukar\r\n\t i++; j--;\r\n System.out.println(\"i = \"+i + \" j = \" + j);\r\n\t }\r\n\t } while (i<=j);\r\n\r\n\t // pengurutan\r\n\t if (lo<j) quickSort(a, lo, j);\r\n\t if (i<hi) quickSort(a, i, hi);\r\n\t }", "public static int secondLargestNum(int[] arr) {\n int max = 0;\n int secondNum = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] > max) {\n secondNum = max;\n max = arr[i];\n }\n }\n return secondNum;\n }", "public int thirdLargestDigit(int[] array){\r\n\t\t\t\r\n\t\tint max = 0;\r\n\t\tint secondMax = 0;\r\n\t\tint thirdMax = 0;\r\n\t\ttry{\r\n\r\n\t\t\tfor(int index=0 ; index<array.length ; index++) {\r\n\r\n\t\t\t\tif(array[index] > max){\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = secondMax;\r\n\t\t\t\t\tsecondMax = max;\r\n\t\t\t\t\tmax = array[index];\r\n\t\t\t\t} else if(array[index] < max && array[index] > secondMax) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = secondMax;\r\n\t\t\t\t\tsecondMax = array[index];\r\n\t\t\t\t} else if(array[index] < secondMax && array[index] > thirdMax) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = array[index];\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception ex){\r\n\t\t\t\t\r\n\t\t\tSystem.out.println(\"Something went wrong: \"+ex.getMessage());\r\n\t\t}\r\n\t\treturn thirdMax;\r\n\t}", "@Test\n public void canHeapSort(){\n int[] array = {5, 6, 3, 7, 9, 1};\n heapSort(array);\n for (int elem : array) {\n System.out.println(elem + \" \");\n }\n }", "private static int[] findGreatestNumInArray(int[] array) {\r\n\t\tint maxValue = Integer.MIN_VALUE;\r\n \r\n\t\tint secondValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tint thirdValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t int[] result = new int[2];\r\n\t \r\n\t int[] result2 = new int[3];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tif (array[i] > maxValue) {\r\n\t\t\t\tthirdValue = secondValue;\r\n\t\t\t\tsecondValue = maxValue;\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(array[i]>secondValue)\r\n\t\t\t{\r\n\t\t\t\tsecondValue = array[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(array[i]>thirdValue)\r\n\t\t\t{\r\n\t\t\t\tthirdValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tallowResult( result,maxValue,secondValue);\r\n\t\t\r\n\t\tallowResult( result2,maxValue,secondValue,thirdValue);\r\n\t\t//return maxValue;\r\n\t\treturn result2;\r\n\t}", "private static List<Integer> getTopKFrequentElementsBestCase(int[] nums, int k) {\n if(k > nums.length) {\n return new ArrayList<>();\n }\n\n Map<Integer, Integer> numToCount = new HashMap<>();\n int max = 0;\n for(int i = 0; i < nums.length; i++) {\n numToCount.put(nums[i], numToCount.getOrDefault(nums[i], 0) + 1);\n max = Math.max(max, numToCount.get(nums[i]));\n }\n\n List<Integer>[] numsPerFrequency = new ArrayList[max + 1];\n for(int i = 1; i <= max; i++) {\n numsPerFrequency[i] = new ArrayList<>();\n }\n\n for(Map.Entry<Integer, Integer> entry : numToCount.entrySet()) {\n numsPerFrequency[entry.getValue()].add(entry.getKey());\n }\n\n List<Integer> result = new ArrayList<>();\n\n for(int i = max; i >= 0; i--) {\n List<Integer> numsWithThisFreq = numsPerFrequency[i];\n\n for(int num : numsWithThisFreq) {\n result.add(num);\n if(result.size() == k) {\n return result;\n }\n }\n }\n\n return new ArrayList<>();\n }", "public static void main(String[] args) {\n\t\tint array[]= {20,10,80,90};\n\t\tArrays.sort(array);\n\t\tSystem.out.println(array[array.length-2]);\n\n\t}" ]
[ "0.8220189", "0.67712086", "0.6752516", "0.6729454", "0.6727419", "0.66998243", "0.66543853", "0.6619493", "0.6597869", "0.6557483", "0.651984", "0.64454734", "0.6389315", "0.6385403", "0.6384965", "0.63767785", "0.6375761", "0.6360194", "0.6346818", "0.6319265", "0.6316794", "0.6298048", "0.6295543", "0.6283558", "0.6240494", "0.6240285", "0.6199603", "0.6188502", "0.6183134", "0.61717093", "0.61715627", "0.6166547", "0.6133052", "0.61304325", "0.6116751", "0.6106416", "0.60892373", "0.60885406", "0.60756713", "0.6065082", "0.60556203", "0.60520464", "0.6025754", "0.60197616", "0.60170484", "0.5994728", "0.5993381", "0.5979177", "0.59547186", "0.5929974", "0.59284616", "0.59242433", "0.5917196", "0.5914566", "0.5904344", "0.5903935", "0.58952755", "0.5891707", "0.5891116", "0.588554", "0.5882546", "0.5881111", "0.5880035", "0.58796513", "0.58714116", "0.5868193", "0.58608204", "0.5858164", "0.58534676", "0.58450156", "0.58439475", "0.5838678", "0.58355856", "0.58313334", "0.5828246", "0.58211964", "0.5820558", "0.58180004", "0.58175904", "0.5816526", "0.58049846", "0.5803539", "0.5801634", "0.58012414", "0.5789445", "0.57857084", "0.5777656", "0.57759124", "0.57712555", "0.57676274", "0.57651633", "0.575561", "0.5744962", "0.5737576", "0.57341623", "0.573301", "0.57304305", "0.57290673", "0.5722485", "0.5719211" ]
0.72294486
1
convert InputStream to String
public static String getStringFromInputStream(InputStream is) { BufferedReader br = null; StringBuilder sb = new StringBuilder(); String line; try { br = new BufferedReader(new InputStreamReader(is)); while ((line = br.readLine()) != null) { sb.append(line); } } catch (IOException e) { e.printStackTrace(); } finally { if (br != null) { try { br.close(); } catch (IOException e) { e.printStackTrace(); } } } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String convertStreamToString(InputStream is) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder builder = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n return builder.toString();\n }", "private String streamToString(InputStream is) throws IOException {\n String str = \"\";\n \n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n \n try {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is));\n \n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n \n reader.close();\n } finally {\n is.close();\n }\n \n str = sb.toString();\n }\n \n return str;\n }", "private String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line).append('\\n');\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "private static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is), 8192);\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return sb.toString();\n }", "private static String convertStreamToString(InputStream is) {\r\n\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\tString line = null;\r\n\t\ttry {\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tsb.append(line + \"\\n\");\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\tis.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\t\treturn sb.toString();\r\n\t}", "public String convertStreamToString(InputStream is) {\n try {\n if (is != null) {\n Writer writer = new StringWriter();\n\n char[] buffer = new char[1024];\n try {\n Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n int n;\n while ((n = reader.read(buffer)) != -1) {\n writer.write(buffer, 0, n);\n }\n } finally {\n is.close();\n }\n return writer.toString();\n } else {\n return \"\";\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Did not expect this one...\", e);\n }\n }", "public static String streamToString(InputStream is) throws IOException {\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n } finally {\n is.close();\n }\n return sb.toString();\n } else {\n return \"\";\n }\n\t}", "public String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "private static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "public static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n \n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "public static String convertStreamToString(InputStream is) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public static String InputStreamToString(InputStream is) throws IOException {\r\n\t\treturn InputStreamToString(is, false, true);\r\n\t}", "public static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n finally {\n try {\n is.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "public static String convertStreamToString(InputStream is) throws IOException {\r\n\t\tif (is != null) {\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tString line;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\r\n\t\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\t\tsb.append(line).append(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\tis.close();\r\n\t\t\t}\r\n\t\t\treturn sb.toString();\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "private static final String convertStreamToString(InputStream is) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString line = null;\n\t\ttry {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tis.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String inputStreamToString(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n\n return null;\n\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return sb.toString();\n\n }", "public static String convertStreamToString(InputStream is) {\n String line = \"\";\n StringBuilder total = new StringBuilder();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n try {\n while ((line = rd.readLine()) != null) {\n total.append(line);\n }\n } catch (Exception e) {\n\n }\n return total.toString();\n }", "private static String convertInputStreamToString(InputStream inputStream) throws IOException{\n BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));\n String line = \"\";\n String result = \"\";\n while((line = bufferedReader.readLine()) != null)\n result += line;\n\n inputStream.close();\n return result;\n\n }", "private static String convertInputStreamToString(InputStream inputStream) throws IOException {\n BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));\n String line = \"\";\n String result = \"\";\n while((line = bufferedReader.readLine()) != null)\n result += line;\n\n inputStream.close();\n return result;\n\n }", "private String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n String line;\n try {\n // building the string\n while ((line = reader.readLine()) != null) {\n sb.append(line).append('\\n');\n }\n } catch (IOException e) {\n // error occurred in the inputstream\n Log.e(TAG, \"IOException: \" + e.getMessage());\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n // error occurred closing input stream\n Log.e(TAG, \"IOException: \" + e.getMessage());\n }\n }\n return sb.toString();\n }", "private static String convertStreamToString(InputStream is) {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t sb.append(line + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n try {\n\t\t\tis.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n return sb.toString();\n \n }", "public static String convertStreamToString(InputStream is) {\n if (is == null) return null;\n Scanner s = new Scanner(is, \"UTF-8\").useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "public static String convertInputStreamToString(InputStream is)\n throws IOException {\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n try {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is, UtilsConstants.UTF_8));\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(UtilsConstants.LINE_SEPARATOR);\n }\n } finally {\n is.close();\n }\n return sb.toString();\n } else {\n return \"\";\n }\n }", "protected static String convertStreamToString(InputStream is) {\r\n /*\r\n * To convert the InputStream to String we use the BufferedReader.readLine()\r\n * method. We iterate until the BufferedReader return null which means\r\n * there's no more data to read. Each line will appended to a StringBuilder\r\n * and returned as String.\r\n */\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n StringBuilder sb = new StringBuilder();\r\n \r\n String line = null;\r\n try {\r\n while ((line = reader.readLine()) != null) {\r\n sb.append(line + \"\\n\");\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n is.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n return sb.toString();\r\n }", "private static String convertInputStreamToString(InputStream inputStream) throws IOException{\t\t\t\t\t\t\t\t\t\n\n\t\tBufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\t\t\t\t\t\t\t\t\t\n\t\tString line = \"\";\t\t\t\t\t\t\t\t\t\n\t\tString result = \"\";\t\t\t\t\t\t\t\t\t\n\t\twhile((line = bufferedReader.readLine()) != null)\t{\t\t\t\t\t\t\t\t\n\t\t\tresult += line;\t\t\t\t\t\t\t\t\n\t\t}\t\t\t\t\t\t\t\t\t\n\n\t\tinputStream.close();\t\t\t\t\t\t\t\t\t\n\t\treturn result;\t\t\t\t\t\t\t\t\t\n\t}", "private static String convertStreamToString(InputStream is)\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try\n {\n while ((line = reader.readLine()) != null)\n {\n sb.append(line + \"\\n\");\n }\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n is.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n System.out.println(sb.toString());\n return sb.toString();\n }", "public static String convertStreamToString(InputStream is) {\n java.util.Scanner s = new java.util.Scanner(is).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "private static String convertStreamToString(InputStream is) {\n\t\tInputStreamReader isr = new InputStreamReader(is);\n BufferedReader reader = new BufferedReader(isr);\n StringBuilder sb = new StringBuilder();\n \n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n \tLog.e(TAG, e.getMessage(), e);\n } finally {\n try {\n reader.close();\n } catch (IOException e) {\n \tLog.w(TAG, e.getMessage(), e);\n }\n \n try {\n isr.close();\n } catch (IOException e) {\n \tLog.w(TAG, e.getMessage(), e);\n }\n }\n \n return sb.toString();\n }", "private String readStream(InputStream in) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = in.read();\n while(i != -1) {\n bo.write(i);\n i = in.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "private String inputStreamToString(InputStream is) {\n Scanner scanner = new Scanner(is);\n Scanner tokenizer = scanner.useDelimiter(\"\\\\A\");\n String str = tokenizer.hasNext() ? tokenizer.next() : \"\";\n scanner.close();\n return str;\n }", "public static String convertStreamToString(InputStream is) throws IOException {\n\tif (is != null) {\n\t\tWriter writer = new StringWriter();\n\n\t\tchar[] buffer = new char[1024];\n\t\ttry {\n\t\t\tReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n\t\t\tint n;\n\t\t\twhile ((n = reader.read(buffer)) != -1) {\n\t\t\t\twriter.write(buffer, 0, n);\n\t\t\t}\n\t\t} finally {\n\t\t\tis.close();\n\t\t}\n\t\treturn writer.toString();\n\t} else {\n\t\treturn \"\";\n\t}\n}", "private String convertStreamToString(InputStream is) throws IOException {\r\n\t\tint bufSize = 8 * 1024;\r\n\t\tif (is != null) {\r\n\t\t\tWriter writer = new StringWriter();\r\n\r\n\t\t\tchar[] buffer = new char[bufSize];\r\n\t\t\ttry {\r\n\t\t\t\tInputStreamReader ireader = new InputStreamReader(is, \"UTF-8\");\r\n\t\t\t\tReader reader = new BufferedReader(ireader, bufSize);\r\n\t\t\t\tint n;\r\n\t\t\t\twhile ((n = reader.read(buffer)) != -1) {\r\n\t\t\t\t\twriter.write(buffer, 0, n);\r\n\t\t\t\t}\r\n\t\t\t\treader.close();\r\n\t\t\t\tireader.close();\r\n\t\t\t\treturn writer.toString();\r\n\t\t\t} catch (OutOfMemoryError ex) {\r\n\t\t\t\tLog.e(\"b2evo_android\", \"Convert Stream: (out of memory)\");\r\n\t\t\t\twriter.close();\r\n\t\t\t\twriter = null;\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"\";\r\n\t\t\t} finally {\r\n\t\t\t\tis.close();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "protected String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n log.info(sb.toString());\n return sb.toString();\n }", "static String loadStream(InputStream in) throws IOException {\n int ptr = 0;\n in = new BufferedInputStream(in);\n StringBuffer buffer = new StringBuffer();\n while( (ptr = in.read()) != -1 ) {\n buffer.append((char)ptr);\n }\n return buffer.toString();\n }", "public String convertStreamToString(InputStream is) throws IOException {\r\n /*\r\n * To convert the InputStream to String we use the Reader.read(char[]\r\n * buffer) method. We iterate until the Reader return -1 which means\r\n * there's no more data to read. We use the StringWriter class to\r\n * produce the string.\r\n */\r\n if (is != null) {\r\n Writer writer = new StringWriter();\r\n char[] buffer = new char[1024];\r\n try {\r\n Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\r\n int n;\r\n while ((n = reader.read(buffer)) != -1) {\r\n writer.write(buffer, 0, n);\r\n }\r\n } finally {\r\n is.close();\r\n }\r\n return writer.toString();\r\n } else {\r\n return \"\";\r\n }\r\n }", "private String readStream(InputStream is) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = is.read();\n while(i != -1) {\n bo.write(i);\n i = is.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "private static String convertStreamToString(InputStream inputStream) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public static String loadStream(InputStream in) throws IOException {\r\n\t\tInputStream is = in;\r\n\t\tint ptr = 0;\r\n\t\tis = new BufferedInputStream(is);\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\ttry {\r\n\t\t\twhile ((ptr = is.read()) != -1) {\r\n\t\t\t\tbuffer.append((char) ptr);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tis.close();\r\n\t\t}\r\n\t\treturn buffer.toString();\r\n\t}", "private String InputStreamToString(InputStream in) {\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new InputStreamReader(in, IConstants.UTF8_ENCODING));\n } catch (UnsupportedEncodingException e1) {\n LogUtil.logError(EntropyPlugin.PLUGIN_ID, e1);\n }\n\n StringBuffer myStrBuf = new StringBuffer();\n int charOut = 0;\n String output = \"\"; //$NON-NLS-1$\n try {\n while ((charOut = reader.read()) != -1) {\n myStrBuf.append(String.valueOf((char) charOut));\n }\n } catch (IOException e) {\n LogUtil.logError(EntropyPlugin.PLUGIN_ID, e);\n }\n output = myStrBuf.toString();\n return output;\n }", "private static String convertStreamToString(InputStream is) {\r\n\t\t/*\r\n\t\t * To convert the InputStream to String we use the\r\n\t\t * BufferedReader.readLine() method. We iterate until the BufferedReader\r\n\t\t * return null which means there's no more data to read. Each line will\r\n\t\t * appended to a StringBuilder and returned as String.\r\n\t\t */\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\tString line = null;\r\n\t\ttry {\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tsb.append(line + \"\\n\");\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n//\t\t\tLog.e(\"HTTP\", \"HTTP::convertStreamToString IOEX\",e);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tis.close();\r\n\t\t\t} catch (IOException e) {\r\n//\t\t\t\tLog.e(Constants.TAG, \"HTTP::convertStreamToString, finally catch IOEX\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public String getStringFromInputStream(InputStream is) {\n\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n } finally {\n try {\n br.close();\n } catch (Exception e) {\n }\n br = null;\n return sb.toString();\n }\n }", "public static String GetStringFromInputStream(InputStream is) {\n\t\tString line;\n\t\tStringBuilder total = new StringBuilder();\n\n\t\t// Wrap a BufferedReader around the InputStream\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\n\t\t// Read response until the end\n\t\ttry {\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\ttotal.append(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tis.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tUtilities\n\t\t\t\t\t\t.LogWarning(\"GetStringFromInputStream - could not close stream\");\n\t\t\t}\n\t\t}\n\n\t\t// Return full string\n\t\treturn total.toString();\n\t}", "static String convertStreamToString(java.io.InputStream is) {\n java.util.Scanner s = new java.util.Scanner(is).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "static String convertStreamToString(java.io.InputStream is) {\n java.util.Scanner s = new java.util.Scanner(is).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "public static String getAsString(InputStream is) {\n\t\treturn head(is, null);\n\t}", "public static String inputStreamToString(InputStream in) {\r\n StringBuffer buffer = new StringBuffer();\r\n try {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in,\r\n \"UTF-8\"), 1024);\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n buffer.append(line);\r\n }\r\n } catch (IOException iox) {\r\n LOGR.warning(iox.getMessage());\r\n }\r\n return buffer.toString();\r\n }", "private static String getStringFromInputStream(InputStream is) {\r\n\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n\r\n String line;\r\n try {\r\n\r\n br = new BufferedReader(new InputStreamReader(is));\r\n while ((line = br.readLine()) != null) {\r\n sb.append(line);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n if (br != null) {\r\n try {\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n\r\n return sb.toString();\r\n\r\n }", "static String loadStream(InputStream in) throws IOException { \n\t\tint ptr = 0; \n\t\tin = new BufferedInputStream(in); \n\t\tStringBuffer buffer = new StringBuffer(); \n\t\twhile( (ptr = in.read()) != -1 ) { \n\t\t\tbuffer.append((char)ptr); \n\t\t} \n\t\treturn buffer.toString(); \n\t}", "public static String convertStreamToString(InputStream inputStream) {\n\n String result = \"\";\n try {\n\n Scanner scanner = new Scanner(inputStream, \"UTF-8\").useDelimiter(\"\\\\A\");\n if (scanner.hasNext()) {\n result = scanner.next();\n }\n inputStream.close();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n return result;\n }", "public String StreamToString(InputStream is) {\r\n //Creamos el Buffer\r\n BufferedReader reader =\r\n new BufferedReader(new InputStreamReader(is));\r\n StringBuilder sb = new StringBuilder();\r\n String line = null;\r\n try {\r\n //Bucle para leer todas las líneas\r\n //En este ejemplo al ser solo 1 la respuesta\r\n //Pues no haría falta\r\n while((line = reader.readLine())!=null){\r\n sb.append(line);\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n is.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n //retornamos el codigo límpio\r\n return sb.toString();\r\n }", "public static String streamToString(InputStream is) {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder stringBuilder = new StringBuilder();\n String line = null;\n\n try {\n\n while ((line = reader.readLine()) != null) {\n stringBuilder.append(line);\n }\n\n reader.close();\n\n } catch (IOException e) {\n // obsłuż wyjątek\n Log.d(WebServiceHandler.class.getSimpleName(), e.toString());\n }\n\n return stringBuilder.toString();\n }", "private String stringFromInputStream(InputStream instream) throws IOException {\n StringBuilder sb = new StringBuilder(\"\");\n if (instream == null) {\n logger.warn(\"Input stream is null.\");\n return sb.toString();\n }\n BufferedReader bufreader = new BufferedReader(new InputStreamReader(instream));\n String line = \"\";\n while ((line = bufreader.readLine()) != null) {\n sb.append(line);\n sb.append(LINE_SEPARATOR);\n }\n return sb.toString();\n }", "public static String readString(InputStream is) throws IOException {\n return readString(is, DEFAULT_ENCODING);\n }", "public static String convertInputStreamToString(InputStream in) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<String> lines = null;\n\t\ttry {\n\t\t\tlines = IOUtils.readLines(in);\n\t\t} catch (IOException e) {\n\t\t\te.toString();\n\t\t}\n\t\tif (lines != null) {\n\t\t\tfor (String line : lines) {\n\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "protected String readFullyAsString(InputStream inputStream)\n\t\t\tthrows IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = inputStream.read(buffer)) != -1) {\n\t\t\tbaos.write(buffer, 0, length);\n\t\t}\n\t\treturn baos.toString(StandardCharsets.UTF_8.name());\n\t}", "private StringBuilder inputStreamToString(InputStream is) {\n String rLine = \"\";\n StringBuilder answer = new StringBuilder();\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n try {\n while ((rLine = br.readLine()) != null) {\n answer.append(rLine);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return answer;\n }", "public String convertStreamToString(InputStream instream) throws Exception {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(instream));\n\t\t StringBuilder sb = new StringBuilder();\n\t\t String line = null;\n\n\t\t while ((line = reader.readLine()) != null) {\n\t\t \t\n\t\t sb.append(line);\n\t\t }\n\t\t instream.close();\n\t\t return sb.toString();\n\t\t \n\t\t}", "private String convertStreamToString(InputStream is) throws IOException, NoInternetConnectionException\n {\n if (is != null)\n {\n Writer writer = new StringWriter();\n\n char[] buffer = new char[1024];\n try\n {\n Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n int n;\n while ((n = reader.read(buffer)) != -1)\n {\n if (!netManager.isConnectedToInternet())\n {\n reader.close();\n throw new NoInternetConnectionException();\n }\n writer.write(buffer, 0, n);\n }\n } finally\n {\n is.close();\n }\n return writer.toString();\n } else\n {\n return \"\";\n }\n }", "public static String decodeToString(InputStream in) throws IOException {\n\t\treturn new String(decodeToBytes(in));\n\t}", "private StringBuilder inputStreamToString(InputStream is) {\n \t String line = \"\";\n \t StringBuilder total = new StringBuilder();\n \t \n \t // Wrap a BufferedReader around the InputStream\n \t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n \n \t // Read response until the end\n \t try {\n \t\t\twhile ((line = rd.readLine()) != null) { \n \t\t\t total.append(line); \n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t \n \t // Return full string\n \t return total;\n \t}", "public static String read(InputStream in) throws IOException {\n\t\tStringBuilder result = new StringBuilder();\n\t try {\n\t byte[] buf = new byte[1024]; int r = 0;\n\t while ((r = in.read(buf)) != -1) {result.append(new String(buf, 0, r));}\n\t } finally { in.close();}\n\t\tString text=result.toString();\n\t\treturn text;\n\t}", "private static String convertStreamToString(InputStream inputStream) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tinputStream));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString line = null;\n\t\ttry {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"EXCEPTION\", e.getMessage());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tinputStream.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tLog.i(\"##sb#\", sb.toString());\n\t\treturn sb.toString();\n\t}", "public static String convertStreamToString(InputStream is) throws IOException {\n\n String encoding = \"UTF-8\"; //default\n\n\n // cerca se il documento specifica un altro encoding\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));//\"UTF-8\"));\n while ((line = reader.readLine()) != null) { //CRASHA\n sb.append(line).append(\"\\n\");\n if ((sb.toString().contains(\"<?\") && sb.toString().contains(\"?>\")) && sb.toString().contains(\"encoding=\")) {\n\n Pattern p = Pattern.compile(\".*<\\\\?.*encoding=.(.*).\\\\?>.*\", Pattern.DOTALL);\n\n Matcher matcher = p.matcher(sb.toString());\n\n if (matcher.matches()) {\n encoding = matcher.group(1);\n }\n\n break;\n }\n }\n\n\n\n }\n\n // converte\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, encoding));//\"UTF-8\"));\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n System.out.println(line);\n }\n } finally {\n is.close();\n }\n return sb.toString();\n } else {\n return \"error\";\n }\n }", "@NonNull\n public static String getStringFrom(InputStream inputStream) {\n StringBuffer dataStringBuffer = new StringBuffer(\"\");\n try {\n InputStreamReader isr = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(isr);\n String readString = bufferedReader.readLine();\n while (readString != null) {\n dataStringBuffer.append(readString);\n readString = bufferedReader.readLine();\n }\n isr.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n return dataStringBuffer.toString();\n }", "protected String convertStreamToString(InputStream is, String charset) {\n\t\tScanner s = new Scanner(is, charset);\n\t\ttry {\n\t\t\ts.useDelimiter(\"\\\\A\");\n\t\t\treturn s.hasNext() ? s.next() : \"\";\n\t\t} finally {\n\t\t\ts.close();\n\t\t}\n\t}", "public static String readString(InputStream is) {\r\n \t\tif (is == null)\r\n \t\t\treturn null;\r\n \t\tBufferedReader reader= null;\r\n \t\ttry {\r\n \t\t\tStringBuffer buffer= new StringBuffer();\r\n \t\t\tchar[] part= new char[2048];\r\n \t\t\tint read= 0;\r\n \t\t\treader= new BufferedReader(new InputStreamReader(is));\r\n \r\n \t\t\twhile ((read= reader.read(part)) != -1)\r\n \t\t\t\tbuffer.append(part, 0, read);\r\n \t\t\t\r\n \t\t\treturn buffer.toString();\r\n \t\t\t\r\n \t\t} catch (IOException ex) {\r\n \t\t} finally {\r\n \t\t\tif (reader != null) {\r\n \t\t\t\ttry {\r\n \t\t\t\t\treader.close();\r\n \t\t\t\t} catch (IOException ex) {\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "private String readStream(InputStream in) throws IOException {\n BufferedReader r = new BufferedReader(new InputStreamReader(in));\n\n StringBuilder sb = new StringBuilder();\n String line;\n\n // Reads every line and stores them in sb.\n while((line = r.readLine()) != null) {\n sb.append(line);\n }\n\n // Closes the input stream.\n in.close();\n\n return sb.toString();\n }", "private static String ioStr(InputStream in) throws IOException {\n\t\t// Read input\n\t\tString str = new String();\n\t\tString next = null;\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\twhile ((next = reader.readLine()) != null) {\n\t\t\tstr += next + \"\\n\";\n\t\t}\n\t\tin.close();\n\n\t\t// Convert result accordingly\n\t\tif (str.length() > 1) {\n\t\t\treturn str.substring(0, str.length() - 1);\n\t\t}\n\t\treturn str;\n\t}", "private static String readIt(InputStream stream) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line+\"\\n\");\n }\n br.close();\n return sb.toString();\n\t}", "private static String readFromStream(InputStream inputStream) throws IOException {\n StringBuilder output = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"));\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n output.append(line);\n line = reader.readLine();\n }\n }\n return output.toString();\n }", "private static String read(InputStream in) throws IOException {\n StringBuilder builder = new StringBuilder();\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String line = null;\n while ((line = reader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n }", "public static String readFileFromInputStream(final InputStream is) throws IOException\n\t{\n\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tis, FILE_CHARSET_NAME));\n\t\ttry\n\t\t{\n\t\t\tfinal StringBuilder contents = new StringBuilder(BUFFER_SIZE);\n\n\t\t\t// copy from input stream\n\t\t\tfinal char[] charBuffer = new char[BUFFER_SIZE];\n\t\t\tint len;\n\t\t\twhile ((len = input.read(charBuffer)) > 0)\n\t\t\t{\n\t\t\t\tcontents.append(charBuffer, 0, len);\n\t\t\t}\n\n\t\t\treturn contents.toString().replaceAll(\"\\r\\n\", \"\\n\");\n\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tinput.close();\n\t\t}\n\t}", "private String readStream(InputStream is) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(is),1000);\n for (String line = r.readLine(); line != null; line =r.readLine()){\n sb.append(line);\n }\n is.close();\n return sb.toString();\n }", "private static String readStream(InputStream is, String charsetName) throws UnsupportedEncodingException, IOException {\r\n StringBuffer sb = new StringBuffer();\r\n byte[] buffer = new byte[1024];\r\n int length = 0;\r\n while ((length = is.read(buffer)) != -1) {\r\n sb.append(new String(buffer, 0, length, charsetName));\r\n }\r\n return sb.toString();\r\n }", "public static String readFromInputStream(InputStream inputStream) throws IOException {\n StringBuilder streamOutput = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset\n .forName(\"UTF-8\"));\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String line = bufferedReader.readLine();\n while (line != null) {\n streamOutput.append(line);\n line = bufferedReader.readLine();\n }\n }\n return streamOutput.toString();\n }", "public static String readString(InputStream is, String encoding) throws IOException {\n StringWriter sw = new StringWriter();\n try {\n copy(is, sw, encoding);\n return sw.toString();\n } finally {\n close(is);\n close(sw);\n }\n }", "public String responsetoString(InputStream in) throws IOException{\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line = null;\n\t\twhile((line = br.readLine())!= null){\n\t\t\tsb.append(line);\t\t\t\n\t\t}\n\t\tin.close();\n\t\treturn sb.toString();\n\t}", "private static String stringFromInputStream(InputStream inIS) {\n\n if (inIS == null) {\n return null;\n }\n StringBuffer outBuffer = new StringBuffer();\n InputStreamReader isr = null;\n BufferedReader input = null;\n try {\n String line = null;\n isr = new InputStreamReader(inIS);\n input = new BufferedReader(isr);\n while ((line = input.readLine()) != null) {\n if (line.indexOf(\"//\") == -1) {\n outBuffer.append(line);\n outBuffer.append(System.getProperty(\"line.separator\"));\n }\n }\n } catch (IOException ioe) {\n log.error(\"Unable to read from InputStream or write to output buffer\");\n ioe.printStackTrace();\n outBuffer = null;\n }\n try {\n isr.close();\n input.close();\n inIS.close();\n } catch (IOException ioe) {\n log.error(\"InputStream could not be closed\");\n ioe.printStackTrace();\n }\n if (outBuffer == null) {\n return null;\n } else {\n return outBuffer.toString();\n }\n\n }", "private String readIt(InputStream stream) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(stream, \"iso-8859-1\"), 128);\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n return sb.toString();\n }", "private static String readFromStream(InputStream inputStream) throws IOException {\n\n // Create a new empty string builder\n StringBuilder stringBuilder = new StringBuilder();\n\n // Create a bufferedReader that reads from the inputStream param\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream,\n Charset.forName(\"UTF-8\")));\n\n // Create a string that is one line of the buffered reader\n String line = bufferedReader.readLine();\n\n while (line != null) {\n // Add line to stringBuilder\n stringBuilder.append(line);\n\n // Set line to the next line in buffered reader\n line = bufferedReader.readLine();\n }\n\n // Return string builder as a string\n return stringBuilder.toString();\n }", "static String slurp(InputStream stream) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line).append(System.lineSeparator());\n }\n br.close();\n return sb.toString();\n }", "public static String readIt(InputStream is) throws IOException {\n BufferedReader reader = null;\n reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n StringBuilder responseStrBuilder = new StringBuilder();\n String inputStr;\n while ((inputStr = reader.readLine()) != null) {\n responseStrBuilder.append(inputStr);\n }\n return responseStrBuilder.toString();\n }", "public String inputStreamToString(InputStream inputStreamFromServer) throws IOException{\r\n //create bufferedReader from inputStream\r\n BufferedReader bufferedReader = new BufferedReader(\r\n new InputStreamReader(inputStreamFromServer));\r\n\r\n //hold variables\r\n String inputLine;\r\n StringBuffer responseAsString = new StringBuffer();\r\n\r\n //reading with buffer\r\n while((inputLine = bufferedReader.readLine()) != null){\r\n responseAsString.append(inputLine);\r\n }\r\n\r\n return responseAsString.toString();\r\n\r\n }", "public String readStream(InputStream in) {\n BufferedReader reader = null;\n StringBuffer data = new StringBuffer(\"\");\n try {\n reader = new BufferedReader(new InputStreamReader(in));\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n data.append(line);\n }\n } catch (IOException e) {\n Log.e(\"Log\", \"IOException\");\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return data.toString();\n }", "public static String read(InputStream input) throws Exception {\r\n\t\treader.setInput(input);\r\n\t\treader.setCharset(\"UTF-8\");\r\n\t\treturn reader.read();\r\n\t}", "public String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {\n Reader reader = null;\n reader = new InputStreamReader(stream, \"UTF-8\");\n char[] buffer = new char[len];\n reader.read(buffer);\n return new String(buffer);\n }", "private String readString(InputStream in) throws IOException {\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in, \"iso-8859-1\"));\r\n\t\tString inputLine;\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\twhile ((inputLine = reader.readLine()) != null) {\r\n\t\t\tresponse.append(inputLine);\r\n\t\t}\r\n\t\tin.close();\r\n\t\treturn response.toString();\r\n\t}", "public static String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(stream));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return sb.toString();\n }", "public static String copyToString(InputStream in, Charset charset) throws IOException {\n if (in == null) throw new IllegalArgumentException(\"No InputStream specified\");\n if (charset == null) throw new IllegalArgumentException(\"No Charset specified\");\n StringBuilder out = new StringBuilder();\n InputStreamReader reader = new InputStreamReader(in, charset);\n char[] buffer = new char[BUFFER_SIZE];\n int bytesRead;\n while ((bytesRead = reader.read(buffer)) != -1) {\n out.append(buffer, 0, bytesRead);\n }\n return out.toString();\n }", "protected String readUnicodeInputStream(InputStream in) throws IOException {\n\t\tUnicodeReader reader = new UnicodeReader(in, null);\n\t\tString data = FileCopyUtils.copyToString(reader);\n\t\treader.close();\n\t\treturn data;\n\t}", "public static String streamToText(InputStream stream) {\n\t\ttry {\n\t\t\treturn readerToText(new InputStreamReader(stream, AppConventions.CHAR_ENCODING));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tlogger.error(\"Error while reading from reader. {}\", e.getMessage());\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static String readFromStream(InputStream inputStream) {\n StringBuilder outputString = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"));\n BufferedReader reader = new BufferedReader(inputStreamReader);\n try {\n String line = reader.readLine();\n while (line != null) {\n outputString.append(line);\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error reading line from reader, readFromStream() block\", e);\n }\n }\n return outputString.toString();\n }", "private String read(InputStream in) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(in), 1000);\n for (String line = r.readLine(); line != null; line = r.readLine()) {\n sb.append(line);\n }\n in.close();\n return sb.toString();\n }", "public static String readFile(InputStream in) throws IOException {\n final StringBuffer sBuffer = new StringBuffer();\n final BufferedReader br = new BufferedReader(new InputStreamReader(in));\n final char[] buffer = new char[1024];\n\n int cnt;\n while ((cnt = br.read(buffer, 0, buffer.length)) > -1) {\n sBuffer.append(buffer, 0, cnt);\n }\n br.close();\n in.close();\n return sBuffer.toString();\n }", "public static String toString(final InputStream input, final Charset encoding) throws IOException {\n final StringWriter sw = new StringWriter();\n copy(input, sw, encoding);\n return sw.toString();\n }", "private String read() {\n\n String s = \"\";\n\n try {\n // Check if there are bytes available\n if (inStream.available() > 0) {\n\n // Read bytes into a buffer\n byte[] inBuffer = new byte[1024];\n int bytesRead = inStream.read(inBuffer);\n\n // Convert read bytes into a string\n s = new String(inBuffer, \"ASCII\");\n s = s.substring(0, bytesRead);\n }\n\n } catch (Exception e) {\n Log.e(TAG, \"Read failed!\", e);\n }\n\n return s;\n }", "public String readString() throws IOException {\n return WritableUtils.readString(in);\n }", "public static String readString(InputStream is, String encoding) {\n \t\tif (is == null)\n \t\t\treturn null;\n \t\tBufferedReader reader= null;\n \t\ttry {\n \t\t\tStringBuffer buffer= new StringBuffer();\n \t\t\tchar[] part= new char[2048];\n \t\t\tint read= 0;\n \t\t\treader= new BufferedReader(new InputStreamReader(is, encoding));\n \n \t\t\twhile ((read= reader.read(part)) != -1)\n \t\t\t\tbuffer.append(part, 0, read);\n \t\t\t\n \t\t\treturn buffer.toString();\n \t\t\t\n \t\t} catch (IOException ex) {\n \t\t\tCompareUIPlugin.log(ex);\n \t\t} finally {\n \t\t\tif (reader != null) {\n \t\t\t\ttry {\n \t\t\t\t\treader.close();\n \t\t\t\t} catch (IOException ex) {\n \t\t\t\t\t// silently ignored\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn null;\n \t}", "public static String toString(final InputStream input, final String encoding)\n throws IOException {\n return toString(input, Charset.forName(encoding));\n }", "private String getTextLineFromStream( InputStream is ) throws IOException {\n StringBuffer buffer = new StringBuffer();\n int b;\n\n \twhile( (b = is.read()) != -1 && b != (int) '\\n' ) {\n \t\tbuffer.append( (char) b );\n \t}\n \treturn buffer.toString().trim();\n }" ]
[ "0.8287886", "0.8158139", "0.81556314", "0.8113989", "0.8075132", "0.8070196", "0.8050584", "0.8034654", "0.8028828", "0.8010856", "0.8005428", "0.8005033", "0.7989694", "0.7987228", "0.7977151", "0.79752237", "0.7971573", "0.7952899", "0.79171985", "0.7911311", "0.7907695", "0.7905855", "0.7896584", "0.7862572", "0.78609896", "0.7844819", "0.7829153", "0.78071356", "0.7798317", "0.77914715", "0.7791183", "0.77906835", "0.7772813", "0.7770208", "0.7761766", "0.77466494", "0.77396023", "0.7717213", "0.7707763", "0.77016497", "0.7693746", "0.7667107", "0.7663982", "0.7663982", "0.7660148", "0.7656821", "0.7631565", "0.762776", "0.7618581", "0.7596147", "0.74576056", "0.74553746", "0.7422153", "0.73832583", "0.73822004", "0.73772705", "0.73723483", "0.7347844", "0.73027825", "0.7273518", "0.7263076", "0.724458", "0.72331417", "0.7215604", "0.72106344", "0.71975994", "0.7195573", "0.71882266", "0.71405", "0.7120166", "0.71071774", "0.7095513", "0.7020606", "0.7014243", "0.7005524", "0.699062", "0.6947766", "0.6942668", "0.693426", "0.690589", "0.690011", "0.68889993", "0.68711126", "0.6855721", "0.67395246", "0.6732502", "0.67193365", "0.6716701", "0.6704799", "0.6702999", "0.6638196", "0.6633138", "0.6613935", "0.6557367", "0.6555237", "0.6534123", "0.6519537", "0.64733243", "0.64569175", "0.6441232" ]
0.7584088
50
/ fungsi ini akan ngambil value place dari yang terdekat
private String getPlace(String[] tokens, int start_index) { int i = start_index + 1; boolean found = false; String ret = ""; while(!found && i < tokens.length) { if(isWordPlace(tokens[i])) { found = true; } else { i++; } } if(found) { ret = tokens[i]; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocacion(String locacion);", "private void setValueForEditAddrss() {\n ServiceCaller serviceCaller = new ServiceCaller(context);\n serviceCaller.callGetAllAddressByIdService(addressid, new IAsyncWorkCompletedCallback() {\n @Override\n public void onDone(String workName, boolean isComplete) {\n if (isComplete) {\n if (!workName.trim().equalsIgnoreCase(\"no\") && !workName.equalsIgnoreCase(\"\")) {\n ContentDataAsArray contentDataAsArray = new Gson().fromJson(workName, ContentDataAsArray.class);\n for (Data data : contentDataAsArray.getData()) {\n if (data != null) {\n edt_name.setText(data.getName());\n edt_phone.setText(data.getPhone());\n edt_landmark.setText(data.getLandmark());\n edt_address.setText(data.getAddress());\n edt_city.setText(data.getCity());\n edt_state.setText(data.getState());\n }\n }\n }\n }\n }\n });\n\n }", "public void setFixed(entity.LocationNamedInsured value);", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "public void set_loc(String locaton)\n {\n d_loc =locaton;\n }", "public void setPlace(String place){\n this.place = place;\n }", "public void setBasedOnValue(entity.LocationNamedInsured value);", "private void setMyLatLong() {\n }", "public void loadValue() {\n int loadInt = assignedDataObject.getInt(name);\n Integer iv = new Integer(loadInt);\n editBeginValue = iv.toString();\n if (!showZero & loadInt == 0) editBeginValue = \"\";\n if (loadInt == 0 & assignedDataObject.getMode() == DataObject.INSERTMODE) editBeginValue = new Integer(defaultValue).toString();\n this.setText(editBeginValue);\n }", "String setValue();", "public String Get_place() \n {\n\n return place;\n }", "static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}", "public void setLatitud(String latitud);", "public void searchPlace(String value)\n\t\t{ \n\t\t Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault()); \n\t\t try {\n\t\t List<Address> addresses = geoCoder.getFromLocationName(\n\t\t value, 5);\t\t \n\t\t if (addresses.size() > 0) {\n\t\t \t\n\t\t \tdouble latitude= 0.0, longtitude= 0.0;\n\t\t \tGeoPoint p = new GeoPoint(\n\t\t (int) (addresses.get(0).getLatitude() * 1E6), \n\t\t (int) (addresses.get(0).getLongitude() * 1E6));\n\t\t \tlatitude=p.getLatitudeE6()/1E6;\n\t\t\t\t\t\tlongtitude=p.getLongitudeE6()/1E6;\t \n\t\t\t\t\t\tlat = String.valueOf(latitude);\n\t\t\t\t\t\tlongi = String.valueOf(longtitude);\n\t\t\t\t\t\torigin = new LatLng(latitude,longtitude);\n\t\t \tmap.moveCamera( CameraUpdateFactory.newLatLngZoom(origin, (float) 14.0) ); \n\t\t } \n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\n\n\n\t\t \n\n\t\t}", "public void setValue3(String value3) { this.value3 = value3; }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setTipoLocacion(String tipoLocacion);", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode,resultCode,data);\n\n // menangkap hasil balikan dari Place Picker, dan menampilkannya pada TextView\n if (requestCode == 5 && resultCode == RESULT_OK) {\n\n place_Picker = PlacePicker.getPlace(TambahWarkopActivity.this,data);\n\n stxtaddresplace = String.format(\"%s\", place_Picker.getAddress().toString());\n latLng = place_Picker.getLatLng();\n latitude = (float) latLng.latitude;\n longitude = (float) latLng.longitude;\n alamat_warkopText.setText(\"\"+ stxtaddresplace);\n\n }\n }", "Karyawan(String n)\n {\n this.nama = n;\n }", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public void setLongitud(String longitud);", "void setValue(String name,BudaBubble bbl)\n{\n if (name != null) value_map.put(name,bbl);\n}", "public String getPlace(){\n return place;\n }", "private void loadLocationDetailsValue(Ad ad, Location location) {\n this.txtLocationSize.setText(ad.getAdSize());\n this.txtLocationX.setText(String.valueOf(location.getLocationCoordonateX()));\n this.txtLocationY.setText(String.valueOf(location.getLocationCoordonateY()));\n }", "public void setLocation(Location loc) {\n if (loc.getLatitude() != 0.0 && loc.getLongitude() != 0.0) {\n try {\n Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n List<Address> list = geocoder.getFromLocation(\n loc.getLatitude(), loc.getLongitude(), 1);\n if (!list.isEmpty()) {\n Address DirCalle = list.get(0);\n mensaje2.setText(\n DirCalle.getAddressLine(0));\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "static public void set_country_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3), Edit_row_window.selected[0].getText(4), \n\t\t\t\tEdit_row_window.selected[0].getText(5), Edit_row_window.selected[0].getText(6)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct l.id, l.name, l.num_links, l.population \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_locations l, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.location_id=l.id and lc.country_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct l.id, l.name, l.num_links, l.population \" +\n\t\t\t\t\" from curr_places_locations l \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"location name\", \"rating\", \"population\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"LOCATIONS\";\n\t}", "private void initValues() {\n \n }", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public abstract void setCod_localidad(java.lang.String newCod_localidad);", "private void setupSpalteSez() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSez.setCellValueFactory(new PropertyValueFactory<>(\"sez\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSez.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSez.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSez(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "@Override\n public void setValue(String editextvalue) {\n value = editextvalue;\n Log.i(\"..............\", \"\" + value);\n if (frg2 != null) {\n frg2.setName(value);\n } else {\n Toast.makeText(getApplicationContext(), \"fragment 2 is null\", Toast.LENGTH_LONG).show();\n }\n }", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "private void addPlaceHolderValue(final PlaceHolder placeHolder) {\n placeHolder.move();\n addInt(0);\n }", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n\tprotected void setValue(String name, TipiValue tv) {\n\t}", "public void setNamaKelas(java.lang.CharSequence value) {\n this.nama_kelas = value;\n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public static void setUserHintValues()\n {\n int hintValueNum=1; //Número de casillas que son reveladas al inicio de la partida.\n \n switch(GameManager.getGameLevel())\n {\n case 1: hintValueNum = 9;\n break;\n case 2: hintValueNum = 6;\n break;\n case 3: hintValueNum = 3;\n break;\n }\n \n int row; //Número de fila.\n int col; //Número de columna.\n boolean isSet; //Define si el valor de la casilla ya ha sido inicializado anteriormente.\n \n for (int i = 0; i < hintValueNum; i++)\n {\n isSet=false;\n do{\n row = (int) (Math.random() * 4);\n col = (int) (Math.random() * 4);\n \n if (playerBoardPos[row][col]==0)\n {\n //Inicializa algunas posiciones aleatorias para las pistas iniciales del tablero del jugador.\n playerBoardPos[row][col] = boardPos[row][col]; \n isDefaultPos[row][col]=true;\n isSet=true;\n }\n }while (isSet==false);\n }\n }", "public void setLand(int value);", "public void setLocation(){\n //Check if user come from notification\n if (getIntent().hasExtra(EXTRA_PARAM_LAT) && getIntent().hasExtra(EXTRA_PARAM_LON)){\n Log.d(TAG, \"Proviene del servicio, lat: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LAT) + \" - lon: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LON));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(getIntent().getExtras().getDouble(EXTRA_PARAM_LAT), getIntent().getExtras().getDouble(EXTRA_PARAM_LON)), 18));\n NotificationManager mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n mNM.cancel(1);\n } else{\n if (bestLocation!=null){\n Log.d(TAG, \"Posicion actual -> LAT: \"+ bestLocation.getLatitude() + \" LON: \" + bestLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(bestLocation.getLatitude(), bestLocation.getLongitude()), 16));\n } else{\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(41.651981, -4.728561), 16));\n }\n }\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public void setRiskLocation(typekey.APDRiskLocationType value);", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "public void setA(String units,float value){\r\n\t\t//this.addChild(new PointingMetadata(\"lat\",\"\"+latitude));\r\n\t\tthis.setFloatField(\"a\", value);\r\n\t\tthis.setUnit(\"a\", units);\r\n\t}", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "private void setupSpalteAufwand() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteAufwand.setCellValueFactory(new PropertyValueFactory<>(\"aufwand\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteAufwand.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteAufwand.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setAufwand(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "@Override\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\n editTextBusinessName.setText(place.getName());\n editTextLocation.setText(place.getAddress());\n editTextPhone.setText(place.getPhoneNumber());\n barCoordinates = place.getLatLng();\n //editTextBusinessDescription.setText(place.getAttributions());\n\n }", "public void setGBInterval_accession(java.lang.String param){\n \n this.localGBInterval_accession=param;\n \n\n }", "public static void setCurrentLocation(Double lat, Double lng ){\n //SharedPreferences sharedPreferences1=appCompatActivity. getSharedPreferences(\"longitude\", MODE_PRIVATE) ;\n SharedPreferences.Editor editor=sharedPreferences.edit();\n editor.putString(USER_LTD, String.valueOf(lat));\n editor.putString(USER_LNG, String.valueOf(lng));\n editor.apply();\n }", "void setProvincia(String provincia);", "public void setNamaHari(java.lang.CharSequence value) {\n this.nama_hari = value;\n }", "private void prefil_demo_values() {\n //Dont forget to look at \"Controller.connect()\" method\n //\n MY_SQL = false;\n DATE_FORMAT = \"yy/MM/dd\";\n String quality = \"1702860-ST110\";\n jComboBoxQuality.addItem(quality);\n jComboBoxQuality.setSelectedItem(quality);\n String testCode = \"10194\";\n jComboBoxTestCode.addItem(testCode);\n jComboBoxTestCode.setSelectedItem(testCode);\n //\n String testName = \"ML\";\n jComboBoxTestName.addItem(testName);\n jComboBoxTestName.setSelectedItem(testName);\n //\n }", "public void setPlace(int num) {\n\t\tplace = num;\n\t}", "public void changeRegion(ValueChangeEvent valueChangeEvent) {\n WABEAN mybean = new WABEAN();\r\n mybean.AccessAttribute(\"Country\").setInputValue(null);// second level attribunte\r\n // makes also the third level attribute to null \r\n // mybean.AccessAttribute(\"City\").setInputValue(null);// thierd level no need to make it null\r\n }", "public void setValue2 (String Value2);", "public void setIdLocacion(Integer idLocacion);", "public void praticien_zone(){\n\n JLabel lbl_Praticien = new JLabel(\"Praticien :\");\n lbl_Praticien.setBounds(40, 50, 119, 16);\n add(lbl_Praticien);\n\n\n\n JTextField praticien = new JTextField();\n praticien.setBounds(200, 50, 200, 22);\n praticien.setEditable(false);\n try {\n praticien.setText((DAO_Praticien.nomPraticien(rapport_visite.elementAt(DAO_Rapport.indice)[1])));\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n add(praticien);\n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "void setNama(String nama){\n this.nama = nama;\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public void setBloqueado(java.lang.String param){\n \n this.localBloqueado=param;\n \n\n }", "public void setdat()\n {\n }", "@FXML\r\n\tpublic void initSelezionati() {\r\n\t\ttotale.setText(\"0.0\");\r\n\t\tprodottiSelezionati = ac.getSelezionati(); //Dovrei prendere la lista dei selezionati \r\n\t\t\t\t\t\t\t\t\t\t//ma se non ho aggiunto nulla Ŕ vuota\r\n\t\tif(tabellaSelezionati!= null) {\r\n\t\t\tcodiceSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Integer>(\"codice\"));\r\n\t prodottoSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, String>(\"nome\"));\r\n\t quantitaSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Integer>(\"quantita\"));\r\n\t prezzoSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Float>(\"prezzo\"));\r\n\t\t}\r\n\t}", "@AutoEscape\n\tpublic String getLocacion();", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "private void inicializaValores(){\n /**\n * Reinicia los valores de las variables.\n */\n ce.setVariables();\n valorA.setText(null);\n valorB.setText(null);\n valorC.setText(null);\n x1.setText(null);\n x2.setText(null);\n \n }", "public void setBunga(int tipeBunga){\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }", "public Valvula(String muni, int hab){\n municipio = muni;\n habitantes = hab;\n estado = true;\n }", "public void setMyCidade(Location myCidade)\n {\n this.myCidade = myCidade;\n }", "public doimatkhau() {\n initComponents();\n setLocationRelativeTo(null);\n txtTendangnhap.setText(sharehelper.user.getMaNV());\n }", "public void setAcideAmine(String codon) {\n switch (codon) {\n \n case \"GCU\" :\n case \"GCC\" :\n case \"GCA\" :\n case \"GCG\" : \n this.acideAmine = \"Alanine\";\n break;\n case \"CGU\" :\n case \"CGC\" :\n case \"CGA\" :\n case \"CGG\" :\n case \"AGA\" :\n case \"AGG\" :\n this.acideAmine = \"Arginine\";\n break;\n case \"AAU\" :\n case \"AAC\" :\n this.acideAmine = \"Asparagine\";\n break;\n case \"GAU\" :\n case \"GAC\" :\n this.acideAmine = \"Aspartate\";\n break;\n case \"UGU\" :\n case \"UGC\" :\n this.acideAmine = \"Cysteine\";\n break;\n case \"GAA\" :\n case \"GAG\" :\n this.acideAmine = \"Glutamate\";\n break;\n case \"CAA\" :\n case \"CAG\" :\n this.acideAmine = \"Glutamine\";\n break;\n case \"GGU\" :\n case \"GGC\" :\n case \"GGA\" :\n case \"GGG\" :\n this.acideAmine = \"Glycine\";\n break;\n case \"CAU\" :\n case \"CAC\" :\n this.acideAmine = \"Histidine\";\n break;\n case \"AUU\" :\n case \"AUC\" :\n case \"AUA\" :\n this.acideAmine = \"Isoleucine\";\n break;\n case \"UUA\" :\n case \"UUG\" :\n case \"CUU\" :\n case \"CUC\" :\n case \"CUA\" :\n case \"CUG\" :\n this.acideAmine = \"Leucine\";\n break;\n case \"AAA\" :\n case \"AAG\" :\n this.acideAmine = \"Lysine\";\n break;\n case \"AUG\" :\n this.acideAmine = \"Methionine\";\n break;\n case \"UUU\" :\n case \"UUC\" :\n this.acideAmine = \"Phenylalanine\";\n break;\n case \"CCU\" :\n case \"CCC\" :\n case \"CCA\" :\n case \"CCG\" :\n this.acideAmine = \"Proline\";\n break;\n case \"UAG\" :\n this.acideAmine = \"Pyrrolysine\";\n break;\n case \"UGA\" :\n this.acideAmine = \"Selenocysteine\";\n break;\n case \"UCU\" :\n case \"UCC\" :\n case \"UCA\" :\n case \"UCG\" :\n case \"AGU\" :\n case \"AGC\" :\n this.acideAmine = \"Serine\";\n break;\n case \"ACU\" :\n case \"ACC\" :\n case \"ACA\" :\n case \"ACG\" :\n this.acideAmine = \"Threonine\";\n break;\n case \"UGG\" :\n this.acideAmine = \"Tryptophane\";\n break;\n case \"UAU\" :\n case \"UAC\" :\n this.acideAmine = \"Tyrosine\";\n break;\n case \"GUU\" :\n case \"GUC\" :\n case \"GUA\" :\n case \"GUG\" :\n this.acideAmine = \"Valine\";\n break;\n case \"UAA\" :\n this.acideAmine = \"Marqueur\";\n break;\n }\n }", "public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}", "public void set(String value){\n switch (field){\n case 0:\n nomComplet = value;\n break;\n case 1:\n rv1 = value;\n break;\n case 2:\n dateDispo = LocalDate.parse(value,formatter);\n break;\n case 3:\n competencePrincipale = value;\n break;\n case 4:\n exp = Double.parseDouble(value);\n break;\n case 5:\n trancheExp = value;\n break;\n case 6:\n ecole = value;\n break;\n case 7:\n classeEcole = value;\n break;\n case 8:\n fonctions = value;\n break;\n case 9:\n dateRV1 = LocalDate.parse(value,formatter);\n case 10:\n rv2 = value;\n break;\n case 11:\n metiers = value;\n break;\n case 12:\n originePiste = value;\n break;\n }\n field++;\n }", "Builder addContentLocation(Place.Builder value);", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}", "public void setLng(double value) {\n this.lng = value;\n }", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "@Override\n public String location() {\n return \"Vị trí sách giáo khoa\";\n }", "public void setLocs(String newValue);", "public Fruit(int id,GpsPoint GpsLocation,int value , Map map)\n\t{\n\t\tthis._id=id;\n\t\tthis._GPS=GpsLocation;\n\t\tthis._value=value;\n\t\t_GPSConvert = new Point3D(GpsLocation.getLon(),GpsLocation.getLat(),GpsLocation.getAlt());\n\t\tthis._PixelLocation = new Pixel(_GPSConvert, map);\n\t\tEatenTime = 0 ;\n\t}", "public abstract void setCity(String sValue);", "public void actualizacionMemoriaEntera(int value , int direccion){\n memoriaEntera[direccion-inicioMem] = value;\n }", "int getLocationtypeValue();", "private void setupSpalteSaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSaz.setCellValueFactory(new PropertyValueFactory<>(\"saz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "public void set_point ( String id,String longitud,String latitud, String id_cliente){\n this.id = id;\n this.longitud=longitud;\n this.latitud=latitud;\n this.id_cliente = id_cliente;\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\n fecha= df.format(c.getTime()).toString();\n new define_ubicacion_cliente().execute();\n }", "public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }", "private void setAddrInputFields(){\n \ttextFieldCurrents.put(jTextFieldStart, jTextFieldStart.getText());\n\t\ttextFieldCurrents.put(jTextFieldEnd, jTextFieldEnd.getText());\n\t\tselectedFormat = jComboBoxFormat.getSelectedIndex();\n\t\tquickSearch = jCheckBoxQuickSearch.isSelected();\n }", "Builder addContentLocation(Place value);", "public M csmiPlaceNull(){if(this.get(\"csmiPlaceNot\")==null)this.put(\"csmiPlaceNot\", \"\");this.put(\"csmiPlace\", null);return this;}" ]
[ "0.65038747", "0.60328484", "0.59416205", "0.59142196", "0.5900167", "0.58453625", "0.58063674", "0.57776195", "0.5775225", "0.5729979", "0.5680264", "0.56392914", "0.563721", "0.5632486", "0.5630458", "0.5621697", "0.55864817", "0.5585124", "0.5565515", "0.55546", "0.55353516", "0.55029804", "0.5472153", "0.54707134", "0.54677284", "0.5444375", "0.54372716", "0.5431346", "0.54259914", "0.5408871", "0.5388122", "0.5384544", "0.53760505", "0.5370733", "0.5369218", "0.5362144", "0.53578115", "0.5355151", "0.5352088", "0.5345032", "0.5341989", "0.5336992", "0.5334511", "0.5333963", "0.53332025", "0.5331233", "0.5311035", "0.5302467", "0.5300407", "0.529474", "0.5294174", "0.5292141", "0.5282855", "0.52674145", "0.52659535", "0.52616256", "0.5260471", "0.5254545", "0.52538866", "0.5249448", "0.5241971", "0.5239265", "0.5222815", "0.5222815", "0.5222815", "0.5222815", "0.5222215", "0.5215238", "0.5203797", "0.5202016", "0.5198365", "0.51913524", "0.5190569", "0.5188334", "0.51859164", "0.518489", "0.5177977", "0.51755", "0.5174411", "0.51641744", "0.51618963", "0.5161561", "0.51581097", "0.5154644", "0.5149736", "0.51460135", "0.51421285", "0.5139676", "0.51385766", "0.5132693", "0.51322466", "0.5128688", "0.5121447", "0.5119594", "0.5118965", "0.5117831", "0.5117502", "0.51169926", "0.51138633", "0.5107329", "0.5105086" ]
0.0
-1
Test of getRuedas method, of class Camiones.
@Test public void testGetRuedas() { System.out.println("getRuedas"); Camiones instance = new Camiones("C088IJ", true, 10); int expResult = 0; int result = instance.getRuedas(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSetRuedas() {\n System.out.println(\"setRuedas\");\n int ruedas = 3;\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n instance.setRuedas(ruedas);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "public int[] ejecRobotReal(){\n\t\t\n\t\tint ruedas[] = new int[2]; //Izda-Dcha\n\t\t\n\t\t/* Por defecto, giro a la izquierda */\n\t\tswitch(factor){\n\t\tcase 1: //Giro muy debil\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 20;\n\t\t\tbreak;\n\t\tcase 2: //Giro debil\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 40;\n\t\t\tbreak;\n\t\tcase 3: //Giro normal\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 60;\n\t\t\tbreak;\n\t\tcase 4: //Giro fuerte\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 80;\n\t\t\tbreak;\n\t\tcase 5: //Giro muy fuerte\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 100;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 0;\n\t\t}\n\t\t\n\t\tif(!izquierda){ //Si giro a la derecha, cambio de ruedas\n\t\t\tint aux = ruedas[0];\n\t\t\truedas[0] = ruedas[1];\n\t\t\truedas[1] = aux;\n\t\t}\n\t\t\n\t\treturn ruedas;\n\t}", "@Test\n public void testAnchoOruedas() {\n System.out.println(\"anchoOruedas\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n double expResult = 0.0;\n double result = instance.anchoOruedas();\n \n // TODO review the generated test code and remove the default call to fail.\n \n }", "public int[] ejecSimulador(){\n\t\t\n\t\tint ruedas[] = new int[2]; //Izda-Dcha\n\t\t\n\t\t/* Por defecto, giro a la izquierda */\n\t\tswitch(factor){\n\t\tcase 1: //Giro muy debil\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 10;\n\t\t\tbreak;\n\t\tcase 2: //Giro debil\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 20;\n\t\t\tbreak;\n\t\tcase 3: //Giro normal\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 30;\n\t\t\tbreak;\n\t\tcase 4: //Giro fuerte\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 40;\n\t\t\tbreak;\n\t\tcase 5: //Giro muy fuerte\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 50;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 0;\n\t\t}\n\t\t\n\t\tif(!izquierda){ //Si giro a la derecha, cambio de ruedas\n\t\t\tint aux = ruedas[0];\n\t\t\truedas[0] = ruedas[1];\n\t\t\truedas[1] = aux;\n\t\t}\n\t\t\n\t\treturn ruedas;\n\t}", "private static void testGetTrayectoMayorDuracionMedia() {\n System.out.println(\"\\nTest de getTrayectoMayorDuracionMedia\");\n try {\n System.out.println(\"El trayecto con mayor duración media es: \" + DATOS.getTrayectoMayorDuracionMedia());\n } catch (Exception e) {\n System.out.println(\"Excepción capturada \\n\" + e);\n }\n }", "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nAlpha);\n if (result != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n\n assertArrayEquals(expResult, resultArray);\n\n }", "public int getTotRuptures();", "public void capturarNumPreRadica() {\r\n try {\r\n if (mBRadicacion.getRadi() == null) {\r\n mbTodero.setMens(\"Debe seleccionar un registro de la tabla\");\r\n mbTodero.warn();\r\n } else {\r\n DatObser = Rad.consultaObserRadicacion(String.valueOf(mBRadicacion.getRadi().getCodAvaluo()), mBRadicacion.getRadi().getCodSeguimiento());\r\n mBRadicacion.setListObserRadicados(new ArrayList<LogRadicacion>());\r\n\r\n while (DatObser.next()) {\r\n LogRadicacion RadObs = new LogRadicacion();\r\n RadObs.setObservacionRadic(DatObser.getString(\"Obser\"));\r\n RadObs.setFechaObservacionRadic(DatObser.getString(\"Fecha\"));\r\n RadObs.setAnalistaObservacionRadic(DatObser.getString(\"empleado\"));\r\n mBRadicacion.getListObserRadicados().add(RadObs);\r\n }\r\n Conexion.Conexion.CloseCon();\r\n opcionCitaAvaluo = \"\";\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgInfRadicacion').show()\");\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".capturarNumPreRadica()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public List<RutaDTO> getAllRutas() {\n TypedQuery<RutaDTO> query = em.createQuery(\n \"SELECT r FROM ruta r ORDER BY r.id\", RutaDTO.class);\n return query.getResultList();\n }", "@Test\r\n public void testMedia() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87);\r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 0.1);\r\n }", "public void cambiarRonda() {\n\t\ttry {\r\n\t\t\tjuego.cambiarRonda();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void testMediaMovelSimples() {\n System.out.println(\"MediaMovelSimples\");\n int[] energia = null;\n int linhas = 0;\n double n = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.MediaMovelSimples(energia, linhas, n);\n if (resultArray != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n assertArrayEquals(expResult, resultArray);\n\n }", "public int checkNoOfRapelPlayerHolds () { return noOfRapels; }", "public void mostrarVideojuegosNumeradosPorOrdenDeRegistro()\n {\n int posicActual = 0;\n while (posicActual < listaDeVideojuegos.size()) {\n System.out.println((posicActual+1) + \". \" + listaDeVideojuegos.get(posicActual).getDatosVideojuego());\n posicActual++;\n }\n }", "public void loadRutinas() {\n\t\trutinas = rutBuss.getRutinas();\n\t}", "public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "private void mostrarRota() {\n int cont = 1;\n int contMelhorRota = 1;\n int recompensa = 0;\n int distanciaTotal = 0;\n List<Rota> calculaMR;\n\n System.out.println(\"\\n=================== =================== ========== #Entregas do dia# ========== =================== ===================\");\n for (RotasEntrega re : rotas) {\n Rota r = re.getRotaMenor();\n\n System.out\n .print(\"\\n\\n=================== =================== A \" + cont + \"º possível rota a ser realizada é de 'A' até '\" + r.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (r.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA possivel rota é: \" + printRoute(r));\n System.out.println(\n \"Com a chegada estimada de \" + r.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + r.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n r.getRecompensa() + \" real\" : r.getRecompensa() + \" reais\") + \".\");\n\n\n distanciaTotal += r.getDistancia();\n cont++;\n }\n\n calculaMR = calculaMelhorEntraga(distanciaTotal);\n System.out.println(\"\\n#############################################################################################################################\");\n\n for(Rota reS : calculaMR)\n {\n System.out\n .print(\"\\n\\n=================== =================== A \" + contMelhorRota + \"º rota a ser realizada é de 'A' até '\" + reS.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (reS.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA melhor rota é: \" + printRoute(reS));\n System.out.println(\n \"Com a chegada estimada de \" + reS.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + reS.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n reS.getRecompensa() + \" real\" : reS.getRecompensa() + \" reais\") + \".\");\n\n recompensa += reS.getRecompensa();\n contMelhorRota ++;\n }\n\n System.out.println(\"\\n\\nO lucro total do dia: \" + recompensa + \".\");\n }", "@Test\n public void testGetIdentificador() {\n System.out.println(\"getIdentificador\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n int expResult = 0;\n int result = instance.getIdentificador();\n \n \n }", "public int[] getRotors() {\r\n\t\treturn rotorArray;\r\n\t}", "@Test\n public void testLeerArchivo() {\n System.out.println(\"LeerArchivo\");\n String RutaArchivo = \"\";\n RandomX instance = null;\n Object[] expResult = null;\n Object[] result = instance.LeerArchivo(RutaArchivo);\n assertArrayEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "RegrasDosPrecos regras() {\n RegrasDosPrecos regraDosPrecos = new RegrasDosPrecos();\n\n\t regraDosPrecos.adicionarRegraDosPrecos(\"A\", 50);\n\t regraDosPrecos.adicionarRegraDosPrecos(\"B\", 30);\n\t regraDosPrecos.adicionarRegraDosPrecos(\"C\", 20);\n\t regraDosPrecos.adicionarRegraDosPrecos(\"D\", 15);\n\n\t regraDosPrecos.adicionarRegraDoDesconto(\"A\", new Desconto(20, 3));\n\t regraDosPrecos.adicionarRegraDoDesconto(\"B\", new Desconto(15, 2));\n\t return regraDosPrecos;\n }", "@Override\n\tpublic long getRegantes() {\n\t\treturn model.getRegantes();\n\t}", "@Test\n public void testAnalisarDados() throws Exception {\n System.out.println(\"analisarDados\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n Integer[] expResult = null;\n String time = \"\";\n String tipoOrdenacao = \"\";\n Integer[] resultArray = null;\n \n int[] result = ProjetoV1.analisarDados(dadosFicheiro, linhas, time, tipoOrdenacao);\n if(result != null){\n resultArray= ArrayUtils.converterParaArrayInteger(result); \n }\n \n assertArrayEquals(expResult, resultArray);\n\n }", "@Override\n public void mostrarMediosRecientesRv() {\n iPerfilFragmentView.inicializarAdaptadorRV(iPerfilFragmentView.crearAdaptador(mascotas));\n iPerfilFragmentView.generarGridLayout();// Luego se debe indicar que genere el GridLayout\n }", "public void rellenarTerreno() {\n Random rnd = new Random();\r\n int restante = V;\r\n int[][] aux = terreno;\r\n do {\r\n for (int i = 0; i < Filas; i++) {\r\n for (int j = 0; j < Columnas; j++) {\r\n if (restante > max) {\r\n int peso = rnd.nextInt(max);\r\n if (aux[i][j] + peso <= max) {\r\n aux[i][j] += peso;\r\n restante -= peso;\r\n }\r\n } else {\r\n if (aux[i][j] + restante <= max) {\r\n aux[i][j] += restante;\r\n restante = 0;\r\n }\r\n }\r\n }\r\n }\r\n } while (restante != 0);\r\n }", "@Test\n public void testNuevaLr() {\n System.out.println(\"nuevaLr\");\n Alimento a = new Alimento(\"nom1\", \"inst1\", \"tempC1\");\n String uMedida = \"u1\";\n float cantidad = 3.0F;\n Receta instance = new Receta();\n boolean expResult = true;\n boolean result = instance.nuevaLr(a, uMedida, cantidad);\n assertEquals(expResult, result);\n }", "private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n if (tiempoBase>0) {\n tiempoBase -= 0.01f;\n }\n\n camioneta= new Camioneta(texturaCamioneta,ANCHO,60f);\n arrEnemigosCamioneta.add(camioneta);\n\n\n }\n\n //Si el vehiculo se paso de la pantalla, lo borra\n for (int i = arrEnemigosCamioneta.size-1; i >= 0; i--) {\n Camioneta camioneta1 = arrEnemigosCamioneta.get(i);\n if (camioneta1.sprite.getX() < 0- camioneta1.sprite.getWidth()) {\n arrEnemigosCamioneta.removeIndex(i);\n\n }\n }\n }", "public static int BuscarPerrox(Perro BaseDeDatosPerros[], String razas[], int codPerro) {\n int cont = 0;\r\n boolean condicion = false;\r\n char generoPerro, generoPerr, generPerro = 'd';\r\n String razaPerr, tipoRaza;\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n generPerro = generoPerro;\r\n condicion = true;\r\n } else {\r\n System.out.println(\".......................................................\");\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n \r\n tipoRaza=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerr = BaseDeDatosPerros[i].getRaza();\r\n generoPerr = BaseDeDatosPerros[i].getGenero();\r\n\r\n if (tipoRaza.equals(razaPerr) && (generPerro == generoPerr)) {\r\n cont++;\r\n }\r\n\r\n }\r\n\r\n \r\n\r\n return cont;}", "public int obtenirArmure() {\n\t\treturn this.armure;\n\t}", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "private static void mostrarEmpateRonda() {\r\n\t\tSystem.out.println(\"¡RONDA \" + juego.getNRonda()\r\n\t\t\t\t+ \" EMPATADA!\\n Se repite la ronda \" + juego.getNRonda());\r\n\t}", "@Test\n public void testMediaGlobal() {\n System.out.println(\"mediaGlobal\");\n int[] serieTemp = new int[1];\n int qtdlinhas = 1;\n double expResult = 0.0;\n double result = ProjetoV1.mediaGlobal(serieTemp, qtdlinhas);\n assertEquals(expResult, result, 0.0);\n\n }", "public java.lang.Object[] getRutaTesauroAsArray()\r\n {\r\n return (rutaTesauro == null) ? null : rutaTesauro.toArray();\r\n }", "private static void operacionesJugar() {\r\n\t\tjuego.actualizarJugadores(respuesta);\r\n\t\tJugadorM[] ganadores;\r\n\t\ttry {\r\n\t\t\tint before = juego.getNJugadoresActivos();\r\n\t\t\tganadores = juego.finalizarRonda();\r\n\t\t\tif (ganadores.length == 0) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == before) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == 1) {\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tFINhayGanador(ganadores[0]);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t} else {\r\n\t\t\t\tmostrarGanadoresRonda(ganadores);\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t}\r\n\t\t} catch (AllRondasCompleteException e) {\r\n\t\t\tFINtotalRondasAlcanzadas(e);\r\n\t\t}\r\n\t}", "public Object[] pesquisarIntervaloNumeroQuadraPorRota(Integer idRota) throws ErroRepositorioException ;", "@Test\n public void test4() {\n Integer[] data = new Integer[]{//\n 50,\n 100,\n 75, //\n };\n baseRotateTest(data);\n }", "@Test\r\n\tpublic void testGetDuration() {\r\n\t\tassertEquals(90, breaku1.getDuration());\r\n\t\tassertEquals(90, externu1.getDuration());\r\n\t\tassertEquals(90, meetingu1.getDuration());\r\n\t\tassertEquals(90, teachu1.getDuration());\r\n\t}", "public static void ExibirResumo(Registro registros[]) {\n for (Registro registro : registros) {\n System.out.println(registro.toStringSummary());\n }\n }", "@Test\n\tpublic void validaRegras1() {\n\t // Selecionar Perfil de Investimento\n\t //#####################################\n\t\t\n\t\t\n\t\tsimipage.selecionaPerfil(tipoperfilvoce);\n\t\t\n\t\t//#####################################\n\t // Informar quanto será aplicado\n\t //#####################################\n\t\t \t\n\t\tsimipage.qualValorAplicar(idvaloraplicacao,valoraplicacao);\n\t\t\n\t\t//#####################################\n\t // Que valor poupar todo mês\n\t //#####################################\n\t\tsimipage.quantopoupartodomes(idvalorpoupar,valorpoupar,opcao);\n\t\t\t\t\n\t \t//#####################################\n\t \t//Por quanto tempo poupar\n\t \t//#####################################\n\t \t\n\t\t//Informar o total de Meses ou Anos\n\t \tsimipage.quantotempopoupar(idperiodopoupar,periodopoupar); \n\t \t\n\t\t//Selecionar Combobox Se Meses ou Anos \n\t \tsimipage.selecionamesano(mesano, idmesano);\n\t \t\n\t \t//#####################################\n\t \t//Clica em Simular\n\t \t//#####################################\n\t \t\n\t \tsimipage.clicaremsimular(); \n\t\t\n\t\t\t\t\n\t}", "@Test\r\n public void testDesvioPadrao() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87); \r\n \r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 1.2);\r\n }", "public void solicitarRutinasPorDia() {\n eliminarTodasRutinas();\n\n }", "@Test\r\n public void testBuscar() throws Exception {\r\n System.out.println(\"buscar\");\r\n String pcodigo = \"pentos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n \r\n MultiReparacion instance = new MultiReparacion();\r\n Reparacion expResult = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n Reparacion result = instance.buscar(pcodigo);\r\n \r\n assertEquals(expResult.getCodigo(), result.getCodigo());\r\n assertEquals(expResult.getNombre(), result.getNombre());\r\n assertEquals(expResult.getTipo(), result.getTipo());\r\n assertEquals(expResult.getPlacaVehiculo(), result.getPlacaVehiculo());\r\n //assertEquals(expResult.getFechaAsignacion(), result.getFechaAsignacion());\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 }", "@Test\r\n public void testActualizar() throws Exception {\r\n System.out.println(\"actualizar\");\r\n String pcodigo = \"qart\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n \r\n Reparacion preparacion = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n MultiReparacion instance = new MultiReparacion();\r\n instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n \r\n preparacion.setNombre(\"Arreglar retrovisores\");\r\n \r\n instance.actualizar(preparacion);\r\n Reparacion nueva = instance.buscar(pcodigo);\r\n \r\n assertEquals(nueva.getNombre(), \"Arreglar retrovisores\");\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 }", "@Override\n float luas() {\n float luas = (float) (Math.PI * r * r);\n System.out.println(\"Luas lingkaran adalah \" + luas);\n return luas;\n }", "long getMisses();", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\n public void test1() {\n Integer[] data = new Integer[]{//\n 100,\n 50,\n 25, //\n };\n baseRotateTest(data);\n }", "private void temporizadorRonda(int t) {\n Timer timer = new Timer();\n TimerTask tarea = new TimerTask() {\n @Override\n public void run() {\n if (!dead) {\n vida = vidaEstandar;\n atacar();\n rondas ++;\n tiempoRonda = tiempo;\n incrementarTiempo();\n reiniciarVentana();\n if(rondas == 4){\n matar();\n }\n temporizadorRonda(tiempo);\n }\n }\n };\n timer.schedule(tarea, t * 1000);\n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test //covers loop test with one pass through the loop\n\tpublic void exampleTest() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"+5 Dexterity Vest\", 10, 20));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased by one\n\t\tassertEquals(\"Failed quality for Dexterity Vest\", 19, quality);\n\t}", "@Test\n public void test2() {\n Integer[] data = new Integer[]{//\n 25,\n 50,\n 100, //\n };\n baseRotateTest(data);\n }", "public int getCurrRuptures();", "@Test\n public void testGetLrs() {\n System.out.println(\"getLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }", "@Test\n public void testGetTorque() {\n System.out.println(\"getTorque\");\n Regime instance = r1;\n double expResult = 85.0;\n double result = instance.getTorque();\n assertEquals(expResult, result, 0.0);\n }", "@Test\n public void executarTesteCarregamentoDados() {\n onView(withId(R.id.btnHistorico)).perform(click());\n\n //Realiza o Swype para esquerda\n onView(withId(R.id.historylist)).perform(swipeUp());\n\n //Realiza o Swype para esquerda\n onView(withId(R.id.graphList)).perform(swipeLeft());\n }", "public void testaReclamacao() {\n\t}", "@Test\n public void testAnalisarDia() throws Exception {\n System.out.println(\"analisarDia\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarDia(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "@Test\n public void proximaSequencia(){\n\n }", "@Test\n public void testAgregarCamion() {\n try {\n System.out.println(\"agregarCamion\");\n Camion camion = new Camion(0, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, null);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.agregarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "private static int calcularMedia(int[] notas) {\n\t\tint media = 0;\n\n\t\tfor (int i = 0; i < notas.length; i++) {\n\n\t\t\tmedia = media + notas[i];\n\n\t\t}\n\t\treturn media/notas.length;\n\t}", "@Test\r\n public void testBorrar() throws Exception {\r\n System.out.println(\"borrar\");\r\n \r\n String pcodigo = \"pentos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n MultiReparacion instance = new MultiReparacion();\r\n \r\n Reparacion repa = instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n instance.borrar(pcodigo);\r\n \r\n Reparacion resultado = null;\r\n try{\r\n resultado = instance.buscar(pnombre);\r\n }catch(Exception e){}\r\n \r\n boolean encontrada = (resultado == null?false:true);\r\n assertEquals(encontrada, false);\r\n \r\n }", "@Test\n public void test3() {\n Integer[] data = new Integer[]{//\n 100,\n 50,\n 75, //\n };\n baseRotateTest(data);\n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "private static void escribirRonda(boolean actual) {\r\n\t\tStringBuilder sb = new StringBuilder(\"Ronda: \" + juego.getNRonda()\r\n\t\t\t\t+ \"\\n\");\r\n\t\tfor (JugadorM a : juego.getJugadores())\r\n\t\t\tsb.append(a + \"\\n\");\r\n\t\tSystem.out.print(sb);\r\n\t}", "public final int arvoRivinAihe() {\r\n return super.getRandom().nextInt(super.aiheetPerusmuoto().length);\r\n }", "public int getFlores(int avenida, int calle);", "public void run() {\n\n\t// DecimalFormat df = new DecimalFormat(\"#.###\");\n\tint frecuencia = 0;\n\n\twhile (true) {\n\n\t if (rearmarAne) {\n\t\tlogger.warn(\"Termino el hilo de Anemometro porque se ha rearmado Irrisoft\");\n\t\treturn;\n\t }\n\t tiempoini = (System.nanoTime());\n\t // Cojo los datos a enviar por el puerto serie.\n\t churro = datosInicio();\n\n\t // Duermo el tiempo requerido\n\t logger.info(\"La freceuncia de lectura de Anemometro es: \"\n\t\t + sens.getFrec_lect());\n\n\t // Duermo el sensor el un tiempo, para recibir otra lectura.\n\t dormirSensor();\n\n\t try {\n\t\tserialcon.cogesemaforo(sens.getNum_placa());\n\t\t// Purgo el puerto\n\t\tserialcon.serialPort.purgePort(SerialPort.PURGE_RXCLEAR\n\t\t\t| SerialPort.PURGE_TXCLEAR);\n\n\t\tif (serialcon.serialPort.writeBytes(churro)) {\n\n\t\t if (logger.isInfoEnabled()) {\n\t\t\tlogger.info(\"Comando mandado al puerto serie !\"\n\t\t\t\t+ Arrays.toString(churro));\n\t\t }\n\t\t} else {\n\t\t if (logger.isErrorEnabled()) {\n\t\t\tlogger.error(\"Fallo en mandar comando al puerto serie! \"\n\t\t\t\t+ Arrays.toString(churro));\n\t\t }\n\t\t // RECONECTO\n\t\t // serialcon.purga_puerto(sens.getNum_placa(),\n\t\t // serialcon.serialPort.getPortName());\n\t\t}\n\n\t\t// Leo la respuesta\n\t\tbufferResp = serialcon.serialPort.readBytes(6, 4000);\n\t\t//Trato las lecturas para tener el dato.\n\t\tlectura = sacarLecturas(bufferResp);\n\t\t\n\t\t// Escribo en el panel la lectura\n\t\t// ponelecturas(sens);\n\n\t\t// Irrisoft.window.panelecturasens.getLblectane().setText(medicion+\" pulsos , velocidad \"+velocidad+\n\t\t// \" m/s\");\n\t\tfrecuencia = (int) (frecuencia + ((System.nanoTime() - tiempoini) / Math\n\t\t\t.pow(10, 9)));\n\t\tif (logger.isWarnEnabled()) {\n\t\t logger.warn(\"Tiempo pasado bucle hiloAnemometro: \"\n\t\t\t + frecuencia);\n\t\t}\n\n\t\t// Insertar registro en la pasarela\n\t\tif (frecuencia >= sens.getFrec_env()) {\n\t\t // Creo la lectura para enviar a GIS.\n\t\t LecturasSensor lecturaFinal = cogerLectura(lectura);\n\t\t // Envio la lectura a GIS.\n\t\t enviarLecturasGIS(lecturaFinal);\n\n\t\t frecuencia = 0;\n\t\t}\n\n\t } catch (SerialPortTimeoutException | SerialPortException e) {\n\t\tif (logger.isErrorEnabled()) {\n\t\t if (e instanceof SerialPortTimeoutException)\n\t\t\tlogger.error(\"TIMEOUUUUUT en la lectura del buffer serie: \"\n\t\t\t\t+ e.getMessage());\n\t\t else if (e instanceof SerialPortException)\n\t\t\tlogger.error(e.getMessage());\n\t\t}\n\t\tserialcon.sueltasemaforo(sens.getNum_placa());\n\t }\n\t serialcon.sueltasemaforo(sens.getNum_placa());\n\t}\n\n }", "@Test\n\tpublic void testaGetMediaAtual() throws Exception {\n\t\tAssert.assertEquals(\"Erro no getMediaAtual()\", 0.0,\n\t\t\t\tminitElimBai_1.getMediaAtual(), 0.05);\n\t\tminitElimBai_1.setQtdProvasJaRealizadas(5);\n\t\tminitElimBai_1.adicionaNota(1.0);\n\t\tminitElimBai_1.adicionaNota(2.0);\n\t\tminitElimBai_1.adicionaNota(3.0);\n\t\t// Adicao de duas faltas, pois houve 5 minitestes e so foram feitos 3.\n\t\tminitElimBai_1.adicionaFalta();\n\t\ttry {\n\t\t\tminitElimBai_1.adicionaFalta();\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\t\tAssert.assertEquals(\"Erro no getMediaAtual()\", 2,\n\t\t\t\tminitElimBai_1.getMediaAtual(), 0.05);\n\n\t\tAssert.assertEquals(\"Erro no getMediaAtual()\", 0.0,\n\t\t\t\tminitElimBai_2.getMediaAtual(), 0.05);\n\t\tminitElimBai_2.setQtdProvasJaRealizadas(7);\n\t\tminitElimBai_2.adicionaNota(10.0);\n\t\tminitElimBai_2.adicionaNota(5.0);\n\n\t\t// Adicao de 5 faltas, pois houve 7 minitestes e so foram feitos 5\n\t\tminitElimBai_2.adicionaFalta();\n\t\tminitElimBai_2.adicionaFalta();\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaFalta();\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaFalta();\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaFalta();\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaFalta()\",\n\t\t\t\t\t\"Numero de faltas excedido.\", e.getMessage());\n\t\t}\n\t\tAssert.assertEquals(\"Erro no getMediaAtual()\", 5,\n\t\t\t\tminitElimBai_2.getMediaAtual(), 0.05);\n\t}", "public int ardiveis() {\n\t\tint result = 0;\n\t\tfor (EstadoAmbiente[] linha : this.quadricula) {\n\t\t\tfor (EstadoAmbiente ea : linha) {\n\t\t\t\tif(ea == EstadoAmbiente.CASA || ea == EstadoAmbiente.TERRENO){\n\t\t\t\t\tresult++;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }", "@Test\n public void testGetRPMHigh() {\n System.out.println(\"getRPMHigh\");\n Regime instance = r1;\n double expResult = 2499.0;\n double result = instance.getRPMHigh();\n assertEquals(expResult, result, 0.0);\n }", "@Override\n public void mostrarPeticionesRecibidasNumero(List<PeticionQuedada> peticionesQuedadas) {\n num_peticiones_recibidas.setText(\"Numero de Peticiones: \"+ peticionesQuedadas.size());\n\n }", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "@Test\r\n public void testGetPolarizacaoPorAbsorcao() {\r\n System.out.println(\"getPolarizacaoPorAbsorcao\");\r\n Simulacao instance = new Simulacao(TipoDPolarizacao.REFLEXAO);\r\n PolarizacaoPorAbsorcao expResult = new PolarizacaoPorAbsorcao();\r\n instance.setPolarizacaoPorAbsorcao(expResult);\r\n PolarizacaoPorAbsorcao result = instance.getPolarizacaoPorAbsorcao();\r\n assertEquals(expResult, result);\r\n }", "public int getNumberOfRestraunts(){\n \n return numberOfRestraunts; \n }", "@Test\r\n public void testGetMicentro() {\r\n System.out.println(\"getMicentro\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n CentroEcu_Observado expResult = new CentroEcu_Observado();\r\n instance.setMicentro(expResult);\r\n assertEquals(expResult, instance.getMicentro());\r\n }", "public float calcular(float dinero, float precio) {\n // Cálculo del cambio en céntimos de euros \n cambio = Math.round(100 * dinero) - Math.round(100 * precio);\n // Se inicializan las variables de cambio a cero\n cambio1 = 0;\n cambio50 = 0;\n cambio100 = 0;\n // Se guardan los valores iniciales para restaurarlos en caso de no \n // haber cambio suficiente\n int de1Inicial = de1;\n int de50Inicial = de50;\n int de100Inicial = de100;\n \n // Mientras quede cambio por devolver y monedas en la máquina \n // se va devolviendo cambio\n while(cambio > 0) {\n // Hay que devolver 1 euro o más y hay monedas de 1 euro\n if(cambio >= 100 && de100 > 0) {\n devolver100();\n // Hay que devolver 50 céntimos o más y hay monedas de 50 céntimos\n } else if(cambio >= 50 && de50 > 0) {\n devolver50();\n // Hay que devolver 1 céntimo o más y hay monedas de 1 céntimo\n } else if (de1 > 0){\n devolver1();\n // No hay monedas suficientes para devolver el cambio\n } else {\n cambio = -1;\n }\n }\n \n // Si no hay cambio suficiente no se devuelve nada por lo que se\n // restauran los valores iniciales\n if(cambio == -1) {\n de1 = de1Inicial;\n de50 = de50Inicial;\n de100 = de100Inicial;\n return -1;\n } else {\n return dinero - precio;\n }\n }", "@Test\n public void testParserLineas() throws Exception {\n //Obtenemos el InputStream para el json almacenado en la carpeta raw del proyecto\n InputStream is = InstrumentationRegistry.getTargetContext().getResources().openRawResource(R.raw.lineas_test);\n\n List<Linea> listaLineas = ParserJSON.readArrayLineasBus(is);\n\n Assert.assertEquals(listaLineas.get(0).getNumero(),\"20\");\n Assert.assertEquals(listaLineas.get(0).getName(),\"ESTACIONES-BARRIO LA TORRE\");\n Assert.assertEquals(listaLineas.get(0).getIdentifier(),20);\n\n Assert.assertEquals(listaLineas.get(1).getNumero(),\"19\");\n Assert.assertEquals(listaLineas.get(1).getName(),\"ESTACIONES-RICARDO L. ARANDA\");\n Assert.assertEquals(listaLineas.get(1).getIdentifier(),19);\n\n }", "@Test\n public void testGetTurmas() {\n System.out.println(\"getTurmas\");\n Curso instance = null;\n Collection<Turma> expResult = null;\n Collection<Turma> result = instance.getTurmas();\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 }", "@Test\n\tpublic void obtenerNombreTest() {\n\t\tArchivo ar = new Imagen(\"test\", \"contenido\");\n\t\tassertEquals(\"test\", ar.obtenerNombre());\n\t}", "@Test\n public void showReceitas(){\n\n verify(receitasListFragment).showReceitas(receitas);\n }", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "int getReaultCount();", "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "@Test\n\tpublic void testLecturaFrom(){\n\t\tassertEquals(esquemaEsperado.getExpresionesFrom().toString(), esquemaReal.getExpresionesFrom().toString());\n\t}", "@Test\n public void testAnalisarPeriodo() throws Exception {\n System.out.println(\"analisarPeriodo\");\n int[][] dadosFicheiro = null;\n int lowerLimit = 0;\n int upperLimit = 0;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarPeriodo(dadosFicheiro, lowerLimit, upperLimit, linhas);\n assertArrayEquals(expResult, result);\n\n }", "public int[][] RdB() {\t\t\t\t\t\t\t\t// cherche les 4 points noirs\n\t\tint[][] pixNoirs = new int[img.getWidth()*img.getHeight()][2];\n\n\t\tint i=0;\n\t\tint radius=8;\t\t\t\t\t\t\t\t\t// 19= limite de detection de checkCircle\n\t\tfor (int ty=0; ty<img.getHeight();ty++) {\n\t\t\tfor (int tx=0;tx<img.getWidth();tx++) {\n\n\t\t\t\tColor tmp=new Color(img.getRGB(tx, ty));\n\t\t\t\tif (tmp.getGreen()<20) { \t\t\t\t//si le pixel est noir\n\t\t\t\t\tif (checkCircle(tx,ty,radius) ) {\t//verifie si un cercle de radius entoure le pixel\n\t\t\t\t\t\tpixNoirs[i][0]=tx;\n\t\t\t\t\t\tpixNoirs[i][1]=ty;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"fin\");\n\t\tint tmp=1;\n\t\tint centreX[][]=new int [img.getWidth()*img.getHeight()][2];\n\t\tcentreX[0]=pixNoirs[0];\n\t\tfor (int l=0;l<img.getHeight()*img.getWidth() && (pixNoirs[l][1]!=0 || pixNoirs[l][0]!=0);l++) {\n\t\t\tif((pixNoirs[l][0]-centreX[tmp-1][0])<5 || pixNoirs[l][1]-centreX[tmp-1][1]<5 ){\t\t//x-(x-1)>5 ou y-(y-1)>5\n\t\t\t\tcentreX[tmp][0]=pixNoirs[l][0];\t\t\t//efface le precedent roar2 si il était a 1 pixel de diff\n\t\t\t\tcentreX[tmp][1]=pixNoirs[l][1];\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttmp++;\n\t\t\t\tcentreX[tmp]=pixNoirs[l];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//boucle de determination des points noirs\n\t\t//System.out.println(\"roar2debut\");\n\t\tint points[][]=new int [4][2];\n\t\tint centres[][]=new int [centreX.length][2]; int boucl=0; int lasti=0;\n\t\tint t=0;\n\t\tfor (int l=1;l<=img.getHeight()*img.getWidth() && (centreX[l-1][1]!=0 || centreX[l-1][0]!=0);l++) {\n\n\n\t\t\t\n\t\t\tint diffx=centreX[l][0]-centreX[l-1][0];\n\t\t\tint diffy=centreX[l][1]-centreX[l-1][1];\n\t\t\tint diff=Math.abs(diffx)+Math.abs(diffy);\n\t\t\tif (diff>img.getWidth()*0.85)\n\t\t\t{\n\t\t\t\tpoints[t]=centreX[l];\n\t\t\t\tt++;\n\t\t\t}\n\t\t\t\n\t\t\tif (diffx<10 && diffy<10) {\n\t\t\t\tboucl++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcentres[lasti][0]=centreX[l-boucl/2][0];\n\t\t\t\tcentres[lasti][1]=centreX[l-boucl/2][1];\n\t\t\t\tlasti++;boucl=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor (int l=0;l<=centres.length && (centres[l][1]!=0 || centres[l][0]!=0);l++) {\t\n\t\t\tboolean test=true;\n\t\t\tint maxPoint=0;\n\t\t\tfor (int li=0;li<=points.length && (points[li][1]!=0 || points[li][0]!=0);li++) {\n\t\t\t\tint diffx=\tMath.abs(centres[l][0]-points[li][0]);\n\t\t\t\tint diffy=\tMath.abs(centres[l][1]-points[li][1]);\n\t\t\t\tboolean testx=\t\tdiffx>img.getWidth()*0.85 \t|| diffx<img.getWidth()*0.2;\t//diff <0.1 ou >0.8 x la largeur de feuille\n\t\t\t\tboolean testy=\t\tdiffy>img.getHeight()*0.8 \t|| diffy<img.getWidth()*0.2;\n\t\t\t\tboolean Repeat=\tdiffx+diffy>img.getWidth()*0.2;\t //si point deja présent\n\n\t\t\t\tif (!Repeat || (!testx || !testy) )\t// si 0.2>diffx>0.8 ou \"diffy\" et \n\t\t\t\t{\n\t\t\t\t\ttest=false;\n\t\t\t\t}\n\t\t\t\tmaxPoint=li;\n\t\t\t}\n\t\t\t\n\t\t\tif(test && maxPoint<2) {\n\t\t\t\t//System.out.println(lastRoar[l][0]+\" \"+lastRoar[l][1]);\n\t\t\t\tpoints[maxPoint+1][0]=centres[l][0];\n\t\t\t\tpoints[maxPoint+1][1]=centres[l][1];\n\t\t\t}\n\t\t}\n\t\treturn points;\n\n\t}", "public void run() {\n\t\ttry {\n\t\t\tcurrentTime = System.currentTimeMillis();\n\t\t\twhile (distanciaAtual < distanciaTotal) {\n\t\t\t\tsteps++;\n\t\t\t\tRandom gerador = new Random();\n\t\t\t\tint passo = gerador.nextInt(6);\n\t\t\t\tdistanciaAtual += passo;\n\t\t\t\tif (steps % 10 == 0) {\n\t\t\t\t\tSystem.out.println(\"A Tartaruga Número \" + idTartaruga + \" deu: \" + steps + \" passos. E andou: \" + distanciaAtual + \" centímetros.\");\n\t\t\t\t}\n\t\t\t\tThread.sleep(gerador.nextInt(4));\n\t\t\t}\n\t\t\tdouble completedTime = System.currentTimeMillis() - currentTime;\n\t\t\tcorrida.setTempoPassosGasto(idTartaruga, completedTime, steps);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public int getNroCitasRealizadas() {\n\t\treturn NroCitasRealizadas;\n\t}", "@Test\n\tpublic void testDoRotaion() {\n\t\tresultlist = DoRotation.doRotaion(initialList, 0);\n\t\texpectedList = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5, 6));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Do rotaion of array 0\", resultlist.toArray(), expectedList.toArray());\n\t\t//Do rotaion of the arraylist using step value =1\n\t\t\n\t\t//Use same result of previous rotation and apply other rotation by step = 1\n\t\tresultlist = DoRotation.doRotaion(expectedList, 1);\n\t\texpectedList = new ArrayList<>(Arrays.asList(6, 1, 2, 3, 4, 5));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Do rotaion of array 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n\t\t//Use same result of previous rotation and apply other rotation by step = 1\n\t\tresultlist = DoRotation.doRotaion(expectedList, 1);\n\t\texpectedList = new ArrayList<>(Arrays.asList(5, 6, 1, 2, 3, 4));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Do rotaion of array 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n\t\t//this test must be the same if we use step = 2\n\t\tArrayList<Integer> resultlist_Step2 = DoRotation.doRotaion(initialList, 2);\n\t\texpectedList = new ArrayList<>(Arrays.asList(5, 6, 1, 2, 3, 4));\n\t\tassertNotNull(resultlist_Step2);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Do rotaion with step = 2\", resultlist_Step2.toArray(), expectedList.toArray());\n\t}", "@Test\r\n public void testGetCantidadVendidos() {\r\n int expResult = 3;\r\n articuloPrueba.setCantidadVendidos(expResult);\r\n int result = articuloPrueba.getCantidadVendidos();\r\n assertEquals(expResult, result);\r\n }", "public void setRois(Roi[] rois) {\n this.rois = rois;\n }", "public double getRMIC() {\r\n return relMatchedIonCount;\r\n }", "@Test\n public void testGetRoundsByGameID() {\n \n \n }", "public int getReaultCount() {\n return reault_.size();\n }", "@Test\n\tpublic void obtenerContenidoTest() {\n\t\tArchivo ar = new Imagen(\"test\", \"contenido\");\n\t\tassertEquals(\"contenido\", ar.obtenerContenido());\n\t}", "@Test\r\n public void testGetPolarizacaoPorReflexao() {\r\n System.out.println(\"getPolarizacaoPorReflexao\");\r\n Simulacao instance = new Simulacao(TipoDPolarizacao.REFLEXAO);\r\n PolarizacaoPorReflexao expResult = new PolarizacaoPorReflexao();\r\n instance.setPolarizacaoPorReflexao(expResult);\r\n PolarizacaoPorReflexao result = instance.getPolarizacaoPorReflexao();\r\n assertEquals(expResult, result);\r\n }", "public void run() {\n System.out.println(nomeDaCamada);\n try {\n\n Painel.CAMADAS_RECEPTORAS.expandirCamadaEnlace();\n\n //quadro = camadaEnlaceReceptoraControleDeFluxo(quadro);\n //quadro = camadaEnlaceReceptoraControleDeErro(quadro);\n quadro = camadaEnlaceReceptoraEnquadramento(quadro);\n\n chamarProximaCamada(quadro);\n Painel.CONFIGURACOES.setDisable(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }" ]
[ "0.63642883", "0.60654104", "0.58248144", "0.5496328", "0.54888755", "0.54304963", "0.5324309", "0.5299856", "0.52468723", "0.52136403", "0.5209782", "0.51668096", "0.51345694", "0.5101191", "0.5090679", "0.5074036", "0.5067419", "0.5062903", "0.50517434", "0.5050167", "0.5033567", "0.5028199", "0.5014328", "0.5004963", "0.5001443", "0.49911684", "0.49587208", "0.49542627", "0.49483863", "0.49462283", "0.49382734", "0.49202347", "0.49119756", "0.49075758", "0.4903145", "0.4900845", "0.48951262", "0.4892213", "0.4890442", "0.4876865", "0.48675886", "0.48604992", "0.48382023", "0.483543", "0.48351556", "0.48209786", "0.4812033", "0.4807973", "0.4801346", "0.48010722", "0.47933343", "0.47828114", "0.47677964", "0.47627732", "0.47572806", "0.47449416", "0.47402903", "0.47366354", "0.4734741", "0.4731661", "0.47292772", "0.472097", "0.47207072", "0.4719249", "0.4719019", "0.47157544", "0.4715079", "0.47150683", "0.47145903", "0.47118655", "0.47106007", "0.47102144", "0.47066554", "0.46976367", "0.4697537", "0.46915746", "0.4691177", "0.46851134", "0.46761438", "0.46737823", "0.4671785", "0.46680915", "0.46635816", "0.46575046", "0.46468928", "0.4646745", "0.46459445", "0.46432158", "0.46336251", "0.46326253", "0.46320644", "0.46286386", "0.462341", "0.46233463", "0.46211126", "0.46122724", "0.46110985", "0.46095905", "0.4605413", "0.4596276" ]
0.74258065
0
Test of setRuedas method, of class Camiones.
@Test public void testSetRuedas() { System.out.println("setRuedas"); int ruedas = 3; Camiones instance = new Camiones("C088IJ", true, 10); instance.setRuedas(ruedas); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetRuedas() {\n System.out.println(\"getRuedas\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n int expResult = 0;\n int result = instance.getRuedas();\n \n }", "@Test\r\n public void testActualizar() throws Exception {\r\n System.out.println(\"actualizar\");\r\n String pcodigo = \"qart\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n \r\n Reparacion preparacion = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n MultiReparacion instance = new MultiReparacion();\r\n instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n \r\n preparacion.setNombre(\"Arreglar retrovisores\");\r\n \r\n instance.actualizar(preparacion);\r\n Reparacion nueva = instance.buscar(pcodigo);\r\n \r\n assertEquals(nueva.getNombre(), \"Arreglar retrovisores\");\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 }", "public void setCantidadAvenidasYCalles(int avenidas, int calles);", "public void setFlores(int avenida, int calle, int cant);", "public void setRois(Roi[] rois) {\n this.rois = rois;\n }", "@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }", "@Test\r\n public void testSetPolarizacaoPorAbsorcao() {\r\n System.out.println(\"setPolarizacaoPorAbsorcao\");\r\n PolarizacaoPorAbsorcao polarizacaoPorAbsorcao = new PolarizacaoPorAbsorcao();\r\n Simulacao instance = new Simulacao(TipoDPolarizacao.ABSORCAO);\r\n instance.setPolarizacaoPorAbsorcao(polarizacaoPorAbsorcao);\r\n }", "@Test\r\n public void testSetValor() {\r\n \r\n }", "void setPosiblesValores(int[] valores);", "public void setSeguros(Set<Integer> seguros){\n\tthis.seguros.clear();\n\tfor(Integer i : seguros){\n\t this.seguros.add(i);\n\t}\n }", "public void setVidas (int vidas)\r\n\t{\r\n\t\tthis.vidas= vidas;\r\n\t}", "public void setPuertas(int puerta) {\n\t\t\r\n\t}", "@Test\r\n public void testSetCantidadVendidos() {\r\n int expResult = 5;\r\n articuloPrueba.setCantidadVendidos(expResult);\r\n assertEquals(expResult, articuloPrueba.getCantidadVendidos());\r\n }", "@Test\r\n public void testSetPolarizacaoPorReflexao() {\r\n System.out.println(\"setPolarizacaoPorReflexao\");\r\n PolarizacaoPorReflexao polarizacaoPorReflexao = new PolarizacaoPorReflexao();\r\n Simulacao instance = new Simulacao(TipoDPolarizacao.REFLEXAO);\r\n instance.setPolarizacaoPorReflexao(polarizacaoPorReflexao);\r\n }", "@Test\n public void testAnchoOruedas() {\n System.out.println(\"anchoOruedas\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n double expResult = 0.0;\n double result = instance.anchoOruedas();\n \n // TODO review the generated test code and remove the default call to fail.\n \n }", "public void actualizarAristas(Arista movimiento){\n \n //Actualizamos la ubicacion de la hormiga\n for (int i = 0; i < matriz.length; i++) {\n if (movimiento.getFin().equals(matriz[0][i].getFin())) {\n ubicacion = i; \n }\n }\n \n //Actualizamos la lista de aristas a la cual se puede viajar desde la ubicacion actual\n aristas.clear();\n \n for (int i = 0; i < matriz.length; i++) { \n if (i != ubicacion) {\n aristas.add(matriz[ubicacion][i]);\n } \n }\n \n //Actualizamos las ciudades que ha visitado la hormiga\n visitados.add(aristas.get(0).getInicio());\n \n //A la lista de aristas, le borramos las aristas que conducen a ciudades que ya ha visitado la hormiga\n for (int k = 0; k < visitados.size(); k++) {\n for (int i = 0; i < aristas.size(); i++) {\n for (int j = 0; j < visitados.size(); j++) {\n if (aristas.get(i).getFin().equals(visitados.get(j))) { \n aristas.remove(i);\n i = 20;\n j = 20;\n }\n }\n }\n }\n \n //Continuamos actualizando la historia del recorrido de la hormiga\n recorrido = recorrido + \" \" + String.valueOf(movimiento.getDistancia()) + \" unidades hasta \" + movimiento.getFin() + \",\";\n \n }", "@Override\n public void setExperiencia(){\n experiencia1=Math.random()*50*nivel;\n experiencia=experiencia+experiencia1;\n subida();\n }", "@Test\r\n\tpublic void venderVariasPiezasReservadas() {\r\n\t\tfor (Pieza pieza : this.listadoDePiezas) {\r\n\t\t\tpieza.reservar();\r\n\t\t\tpieza.vender();\r\n\t\t\tAssert.assertTrue(\"La pieza no ha sido correctamente vendida.\",pieza.isVendida());\r\n\t\t}\r\n\t}", "void setROIs(Object rois);", "public void cambiarRonda() {\n\t\ttry {\r\n\t\t\tjuego.cambiarRonda();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setCuerdas(int cuerdas){\n\tthis.cuerdas = cuerdas;\n }", "public void setQuedas (int quedas) {\n this.quedas = quedas;\n }", "@Test\n\tpublic void validaRegras1() {\n\t // Selecionar Perfil de Investimento\n\t //#####################################\n\t\t\n\t\t\n\t\tsimipage.selecionaPerfil(tipoperfilvoce);\n\t\t\n\t\t//#####################################\n\t // Informar quanto será aplicado\n\t //#####################################\n\t\t \t\n\t\tsimipage.qualValorAplicar(idvaloraplicacao,valoraplicacao);\n\t\t\n\t\t//#####################################\n\t // Que valor poupar todo mês\n\t //#####################################\n\t\tsimipage.quantopoupartodomes(idvalorpoupar,valorpoupar,opcao);\n\t\t\t\t\n\t \t//#####################################\n\t \t//Por quanto tempo poupar\n\t \t//#####################################\n\t \t\n\t\t//Informar o total de Meses ou Anos\n\t \tsimipage.quantotempopoupar(idperiodopoupar,periodopoupar); \n\t \t\n\t\t//Selecionar Combobox Se Meses ou Anos \n\t \tsimipage.selecionamesano(mesano, idmesano);\n\t \t\n\t \t//#####################################\n\t \t//Clica em Simular\n\t \t//#####################################\n\t \t\n\t \tsimipage.clicaremsimular(); \n\t\t\n\t\t\t\t\n\t}", "public void camadaEnlaceDadosReceptora(int[] quadro) {\n this.quadro = quadro;\n this.start();//Iniciando a Thread dessa Camada\n }", "@Test\r\n public void testBorrar() throws Exception {\r\n System.out.println(\"borrar\");\r\n \r\n String pcodigo = \"pentos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n MultiReparacion instance = new MultiReparacion();\r\n \r\n Reparacion repa = instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n instance.borrar(pcodigo);\r\n \r\n Reparacion resultado = null;\r\n try{\r\n resultado = instance.buscar(pnombre);\r\n }catch(Exception e){}\r\n \r\n boolean encontrada = (resultado == null?false:true);\r\n assertEquals(encontrada, false);\r\n \r\n }", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "@Test\r\n public void testSetAnalizar() {\r\n System.out.println(\"setAnalizar\");\r\n String analizar = \"3+(\";\r\n RevisorParentesis instance = null;\r\n instance.setAnalizar(analizar);\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 }", "public void rellenarTerreno() {\n Random rnd = new Random();\r\n int restante = V;\r\n int[][] aux = terreno;\r\n do {\r\n for (int i = 0; i < Filas; i++) {\r\n for (int j = 0; j < Columnas; j++) {\r\n if (restante > max) {\r\n int peso = rnd.nextInt(max);\r\n if (aux[i][j] + peso <= max) {\r\n aux[i][j] += peso;\r\n restante -= peso;\r\n }\r\n } else {\r\n if (aux[i][j] + restante <= max) {\r\n aux[i][j] += restante;\r\n restante = 0;\r\n }\r\n }\r\n }\r\n }\r\n } while (restante != 0);\r\n }", "@Test\n public void testGetSet() {\n\n Transform test1 = new Transform();\n test1.setOrientation(new Quaternion(6, 7, 8, 9));\n test1.setPosition(new Vector3(1, 2, 3));\n\n Assert.assertEquals(test1.getOrientation().equals(new Quaternion(6, 7, 8, 9)), true);\n Assert.assertEquals(test1.getPosition().equals(new Vector3(1, 2, 3)), true);\n\n Transform test2 = new Transform(new Vector3(4, 5, 6), new Quaternion(4, 3, 2, 1));\n test2.set(test1);\n\n Assert.assertEquals(test2.getOrientation().equals(new Quaternion(6, 7, 8, 9)), true);\n Assert.assertEquals(test2.getPosition().equals(new Vector3(1, 2, 3)), true);\n }", "private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n if (tiempoBase>0) {\n tiempoBase -= 0.01f;\n }\n\n camioneta= new Camioneta(texturaCamioneta,ANCHO,60f);\n arrEnemigosCamioneta.add(camioneta);\n\n\n }\n\n //Si el vehiculo se paso de la pantalla, lo borra\n for (int i = arrEnemigosCamioneta.size-1; i >= 0; i--) {\n Camioneta camioneta1 = arrEnemigosCamioneta.get(i);\n if (camioneta1.sprite.getX() < 0- camioneta1.sprite.getWidth()) {\n arrEnemigosCamioneta.removeIndex(i);\n\n }\n }\n }", "public void setRaggio(double raggio){\n this.raggio = raggio;\n }", "@Test\n public void testSetInstrucciones() {\n System.out.println(\"setInstrucciones\");\n Receta instance = new Receta();\n instance.setInstrucciones(\"inst1\");\n String expResult = \"inst1\";\n String result = instance.getInstrucciones();\n assertEquals(expResult, result);\n }", "@Test\n public void testModificarCamion() {\n try {\n System.out.println(\"modificarCamion\");\n Camion camion = new Camion(6, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, 1);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.modificarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "public void setNumberOfRestraunts(int _numberOfRestraunts){\n \n numberOfRestraunts = _numberOfRestraunts;\n }", "public void setRan(int R)\t\n\t{\t//start of setRan method\n\t\trandomNum = R;\n\t}", "private static void testGetTrayectoMayorDuracionMedia() {\n System.out.println(\"\\nTest de getTrayectoMayorDuracionMedia\");\n try {\n System.out.println(\"El trayecto con mayor duración media es: \" + DATOS.getTrayectoMayorDuracionMedia());\n } catch (Exception e) {\n System.out.println(\"Excepción capturada \\n\" + e);\n }\n }", "@Test\n public void testSetNumero() {\n System.out.println(\"setNumero\");\n try {\n asientoTested.setNumero(0);\n fail();\n } catch (IllegalArgumentException e) {\n assertTrue(\"0 no es un valor valido\", true);\n }\n try {\n asientoTested.setNumero(-1);\n fail();\n } catch (IllegalArgumentException e) {\n assertTrue(\"-1 no es un valor valido\", true);\n }\n try {\n asientoTested.setNumero(30);\n } catch (IllegalArgumentException e) {\n fail(\"30 es un valor valido\");\n }\n try {\n asientoTested.setNumero(31);\n fail();\n } catch (IllegalArgumentException e) {\n assertTrue(\"31 no es un valor valido\", true);\n }\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}", "@Test\n public void testMueve()\n throws MenorQueUnoException {\n Tablero tablero4 = new Tablero(2);\n\n boolean obtenido = false;\n\n assertEquals(tablero4.mueve(3), false);\n assertEquals(tablero4.mueve(4), false);\n assertEquals(tablero4.mueve(1), true);\n\n assertEquals(tablero4.mueve(1), false);\n assertEquals(tablero4.mueve(4), false);\n assertEquals(tablero4.mueve(2), true);\n\n assertEquals(tablero4.mueve(1), false);\n assertEquals(tablero4.mueve(2), false);\n assertEquals(tablero4.mueve(3), true);\n\n assertEquals(tablero4.mueve(2), false);\n assertEquals(tablero4.mueve(3), false);\n assertEquals(tablero4.mueve(4), true);\n\n assertEquals(tablero4.mueve(2), true);\n\n }", "public void testReine() {\n assertEquals(reine.getCouleur(), Piece.Couleur.NOIR); // test couleur\n assertEquals(reine.getValeur(), 9.0f);\n assertFalse(reine.estBlanc());\n assertTrue(reine.estNoir());\n reine.setPosActuelle(Echiquier.Colonne.D, 1); // Positionner en D1\n assertTrue(reine.posEstPossible(Echiquier.Colonne.D, 7)); // Peut se déplacer à D7\n assertFalse(reine.posEstPossible(Echiquier.Colonne.E, 7)); // Ne peu pas E7\n }", "public void testaReclamacao() {\n\t}", "@Test\n public void executarTesteCarregamentoDados() {\n onView(withId(R.id.btnHistorico)).perform(click());\n\n //Realiza o Swype para esquerda\n onView(withId(R.id.historylist)).perform(swipeUp());\n\n //Realiza o Swype para esquerda\n onView(withId(R.id.graphList)).perform(swipeLeft());\n }", "@Test\n public void testSetPagamentos() {\n }", "public boolean setRacun(Racun racun){ // info da li je racun postavljen uspesno\n if(this.racun!=null){\n System.out.println(\"za osobu \"+this.ime+ \" je vec registrovan racun.\");\n return false;\n }\n this.racun=racun; //this->return\n return true;\n }", "@Before\n public void antesDeTestear(){\n this.creditosHaberes = new Ingreso();\n this.creditosHaberes.setMonto(10000.0);\n this.creditosHaberes.setFecha(LocalDate.of(2020,9,25));\n\n this.donacion = new Ingreso();\n this.donacion.setMonto(500.0);\n this.donacion.setFecha(LocalDate.of(2020,9,26));\n\n\n this.compraUno = new Egreso();\n this.compraUno.setFecha(LocalDate.of(2020,9,26));\n this.compraUno.setMonto(1000.0);\n\n this.compraDos = new Egreso();\n this.compraDos.setFecha(LocalDate.of(2020,9,27));\n this.compraDos.setMonto(2500.0);\n\n this.compraTres = new Egreso();\n this.compraTres.setFecha(LocalDate.of(2020,9,23));\n this.compraTres.setMonto(10000.0);\n\n ingresos.add(donacion);\n ingresos.add(creditosHaberes);\n\n egresos.add(compraUno);\n egresos.add(compraDos);\n egresos.add(compraTres);\n\n /***************Creacion de condiciones*************/\n this.condicionEntreFechas = new CondicionEntreFechas();\n\n this.condicionValor = new CondicionValor();\n\n this.condicionSinIngresoAsociado = new CondicionSinIngresoAsociado();\n /***************Creacion criterio*******************/\n this.ordenValorPrimeroEgreso = new OrdenValorPrimeroEgreso();\n this.ordenValorPrimeroIngreso = new OrdenValorPrimeroIngreso();\n this.ordenFecha = new Fecha();\n this.mix = new Mix();\n\n\n /***************Creacion vinculador*****************/\n vinculador = Vinculador.instancia();\n vinculador.addCondiciones(this.condicionValor);\n vinculador.addCondiciones(this.condicionEntreFechas);\n vinculador.addCondiciones(this.condicionSinIngresoAsociado);\n }", "public void resetRutaTesauro()\r\n {\r\n this.rutaTesauro = null;\r\n }", "@Test\n public void radarTriangleSet() {\n radar.loop();\n assertEquals(-42, virtualFunctionBus.radarVisualizationPacket.getSensorSource().getX());\n assertEquals(-80, virtualFunctionBus.radarVisualizationPacket.getSensorSource().getY());\n assertEquals(61, virtualFunctionBus.radarVisualizationPacket.getSensorCorner1().getX());\n assertEquals(-11446, virtualFunctionBus.radarVisualizationPacket.getSensorCorner1().getY());\n assertEquals(-9937, virtualFunctionBus.radarVisualizationPacket.getSensorCorner2().getX());\n assertEquals(-5673, virtualFunctionBus.radarVisualizationPacket.getSensorCorner2().getY());\n }", "@Test\n public void testSetHistoriqRemb() {\n\n HistRemb historiqRemb = hist;\n Beneficiaire instance = ben1;\n instance.setHistoriqRemb(historiqRemb);\n assertEquals(instance.getHistoriqRemb(), historiqRemb);\n\n historiqRemb = hist2;\n assertFalse(instance.getHistoriqRemb().equals(historiqRemb));\n }", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public void solicitarRutinasPorDia() {\n eliminarTodasRutinas();\n\n }", "private void temporizadorRonda(int t) {\n Timer timer = new Timer();\n TimerTask tarea = new TimerTask() {\n @Override\n public void run() {\n if (!dead) {\n vida = vidaEstandar;\n atacar();\n rondas ++;\n tiempoRonda = tiempo;\n incrementarTiempo();\n reiniciarVentana();\n if(rondas == 4){\n matar();\n }\n temporizadorRonda(tiempo);\n }\n }\n };\n timer.schedule(tarea, t * 1000);\n }", "public void setRuns(int runs);", "public void setPapeles(int avenida, int calle, int cant);", "@Test\n public void testSetMatricula() {\n System.out.println(\"setMatricula\");\n String matricula = \"\";\n Usuario instance = null;\n instance.setMatricula(matricula);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void proximaSequencia(){\n\n }", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "@Test\n public void test4() {\n Integer[] data = new Integer[]{//\n 50,\n 100,\n 75, //\n };\n baseRotateTest(data);\n }", "@Test\n public void testAssignReinforcements() {\n IssueOrderPhase l_issueOrder = new IssueOrderPhase(d_gameEngine);\n l_issueOrder.d_gameData = d_gameData;\n l_issueOrder.assignReinforcements();\n d_gameData = l_issueOrder.d_gameData;\n int l_actualNoOfArmies = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n int l_expectedNoOfArmies = 8;\n assertEquals(l_expectedNoOfArmies, l_actualNoOfArmies);\n }", "public void setRisultato(double risultato) {\r\n this.risultato = risultato;\r\n }", "private void setSet(int[] set){\n this.set = set;\n }", "@Before\n\tpublic void setUp() {\n\n\t\tquadrados = new Quadrado[linhas][colunas];\n\n\t\tfor (int linha = 0; linha < linhas; linha++) {\n\t\t\tfor (int coluna = 0; coluna < colunas; coluna++) {\n\t\t\t\tquadrados[linha][coluna] = new Quadrado(linha, coluna);\n\t\t\t}\n\t\t}\n\t\tquadrados[0][0].marcar();\n\t\tquadrados[5][5].marcar();\n\t\tquadrados[0][5].marcar();\n\t\tquadrados[5][0].marcar();\n\n\t\tquadrados[1][2].marcar();\n\t\tquadrados[1][1].marcar();\n\t\tquadrados[0][2].marcar();\n\t\tquadrados[2][2].marcar();\n\t\tquadrados[3][5].marcar();\n\t}", "@Test\n public void testSetQuant_livros_locados() {\n System.out.println(\"setQuant_livros_locados\");\n int quant_livros_locados = 0;\n Usuario instance = null;\n instance.setQuant_livros_locados(quant_livros_locados);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testGetCantidadVendidos() {\r\n int expResult = 3;\r\n articuloPrueba.setCantidadVendidos(expResult);\r\n int result = articuloPrueba.getCantidadVendidos();\r\n assertEquals(expResult, result);\r\n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\r\n public void testSetMois() {\r\n System.out.println(\"*****************\");\r\n System.out.println(\"Test : setMois\");\r\n String mois = \"octobre\";\r\n Cours_Reservation instance = new Cours_Reservation();\r\n instance.setMois(mois);\r\n assertEquals(instance.getMois(), mois);\r\n }", "private void adicionarFaltas(final String matricula) {\n firebase.child(\"Alunos/\" + matricula + \"/faltas\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long qtdAtual = (long) dataSnapshot.getValue();\n firebase.child(\"Alunos/\" + matricula + \"/faltas\").setValue(qtdAtual + 1);\n Toast.makeText(getContext(), \"Falta adicionada com sucesso.\", Toast.LENGTH_SHORT).show();\n\n if (alunoEncontrado == null) {\n Log log = new Log(matricula, 0);\n log.faltas(\"Adicionar\");\n } else {\n Log log = new Log(alunoEncontrado, 0);\n log.faltas(\"Adicionar\");\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "public void setMinutes(int[] minutes) {\n if (minutes == null)\n minutes = new int[] {};\n this.minutes = minutes;\n }", "private void setNumeros(Set<Integer> numeros) {\n\t\tthis.numeros = new Vector<Integer>(numeros);\n\t}", "public void setCalorias(int calorias) {this.calorias = calorias;}", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n homeEnvironment0.setVideoWidth(11053224);\n homeEnvironment0.setSkyColor(11053224);\n List<Camera> list0 = homeEnvironment0.getVideoCameraPath();\n homeEnvironment0.setVideoCameraPath(list0);\n HomeEnvironment.DrawingMode[] homeEnvironment_DrawingModeArray0 = HomeEnvironment.DrawingMode.values();\n homeEnvironment0.getPhotoQuality();\n List<Camera> list1 = homeEnvironment0.getVideoCameraPath();\n homeEnvironment0.setVideoCameraPath(list1);\n HomeEnvironment.Property.values();\n homeEnvironment0.setPhotoHeight(0);\n HomeEnvironment.Property homeEnvironment_Property0 = HomeEnvironment.Property.PHOTO_HEIGHT;\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"\", propertyChangeListener0);\n homeEnvironment0.addPropertyChangeListener(homeEnvironment_Property0, propertyChangeListenerProxy0);\n homeEnvironment0.setVideoCameraPath(list1);\n homeEnvironment0.setWallsAlpha(0.0F);\n HomeEnvironment.DrawingMode[] homeEnvironment_DrawingModeArray1 = HomeEnvironment.DrawingMode.values();\n assertNotSame(homeEnvironment_DrawingModeArray1, homeEnvironment_DrawingModeArray0);\n }", "public void caminar(){\n if(this.robot.getOrden() == true){\n System.out.println(\"Ya tengo la orden, caminare a la cocina para empezar a prepararla.\");\n this.robot.asignarEstadoActual(this.robot.getEstadoCaminar());\n }\n }", "private void setRibs() {\n ribs[0] = new Rib(points[0],points[1]);\n ribs[1] = new Rib(points[1],points[2]);\n ribs[2] = new Rib(points[2],points[0]);\n }", "private void removerPontos(final String matricula, final int pontos) {\n firebase.child(\"Alunos/\" + matricula + \"/pontuacao\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long qtdAtual = (long) dataSnapshot.getValue();\n if (qtdAtual >= pontos) {\n firebase.child(\"Alunos/\" + matricula + \"/pontuacao\").setValue(qtdAtual - pontos);\n Toast.makeText(getContext(), \"Pontuação removida com sucesso.\", Toast.LENGTH_SHORT).show();\n quantidade.setText(\"\");\n\n if (alunoEncontrado == null) {\n Log log = new Log(matricula, pontos);\n log.pontos(\"Remover\");\n } else {\n Log log = new Log(alunoEncontrado, pontos);\n log.pontos(\"Remover\");\n }\n } else {\n Toast.makeText(getContext(), \"Aluno com menor quantidade de pontos que o solicitado.\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "boolean setMultiRun(int runs);", "@Test\n public void test1() {\n Integer[] data = new Integer[]{//\n 100,\n 50,\n 25, //\n };\n baseRotateTest(data);\n }", "public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}", "@Override\n\tpublic void setRegantes(long regantes) {\n\t\tmodel.setRegantes(regantes);\n\t}", "@Test\n public final void testModifySpinners() {\n int rows = 7;\n int columns = 8;\n spysizedialog.getRowSpinner().setValue(rows);\n spysizedialog.getColumnsSpinner().setValue(columns);\n assertEquals(rows, spysizedialog.getRows());\n assertEquals(columns, spysizedialog.getColumns());\n }", "public void capturarNumPreRadica() {\r\n try {\r\n if (mBRadicacion.getRadi() == null) {\r\n mbTodero.setMens(\"Debe seleccionar un registro de la tabla\");\r\n mbTodero.warn();\r\n } else {\r\n DatObser = Rad.consultaObserRadicacion(String.valueOf(mBRadicacion.getRadi().getCodAvaluo()), mBRadicacion.getRadi().getCodSeguimiento());\r\n mBRadicacion.setListObserRadicados(new ArrayList<LogRadicacion>());\r\n\r\n while (DatObser.next()) {\r\n LogRadicacion RadObs = new LogRadicacion();\r\n RadObs.setObservacionRadic(DatObser.getString(\"Obser\"));\r\n RadObs.setFechaObservacionRadic(DatObser.getString(\"Fecha\"));\r\n RadObs.setAnalistaObservacionRadic(DatObser.getString(\"empleado\"));\r\n mBRadicacion.getListObserRadicados().add(RadObs);\r\n }\r\n Conexion.Conexion.CloseCon();\r\n opcionCitaAvaluo = \"\";\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgInfRadicacion').show()\");\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".capturarNumPreRadica()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public void setGiro( double gradosGiro ) {\r\n\t\t// De grados a radianes...\r\n\t\tmiGiro += gradosGiro;\r\n\t}", "public void setPermisos(int permisos) {\n\t\tthis.permisos = permisos;\r\n\t}", "@Test\n public void test3() {\n Integer[] data = new Integer[]{//\n 100,\n 50,\n 75, //\n };\n baseRotateTest(data);\n }", "public int[] ejecRobotReal(){\n\t\t\n\t\tint ruedas[] = new int[2]; //Izda-Dcha\n\t\t\n\t\t/* Por defecto, giro a la izquierda */\n\t\tswitch(factor){\n\t\tcase 1: //Giro muy debil\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 20;\n\t\t\tbreak;\n\t\tcase 2: //Giro debil\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 40;\n\t\t\tbreak;\n\t\tcase 3: //Giro normal\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 60;\n\t\t\tbreak;\n\t\tcase 4: //Giro fuerte\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 80;\n\t\t\tbreak;\n\t\tcase 5: //Giro muy fuerte\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 100;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\truedas[0] = 0;\n\t\t\truedas[1] = 0;\n\t\t}\n\t\t\n\t\tif(!izquierda){ //Si giro a la derecha, cambio de ruedas\n\t\t\tint aux = ruedas[0];\n\t\t\truedas[0] = ruedas[1];\n\t\t\truedas[1] = aux;\n\t\t}\n\t\t\n\t\treturn ruedas;\n\t}", "@Override\r\n\tpublic void setRedondez(int redondez) {\n\r\n\t}", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public void somaVezes(){\n qtVezes++;\n }", "public void setQuantidade(int quantos);", "private void setNums(double altura, double lado2, double lado3){\r\n \r\n this.altura = altura;\r\n this.lado2 = lado2;\r\n this.lado3 = lado3;\r\n \r\n \r\n }", "public void AddNroCitasRealizadas() {\n\t\tthis.NroCitasRealizadas = this.NroCitasRealizadas+1;\n\t}", "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\r\n public void testSetOrigen() {\r\n String expResult = \"pruebaorigen\";\r\n articuloPrueba.setOrigen(expResult);\r\n assertEquals(expResult, articuloPrueba.getOrigen());\r\n }", "@Test\n public void testSetUsuarioId() {\n System.out.println(\"setUsuarioId\");\n long usuarioId = 0L;\n Reserva instance = new Reserva();\n instance.setUsuarioId(usuarioId);\n \n }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n String expResult = \"nom1\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n }", "@Test\n public void testAgregarCamion() {\n try {\n System.out.println(\"agregarCamion\");\n Camion camion = new Camion(0, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, null);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.agregarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }", "@Override\n public void mostrarMediosRecientesRv() {\n iPerfilFragmentView.inicializarAdaptadorRV(iPerfilFragmentView.crearAdaptador(mascotas));\n iPerfilFragmentView.generarGridLayout();// Luego se debe indicar que genere el GridLayout\n }", "@Test\r\n public void testSetMicentro() {\r\n System.out.println(\"setMicentro\");\r\n CentroEcu_Observado micentro = new CentroEcu_Observado();\r\n micentro.setCiudad(\"Loja\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMicentro(micentro);\r\n assertEquals(instance.getMicentro().ciudad, \"Loja\");\r\n }", "@Test\n public void test2() {\n Integer[] data = new Integer[]{//\n 25,\n 50,\n 100, //\n };\n baseRotateTest(data);\n }" ]
[ "0.57988685", "0.5474027", "0.5321149", "0.530335", "0.52540666", "0.52379435", "0.5232671", "0.52316123", "0.5220494", "0.5217994", "0.5198392", "0.5195281", "0.5185912", "0.5169603", "0.51288426", "0.5126837", "0.5123262", "0.5085222", "0.5083302", "0.50487757", "0.50198877", "0.49999467", "0.49954346", "0.49856684", "0.49847707", "0.49744976", "0.4967565", "0.4944431", "0.49406302", "0.49385226", "0.49314564", "0.49306637", "0.49083313", "0.48996118", "0.48869932", "0.48745278", "0.48736078", "0.48699853", "0.48629925", "0.48625", "0.486161", "0.48599985", "0.48568532", "0.4852223", "0.48472127", "0.4845597", "0.48400322", "0.48380336", "0.48294455", "0.48242232", "0.4809797", "0.48075742", "0.48038712", "0.4796558", "0.47943413", "0.47907534", "0.47861278", "0.4772698", "0.4771863", "0.47632036", "0.47589973", "0.4750388", "0.4750064", "0.47385925", "0.47365063", "0.47279325", "0.47075462", "0.47061318", "0.47052163", "0.47043723", "0.46903569", "0.4690106", "0.46888927", "0.4688132", "0.4687917", "0.46826595", "0.4678797", "0.4676988", "0.46750498", "0.46713227", "0.466635", "0.46635628", "0.46550715", "0.46523318", "0.4650381", "0.4649732", "0.4649449", "0.46478343", "0.46474048", "0.46471572", "0.46464214", "0.46420163", "0.46409935", "0.46400046", "0.46389592", "0.46379274", "0.4632188", "0.46302256", "0.46284598", "0.46275392" ]
0.75956845
0
Test of calcularImporte method, of class Camiones.
@Test public void testCalcularImporte() { System.out.println("calcularImporte"); double min = 10.1; Camiones instance = new Camiones("C088IJ", true, 10); double expResult = 0.0; double result = instance.calcularImporte(min); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testCambiaImporto() {\n\t\tfloat nuovoImporto = 15.678f;\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\t\n\t\tFondo.cambiaImporto(idFondo, nuovoImporto);\n\t\tfondo = Fondo.visualizzaFondo(idFondo);\n\t\tassertTrue(\"cambiaImporto() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == nuovoImporto &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "public double getImportoSconto(double costoIntero);", "@Test\n public void testCalculerMoyenne() {\n\n System.out.println(\"calculerMoyenne\");\n Date date1 = new DateTime(2013, 1, 1, 0, 0).toDate();\n Date date2 = new DateTime(2013, 1, 6, 0, 0).toDate();\n\n POJOCompteItem instance = genererInstanceTest();\n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n Integer expResult = null;\n Float result = instance.calculerMoyenne(date1, date2);\n\n if (!result.equals(new Float(2.6))) {\n fail(\"le résultat est 2.6\");\n }\n// assertEquals(expResult, result);\n System.out.println(\"MOY : \" + result);\n\n try {\n instance.calculerMoyenne(null, null);\n fail(\"devait lever une exeception\");\n } catch (Exception e) {\n }\n }", "@Test\n public void doImport_doesNotModifyOriginalCsv() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n assertThat(dbFile.exists(), is(true));\n assertThat(csvFile.exists(), is(true));\n }", "@Test\n public void testSoma() {\n System.out.println(\"soma\");\n float num1 = 0.0F;\n float num2 = 0.0F;\n float expResult = 0.0F;\n float result = Calculadora_teste.soma(num1, num2);\n assertEquals(expResult, result, 0.0);\n \n }", "public static void modificarImporte(Scanner keyboard, ArrayList<Usuario> usuarios) { //reutilizar?\n if(!estaVacia(usuarios)){\n Usuario user = (Usuario) mostrarLista(keyboard,usuarios);\n ArrayList<Objeto> objetos = user.getObjetos();\n \n if(!estaVacia(objetos)){\n Objeto obj = (Objeto) mostrarLista(keyboard,objetos);\n boolean ok;\n float coste = 0;\n do{\n ok = true;\n System.out.println(\"Introduzca el nuevo importe: \");\n try{\n coste = keyboard.nextFloat(); //comprobar coste > 0\n }catch(NumberFormatException e){\n ok = false;\n }\n obj.setCoste(coste);\n }while(!ok || coste <= 0);\n }\n }\n \n }", "private BigDecimal calcolaTotaleImportoPreDocumenti(List<PreDocumentoEntrata> preDocs) {\n\t\tBigDecimal result = BigDecimal.ZERO;\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocs){\n\t\t\tresult = result.add(preDoc.getImportoNotNull());\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testGuardarDados() throws Exception {\n System.out.println(\"guardarDados\");\n int[][] dadosFicheiro = null;\n String nomeFicheiro = \"DAYTON.csv\";\n int expResult = 22680;\n int result = ProjetoV1.guardarDados(nomeFicheiro);\n assertEquals(expResult, result);\n\n }", "@Test\n public void testCalculerMontantService() {\n double expResult = 0.0;\n double result = CalculAgricole.calculerMontantServices();\n assertEquals(\"Montant pour las droits du passage n'était pas correct.\", expResult, result, 0);\n }", "private void importarDatos() {\r\n // Cabecera\r\n System.out.println(\"Importación de Datos\");\r\n System.out.println(\"====================\");\r\n\r\n // Acceso al Fichero\r\n try (\r\n FileReader fr = new FileReader(DEF_NOMBRE_FICHERO);\r\n BufferedReader br = new BufferedReader(fr)) {\r\n // Colección Auxiliar\r\n final List<Item> AUX = new ArrayList<>();\r\n\r\n // Bucle de Lectura\r\n boolean lecturaOK = true;\r\n do {\r\n // Lectura Linea Actual\r\n String linea = br.readLine();\r\n\r\n // Procesar Lectura\r\n if (linea != null) {\r\n // String > Array\r\n String[] items = linea.split(REG_CSV_LECT);\r\n\r\n // Campo 0 - id ( int )\r\n int id = Integer.parseInt(items[DEF_INDICE_ID]);\r\n\r\n // Campo 1 - nombre ( String )\r\n String nombre = items[DEF_INDICE_NOMBRE].trim();\r\n\r\n // Campo 2 - precio ( double )\r\n double precio = Double.parseDouble(items[DEF_INDICE_PRECIO].trim());\r\n\r\n // Campo 3 - color ( Color )\r\n Color color = UtilesGraficos.generarColor(items[DEF_INDICE_COLOR].trim());\r\n\r\n // Generar Nuevo Item\r\n Item item = new Item(id, nombre, precio, color);\r\n\r\n // Item > Carrito\r\n AUX.add(item);\r\n// System.out.println(\"Importado: \" + item);\r\n } else {\r\n lecturaOK = false;\r\n }\r\n } while (lecturaOK);\r\n\r\n // Vaciar Carrito\r\n CARRITO.clear();\r\n\r\n // AUX > CARRITO\r\n CARRITO.addAll(AUX);\r\n\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"Datos importados correctamente\");\r\n } catch (NumberFormatException | NullPointerException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Formato de datos incorrecto\");\r\n\r\n // Vaciado Carrito\r\n CARRITO.clear();\r\n } catch (IOException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Acceso al fichero\");\r\n }\r\n }", "@Test\n public void doImport_skipsImportIfFileNotUpdated() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n Cursor cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(cursor.getCount(), is(3));\n\n // Purge the contents of the data table before reimporting\n db.delete(EXTERNAL_DATA_TABLE_NAME, null, null);\n assertThat(SQLiteUtils.doesTableExist(db, EXTERNAL_DATA_TABLE_NAME), is(true));\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after purging\", cursor.getCount(), is(0));\n db.close();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after reimporting unchanged file\", cursor.getCount(), is(0));\n }", "@Test\n @FileParameters(\"fractionTestData.csv\")\n public void testAddFractionWithCSVMethod(String a, String b, String result) {\n assertEquals(result, calc.addFraction(a, b));\n }", "@Test\n public void testMediaGlobal() {\n System.out.println(\"mediaGlobal\");\n int[] serieTemp = new int[1];\n int qtdlinhas = 1;\n double expResult = 0.0;\n double result = ProjetoV1.mediaGlobal(serieTemp, qtdlinhas);\n assertEquals(expResult, result, 0.0);\n\n }", "public BigDecimal calcolaImportoTotaleNoteCollegateEntrata(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(DocumentoEntrata ds : getListaNoteCreditoEntrataFiglio()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testSubtra() {\n System.out.println(\"subtra\");\n float num1 = 0.0F;\n float num2 = 0.0F;\n float expResult = 0.0F;\n float result = Calculadora_teste.subtra(num1, num2);\n assertEquals(expResult, result, 0.0);\n \n }", "public BigDecimal calcolaImportoTotaleNonRilevanteIVASubdoumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()) {\n\t\t\tif(!Boolean.TRUE.equals(ds.getFlagRilevanteIVA())) {\n\t\t\t\tresult = result.add(ds.getImporto());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public BigDecimal calcolaImportoTotaleNoteCollegateEntrataNonAnnullate(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(DocumentoEntrata de : getListaNoteCreditoEntrataFiglio()){\n\t\t\tif(!StatoOperativoDocumento.ANNULLATO.equals(de.getStatoOperativoDocumento())){\n\t\t\t\tresult = result.add(de.getImporto());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nAlpha);\n if (result != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n\n assertArrayEquals(expResult, resultArray);\n\n }", "@Test\n public void testCalculerValeurLot() {\n double superficie = 456.0;\n double prixMin = 4.32;\n double expResult = 1969.95;\n double result = CalculAgricole.calculerValeurLot(superficie, prixMin);\n assertEquals(\"Montant pour la Valeur du Lot n'était pas correct.\", expResult, result, 0);\n }", "@Test\n public void testCalcularValorDeVenda() {\n System.out.println(\"CalcularValorDeVenda\");\n Telemovel instance = new Telemovel(\"Samsung Galaxy S20\",1500);\n double expResult = 1545;\n double result = instance.CalcularValorDeVenda();\n assertEquals(expResult, result, 0.0);\n \n }", "@Test\n public void doImport_reimportsCsvIfFileIsUpdated() throws IOException, InterruptedException {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n assertThat(db.rawQuery(SELECT_ALL_DATA_QUERY, null).getCount(), is(3));\n\n String originalHash = FileUtils.getMd5Hash(csvFile);\n String metadataTableHash = ExternalSQLiteOpenHelper.getLastMd5Hash(db, EXTERNAL_METADATA_TABLE_NAME, csvFile);\n assertThat(metadataTableHash, is(originalHash));\n\n try (Writer out = new BufferedWriter(new FileWriter(csvFile, true))) {\n out.write(\"\\ncherimoya,Cherimoya\");\n }\n\n String newHash = FileUtils.getMd5Hash(csvFile);\n assertThat(newHash, is(not(originalHash)));\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READONLY);\n assertThat(db.rawQuery(SELECT_ALL_DATA_QUERY, null).getCount(), is(4));\n\n // Check the metadata table import timestamp\n metadataTableHash = ExternalSQLiteOpenHelper.getLastMd5Hash(db, EXTERNAL_METADATA_TABLE_NAME, csvFile);\n assertThat(metadataTableHash, is(newHash));\n }", "@Test\n @FileParameters(\"addMethodParam.csv\")\n public void testAddWithCSVMethod(double a, double b, double result) {\n assertEquals(result, calc.add(a, b), 0.1);\n }", "@Before\r\n\tpublic void faireAvant(){\r\n\t\tfile3Donnees = new File(\"fichierTest3Donnees.csv\");\r\n\t\tfile11Donnees = new File(\"fichierTest11Donnees.csv\");\r\n\t}", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "@Test\n public void testMultiplic() {\n System.out.println(\"multiplic\");\n float num1 = 0.0F;\n float num2 = 0.0F;\n float expResult = 0.0F;\n float result = Calculadora_teste.multiplic(num1, num2);\n assertEquals(expResult, result, 0.0);\n \n }", "@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }", "@Test\r\n public void testMedia() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87);\r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 0.1);\r\n }", "public BigDecimal calcolaImportoTotaleRilevanteIVASubdoumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()) {\n\t\t\tif(Boolean.TRUE.equals(ds.getFlagRilevanteIVA())) {\n\t\t\t\tresult = result.add(ds.getImporto());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "@AssertTrue (message=\"El importe del pago es incorrecto debe<= imp cheque/disponible(Nota/Otroe)\")\r\n\t\tpublic boolean validarImporteCorrecto(){\r\n\t\t\tswitch (getFormaDePago()) {\r\n\t\t\tcase T:\r\n\t\t\t\treturn getImporte().amount().doubleValue()<=getNota().getSaldoUnificado().abs().amount().doubleValue();\r\n\t\t\tcase S:\r\n\t\t\t\treturn getImporte().amount().doubleValue()<=getOtros().getDisponible().doubleValue();\r\n\t\t\tdefault:\r\n\t\t\t\treturn getImporte().amount().doubleValue()<=cheque.getSaldo().doubleValue();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@GetMapping(\"/queryPriceImportOperations\")\n public CompletableFuture<ApiHttpResponse<ImportOperationPagedResponse>> queryImportOperations() throws ExecutionException, InterruptedException {\n\n CompletableFuture<ApiHttpResponse<ImportOperationPagedResponse>> imoprtOperationResponse = ctoolsImportApiClient.withProjectKeyValue(project)\n .prices()\n .importSinkKeyWithImportSinkKeyValue(importSink.getKey())\n .importOperations()\n .get().withLimit(10000.0).execute();\n\n return imoprtOperationResponse;\n }", "public BigDecimal calcolaImportoTotaleNoteCollegateSpesa(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(DocumentoSpesa ds : getListaNoteCreditoSpesaFiglio()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "public interface ImportarPolizaDTO {\r\n\t\r\n\t/**\r\n\t * Execute.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @param idSector the id sector\r\n\t * @param idUser the id user\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO execute(PolizaImportDTO importDTO, Integer idSector, String idUser);\r\n\t\r\n\t/**\r\n\t * Export reports.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @param tipo the tipo\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO exportReports(PolizaImportDTO importDTO, String tipo);\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate excel.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO generateExcel(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Generate head.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the list\r\n\t */\r\n\tList<PolizaExcelDTO> generateHead(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Generate body.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the list\r\n\t */\r\n\tList<PolizaBody> generateBody(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Gets the path.\r\n\t *\r\n\t * @param cvePath the cve path\r\n\t * @return the path\r\n\t */\r\n\tString getPath(String cvePath);\r\n\t\r\n\t/**\r\n\t * Gets the mes activo.\r\n\t *\r\n\t * @param idSector the id sector\r\n\t * @return the mes activo\r\n\t */\r\n\tList<String> getMesActivo(Integer idSector);\r\n\r\n}", "public BigDecimal calcolaImportoTotaleSubdoumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "private void verificarDatos(int fila) {\n try {\n colValidada = -1;\n\n float cantidad = 1;\n float descuento = 0;\n float precio = 1;\n float stock = 1;\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad) != null) {\n cantidad = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV) != null) {\n precio = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento) != null) {\n descuento = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento).toString());\n }\n\n if (precio < 0) {\n JOptionPane.showMessageDialog(this, \"el precio debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colPrecioConIGV);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDesc);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDescConIgv);\n colValidada = oCLOrdenCompra.colPrecioConIGV;\n return;\n }\n\n if (descuento > cantidad * precio) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser mayor al Importe Bruto\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n oCLOrdenCompra.CalcularSubtotales();\n oCLOrdenCompra.calcularImportes();\n\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (descuento < 0) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser menor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (cantidad <= 0) {\n JOptionPane.showMessageDialog(this, \"La cantidad debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colCantidad);\n colValidada = oCLOrdenCompra.colCantidad;\n return;\n }\n /* if(precio<=0)\n {\n JOptionPane.showMessageDialog(null,\"El precio tiene q ser mayor a cero\");\n colValidada=oCLOrdenCompra.colPrecio;\n return;\n }*/\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock) != null) {\n stock = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock).toString());\n }\n if (cantidad > stock) {\n /* JOptionPane.showMessageDialog(null,\"La cantidad no debe ser mayor al stock disponible\");\n TblOrdenCompraDetalle.setValueAt(null, fila,oCLOrdenCompra.colCantidad);\n colValidada=oCLOrdenCompra.colCantidad;\n return;*/\n }\n\n int col = TblOrdenCompraDetalle.getSelectedColumn();\n if (!eventoGuardar) {\n if (col == oCLOrdenCompra.colCantidad) {\n oCLOrdenCompra.calcularPrecio(fila);\n }\n }\n\n } catch (Exception e) {\n cont++;\n System.out.println(\"dlgGestionOrdenCompra-metodo Verificar datos: \"+e);\n }\n }", "@Test\n public void testGetInteres() {\n System.out.println(\"getInteres\");\n double expResult = 0.07;\n double result = detalleAhorro.getInteres();\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void doImport_reimportsCsvIfDatabaseFileIsDeleted() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n dbFile.delete();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n }", "public BigDecimal calcolaImportoTotaleNoteCollegateSpesaNonAnnullate(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(DocumentoSpesa ds : getListaNoteCreditoSpesaFiglio()){\n\t\t\tif(!StatoOperativoDocumento.ANNULLATO.equals(ds.getStatoOperativoDocumento())){\n\t\t\t\tresult = result.add(ds.getImporto());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testCalculateNominationCuantity2() throws FileNotFoundException {\n System.out.println(\"testCalculateNominationCuantity 2\");\n double expResult = 125.0;\n double result = calc.getChange(124d, calc.calculateDenominationCuantity(124d));\n assertEquals(expResult, result);\n }", "@Test\n public void testAnalisarMes() throws Exception {\n System.out.println(\"analisarMes\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarMes(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "private BigDecimal calcolaTotaleImportoPreDocumenti(Map<String, List<PreDocumentoEntrata>> preDocumenti) {\n\t\tBigDecimal result = BigDecimal.ZERO;\t\n\t\tfor(List<PreDocumentoEntrata> preDocsSecondoLivello : preDocumenti.values()){\n\t\t\tfor(PreDocumentoEntrata preDoc : preDocsSecondoLivello){\n\t\t\t\tresult = result.add(preDoc.getImportoNotNull());\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn result;\n\t}", "@Test\r\n public void testCalcularPosicion() {\r\n System.out.println(\"calcularPosicion\");\r\n int saltos = 41;\r\n int inicio = 8;\r\n int expResult = 11;\r\n int result = Cifrado.calcularPosicion(saltos, inicio);\r\n assertEquals(expResult, result);\r\n \r\n }", "public void generarNumeroFacura(){\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n //Comprobamos si hay registros en la tabla Factura de la BD\n this.numeroFactura = facturaDao.numeroRegistrosFactura();\n \n //Si no hay registros hacemos el numero de factura igual a 1\n if(numeroFactura <= 0 || numeroFactura == null){\n numeroFactura = Long.valueOf(\"1\");\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }else{\n //Recuperamos el ultimo registro que existe en la tabla Factura\n Factura factura = facturaDao.getMaxNumeroFactura();\n //Le pasamos a la variable local el numero de factura incrementado en 1\n this.numeroFactura = Long.valueOf(factura.getNumeroFactura() + 1);\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }\n \n \n }catch(Exception e){\n e.printStackTrace();\n }\n \n }", "private String importExcelPromotionNew() {\n\t\ttry{\n\t\t\tList<List<String>> infoPromotion = new ArrayList<>();\n\t\t\tList<List<String>> infoPromotionDetail = new ArrayList<>();\n\t\t\tList<List<String>> infoPromotionShop = new ArrayList<>();\n\t\t\t\n\t\t\tList<CellBean> infoPromotionError = new ArrayList<>();\n\t\t\tList<CellBean> infoPromotionDetailError = new ArrayList<>();\n\t\t\tList<CellBean> infoPromotionShopError = new ArrayList<>();\n\t\t\tList<PromotionImportNewVO> promotionImportNewErrorVOs = null;\n\t\t\t\n\t\t\tgetDataImportExcelPromotion(infoPromotion, infoPromotionDetail, infoPromotionShop, infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\t// xu ly xuất lỗi\n\t\t\tif (infoPromotionError.size() > 0 || infoPromotionDetailError.size() > 0 || infoPromotionShopError.size() > 0) {\n\t\t\t\treturn WriteFileError(infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\t}\n\t\t\t\n\t\t\tpromotionImportNewErrorVOs = new ArrayList<>();\n\t\t\tList<PromotionImportNewVO> promotionImportNewVOs = convertDataImportExcelPromotion(infoPromotion, infoPromotionDetail, infoPromotionShop, infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\tif(promotionImportNewVOs != null && promotionImportNewVOs.size() > 0) {\n\t\t\t\t// bỏ những CT k hợp le và những CT nằm ngoài các ZV cần xử lý\n\t\t\t\tpromotionImportNewVOs = validatePromotionImport(promotionImportNewVOs, promotionImportNewErrorVOs);\n\t\t\t}\n\t\t\t// sap xep lại cac mức cho CTKM\n\t\t\tpromotionImportNewVOs = sortPromotionImport(promotionImportNewVOs);\n\t\t\t//save\n\t\t\ttotalItem = promotionImportNewErrorVOs.size() + promotionImportNewVOs.size();\n\t\t\tnumFail = promotionImportNewErrorVOs.size();\n\t\t\tif(promotionImportNewVOs != null && promotionImportNewVOs.size() > 0) {\n\t\t\t\tpromotionImportNewErrorVOs = promotionProgramMgr.saveImportPromotionNew(promotionImportNewVOs, promotionImportNewErrorVOs, getLogInfoVO());\n\t\t\t\t// thông tin tra ve\n\t\t\t\tnumFail = promotionImportNewErrorVOs.size();\n\t\t\t\tfor (PromotionImportNewVO promotion : promotionImportNewVOs) {\n\t\t\t\t\tPromotionProgram pp = promotionProgramMgr.getPromotionProgramByCode(promotion.getPromotionCode());\n\t\t\t\t\tif (pp != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(pp, getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// xu ly nêu có loi\n\t\t\tif (promotionImportNewErrorVOs.size() > 0) {\n\t\t\t\tconvertObjectPromotionToCellBean(promotionImportNewErrorVOs, infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\t\tif (infoPromotionError.size() > 0 || infoPromotionDetailError.size() > 0 || infoPromotionShopError.size() > 0) {\n\t\t\t\t\treturn WriteFileError(infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\terrMsg = Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"system.error\");\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.importExcelPromotionNew\"), createLogErrorStandard(actionStartTime));\n\t\t}\t\t\n\t\treturn SUCCESS;\n\t}", "public double getImportTotal() {\n return import_total;\n }", "public void importer() {\n\t\tString[] champs = {\n\t\t\t\"numero_edition\", \n\t\t\t\"libelle_edition\"\n\t\t};\n\t\t\n\t\tExploitation bdd = new Exploitation();\n\t\tbdd.chargerPilote();\n\t\tbdd.connexion();\n\t\tString[][] req = bdd.lister(champs, \"edition\");\n\n\t\tfor(int i=0; i<req.length; i++) {\n\t\t\tEdition e = new Edition(Integer.parseInt(req[i][0]), req[i][1]);\n\t\t\tthis.lesEditions.add(e);\n\t\t}\n\t\tbdd.deconnexion();\n\t}", "public InterfazInfo importarInterfaz(InterfazInfo info) \n throws InterfacesException, MareException\n {\n String codigoInterfaz = info.getCodigoInterfaz();\n String numeroLote = info.getNumeroLote();\n Long pais = info.getPais();\n\n InterfazDef def = importarInterfazP1(codigoInterfaz, numeroLote, pais, info); \n \n return importarInterfazP2(codigoInterfaz, numeroLote, pais, def, info);\n }", "@Override\n public abstract float calculaPreuExcursio(float preuExcursioBase) throws ExcepcioClub;", "@Test\n public void doImport_reimportsCsvIfMetadataTableIsMissing() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n // Remove the metadata table (mimicking prior versions without the metadata table)\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n SQLiteUtils.dropTable(db, EXTERNAL_METADATA_TABLE_NAME);\n db.close();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n assertThat(\"metadata table should be recreated\", SQLiteUtils.doesTableExist(db, EXTERNAL_METADATA_TABLE_NAME));\n db.close();\n }", "@Test\r\n public void testCalcularPosicionInvertida() {\r\n System.out.println(\"calcularPosicionInvertida\");\r\n int saltos = 41;\r\n int inicio = 8;\r\n int expResult = 5;\r\n int result = Cifrado.calcularPosicionInvertida(saltos, inicio);\r\n assertEquals(expResult, result);\r\n \r\n }", "public static void main(String args[])\n {\n //instanciar (crear) el objeto empleados_comcel de la clase empleados\n //instanciar el objeto empleados_comcel de la clase empleados\n empleados empleados_comcel = new empleados();\n \n //acciones al objeto empleados_comcel asignando valores\n //empleados_comcel.cedula=5555;\n //empleados_comcel.nombre=\"felipe completo\";\n //empleados_comcel.sueldo=50000;\n //llamando las acciones\n /*int intTotalSueldo = empleados_comcel.calcularSueldo();\n System.out.println(\"total sueldo \"+intTotalSueldo);*/\n \n Scanner scanner = new Scanner(System.in);\n System.out.println(\"ingrese prestamos\");\n int prestamos = scanner.nextInt();\n\n \n int intTotalSueldo2 = empleados_comcel.calcularSueldo(prestamos, 5, 70000);\n System.out.println(\"total sueldo \"+intTotalSueldo2);\n\n \n //instanciar\n vehiculo transmilenio = new vehiculo();\n transmilenio.kmsActualmente=20000;\n transmilenio.modelo=2005;\n \n vehiculo sitp = new vehiculo();\n \n \n /*Scanner scanner = new Scanner(System.in);\n System.out.println(\"ingrese numero 1\");\n int numero_entero1 = scanner.nextInt();\n System.out.println(\"ingrese numero 2\");*/\n int numero_entero2 = scanner.nextInt();\n int suma = 0;\n \n System.out.println(\"resultado suma \"+suma);\n \n String nombre = \"\";\n System.out.println(\"Ingresar nombre \");\n nombre =scanner.next();\n System.out.println(\"Ingresó el nombre \"+nombre);\n \n float numero1float=233.44f;\n float numero2float=23.2f;\n float resultadofloat = numero1float + numero2float;\n System.out.println(\"resultado float \"+resultadofloat);\n \n }", "Import getImport();", "@Test\n\tpublic void testVisualizzaFondoInt() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tfondo = Fondo.visualizzaFondo(idFondo);\n\t\tassertTrue(\"visualizzaFondoInt() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == importo &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "public INTF_Itau_CMX_Import() {\r\n\t\tsuper();\r\n\t}", "@Test\r\n public void testDesvioPadrao() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87); \r\n \r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 1.2);\r\n }", "@Test\n public void testAnalisarAno() throws Exception {\n System.out.println(\"analisarAno\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarAno(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "@Test\n public void testAnalisarDados() throws Exception {\n System.out.println(\"analisarDados\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n Integer[] expResult = null;\n String time = \"\";\n String tipoOrdenacao = \"\";\n Integer[] resultArray = null;\n \n int[] result = ProjetoV1.analisarDados(dadosFicheiro, linhas, time, tipoOrdenacao);\n if(result != null){\n resultArray= ArrayUtils.converterParaArrayInteger(result); \n }\n \n assertArrayEquals(expResult, resultArray);\n\n }", "@Test\n public void testSuma() {\n assertEquals(new Fraccion(12.0, 9.0), instance.suma());\n assertEquals(12.0, instance.suma().getNumerador(), 0.001);\n assertEquals(9.0, instance.suma().getDenominador(), 1.0E-3); // 1.0 ^ -3 -> 1 / 1000\n }", "@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }", "@Test\r\n public void testGetValorValido() {\r\n PapelMoeda instance = new PapelMoeda(100, 100);\r\n int expResult = 100;\r\n int result = instance.getValor();\r\n assertEquals(expResult, result);\r\n }", "@Optional\n @ImportColumn(\"FAKTOR\")\n Property<Double> faktorBereinigterKaufpreis();", "@Test\n public void testImprimeFactura() throws Exception {\n \n }", "@Test\n public void testCreateOrderCalculations() throws Exception {\n\n service.loadFiles();\n \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n service.calculateNewOrderDataInput(newOrder);\n\n Assert.assertEquals(newOrder.getMaterialCostTotal(), (new BigDecimal(\"1199.95\")));\n Assert.assertEquals(newOrder.getLaborCost(), (new BigDecimal(\"1106.75\")));\n Assert.assertEquals(newOrder.getTax(), (new BigDecimal(\"144.17\")));\n Assert.assertEquals(newOrder.getTotal(), (new BigDecimal(\"2450.87\")));\n\n }", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "public static void imprimeCredito(float credito){\r\n System.out.println(\"muestra tu credito actual \"+credito);\r\n }", "@Test\n\tvoid calcularSalarioSinVentasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Hiromu Arakawa\", \"p24\", 400000, 0);\n\t\tdouble salarioEsperado = 400000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}", "@Optional\n @ImportColumn(\"GEWERBEFLAECHE\")\n Property<Double> gewerbeflaeche();", "@Test\n public void testAnalisarDia() throws Exception {\n System.out.println(\"analisarDia\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarDia(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "public SelecioneTipoImportacao() {\n initComponents();\n }", "@Test\n public void testMultiplicar() {\n\tSystem.out.println(\"multiplicar\");\n\tdouble valor1 = 0.0;\n\tdouble valor2 = 0.0;\n\tCalculadora instance = new Calculadora();\n\tdouble expResult = 0.0;\n\tdouble result = instance.multiplicar(valor1, valor2);\n\tassertEquals(expResult, result, 0.0);\n\t// TODO review the generated test code and remove the default call to fail.\n\tfail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void testPotencia() {\n\t\tdouble resultado=Producto.potencia(4, 2);\n\t\tdouble esperado=16.0;\n\t\t\n\t\tassertEquals(esperado,resultado);\n\t}", "@Override\n public void importCSV(File file) {\n System.out.println(\"oi\");\n System.out.println(file.isFile()+\" \"+file.getAbsolutePath());\n if(file.isFile() && file.getPath().toLowerCase().contains(\".csv\")){\n System.out.println(\"Entro\");\n try {\n final Reader reader = new FileReader(file);\n final BufferedReader bufferReader = new BufferedReader(reader);\n String[] cabecalho = bufferReader.readLine().split(\",\");\n int tipo;\n if(cabecalho.length == 3){\n if(cabecalho[2].equalsIgnoreCase(\"SIGLA\")){\n tipo = 1;\n System.out.println(\"TIPO PAIS\");\n }\n else {\n tipo = 2;\n System.out.println(\"TIPO CIDADE\");\n }\n }else {\n tipo = 3;\n System.out.println(\"TIPO ESTADO\");\n }\n \n while(true){\n String linha = bufferReader.readLine();\n if(linha == null){\n break;\n }\n String[] row = linha.split(\",\");\n switch (tipo) {\n case 1:\n Pais pais = new Pais();\n pais.setId(Long.parseLong(row[0]));\n pais.setNome(row[1]);\n pais.setSigla(row[2]);\n new PaisDaoImpl().insert(pais);\n break;\n case 2:\n Cidade cidade = new Cidade();\n cidade.setId(Long.parseLong(row[0]));\n cidade.setNome(row[1]);\n cidade.setEstado(Long.parseLong(row[2]));\n new CidadeDaoImpl().insert(cidade);\n break;\n default:\n Estado estado = new Estado();\n estado.setId(Long.parseLong(row[0]));\n estado.setNome(row[1]);\n estado.setUf(row[2]);\n estado.setPais(Long.parseLong(row[3]));\n new EstadoDaoImpl().insert(estado);\n break;\n }\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public float calcular(float dinero, float precio) {\n // Cálculo del cambio en céntimos de euros \n cambio = Math.round(100 * dinero) - Math.round(100 * precio);\n // Se inicializan las variables de cambio a cero\n cambio1 = 0;\n cambio50 = 0;\n cambio100 = 0;\n // Se guardan los valores iniciales para restaurarlos en caso de no \n // haber cambio suficiente\n int de1Inicial = de1;\n int de50Inicial = de50;\n int de100Inicial = de100;\n \n // Mientras quede cambio por devolver y monedas en la máquina \n // se va devolviendo cambio\n while(cambio > 0) {\n // Hay que devolver 1 euro o más y hay monedas de 1 euro\n if(cambio >= 100 && de100 > 0) {\n devolver100();\n // Hay que devolver 50 céntimos o más y hay monedas de 50 céntimos\n } else if(cambio >= 50 && de50 > 0) {\n devolver50();\n // Hay que devolver 1 céntimo o más y hay monedas de 1 céntimo\n } else if (de1 > 0){\n devolver1();\n // No hay monedas suficientes para devolver el cambio\n } else {\n cambio = -1;\n }\n }\n \n // Si no hay cambio suficiente no se devuelve nada por lo que se\n // restauran los valores iniciales\n if(cambio == -1) {\n de1 = de1Inicial;\n de50 = de50Inicial;\n de100 = de100Inicial;\n return -1;\n } else {\n return dinero - precio;\n }\n }", "private void btnDoImportMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnDoImportMouseClicked\n \n Map<String, Entity> unsavedEntities = iew.getUnsavedEntities();\n List<Udaj> importUdaje = iew.getImportUdaje();\n\n loadingDialog.getProgressBar().setIndeterminate(false);\n loadingDialog.setLoadingTitle(\"Zápis dát do databázy\");\n loadingDialog.setNote(\"Načítavanie...\");\n loadingDialog.setProgress(0);\n loadingDialog.setVisible(true);\n \n importRunning = true;\n \n log.info(\"Importing \"+importUdaje.size()+\" udajs to DB\");\n ExcelDoImport edi = new ExcelDoImport(this, hq, unsavedEntities, importUdaje);\n edi.addPropertyChangeListener(this); \n edi.execute();\n }", "@Test\n public void testAlto() {\n System.out.println(\"alto\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n double expResult = 0.0;\n double result = instance.alto();\n \n // TODO review the generated test code and remove the default call to fail.\n \n }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public static Documento calcularExcento(Documento doc, List<DocumentoDetalleVo> productos) {\n\t\tDouble totalReal = 0.0, exectoReal = 0.0;\n\t\tDouble gravado = 0.0;\n\t\tDouble ivatotal = 0.0;\n\t\tDouble peso = 0.0;\n\t\tDouble iva5 = 0.0;\n\t\tDouble iva19 = 0.0;\n\t\tDouble base5 = 0.0;\n\t\tDouble base19 = 0.0;\n\t\tDouble costoTotal =0.0;\n\t\t//este campo es para retencion del hotel\n\t\tDouble retencion =0.0;\n\t\t// aqui voy toca poner a sumar las variables nuebas para que se reflejen\n\t\t// en el info diario\n\t\tfor (DocumentoDetalleVo dDV : productos) {\n\t\t\tLong productoId = dDV.getProductoId().getProductoId();\n\t\t\tDouble costoPublico = dDV.getParcial();\n\t\t\tDouble costo = (dDV.getProductoId().getCosto()==null?0.0:dDV.getProductoId().getCosto())*dDV.getCantidad();\n\t\t\tDouble iva1 = dDV.getProductoId().getIva().doubleValue() / 100;\n\t\t\tDouble peso1 = dDV.getProductoId().getPeso() == null ? 0.0 : dDV.getProductoId().getPeso();//\n\t\t\tpeso1 = peso1 * dDV.getCantidad();\n\t\t\ttotalReal += costoPublico;\n\t\t\tcostoTotal+=costo;\n\t\t\tdouble temp;\n\t\t\tivatotal = ivatotal + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\tpeso = peso + peso1;\n\t\t\t// si es iva del 19 se agrega al documento junto con la base\n\t\t\tif (iva1 == 0.19) {\n\t\t\t\tiva19 = iva19 + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\t\tbase19 = base19 + (costoPublico / (1 + iva1));\n\t\t\t}\n\t\t\t// si es iva del 5 se agrega al documento junto con la base\n\t\t\tif (iva1 == 0.05) {\n\t\t\t\tiva5 = iva5 + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\t\tbase5 = base5 + (costoPublico / (1 + iva1));\n\t\t\t}\n\t\t\tif (iva1 > 0.0) {\n\t\t\t\ttemp = costoPublico / (1 + iva1);\n\t\t\t\tgravado += temp;\n\n\t\t\t} else {\n\t\t\t\ttemp = costoPublico;\n\t\t\t\t//no suma el excento si es producto retencion\n\t\t\t\tif( productoId!=6l && productoId!=7l) {\n\t\t\t\t\texectoReal += temp;\n\t\t\t\t}else {\n\t\t\t\t\tretencion+= temp;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tdoc.setTotal(totalReal);\n\t\tdoc.setSaldo(totalReal);\n\t\tdoc.setExcento(exectoReal);\n\t\tdoc.setGravado(gravado);\n\t\tdoc.setIva(ivatotal);\n\t\tdoc.setPesoTotal(peso);\n\t\tdoc.setIva5(iva5);\n\t\tdoc.setIva19(iva19);\n\t\tdoc.setBase5(base5);\n\t\tdoc.setBase19(base19);\n\t\tdoc.setTotalCosto(costoTotal);\n\t\tdoc.setRetefuente(retencion);\n\t\treturn doc;\n\t}", "public abstract int calcularOferta();", "public void importaRegole(String file, ArrayList<Sensore> listaSensori, ArrayList<Attuatore> listaAttuatori) {\n ArrayList<String> nomiDispPres = new ArrayList<>();\n\n for (Sensore s : listaSensori) {\n nomiDispPres.add(s.getNome());\n }\n\n for (Attuatore att : listaAttuatori) {\n nomiDispPres.add(att.getNome());\n }\n\n String regoleImport = readFromFile(file);\n\n if (regoleImport.equals(\"\")) {\n System.out.println(\"XX Errore di lettura file. Non sono state inserite regole per l'unita immobiliare XX\\n\");\n return;\n }\n\n String[] regole = regoleImport.split(\"\\n\");\n\n for (String r : regole) {\n try {\n ArrayList<String> dispTrovati = verificaCompRegola(r);\n\n for (String nomeDis : dispTrovati) {\n if (nomeDis.contains(\".\")){\n String nomeS = nomeDis.split(\"\\\\.\")[0];\n\n if (!nomiDispPres.contains(nomeS)) {\n throw new Exception(\"XX Dispositivi Incompatibili all'interno della regola XX\\n\");\n }\n\n Sensore s = listaSensori.stream().filter(sensore -> sensore.getNome().equals(nomeS)).iterator().next();\n String nomeInfo = nomeDis.split(\"\\\\.\")[1];\n\n if (s.getInformazione(nomeInfo) == null)\n throw new Exception(\"XX Regola non compatibile XX\\n\");\n\n\n } else if (!nomiDispPres.contains(nomeDis)) {\n throw new Exception(\"XX Dispositivi Incompatibili all'interno della regola XX\\n\");\n\n }\n }\n System.out.println(\"*** Importazione della regola avvenuta con successo ***\\n\");\n writeRuleToFile(r, true);\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n\n }\n eliminaDoppie(listaSensori,listaAttuatori);\n }", "@Test\n\tpublic void testInserisciFondo() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tfondo = Fondo.visualizzaFondo(nome);\n\t\tassertTrue(\"inserisciFondo() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == importo &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "public void setImporte(java.lang.String importe) {\n this.importe = importe;\n }", "@Test\r\n public void testGetPrecio() {\r\n int expResult = 2;\r\n articuloPrueba.setPrecio(expResult);\r\n int result = articuloPrueba.getPrecio();\r\n assertEquals(expResult, result);\r\n }", "public boolean editaImportoQuota() throws Exception {\n \t\n\t //vado come prima cosa a leggermi il numero della quota in aggiornamento:\n\t String numeroQuotaInAggiornamento = model.getGestioneOrdinativoStep2Model().getDettaglioQuotaOrdinativoModel().getNumeroQuota();\n\t Integer numeroQuotaInAgg = FinUtility.parseNumeroIntero(numeroQuotaInAggiornamento);\n\t \n boolean editaImportoQuota = true;\n \t\n if(model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!=null &&\n \t\t\t!model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().isEmpty() && model.isSonoInAggiornamentoIncasso()){\n \t \n \t //vado quindi ad iterare la lista di sub ordinativi di incasso (le quote)\n \t //cercando quella in aggiornamento:\n \t\t\tList<SubOrdinativoIncasso> elencoSubOrdinativiDiIncasso = model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso();\n\t \tfor (SubOrdinativoIncasso subOrdinativoIncasso: elencoSubOrdinativiDiIncasso) {\n\t\t\t\t\n\t \t\tif(numeroQuotaInAgg!=null && subOrdinativoIncasso.getNumero()!=null\n\t \t\t\t\t&& numeroQuotaInAgg.intValue()==subOrdinativoIncasso.getNumero().intValue()){\n\t \t\t\t\n\t \t\t\t//ho trovato la quota in questione\n\t \t\t\t\n\t \t\t\tif(subOrdinativoIncasso.getSubDocumentoEntrata()!=null){\n\t \t\t\t\t//essendoci un sub documento collegato la quota risulta non editabile\n\t\t \t\t\teditaImportoQuota = false;\n\t\t \t\t\tbreak;\n\t\t \t\t} else {\n\t\t \t\t\t\n\t\t \t\t\t//NON COLLEGATO A DOCUMENTO\n\t\t \t\t\t\n\t\t \t\t\t//FIX per SIAC-4842 Se l'Ordinativo e' in stato I si dovrebbe poter aggiornare l'Importo della quota\n\t\t \t \t// nel caso in cui l'Ordinativo non sia collegato ad un documento. \n\t\t \t \tif(model.getGestioneOrdinativoStep1Model()!=null && \n\t\t \t \t\t\tmodel.getGestioneOrdinativoStep1Model().getOrdinativo()!=null &&\n\t\t \t \t\t\tStatoOperativoOrdinativo.INSERITO.equals(model.getGestioneOrdinativoStep1Model().getOrdinativo().getStatoOperativoOrdinativo())){\n\t\t \t \t\t//la quota risulta editabile:\n\t\t \t \t\teditaImportoQuota = true;\n\t\t \t \t}\n\t\t \t \t//\n\t\t \t\t}\n\t \t\t\t\n\t \t\t}\n\t \t\t\n\t\t\t}\n\n }\n \t\n //ritorno l'esito dell'analisi:\n return editaImportoQuota;\n }", "public String execute() throws Exception {\n\t\t\n\t\tif(upFile != null){\n\t\t\timportService.setUpFile(upFile);\n\t\t} else {\n\t\t\treturn ERROR;\n\t\t}\n\t\t\n\t\tif(importService.importExcel(type) == 1){\n\t\t\treturn SUCCESS;\n\t\t} else {\n\t\t\treturn ERROR;\n\t\t}\n\n\t\t/*\n\t\tif(uploadsHelper.uploadsSingleFile(upFile, upFileFileName , savePath)){\n\t\t\timportService.setUpFile(new File(savePath + \"/\" + upFileFileName));\n\t\t\tif(importService.importWells() == 1){\n\t\t\t\treturn SUCCESS;\n\t\t\t} else {\n\t\t\t\treturn ERROR;\n\t\t\t}\n\t\t} else {\n\t\t\treturn ERROR;\n\t\t}*/\n\t}", "@Test\n public void testMediaMovelSimples() {\n System.out.println(\"MediaMovelSimples\");\n int[] energia = null;\n int linhas = 0;\n double n = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.MediaMovelSimples(energia, linhas, n);\n if (resultArray != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n assertArrayEquals(expResult, resultArray);\n\n }", "@Test\n\tpublic void testPotencia1() {\n\t\tdouble resultado=Producto.potencia(4, 0);\n\t\tdouble esperado=1.0;\n\t\t\n\t\tassertEquals(esperado,resultado);\n\t}", "@Test\n public void testUndoFileImport() {\n\n // create new BulkLoadElementKeys\n BulkLoadElementKey lKey1 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 15 );\n BulkLoadElementKey lKey2 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 16 );\n\n // add rows corresponding to the keys to the BULK_LOAD_ELEMENT table\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey1 ) );\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey2 ) );\n\n // call the undoFileImport method\n iBulkLoadDataService.undoFileImport( iFileImportKey );\n\n // assert that the file import key has been removed from the database\n assertEquals( \"UTL_FILE_IMPORT\", false,\n iFileImportDao.findByPrimaryKey( iFileImportKey ).exists() );\n\n // assert that both the rows in the BULK_LOAD_ELEMENT table have been deleted\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey1 ).exists() );\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey2 ).exists() );\n\n }", "@Test\n public void testModificarCamion() {\n try {\n System.out.println(\"modificarCamion\");\n Camion camion = new Camion(6, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, 1);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.modificarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "public BigDecimal calcolaImportoTotaleDaDedurreSobdocumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()){\n\t\t\tresult = result.add(ds.getImportoDaDedurreNotNull());\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testReadProductAndTaxDaoCorrectly() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n service.calculateNewOrderDataInput(newOrder);\n\n Assert.assertEquals(newOrder.getTaxRate(), (new BigDecimal(\"6.25\")));\n Assert.assertEquals(newOrder.getCostPerSquareFoot(), (new BigDecimal(\"5.15\")));\n Assert.assertEquals(newOrder.getLaborCostPerSquareFoot(), (new BigDecimal(\"4.75\")));\n\n }", "private Step importResults() {\n return stepBuilderFactory.get(STEP_IMPORT_RESULT)\n .tasklet(savingsPotentialImportDataTask)\n .listener(new ExecutionContextPromotionListener() {\n\n @Override\n public void beforeStep(StepExecution stepExecution) {\n ExecutionContext jobContext = stepExecution.getJobExecution().getExecutionContext();\n\n String jobContextKey = STEP_IMPORT_RESULT +\n Constants.PARAMETER_NAME_DELIMITER +\n SavingsPotentialImportDataTask.EnumInParameter.EXECUTION_MODE.getValue();\n jobContext.put(jobContextKey, getExecutionMode(stepExecution.getJobParameters()));\n\n jobContextKey = STEP_IMPORT_RESULT +\n Constants.PARAMETER_NAME_DELIMITER +\n SavingsPotentialImportDataTask.EnumInParameter.SCENARIO_KEY.getValue();\n jobContext.put(jobContextKey, getScenarioKey(stepExecution.getJobParameters()));\n }\n\n @Override\n public ExitStatus afterStep(StepExecution stepExecution) {\n // If execution mode is equal to WATER_IQ, compute consumption clusters\n String mode = getExecutionMode(stepExecution.getJobParameters());\n\n if(mode.equals(MODE_WATER_IQ)) {\n // If data import is successful, compute consumption clusters\n if(stepExecution.getExitStatus().getExitCode().equals(ExitStatus.COMPLETED.getExitCode())) {\n String key = STEP_IMPORT_RESULT +\n Constants.PARAMETER_NAME_DELIMITER +\n SavingsPotentialImportDataTask.EnumInParameter.COMPUTE_CONSUMPTION_CLUSTERS.getValue();\n if(stepExecution.getJobParameters().getString(key, \"true\").equals(\"true\")) {\n schedulerService.launch(\"CONSUMPTION-CLUSTERS\");\n }\n }\n }\n\n return null;\n }\n })\n .build();\n }", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "public int exec(GerenciadorPerifericos gerenciadorPerifericos, ParametroMacroOperacao param){\n\r\n\t\tBigDecimal quantidadeNecessaria = (BigDecimal)gerenciadorPerifericos.getCmos().ler(CMOS.QUANTIDADE_ITEM_NECESSARIO_PARA_SEPARACAO);\r\n\t\t\r\n\t\tTelaAVInicial tela = (TelaAVInicial) ServiceLocator.getInstancia().getTela(ConstantesTela.TELA_AV_INICIAL);\r\n\t\ttela.setCampoQuantidade(\"\");\r\n\t\ttela.setCampoDesconto(\"\");\r\n\t\tgerenciadorPerifericos.atualizaTela(tela);\r\n\r\n\t\tProduto produto = (Produto)gerenciadorPerifericos.getCmos().ler(CMOS.PRODUTO_ATUAL);\r\n\r\n\t\tBigDecimal quantidade = BigDecimal.ZERO;\r\n\t\t\r\n\t\tif (produto.getTipo().getId().equals(TipoProduto.UNIDADE_VARIAVEL)) {\r\n\t\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, quantidadeNecessaria);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tEntradaDisplay entrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\twhile (entrada.getTeclaFinalizadora() == Tecla.CODIGO_ENTER) {\r\n\t\t\t\t\tquantidade = new BigDecimal(entrada.getDado());\r\n\t\t\t\t\tif (quantidade.doubleValue() == BigDecimal.ZERO.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Invalida [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\t\t} else if (quantidadeNecessaria.doubleValue() < quantidade.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Superior [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\r\n\t\t\t\t\t} else {\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} catch (AppException e) {\r\n\t\t\t\treturn ALTERNATIVA_2;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, BigDecimal.ONE);\r\n\t\t\r\n\t\r\n\t\treturn ALTERNATIVA_1;\r\n\t}", "public void distribuirAportes1(){\n\n if(null == comprobanteSeleccionado.getAporteuniversidad()){\n System.out.println(\"comprobanteSeleccionado.getAporteuniversidad() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getAporteorganismo()){\n System.out.println(\"comprobanteSeleccionado.getAporteorganismo() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getMontoaprobado()){\n System.out.println(\"comprobanteSeleccionado.getMontoaprobado() >> NULO\");\n }\n\n try{\n if(comprobanteSeleccionado.getAporteuniversidad().floatValue() > 0f){\n comprobanteSeleccionado.setAporteorganismo(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad()));\n comprobanteSeleccionado.setAportecomitente(BigDecimal.ZERO);\n }\n } catch(NullPointerException npe){\n System.out.println(\"Error de NullPointerException\");\n npe.printStackTrace();\n }\n\n }", "@Test\n public void testCalculerDroitPassage() {\n int nbrDoitPassage = 3;\n double valeurLot = 1000;\n double expResult = 350;\n double result = CalculAgricole.calculerMontantDroitsPassage(nbrDoitPassage, valeurLot);\n assertEquals(\"Montant pour las droits du passage n'était pas correct.\", expResult, result, 0);\n\n }", "public static void main(String[] args){\n String importPath = \"import.CSV\";\n String exportQuery = \"SELECT * FROM PAIS\";\n SQLUtils t = new SQLUtilsImpl();\n File export = t.importCSV(exportQuery);\n //t.runFile(file);\n //t.importCSV(importF);\n //System.out.println(t.executeQuery(\"SELECT * FROM CIDADE WHERE ID = 3000\")); \n \n System.out.println(\"termino\");\n }", "public void run(ImportationFileEntity fileType, String username, String systemFileName, String userFileName, String realImportFilesDir, String importationBatchMediaPath,String mediaFilesPath) {\n\n\t\t// set the status to ...\n\t\tImportControlDTOLite icLite = new ImportControlDTOLite(systemFileName,ImportationManager.IMPORT_SCHEDULED_FOR+\"hoy\", username,userFileName);\n\n\t\timportationManager.createImportControl(icLite);\n\t\t\n\t\tlogger.debug(\"el hilo bretando...\");\n\t\t// set the status to procesando...\n\t\ticLite.setStatus(ImportationManager.IMPORT_IN_PROGRESS);\n\t\timportationManager.updateImportControl(icLite);\n\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\timportFromFile.ImportMedia(realImportFilesDir + systemFileName, fileType, importationBatchMediaPath,mediaFilesPath);\n\n\t\t\t// sets the status to terminado...\n\t\t\t// set the status to procesando...\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\tString literalDate = dateFormat.format(new java.util.Date())\n\t\t\t\t\t.toString();\n\t\t\t\n\t\t\ticLite.setStatus(ImportationManager.IMPORT_DONE + literalDate);\n\t\t\timportationManager.updateImportControl(icLite);\n\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tlogger.error(\"FileNotFoundException\");\n\t\t\tlogger.error(fnfe.getMessage());\n\t\t\ticLite.setStatus(\"Error: FileNotFoundException\");\n\t\t\timportationManager.updateImportControl(icLite);\n\t\t} catch (IOException ioe) {\n\t\t\tlogger.error(\"IOException\");\n\t\t\tlogger.error(ioe.getMessage());\n\t\t\ticLite.setStatus(\"Error: IOException\");\n\t\t\timportationManager.updateImportControl(icLite);\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tlogger.error(\"IllegalArgumentException\");\n\t\t\tlogger.error(iae.getMessage());\n\t\t\ticLite.setStatus(\"Error: IllegalArgumentException\");\n\t\t\timportationManager.updateImportControl(icLite);\n\t\t}\n\n\t}", "Import createImport();", "Import createImport();", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}" ]
[ "0.73937887", "0.64339274", "0.5919905", "0.5895878", "0.57027054", "0.5690652", "0.5682809", "0.56622976", "0.55497545", "0.5539538", "0.55395323", "0.548843", "0.5468299", "0.54626554", "0.5422247", "0.54130656", "0.5408228", "0.5406192", "0.53956854", "0.5389676", "0.5388803", "0.5368882", "0.5367984", "0.53522134", "0.5345108", "0.5330002", "0.5301618", "0.5295763", "0.5289993", "0.52818036", "0.52585334", "0.52581847", "0.5251393", "0.5226413", "0.52191603", "0.52061594", "0.5200296", "0.5196732", "0.5194044", "0.5163689", "0.51337266", "0.5132977", "0.51297325", "0.51089233", "0.5098449", "0.5088808", "0.5085638", "0.5083037", "0.5082496", "0.50802404", "0.5076696", "0.5071249", "0.5070767", "0.5065888", "0.5065732", "0.50640106", "0.5055541", "0.50477165", "0.50467956", "0.50388736", "0.5016531", "0.5015517", "0.50087", "0.4997405", "0.49963167", "0.49947524", "0.4991503", "0.49900892", "0.49899846", "0.49832514", "0.49790916", "0.4977244", "0.4966725", "0.49627846", "0.49548727", "0.49486896", "0.49448797", "0.49402392", "0.493934", "0.49385825", "0.49376556", "0.4929574", "0.49258035", "0.49234805", "0.4920477", "0.49149635", "0.49140605", "0.4913398", "0.49113652", "0.4911264", "0.4901987", "0.48903784", "0.48895285", "0.48890603", "0.4882465", "0.48768872", "0.48709443", "0.48677075", "0.48677075", "0.48599505" ]
0.8193862
0
Test of anchoOruedas method, of class Camiones.
@Test public void testAnchoOruedas() { System.out.println("anchoOruedas"); Camiones instance = new Camiones("C088IJ", true, 10); double expResult = 0.0; double result = instance.anchoOruedas(); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}", "@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}", "@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}", "public void atrapar() {\n if( una == false) {\n\t\tif ((app.mouseX > 377 && app.mouseX < 591) && (app.mouseY > 336 && app.mouseY < 382)) {\n\t\t\tint aleotoridad = (int) app.random(0, 4);\n\n\t\t\tif (aleotoridad == 3) {\n\n\t\t\t\tSystem.out.print(\"Lo atrapaste\");\n\t\t\t\tcambioEnemigo = 3;\n\t\t\t\tsuerte = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\t\t\tif (aleotoridad == 1 || aleotoridad == 2 || aleotoridad == 0) {\n\n\t\t\t\tSystem.out.print(\"Mala Suerte\");\n\t\t\t\tcambioEnemigo = 4;\n\t\t\t\tmal = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\n\t\t}\n }\n\t}", "@Test\n public void testGetRuedas() {\n System.out.println(\"getRuedas\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n int expResult = 0;\n int result = instance.getRuedas();\n \n }", "@Test\n public void executarTesteCarregamentoDados() {\n onView(withId(R.id.btnHistorico)).perform(click());\n\n //Realiza o Swype para esquerda\n onView(withId(R.id.historylist)).perform(swipeUp());\n\n //Realiza o Swype para esquerda\n onView(withId(R.id.graphList)).perform(swipeLeft());\n }", "private boolean testeCheck(Cor cor) {\n\t\tPosicao reiPosicao = rei(cor).getPosicaoXadrez().paraPosicao();\n\t\t// Lista de pecas do oponente\n\t\tList<Peca> pecasOponente = pecasTabuleiro.stream()\n\t\t\t\t.filter(x -> ((PecaXadrez)x).getCor() == oponente(cor))\n\t\t\t\t.collect(Collectors.toList());\n\t\t// para cada peca do oponente verifica seus possiveis movimentos\n\t\tfor (Peca p : pecasOponente) {\n\t\t\tboolean[][] mat = p.movimentosPossiveis();\n\t\t\t//Se for essa posicao for verdadeiro (possivel movimento do oponente)\n\t\t\tif (mat[reiPosicao.getLin()][reiPosicao.getCol()]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testLeerArchivo() {\n System.out.println(\"LeerArchivo\");\n String RutaArchivo = \"\";\n RandomX instance = null;\n Object[] expResult = null;\n Object[] result = instance.LeerArchivo(RutaArchivo);\n assertArrayEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "public void testAvisoCreado() throws Exception {\r\n\r\n\t\t// Comprueba cuántos avisos hay creados\r\n\t\tsolo.clickOnMenuItem(\"Ver Avisos\");\r\n\t\tint items = 0;\r\n\t\tListView lv = null;\r\n\t\tif (!solo.getCurrentListViews().isEmpty()) {\r\n\t\t\tlv = solo.getCurrentListViews().get(0);\r\n\t\t\titems = lv.getCount();\r\n\t\t}\r\n\r\n\t\t// Crea un nuevo aviso\r\n\t\tjava.util.Random r = new Random();\r\n\t\tString nombre = \"AvisoTest\" + r.nextInt(99);\r\n\t\tsolo.clickOnMenuItem(\"Crear Aviso\");\r\n\t\tsolo.enterText(0, nombre);\r\n\t\tsolo.clickOnButton(\"Guardar\");\r\n\r\n\t\tsolo.clickOnMenuItem(\"Ver Avisos\");\r\n\t\tif (!solo.getCurrentListViews().isEmpty()) {\r\n\t\t\tlv = solo.getCurrentListViews().get(0);\r\n\t\t}\r\n\r\n\t\t// Comprueba que haya un elemento más en la lista\r\n\t\tassertTrue((items + 1) == lv.getCount());\r\n\r\n\t\t// Recoge el elemento nuevo\r\n\t\tAviso a = (Aviso) lv.getItemAtPosition(items);\r\n\r\n\t\t// Comprueba que coincidan los datos\r\n\t\tassertTrue(a.getNombreAviso().equals(nombre));\r\n\t}", "@Test\n\tpublic void driverReenvioDeChirpAChorbi() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"chorbi1\", \"Envio1\", \"text1\", this.actorService.findOne(277), 279, null\n\t\t\t}, {\n\t\t\t\t\"chorbi2\", \"Envio2\", \"text2\", this.actorService.findOne(273), 280, null\n\t\t\t}, {\n\t\t\t\t\"chorbi1\", \"Envio4\", \"text4\", this.actorService.findOne(276), 280, IllegalArgumentException.class\n\t\t\t}, {\n\t\t\t\t\"chorbi1\", \"\", \"text1\", this.actorService.findOne(275), 279, ConstraintViolationException.class\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.reenvioDeChirpAChorbi((String) testingData[i][0], (String) testingData[i][1], (String) testingData[i][2], (Actor) testingData[i][3], (int) testingData[i][4], (Class<?>) testingData[i][5]);\n\t}", "public static int BuscarPerrox(Perro BaseDeDatosPerros[], String razas[], int codPerro) {\n int cont = 0;\r\n boolean condicion = false;\r\n char generoPerro, generoPerr, generPerro = 'd';\r\n String razaPerr, tipoRaza;\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n generPerro = generoPerro;\r\n condicion = true;\r\n } else {\r\n System.out.println(\".......................................................\");\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n \r\n tipoRaza=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerr = BaseDeDatosPerros[i].getRaza();\r\n generoPerr = BaseDeDatosPerros[i].getGenero();\r\n\r\n if (tipoRaza.equals(razaPerr) && (generPerro == generoPerr)) {\r\n cont++;\r\n }\r\n\r\n }\r\n\r\n \r\n\r\n return cont;}", "public void jugarMaquinaSola(int turno) {\n if (suspenderJuego) {\n return;\n }\n CuadroPieza cuadroActual;\n CuadroPieza cuadroDestino;\n CuadroPieza MovDestino = null;\n CuadroPieza MovActual = null;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n cuadroActual = tablero[x][y];\n if (cuadroActual.getPieza() != null) {\n if (cuadroActual.getPieza().getColor() == turno) {\n for (int x1 = 0; x1 < 8; x1++) {\n for (int y1 = 0; y1 < 8; y1++) {\n cuadroDestino = tablero[x1][y1];\n if (cuadroDestino.getPieza() != null) {\n if (cuadroActual.getPieza().validarMovimiento(cuadroDestino, this)) {\n if (MovDestino == null) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n } else {\n if (cuadroDestino.getPieza().getPeso() > MovDestino.getPieza().getPeso()) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n if (cuadroDestino.getPieza().getPeso() == MovDestino.getPieza().getPeso()) {\n //Si es el mismo, elijo al azar si moverlo o no\n if (((int) (Math.random() * 3) == 1)) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n }\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n if (MovActual == null) {\n boolean b = true;\n do {//Si no hay mov recomendado, entonces genero uno al azar\n int x = (int) (Math.random() * 8);\n int y = (int) (Math.random() * 8);\n tablero[x][y].getPieza();\n int x1 = (int) (Math.random() * 8);\n int y1 = (int) (Math.random() * 8);\n\n MovActual = tablero[x][y];\n MovDestino = tablero[x1][y1];\n if (MovActual.getPieza() != null) {\n if (MovActual.getPieza().getColor() == turno) {\n b = !MovActual.getPieza().validarMovimiento(MovDestino, this);\n //Si mueve la pieza, sale del while.\n }\n }\n } while (b);\n }\n if (MovActual.getPieza().MoverPieza(MovDestino, this)) {\n this.setTurno(this.getTurno() * -1);\n if (getRey(this.getTurno()).isInJacke(this)) {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!! - te lo dije xD\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n } else {\n JOptionPane.showMessageDialog(null, \"Rey en Hacke - ya t kgste\");\n }\n } else {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Solo por que te ahogaste...!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n }\n }\n if (this.getTurno() == turnoComputadora) {\n jugarMaquinaSola(this.getTurno());\n }\n }", "@Test\n public void testAnalisarAno() throws Exception {\n System.out.println(\"analisarAno\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarAno(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "static boolean alumnoAprobo(int notas[])\n\t\t{\n\t\t\tint notas[] = new int [3];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\treturn false;\n\t\t}", "public void caminar(){\n if(this.robot.getOrden() == true){\n System.out.println(\"Ya tengo la orden, caminare a la cocina para empezar a prepararla.\");\n this.robot.asignarEstadoActual(this.robot.getEstadoCaminar());\n }\n }", "@Test\n public void testAgregarCamion() {\n try {\n System.out.println(\"agregarCamion\");\n Camion camion = new Camion(0, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, null);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.agregarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Test\n void necesitaConductorExperimentado() {\n when(f1.esCompleja()).thenReturn(true);\n when(f2.esCompleja()).thenReturn(true);\n when(f3.esCompleja()).thenReturn(false);\n assertTrue(deposito.necesitaConductorExperimentado());\n\n // Nignuna de sus formaciones es compleja:\n when(f1.esCompleja()).thenReturn(false);\n when(f2.esCompleja()).thenReturn(false);\n when(f3.esCompleja()).thenReturn(false);\n assertFalse(deposito.necesitaConductorExperimentado());\n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\n\tpublic void driverEnvioDeChirpAChorbi() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"chorbi1\", \"Envio1\", \"text1\", this.actorService.findOne(274), null\n\t\t\t}, {\n\t\t\t\t\"chorbi1\", \"Envio2\", \"text2\", this.actorService.findOne(270), null\n\t\t\t}, {\n\t\t\t\t\"manager2\", \"Envio3\", \"text3\", this.actorService.findOne(276), null\n\t\t\t}, {\n\t\t\t\t\"\", \"Envio4\", \"text4\", this.actorService.findOne(274), IllegalArgumentException.class\n\t\t\t}, {\n\t\t\t\t\"chorbi1\", \"Envio1\", \"\", this.actorService.findOne(273), ConstraintViolationException.class\n\t\t\t}, {\n\t\t\t\t\"chorbi1\", \"\", \"text1\", this.actorService.findOne(270), ConstraintViolationException.class\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.envioDeChirpAChorbi((String) testingData[i][0], (String) testingData[i][1], (String) testingData[i][2], (Actor) testingData[i][3], (Class<?>) testingData[i][4]);\n\t}", "@Test\n public void testAnalisarDados() throws Exception {\n System.out.println(\"analisarDados\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n Integer[] expResult = null;\n String time = \"\";\n String tipoOrdenacao = \"\";\n Integer[] resultArray = null;\n \n int[] result = ProjetoV1.analisarDados(dadosFicheiro, linhas, time, tipoOrdenacao);\n if(result != null){\n resultArray= ArrayUtils.converterParaArrayInteger(result); \n }\n \n assertArrayEquals(expResult, resultArray);\n\n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\n public void testSetRuedas() {\n System.out.println(\"setRuedas\");\n int ruedas = 3;\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n instance.setRuedas(ruedas);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test \r\n\t\r\n\tpublic void ataqueDeMagoSinMagia(){\r\n\t\tPersonaje perso=new Humano();\r\n\t\tEspecialidad mago=new Hechicero();\r\n\t\tperso.setCasta(mago);\r\n\t\tperso.bonificacionDeCasta();\r\n\t\t\r\n\t\tPersonaje enemigo=new Orco();\r\n\t\tEspecialidad guerrero=new Guerrero();\r\n\t\tenemigo.setCasta(guerrero);\r\n\t\tenemigo.bonificacionDeCasta();\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(44,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t//ataque normal\r\n\t\tperso.atacar(enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t// utilizar hechizo\r\n\t\tperso.getCasta().getHechicero().agregarHechizo(\"Engorgio\", new Engorgio());\r\n\t\tperso.getCasta().getHechicero().hechizar(\"Engorgio\",enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(20,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t}", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "@Test\n public void testAnalisarDia() throws Exception {\n System.out.println(\"analisarDia\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarDia(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "public boolean checarRespuesta(Opcion[] opciones) {\n boolean correcta = false;\n\n for (int i = 0; i < radios.size(); i++) {\n if (radios.get(i).isSelected() && opciones[i].isCorrecta()) {\n System.out.println(\"Ya le atinaste\");\n correcta = true;\n break;\n }\n }\n\n return correcta;\n }", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "public static void quienHaGanado(Mano[] jugadores, int actual,int carro){\n if(jugadores[actual].getNPiezas()!=0){\n boolean dosIguales=false;\n actual=0;\n for (int i = 1; i < jugadores.length; i++) {\n if(jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()){//El jug i y el actual tienen la misma putnuacion\n if(i==carro){//el jugador i es el carro\n actual=i;\n dosIguales=false;\n }\n else if(actual==carro){//el jugador actual es el carro\n dosIguales=false;\n }\n else{//ninguno es el carro y hay que acudir a un metodo para nombrar a los dos ganadores.\n dosIguales=true;\n }\n }\n if(jugadores[i].getPuntuacion()<jugadores[actual].getPuntuacion()){//el jugador i tiene menor puntuacion que el jugador actual\n actual=i;\n dosIguales=false;\n }\n }\n if(dosIguales){\n System.out.println(\"pene\");\n Excepciones.cambiarColorAzul(\"Y los GANADORES SON....\");\n for (int i = 0; i < jugadores.length; i++) {\n if (jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()) {\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n }\n }\n System.out.println(\"\\u001B[30m\");\n }\n else{\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }\n else {\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }", "private void turnos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size(); i++){\n\t\t\tElemento elemento = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\telemento.jugar();\n\t\t}\n\t}", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "private static void testGetTrayectoMayorDuracionMedia() {\n System.out.println(\"\\nTest de getTrayectoMayorDuracionMedia\");\n try {\n System.out.println(\"El trayecto con mayor duración media es: \" + DATOS.getTrayectoMayorDuracionMedia());\n } catch (Exception e) {\n System.out.println(\"Excepción capturada \\n\" + e);\n }\n }", "@Test\n public void testAlto() {\n System.out.println(\"alto\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n double expResult = 0.0;\n double result = instance.alto();\n \n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n public void testModificarCamion() {\n try {\n System.out.println(\"modificarCamion\");\n Camion camion = new Camion(6, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, 1);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.modificarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Override\r\n\tpublic void arrancar() {\n\t\tSystem.out.println(\"Arrancar motor electrico adaptador\");\r\n\t\tthis.motorElectrico.conectar();\r\n\t\tthis.motorElectrico.activar();\r\n\t}", "@Test\n public void testExecutarAcao() {\n try {\n SBCore.configurar(new ConfiguradorCoreShortMessageService(), SBCore.ESTADO_APP.DESENVOLVIMENTO);\n ItfResposta resposta = FabIntegracaoSMS.ENVIAR_MENSAGEM.getAcao(\"+5531971125577\", \"Teste\").getResposta();\n Assert.notNull(resposta, \"A resposta foi nula\");\n\n if (!resposta.isSucesso()) {\n resposta.dispararMensagens();\n }\n Assert.isTrue(resposta.isSucesso(), \"Falha enviando SMS\");\n\n } catch (Throwable t) {\n SBCore.RelatarErro(FabErro.SOLICITAR_REPARO, \"Erro \" + t.getMessage(), t);\n }\n }", "public void mostrarEstadisticas(String promedio, int rechazados, String caracteristicas){\n System.out.println(\"El tiempo promedio es de: \" + promedio);\n System.out.println(\"La cantidad de carros rechazados es de: \" + rechazados);\n System.out.println(\"El modelo mas usado en parqueos es: \" + caracteristicas);\n }", "public void turnoUsuario(){\r\n System.out.println(\"Turno: \"+ entrenador1.getNombre());\r\n if(evaluarAccion(this.pokemon_activo1, this.pokemon_activo2).equals(\"Cambiar\")){\r\n System.out.println(\"Usuario eligio Cambiar Pokemon\");\r\n pokemon_activo1.setConfuso(false);\r\n pokemon_activo1.setDormido(false);\r\n if(getEquipo1()[0].getDebilitado() == false && getEquipo1()[0]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false && getEquipo1()[1]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false && getEquipo1()[2]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false && getEquipo1()[3]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false && getEquipo1()[4]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false && getEquipo1()[5]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[5]; \r\n }\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 1;\r\n }\r\n else if(evaluarAccion(this.pokemon_activo1, this.pokemon_activo2).equals(\"Atacar\")){\r\n System.out.println(\"Usuario eligio Atacar\");\r\n inflingirDaño(pokemon_activo1.getMovimientos()[(int)(Math.random()*4)], pokemon_activo2, pokemon_activo1);\r\n if(pokemon_activo2.getVida_restante() <= 0){\r\n pokemon_activo2.setVida_restante(0);\r\n pokemon_activo2.setDebilitado(true);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\");\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador1.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador1.getNombre());\r\n System.out.println(equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante());\r\n System.out.println(equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante());\r\n JOptionPane.showMessageDialog(this.vc, equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante()+\"\\n\"+ equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante(), \"Estadisticas finales(vida)\", JOptionPane.INFORMATION_MESSAGE);\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador1);\r\n combate.setPerdedor(entrenador2);\r\n this.termino = true;\r\n }\r\n else if(getEquipo1()[0].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[5]; \r\n } \r\n vc.setjL_nombrepokemon1(pokemon_activo2.getPseudonimo());\r\n vc.setjL_especie1(pokemon_activo2.getNombre_especie());\r\n }\r\n vc.setjL_especie2(pokemon_activo2.getNombre_especie());\r\n vc.setjL_nombrepokemon2(pokemon_activo2.getPseudonimo());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 1;\r\n }\r\n \r\n }", "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nAlpha);\n if (result != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n\n assertArrayEquals(expResult, resultArray);\n\n }", "@Test\r\n\tpublic void debitarRechazado() {\r\n\t}", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public void testaReclamacao() {\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic void actulizar(String cUsuario, ColorAuto viejos, ColorAuto nuevos) {\n\t\t\r\n\t\tConnection conexion = null;\r\n\t\ttry {\r\n\t\t\tconexion = ConexionApp.iniConexion();\r\n\r\n\t\t\tBooleanHolder lhResultado = new BooleanHolder();\r\n\t\t\tStringHolder chTexto = new StringHolder();\r\n\t\t\tapp app = new app(conexion);\r\n\r\n\t\t\tVector vViejos = new Vector();\r\n\t\t\tvViejos.add(viejos.getLista());\r\n\t\t\t\t\t\t\r\n\t\t\tVector vNuevos = new Vector();\r\n\t\t\tvNuevos.add(nuevos.getLista());\r\n\t\t\t\r\n\t\t\tResultSet tt_Viejos = new VectorResultSet(vViejos);\r\n\t\t\tResultSet tt_Nuevos = new VectorResultSet(vNuevos);\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\tapp.as_ctColorAuto_Actualiza(cUsuario, tt_Viejos, tt_Nuevos, lhResultado, chTexto);\t\t\t\r\n\t\t\tthis.setResultado(lhResultado.getBooleanValue());\t\t\t\r\n\t\t\tthis.setMensaje(chTexto.getStringValue());\r\n\r\n\t\t\tapp._release();\r\n\r\n\t\t} catch (Open4GLException | IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tthis.setResultado(true);\r\n\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tConexionApp.finConexion(conexion);\r\n\r\n\t\t\t} catch (Open4GLException | 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\tthis.setResultado(true);\r\n\t\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public void testDecisionEnPasillosDoblar(){\r\n\t\tdireccionActual = Direccion.ARRIBA;\r\n\t\tDireccion futura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, cinco, direccionActual);\r\n\t\tassertEquals(Direccion.DERECHA,futura);\r\n\r\n\t\tdireccionActual = Direccion.IZQUIERDA;\r\n\t\tfutura=cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, cinco, direccionActual);\r\n\t\tassertEquals(Direccion.ABAJO,futura);\r\n\t\t\r\n\t\tdireccionActual = Direccion.IZQUIERDA;\r\n\t\tfutura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, tres, direccionActual);\r\n\t\tassertEquals(Direccion.ARRIBA, futura);\r\n\t\t\r\n\t\tdireccionActual = Direccion.DERECHA;\r\n\t\tfutura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, seis, direccionActual);\r\n\t\tassertEquals(Direccion.ARRIBA, futura);\r\n\t}", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public void interactuarCon(VehiculoAuto vehiculo) {\r\n Vehiculo nuevoVehiculo = Vehiculo4x4.nuevoVehiculo(vehiculo);\r\n this.actualizarMovimiento(nuevoVehiculo, vehiculo);\r\n observador.cambiarVehiculo(nuevoVehiculo);\r\n Logger.instance.log(\"Cambio de vehiculo! Ahora es una 4x4.\\n\");\r\n }", "private static void operacionesJugar() {\r\n\t\tjuego.actualizarJugadores(respuesta);\r\n\t\tJugadorM[] ganadores;\r\n\t\ttry {\r\n\t\t\tint before = juego.getNJugadoresActivos();\r\n\t\t\tganadores = juego.finalizarRonda();\r\n\t\t\tif (ganadores.length == 0) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == before) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == 1) {\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tFINhayGanador(ganadores[0]);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t} else {\r\n\t\t\t\tmostrarGanadoresRonda(ganadores);\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t}\r\n\t\t} catch (AllRondasCompleteException e) {\r\n\t\t\tFINtotalRondasAlcanzadas(e);\r\n\t\t}\r\n\t}", "public synchronized void abilitarAbordaje() {\n abordar = true;\r\n notifyAll();\r\n while(pedidoAbordaje != 0){//Mientras los pasajeros esten abordando\r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Vuelo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //Cuando los pasajeros hayan abordado el vuelo sale\r\n salio = true;\r\n System.out.println(\"El vuelo \" + nro + \" de \" + aerolinea + \" ha despegado\");\r\n }", "public static void menu() {\n\t\tRaton ratones[] = new Raton[3];\n\t\tTeclado teclados[] = new Teclado[3];\n\t\tMonitor monitores[] = new Monitor[3];\n\t\tString[] computadoras = {\"Windows\",\"Linux\",\"Mac\"};\n\t\t\n\t\t// Cargamos los arrays mediante metodos\n\t\tratones = cargaRatones();\n\t\tteclados = cargaTeclados();\n\t\tmonitores = cargaMonitores();\n\t\t\n\t\t// Creamos variables para las opciones seleccionadas\n\t\tOrden orden = new Orden();\n\t\tint opRaton = 1;\n\t\tint opTeclado = 1;\n\t\tint opMonitor = 1;\n\t\tint opComputadora = 1;\n\t\tint opcion = 1;\n\t\tboolean repetir = true; // Variable para repetir la seleccion en caso de excepcion\n\t\t\n\t\t// Bucle menu\n\t\tdo {\n\t\t\tSystem.out.println(\"---- Carga de datos de Computadora ----\");\n\t\t\t// SELECCION DE RATON\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Raton: \");\n\t\t\t\tfor(int i=0; i<ratones.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+ratones[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topRaton = input.nextInt();\n\t\t\t\t\tif(opRaton>0 && opRaton<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE TECLADO\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Teclado: \");\n\t\t\t\tfor(int i=0; i<teclados.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+teclados[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topTeclado = input.nextInt();\n\t\t\t\t\tif(opTeclado>0 && opTeclado<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE MONITOR\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Monitor: \");\n\t\t\t\tfor(int i=0; i<monitores.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+monitores[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topMonitor = input.nextInt();\n\t\t\t\t\tif(opMonitor>0 && opMonitor<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE COMPUTADORA\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione una computadora:\");\n\t\t\t\tfor(int i=0 ; i<computadoras.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+computadoras[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topComputadora = input.nextInt();\n\t\t\t\t\tif(opComputadora>0 && opComputadora<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Se crea la computadora y se agrega a la orden\n\t\t\tComputadora computadora = new Computadora(computadoras[opComputadora-1], monitores[opMonitor-1], teclados[opTeclado-1], ratones[opRaton-1]);\n\t\t\torden.agregarComputadora(computadora);\n\t\t\tSystem.out.println(\"Computadora agregada a la orden!!\");\n\t\t\t\n\t\t\t// OPCIONES PARA SEGUIR AGREGANDO COMPUTADORAS\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Desea agregar otra computadora?: [1. Si] - [2. No]\");\n\t\t\t\ttry {\n\t\t\t\t\topcion = input.nextInt();\n\t\t\t\t\tif(opcion == 1 || opcion == 2) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\\n\");\n\t\t\t\t\t\n\t\t}while(opcion == 1);\n\t\t\n\t\t// Muestra todas las computadoras de la orden\n\t\tSystem.out.println(\"====== Datos de la orden ======\");\n\t\torden.mostrarOrden();\n\t\t\n\t}", "private void verficarChoques() {\n\t\t\n\t\tfor(int i=0; i<JuegoListener.elementos.size();i++){\n\t\t\t\n\t\t\tElemento e1 = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\t//guaramos las coordenadas para verificar si choco contra el tablero\n\t\t\tint coord1 = e1.getPosicion().getX();\n\t\t\tint coord2 = e1.getPosicion().getY();\n\t\t\t//Creamos el rectangulo\n\t\t\tRectangle r1 = new Rectangle(e1.getPosicion().getX(),\n\t\t\t\t\t\t\t\t\t\te1.getPosicion().getY(),\n\t\t\t\t\t\t\t\t\t\te1.getTamanio().getAncho(),\n\t\t\t\t\t\t\t\t\t\te1.getTamanio().getAlto());\n\t\t\t\n\t\t\tfor(int j=i+1; j<JuegoListener.elementos.size(); j++){\n\t\t\t\t\n\t\t\t\t//Creamos el rectangulo\n\t\t\t\tElemento e2 = JuegoListener.elementos.get(j);\n\t\t\t\tRectangle r2 = new Rectangle(e2.getPosicion().getX(),\n\t\t\t\t\t\te2.getPosicion().getY(),\n\t\t\t\t\t\te2.getTamanio().getAncho(),\n\t\t\t\t\t\te2.getTamanio().getAlto());\n\t\t\t\tif(r1.intersects(r2)){\n\t\t\t\t\te1.chocarContra(e2);\n\t\t\t\t\te1.chocarContra(e1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// estaContenidoDentro, hace referencia si no se paso del tope del tablero\n\t\t\t// esta contenidoposito, se fija si las posiciones son positivas \n\t\t\tboolean estaContenidoDentro = ( (coord1 >= this.config.getAnchoTablero()) || (coord2 >= this.config.getAltoTablero()) ); \n\t\t\tboolean estaContenidoPositivo= (coord1<= 0) || (coord2 <= 0 ); \n\t\t\tif(estaContenidoPositivo || estaContenidoDentro){\n\t\t\t\te1.chocarContraPared();\n\t\t\t}\t\t\t\n\t\t}\n\n\n\t}", "private void capturarControles() {\n \t\n \ttxtNombre = (TextView)findViewById(R.id.txtNombre);\n \timagenDestacada = (ImageView)findViewById(R.id.imagenDestacada);\n\t\ttxtDescripcion = (TextView)findViewById(R.id.txtDescripcion);\n\t\tlblTitulo = (TextView)findViewById(R.id.lblTitulo);\n\t\tbtnVolver = (Button)findViewById(R.id.btnVolver);\n\t\tbtnHome = (Button)findViewById(R.id.btnHome);\n\t\tpanelCargando = (RelativeLayout)findViewById(R.id.panelCargando);\n\t}", "@Test\n\tpublic void testDarMotivoIngreso()\n\t{\n\t\tassertEquals(\"El motivo de ingreso esperado es: Accidente\", Motivo.ACCIDENTE, paciente.darMotivoIngreso());\n\t}", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "@Test\r\n public void testCarrega() {\r\n System.out.println(\"carrega\");\r\n Choice choice = null;\r\n int x = 60;\r\n int h = 60;\r\n CarregaChoice.carrega(choice, x, h);\r\n \r\n }", "private void generarAno() {\r\n\t\tthis.ano = ANOS[(int) (Math.random() * ANOS.length)];\r\n\t}", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public static boolean comprobarburbuja(int[] desordenado, int[] ordenado) {\r\n\r\n\t\tif (Arrays.equals(ordenado, burbuja(desordenado))) {\r\n\r\n\t\t\treturn true;\r\n\r\n\t\t}\r\n\r\n\t\telse {\r\n\r\n\t\t\treturn false;\r\n\r\n\t\t}\r\n\r\n\t}", "void testeAcessos() {\n System.out.println(formaDeFalar);// acessa por herança\n System.out.println(todosSabem);\n }", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "public void testAvisoSinNombre() throws Exception {\r\n\r\n\t\t// Comprueba cuántos avisos hay\r\n\t\tsolo.clickOnMenuItem(\"Ver Avisos\");\r\n\t\tint items_old=0, items_new=0;\r\n\t\tListView lv=null;\r\n\t\tif (!solo.getCurrentListViews().isEmpty()){\r\n\t\t\tlv = solo.getCurrentListViews().get(0);\r\n\t\t\titems_old = lv.getCount(); // Numero de avisos creados\r\n\t\t}\r\n\t\t// Intenta crear un aviso sin nombre\r\n\t\tsolo.clickOnMenuItem(\"Crear Aviso\");\r\n\t\tsolo.clearEditText(0); // Se asegura de que no haya nada en el campo de\r\n\t\t\t\t\t\t\t\t// nombre\r\n\t\tsolo.clickOnButton(\"Guardar\"); // Intenta guardar un aviso vacío\r\n\r\n\t\t// Comprueba que no se haya creado un aviso nuevo\r\n\t\tsolo.clickOnMenuItem(\"Ver Avisos\");\r\n\t\tif (!solo.getCurrentListViews().isEmpty()){\r\n\t\t\tlv=solo.getCurrentListViews().get(0);\r\n\t\t\titems_new=lv.getCount();\r\n\t\t}\r\n\t\tassertTrue(items_old==items_new);\r\n\t}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "@Test\n\tpublic void validaRegras1() {\n\t // Selecionar Perfil de Investimento\n\t //#####################################\n\t\t\n\t\t\n\t\tsimipage.selecionaPerfil(tipoperfilvoce);\n\t\t\n\t\t//#####################################\n\t // Informar quanto será aplicado\n\t //#####################################\n\t\t \t\n\t\tsimipage.qualValorAplicar(idvaloraplicacao,valoraplicacao);\n\t\t\n\t\t//#####################################\n\t // Que valor poupar todo mês\n\t //#####################################\n\t\tsimipage.quantopoupartodomes(idvalorpoupar,valorpoupar,opcao);\n\t\t\t\t\n\t \t//#####################################\n\t \t//Por quanto tempo poupar\n\t \t//#####################################\n\t \t\n\t\t//Informar o total de Meses ou Anos\n\t \tsimipage.quantotempopoupar(idperiodopoupar,periodopoupar); \n\t \t\n\t\t//Selecionar Combobox Se Meses ou Anos \n\t \tsimipage.selecionamesano(mesano, idmesano);\n\t \t\n\t \t//#####################################\n\t \t//Clica em Simular\n\t \t//#####################################\n\t \t\n\t \tsimipage.clicaremsimular(); \n\t\t\n\t\t\t\t\n\t}", "public void comprobarEstado() {\n if (ganarJugadorUno = true) {\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (ganarJugadorDos = true) {\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tirar == 9 && !ganarJugadorUno && !ganarJugadorDos) {\n Toast.makeText(this, \"Empate\", Toast.LENGTH_SHORT).show();\n }\n }", "private boolean analizar_intento(String num_intento, String num_generado) {\n\n boolean adivinado = false;\n\n if (validar_numero(num_intento)) { // si el numero cumple los parametros (no comienza con cero)\n\n tvNumeros.setText(num_intento);\n\n if (!es_repetido(lista_intentos_numeros, num_intento)) { // Si el numero NO fue ingresado previamente\n\n boolean iguales = son_iguales(Integer.parseInt(num_intento), Integer.parseInt(num_generado));\n\n if (iguales) { // si son iguales, EL NUMERO FUE ADIVINADO\n\n adivinado = true;\n puntuacion = calcularPuntaje(contador_intentos, dificultadGlobal);\n mostrarDialogVictoria(); // ------------------analizar ubicacion en el codigo ------------\n lista_intentos_numeros.clear(); // vacio la lista de numeros\n lista_intentos_objetos.clear(); // vacio la lista con las descripciones\n listView.setAdapter(adapter);\n btnJugarDeNuevo.setClickable(true);\n btnJugarDeNuevo.setVisibility(View.VISIBLE);\n btnAbandonar.setVisibility(View.INVISIBLE);\n btnAbandonar.setClickable(false);\n } else { // Si NO son iguales, el numero no fue adivinado y debe agregarse a la lista de intentos\n contador_intentos++;\n int cant_regulares = buscar_regulares(num_intento, num_generado);\n int cant_correctos = buscar_correctos(num_intento, num_generado);\n //tvNumeros.setText(\"Correctos: \" + cant_correctos + \" Regulares: \" + cant_regulares);\n //lista_intentos_objetos.add( num_intento + \" --> Correctos: \" + cant_correctos + \" Regulares: \" + cant_regulares); // agrego el intento a la lista\n lista_intentos_numeros.add(num_intento);\n //listView.setAdapter(adapter);\n // con adapter personalizado\n String descripcion = (\"Correctos = \"+cant_correctos + \" | Regulares = \"+cant_regulares);\n Intento intento = new Intento(num_intento, descripcion, Integer.toString(contador_intentos));\n lista_intentos_objetos.add(intento);\n listView.setAdapter(adapter);\n }\n } else { // Si el numero ya fue ingresado\n\n tvNumeros.setText(\"==Numero ya intentado==\");\n }\n } else { // si el numero comienza con cero\n\n tvNumeros.setText(\"Error - La primer cuadricula NO puede ser cero\");\n }\n // retorno un booleano\n return adivinado;\n }", "public boolean checarRespuesta(Opcion[] opciones) {\n boolean correcta = false;\n for (int i = 0; i < radios.size(); i++) {\n if (radios.get(i).isSelected() && opciones[i].isCorrecta()) {\n System.out.println(\"Respuesta correcta\");\n correcta = true;\n break;\n }\n }\n return correcta;\n }", "@Test\r\n public void testVerificaPossibilidade9() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n usucapiao.setRegistroDeOutroImovel(true);\r\n usucapiao.setTamanhoTerreno(250);\r\n usucapiao.setPrazo(2);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"possivel-agora\", result);\r\n }", "private byte[] datosInicio() {\n\tbyte comando = 1;\n\tbyte borna = (byte) sens.getNum_borna();\n\tbyte parametro1 = 0;\n\tbyte parametro2 = 0;\n\tbyte parametro3 = 0;\n\tbyte checksum = (byte) (comando + borna + parametro1 + parametro2 + parametro3);\n\n\t// Duermo para que le de tiempo a generar el puerto\n\ttry {\n\t Thread.sleep(IrrisoftConstantes.DELAY_SENSOR_RUN);\n\t} catch (InterruptedException e1) {\n\t if (logger.isErrorEnabled()) {\n\t\tlogger.error(\"Hilo interrumpido: \" + e1.getMessage());\n\t }\n\t}\n\n\tif (logger.isInfoEnabled()) {\n\t logger.info(\"Churro_Anemometro = \" + comando + \", \" + borna + \", \"\n\t\t + parametro1 + \", \" + parametro2 + \", \" + parametro3 + \", \"\n\t\t + checksum);\n\t}\n\n\tchurro[0] = comando;\n\tchurro[1] = borna;\n\tchurro[2] = parametro1;\n\tchurro[3] = parametro2;\n\tchurro[4] = parametro3;\n\tchurro[5] = checksum;\n\n\tif (!serialcon.serialPort.isOpened()) {\n\t SerialPort serialPort = new SerialPort(\n\t\t serialcon.serialPort.getPortName());\n\t serialcon.setSerialPort(serialPort);\n\t serialcon.conectaserial(sens.getNum_placa());\n\t}\n\n\treturn churro;\n }", "public void giveAmmos(ArrayList<Color> ammos) throws RuntimeException {\n Iterator i = ammos.iterator();\n\n if (ammos.contains(Color.ANY))\n throw new RuntimeException(\"ammos must not contains any\");\n\n while (i.hasNext()) {\n Color temp = (Color) i.next();\n if (temp == Color.RED) {\n if (nRedAmmo < 3) nRedAmmo++;\n } else if (temp == Color.BLUE) {\n if (nBlueAmmo < 3) nBlueAmmo++;\n } else if (temp == Color.YELLOW) {\n if (nYellowAmmo < 3) nYellowAmmo++;\n }\n }\n }", "public static void curar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int curador;\n //condicion de puntos de mana para ejecutar la curacion del jugador\n if(puntosDeMana>=1){\n //acciones de la funcion curar en el jugador\n aleatorio = (numeroAleatorio.nextInt(25-15+1)+15);\n curador= ((nivel+1)*5)+aleatorio;\n puntosDeVida= puntosDeVida+curador;\n puntosDeMana=puntosDeMana-1;\n }\n else{//imprimiendo el mensaje de curacion fallada\n System.out.println(\"no cuentas con Puntos De mana (MP) para curarte\");\n }\n }", "@Test\n public void testCSesionGenerarOrden3() throws Exception {\n System.out.println(\"testCSesionGenerarOrden\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.generarOrden();\n }", "private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n if (tiempoBase>0) {\n tiempoBase -= 0.01f;\n }\n\n camioneta= new Camioneta(texturaCamioneta,ANCHO,60f);\n arrEnemigosCamioneta.add(camioneta);\n\n\n }\n\n //Si el vehiculo se paso de la pantalla, lo borra\n for (int i = arrEnemigosCamioneta.size-1; i >= 0; i--) {\n Camioneta camioneta1 = arrEnemigosCamioneta.get(i);\n if (camioneta1.sprite.getX() < 0- camioneta1.sprite.getWidth()) {\n arrEnemigosCamioneta.removeIndex(i);\n\n }\n }\n }", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "public boolean hayMovimientos() {\r\n boolean ret = false;\r\n for (int i = 0; i < movimientos.length; i++) {\r\n if (movimientos[i]) {\r\n ret = true;\r\n }\r\n }\r\n return ret;\r\n }", "public void turnoSuccessivo(int lancioCorrente) {\n }", "public boolean turno(Jugador jugador, int numJugador) {\n\n int colIn = 0, filaIn = 0, colFn = 0, filaFn = 0;\n boolean movimientoValido = false;\n\n do {\n System.out.println(\"\\n Turno de \" + jugador.getNombre() + \":\");\n\n System.out.println(\"\\n (Si quieres salir escribe 'no')\");\n String ficha = LecturaDatos.leerTexto(\" Elige la ficha a mover (a1): \");\n\n if (ficha.equals(\"no\")) {\n return true;\n }\n colIn = tablero.buscarIndiceLetras(ficha.charAt(0));\n filaIn = Character.getNumericValue(ficha.charAt(1)) - 1;\n\n ficha = LecturaDatos.leerTexto(\" Elige la casilla a la que moveras: \");\n colFn = tablero.buscarIndiceLetras(ficha.charAt(0));\n filaFn = Character.getNumericValue(ficha.charAt(1)) - 1;\n\n boolean sePuede = rectificarCeldas(filaIn, colIn, filaFn, colFn, jugador);\n\n if (sePuede) {\n movimientoValido = comprobarMovimiento(filaIn, colIn, filaFn, colFn, jugador, numJugador);\n if (movimientoValido) {\n realizarMovimiento(tableroPartida[filaIn][colIn], tableroPartida[filaFn][colFn]);\n tablero.mostrarTablero();\n } else {\n System.out.println(\"\\n Movimiento no valido11\");\n }\n } else {\n System.out.println(\"\\n Movimiento no valido12\");\n }\n\n } while (movimientoValido == false);\n\n // realizarMovimiento(tableroPartida[filaIn][colIn],\n // tableroPartida[filaFn][colFn]);\n // tablero.mostrarTablero();\n\n // revisar si la casilla inicial tiene letra\n\n // revisar si es x ^ o\n\n // revisar si la casilla final está vacia\n\n // comprobar si se puede hacer el movimiento\n return false;\n }", "@Test\r\n\tpublic void CT06ConsultarUsuarioPorDados() {\r\n\t\t// cenario\r\n\t\tUsuario usuario = ObtemUsuario.comDadosValidos();\r\n\t\t// acao\r\n\t\ttry {\r\n\t\t\tSystem.out.println(usuario.getRa());\r\n\t\t\tSystem.out.println(usuario.getNome());\r\n\t\t} catch (Exception e) {\r\n\t\t\tassertEquals(\"Dados inválidos\", e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testResponderEjercicio1(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(1));\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tassertTrue(ej1.responderEjercicio(nacho, array));\n\t\tassertFalse(nacho.getEstadisticas().isEmpty());\n\t}", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "public void ordenarXNombre() {\r\n\t\tint random = (int) Math.random() * 3 + 1;\r\n\t\tif(random==1) {\r\n\t\t\tordenarXNombreBurbuja();\r\n\t\t}\r\n\t\telse if(random==2) {\r\n\t\t\tordenarXNombreInsercion();\r\n\t\t}\r\n\t\telse if(random==3) {\r\n\t\t\tordenarXNombreSeleccion();\r\n\t\t}\r\n\t}", "public void realizaSimulacion() {\n do {\n \tif (mundo != null) {\n \t\tSystem.out.println(mundo.toString());\n \t}\n \t\n \tSystem.out.println(\"Elija un comando: \"); // solicitud del comando\n System.out.println(\"Comando > \");\n String opcion = in.nextLine();\n opcion = opcion.toUpperCase();\n\n String[] words = opcion.split(\" \");\n \n try {\n \tif((mundo != null) || (mundo == null && !comandosNoPermitidos(opcion))){\n\t \tComando comando = ParserComandos.parseaComandos(words); //busca el comando comparandolo\n\t \t\n\t\t if (comando != null) {\t\n\t\t\t\t\t\tcomando.ejecuta(this); // Si lo encuentra, lo ejecuta\n\t\t }\n\t\t else {\n\t\t \tSystem.out.println(\"Comando incorrecto\");\n\t\t }\n \t}\n \n } catch (IOException | PalabraIncorrecta | ErrorLecturaTipoCelula | FormatoNumericoIncorrecto | IndicesFueraDeRango | InputMismatchException | PosicionVacia | PosicionOcupada | CelulaIncorrecta e) {\n \t\te.printStackTrace();\n \t}\n \n \n GuiaEjecucion.textoAyuda();\t\t//muestra codigos de mensaje que no afecten a evoluciona\n GuiaEjecucion.pasosDados(); //muestra codigos de mensajes que tengan que ver con los movimientos de las celulas\n } while (!this.simulacionTerminada);\t//en casod e que el usuario esciba el comando SALIR, se termina la ejecuci�n\n }", "@Override\r\n\tpublic void actualizar(IObservableRemoto arg0, Object arg) throws RemoteException {\n\t\tif (arg instanceof CambiosModelo) {\r\n\t\t\tCambiosModelo cambio = (CambiosModelo) arg;\r\n\t\t\tswitch (cambio) {\r\n\t\t\tcase CAMBIO_ESTADO:\r\n\t\t\t\tJuego.ESTADOS e = juego.getEstado();\r\n\t\t\t\tif (e == Juego.ESTADOS.JUGANDO) {\r\n\t\t\t\t\tvista.mostrarJugando();\r\n\t\t\t\t} else if (e == Juego.ESTADOS.CONFIGURANDO) {\r\n\t\t\t\t\tvista.mostrarConfiguracion();\r\n\t\t\t\t} else if (e == Juego.ESTADOS.FINALIZADO) {\r\n\t\t\t\t\tvista.mostrarFinalizado();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase CAMBIO_JUGADOR:\r\n\t\t\t\tvista.mostrarJugadorActual();\r\n\t\t\t\tvista.mostrarJugando();\r\n\t\t\t\tbreak;\r\n\t\t\tcase CAMBIO_LISTA_JUGADORES:\t\t\t\t\r\n\t\t\t\tvista.mostrarListaJugadores();\r\n\t\t\t\tbreak;\r\n\t\t\tcase CAMBIO_PUNTOS:\r\n\t\t\t\tvista.mostrarPuntosActuales();\r\n\t\t\t\tbreak;\r\n\t\t\tcase CAMBIO_PUNTOS_MAXIMOS:\r\n\t\t\t\tvista.mostrarPuntosMaximos();\r\n\t\t\t\tvista.ocultarSetterPuntos();\r\n\t\t\t\tvista.mostrarConfiguracion();\r\n\t\t\t\tbreak;\r\n\t\t\tcase CAMBIO_PUNTOS_RONDA:\r\n\t\t\t\tvista.mostrarPuntosRonda();\r\n\t\t\t\tvista.mostrarJugadoresPuntos();\r\n\t\t\t\tvista.mostrarPalabras();//actualizado\r\n\t\t\t\tbreak;\r\n\t\t\tcase CAMBIO_TIEMPO:\r\n\t\t\t\tvista.mostrarTiempo();\r\n\t\t\t\tvista.ocultarSetterTiempo();\r\n\t\t\t\tbreak;\r\n\t\t\tcase DADOS_TIRADO:\r\n\t\t\t\tvista.mostrarDadosTirado();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JUGADOR_PERDIO:\r\n\t\t\t\tvista.mostrarJugadorPerdio();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\r\n public void testBusquedaBinaria() {\r\n Ejercicio4 ej4 = new Ejercicio4();\r\n ArrayList<Integer> arr = new ArrayList<Integer>();\r\n int dato = 3;\r\n arr.add(1);\r\n arr.add(2);\r\n arr.add(3);\r\n arr.add(4);\r\n arr.add(5);\r\n arr.add(3);\r\n System.out.println(\"Resultado de busqueda binaria:\"+ej4.BusquedaBinaria(arr, dato));\r\n assertNotNull(ej4.BusquedaBinaria(arr, dato));\r\n }", "public void testDecisionEnPasillosSeguirDerecho(){\r\n\t\tdireccionActual = Direccion.ABAJO;\r\n\t\tDireccion futura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, uno, direccionActual);\r\n\t\tassertEquals(futura,Direccion.ABAJO);\r\n\r\n\t\tdireccionActual = Direccion.ARRIBA;\r\n\t\tfutura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, cuatro, direccionActual);\r\n\t\tassertEquals(futura,Direccion.ARRIBA);\r\n\r\n\t\tdireccionActual = Direccion.IZQUIERDA;\r\n\t\tfutura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, nueve, direccionActual);\r\n\t\tassertEquals(Direccion.IZQUIERDA,futura);\t\t\r\n\t}", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }", "public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}", "public void realizaSimulacion(){\r\n\t\t\r\n\t\tEntradaDeDatos entradaDatosUsuario = new EntradaDeDatos();\r\n\t\tEnum_Instrucciones ordenUsuarioEnEnumerado;\r\n\t\tint filaEntrada, columnaEntrada;\r\n\t\tboolean salir = false;\r\n\t\t\r\n\t\t// Mostramos la superficie.\r\n\t\tmundo.mostrarSuperficie();\r\n\t\t\t\r\n\t\twhile(!salir) {\r\n\t\t\t\r\n\t\t\tordenUsuarioEnEnumerado = entradaDatosUsuario.pedirComandoPorConsolaAlUsuario();\r\n\t\t\t\r\n\t\t\t// Dependiendo del enumerado haremos que se ejecute una accion u otra.\r\n\t\t\tswitch(ordenUsuarioEnEnumerado) {\r\n\t\t\tcase PASO:\r\n\t\t\t\t\r\n\t\t\t\tmundo.evoluciona();\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase INICIAR:\r\n\t\r\n\t\t\t\tmundo.iniciar();\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase CREARCELULA:\r\n\t\t\t\t\r\n\t\t\t\t// Almacenamos en la variable filaEntrada el valor que haya introducido el usuario.\r\n\t\t\t\tfilaEntrada = entradaDatosUsuario.devuelveFilaIntroducidaPorConsolaAlUsuario();\r\n\t\t\t\t\r\n\t\t\t\t// Almacenamos en la variable columnaEntrada el valor que haya introducido el usuario.\r\n\t\t\t\tcolumnaEntrada = entradaDatosUsuario.devuelveColumnaIntroducidaPorConsolaUsuario();\r\n\t\t\t\t\r\n\t\t\t\t// Creamos la celula, si se ha podido nos notifica exito, y si no, nos informa de un error.\r\n\t\t\t\tif(mundo.crearCelula(filaEntrada, columnaEntrada)) {\r\n\t\t\t\t\tSystem.out.println(\"Creamos nueva celula en la posicion: (\" +\r\n\t\t\t\t\t\t\t\t\t\tfilaEntrada + \",\" + columnaEntrada + \").\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"Error, no se ha podido crear la celula\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase ELIMINARCELULA:\r\n\t\t\t\r\n\t\t\t\t// Almacenamos en la variable filaEntrada el valor que haya introducido el usuario.\r\n\t\t\t\tfilaEntrada = entradaDatosUsuario.devuelveFilaIntroducidaPorConsolaAlUsuario();\r\n\t\t\t\t\r\n\t\t\t\t// Almacenamos en la variable columnaEntrada el valor que haya introducido el usuario.\r\n\t\t\t\tcolumnaEntrada = entradaDatosUsuario.devuelveColumnaIntroducidaPorConsolaUsuario();\r\n\t\t\t\t\r\n\t\t\t\t// Creamos la c�lula, si se ha podido nos notifica exito, y si no error.\r\n\t\t\t\tif(mundo.eliminarCelula(filaEntrada, columnaEntrada)) {\r\n\t\t\t\t\tSystem.out.println(\"Celula eliminada con exito en la posicion: (\" +\r\n\t\t\t\t\t\t\t\t\t\tfilaEntrada + \",\" + columnaEntrada + \").\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"Error, no se ha podido eliminar la celula\");\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase AYUDA:\r\n\t\t\t\t\r\n\t\t\t\tmostrarAyuda();\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase VACIAR:\r\n\t\t\t\t\r\n\t\t\t\tmundo.vaciar();\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase SALIR:\r\n\t\t\t\t\r\n\t\t\t\tsalir = true;\r\n\t\t\t\t \r\n\t\t\t\tbreak;\r\n\t\t\tcase DESCONOCIDO:\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Error de entrada.\");\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!salir) {\r\n\t\t\t\t\r\n\t\t\t\t// Muestra la superficie.\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tmundo.mostrarSuperficie();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Fin de la simulacion......\");\r\n\t}", "public static ArrayList<ControlVeces> ordenamiento(ArrayList<ControlVeces> arregloNumerosDesordenados){\n ControlVeces variableAuxiliar;\n boolean cambios=false;\n // hace un ordenamiento de los muebles mas vendidos y menos \n while(true){\n cambios=false;\n // si unno es menor que el otro hace cambio \n for(int i=1;i<arregloNumerosDesordenados.size();i++){\n if(arregloNumerosDesordenados.get(i).getVeces()<arregloNumerosDesordenados.get(i-1).getVeces()){\n variableAuxiliar=arregloNumerosDesordenados.get(i);\n arregloNumerosDesordenados.set(i, arregloNumerosDesordenados.get(i-1));\n arregloNumerosDesordenados.set(i-1, variableAuxiliar);\n cambios=true;\n }\n }\n if(cambios==false){\n break;\n }\n } \n return arregloNumerosDesordenados;\n }", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Test \n\t@DisplayName(\"combinacion[i] == null || (combinacionSecreta[i] == null\")\n\tvoid elementoDeCombinacionNoEsCasilla1Test(){ \n\t\tCombinacion combinacionFacil = new Combinacion(dificultadFacil);\n\t\tCombinacion combinacionSecretaFacil = new Combinacion(dificultadFacil);\n\t\tCombinacion combinacionGanaFacil = new Combinacion(dificultadFacil);\n\t\t\n\t\tcombinacionFacil.anadirCasilla(new Casilla(Color.FONDO_ROJOCLARO));\n\t\tcombinacionFacil.anadirCasilla(new Casilla(Color.FONDO_AZUL));\n\t\tcombinacionFacil.anadirCasilla(null);\n\t\tcombinacionFacil.anadirCasilla(new Casilla(Color.FONDO_AMARILLOCLARO));\n\t\t\n\t\tcombinacionSecretaFacil.anadirCasilla(new Casilla(Color.FONDO_ROJOCLARO));\n\t\tcombinacionSecretaFacil.anadirCasilla(new Casilla(Color.FONDO_AMARILLOCLARO));\n\t\tcombinacionSecretaFacil.anadirCasilla(new Casilla(Color.FONDO_MORADOCLARO));\n\t\tcombinacionSecretaFacil.anadirCasilla(new Casilla(Color.FONDO_AZUL));\n\t\n\t\tcombinacionGanaFacil.anadirCasilla(new Casilla(Color.FONDO_ROJOCLARO));\n\t\tcombinacionGanaFacil.anadirCasilla(new Casilla(Color.FONDO_BLANCO));\n\t\tcombinacionGanaFacil.anadirCasilla(new Casilla(Color.FONDO_BLANCO));\n\t\tcombinacionGanaFacil.anadirCasilla(new Casilla(Color.FONDO_NEGRO));\n\t\t\n\t\tAssert.assertEquals(combinacionGanaFacil, combinacionFacil.calcularResultado(combinacionSecretaFacil));\n\t}", "public void alquilarMultimediaAlSocio(){\n lector = new Scanner(System.in);\n int opcion = -1;\n int NIF = 0;\n int pedirElemento;\n String titulo;\n Socio socio;\n\n\n\n NIF = pedirNIF(); // pido el NIF por teclado\n\n if(tienda.exiteSocio(NIF)){ // Si exite, continuo\n socio = tienda.getSocioWithNIF(NIF); // Si exite el socio, busco en la tienda y lo asigno.\n if(!socio.isAlquilando()) { // si el socio no está actualmente alquilando, no continuo\n opcion = pedirElemento(); // Pido el elemento\n\n switch (opcion) {\n case 1:\n tienda.imprimirDatos(tienda.getPeliculas());\n System.out.println(\"Introduce el titulo de la pelicula que quieres: \");\n titulo = lector.nextLine();\n if (tienda.exitePelicula(titulo)) {\n\n tienda.alquilarPeliculaSocio(NIF, titulo);\n System.out.println(\"PELICULA ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite la pelicula \" + titulo + \".\");\n }\n\n\n break;\n case 2:\n tienda.imprimirDatos(tienda.getVideojuegos());\n System.out.println(\"Introduce el titulo del videojuego que quieres: \");\n titulo = lector.nextLine();\n if (tienda.existeVideojuego(titulo)) {\n\n tienda.alquilarVideojuegoSocio(NIF, titulo);\n System.out.println(\"VIDEOJUEGO ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite el videojuego \" + titulo + \".\");\n }\n break;\n default:\n break;\n }\n }else{\n System.out.println(\"El socio \" + socio.getNombre() + \" tiene recargos pendientes.\");\n }\n\n }else{\n System.out.println(\"El socio con NIF \" + NIF + \" no exite.\");\n }\n\n\n\n\n\n\n }", "private void mostrarRota() {\n int cont = 1;\n int contMelhorRota = 1;\n int recompensa = 0;\n int distanciaTotal = 0;\n List<Rota> calculaMR;\n\n System.out.println(\"\\n=================== =================== ========== #Entregas do dia# ========== =================== ===================\");\n for (RotasEntrega re : rotas) {\n Rota r = re.getRotaMenor();\n\n System.out\n .print(\"\\n\\n=================== =================== A \" + cont + \"º possível rota a ser realizada é de 'A' até '\" + r.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (r.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA possivel rota é: \" + printRoute(r));\n System.out.println(\n \"Com a chegada estimada de \" + r.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + r.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n r.getRecompensa() + \" real\" : r.getRecompensa() + \" reais\") + \".\");\n\n\n distanciaTotal += r.getDistancia();\n cont++;\n }\n\n calculaMR = calculaMelhorEntraga(distanciaTotal);\n System.out.println(\"\\n#############################################################################################################################\");\n\n for(Rota reS : calculaMR)\n {\n System.out\n .print(\"\\n\\n=================== =================== A \" + contMelhorRota + \"º rota a ser realizada é de 'A' até '\" + reS.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (reS.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA melhor rota é: \" + printRoute(reS));\n System.out.println(\n \"Com a chegada estimada de \" + reS.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + reS.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n reS.getRecompensa() + \" real\" : reS.getRecompensa() + \" reais\") + \".\");\n\n recompensa += reS.getRecompensa();\n contMelhorRota ++;\n }\n\n System.out.println(\"\\n\\nO lucro total do dia: \" + recompensa + \".\");\n }", "@Test\r\n public void CriterioUnidadSiCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4); \r\n }" ]
[ "0.58462924", "0.58216524", "0.58216524", "0.58216524", "0.5802335", "0.56742287", "0.56632465", "0.5655718", "0.5635685", "0.5563942", "0.5561026", "0.5551117", "0.55427027", "0.55280614", "0.55006576", "0.54906267", "0.54821134", "0.54725975", "0.54629976", "0.5459774", "0.54586667", "0.544274", "0.5442427", "0.5437078", "0.54254043", "0.5382631", "0.53668034", "0.53527856", "0.53284335", "0.53227353", "0.53223455", "0.5312665", "0.53105855", "0.5308045", "0.53068703", "0.5305069", "0.52999514", "0.5292066", "0.52918047", "0.5284733", "0.5277351", "0.5252928", "0.5250684", "0.5232867", "0.52147305", "0.52102417", "0.5207448", "0.5197407", "0.5186474", "0.5185647", "0.51813775", "0.51697093", "0.51557297", "0.51534265", "0.5147329", "0.5136031", "0.5126266", "0.51242095", "0.5121365", "0.512128", "0.51202464", "0.5118328", "0.5112885", "0.5107664", "0.51049346", "0.51007783", "0.5092587", "0.50920475", "0.50896037", "0.5087417", "0.5082813", "0.50805014", "0.5078434", "0.5076319", "0.50726485", "0.5071405", "0.5058484", "0.5053652", "0.50522304", "0.50499165", "0.5047648", "0.50447494", "0.5040689", "0.50397664", "0.50389814", "0.50348425", "0.50326914", "0.5028969", "0.5022911", "0.5021147", "0.5021147", "0.50209004", "0.50177866", "0.50144005", "0.50132275", "0.5009904", "0.50094527", "0.5009261", "0.5007936", "0.5006001" ]
0.7323096
0
Test of alto method, of class Camiones.
@Test public void testAlto() { System.out.println("alto"); Camiones instance = new Camiones("C088IJ", true, 10); double expResult = 0.0; double result = instance.alto(); // TODO review the generated test code and remove the default call to fail. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAgregarCamion() {\n try {\n System.out.println(\"agregarCamion\");\n Camion camion = new Camion(0, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, null);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.agregarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Test\n public void testAnchoOruedas() {\n System.out.println(\"anchoOruedas\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n double expResult = 0.0;\n double result = instance.anchoOruedas();\n \n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n public void testModificarCamion() {\n try {\n System.out.println(\"modificarCamion\");\n Camion camion = new Camion(6, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, 1);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.modificarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "public void testAltaVehiculo(){\r\n\t}", "@Test\n public void testNuevaLr() {\n System.out.println(\"nuevaLr\");\n Alimento a = new Alimento(\"nom1\", \"inst1\", \"tempC1\");\n String uMedida = \"u1\";\n float cantidad = 3.0F;\n Receta instance = new Receta();\n boolean expResult = true;\n boolean result = instance.nuevaLr(a, uMedida, cantidad);\n assertEquals(expResult, result);\n }", "public void testaReclamacao() {\n\t}", "@Test\n\tpublic void obtenerContenidoTest() {\n\t\tArchivo ar = new Imagen(\"test\", \"contenido\");\n\t\tassertEquals(\"contenido\", ar.obtenerContenido());\n\t}", "void pasarALista();", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public void caminar(){\n if(this.robot.getOrden() == true){\n System.out.println(\"Ya tengo la orden, caminare a la cocina para empezar a prepararla.\");\n this.robot.asignarEstadoActual(this.robot.getEstadoCaminar());\n }\n }", "@Test \r\n\t\r\n\tpublic void ataqueDeMagoSinMagia(){\r\n\t\tPersonaje perso=new Humano();\r\n\t\tEspecialidad mago=new Hechicero();\r\n\t\tperso.setCasta(mago);\r\n\t\tperso.bonificacionDeCasta();\r\n\t\t\r\n\t\tPersonaje enemigo=new Orco();\r\n\t\tEspecialidad guerrero=new Guerrero();\r\n\t\tenemigo.setCasta(guerrero);\r\n\t\tenemigo.bonificacionDeCasta();\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(44,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t//ataque normal\r\n\t\tperso.atacar(enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t// utilizar hechizo\r\n\t\tperso.getCasta().getHechicero().agregarHechizo(\"Engorgio\", new Engorgio());\r\n\t\tperso.getCasta().getHechicero().hechizar(\"Engorgio\",enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(20,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t}", "@Test\n public void testGetRuedas() {\n System.out.println(\"getRuedas\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n int expResult = 0;\n int result = instance.getRuedas();\n \n }", "@Test\n public void testCSesionAgregarLiena4() throws Exception {\n System.out.println(\"testCSesionAgregarLiena normal\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n }", "@Test\n public void testGetIdentificador() {\n System.out.println(\"getIdentificador\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n int expResult = 0;\n int result = instance.getIdentificador();\n \n \n }", "@Test\n\tpublic void test03(){\n\t\t //criacao do mock\n\t\tConta mockedConta = mock(Conta.class);\n\t\t// definicao de como o mock deve se comportar\n\t\twhen(mockedConta.getSaldo()).thenReturn(0.0);\n\t\t//verificao se o mock esta se comportando como defenido\n\t\tassertEquals(0.0, mockedConta.getSaldo(), 0.0);\n\t}", "@Test\r\n public void testCarrega() {\r\n System.out.println(\"carrega\");\r\n Choice choice = null;\r\n int x = 60;\r\n int h = 60;\r\n CarregaChoice.carrega(choice, x, h);\r\n \r\n }", "public void testAvisoCreado() throws Exception {\r\n\r\n\t\t// Comprueba cuántos avisos hay creados\r\n\t\tsolo.clickOnMenuItem(\"Ver Avisos\");\r\n\t\tint items = 0;\r\n\t\tListView lv = null;\r\n\t\tif (!solo.getCurrentListViews().isEmpty()) {\r\n\t\t\tlv = solo.getCurrentListViews().get(0);\r\n\t\t\titems = lv.getCount();\r\n\t\t}\r\n\r\n\t\t// Crea un nuevo aviso\r\n\t\tjava.util.Random r = new Random();\r\n\t\tString nombre = \"AvisoTest\" + r.nextInt(99);\r\n\t\tsolo.clickOnMenuItem(\"Crear Aviso\");\r\n\t\tsolo.enterText(0, nombre);\r\n\t\tsolo.clickOnButton(\"Guardar\");\r\n\r\n\t\tsolo.clickOnMenuItem(\"Ver Avisos\");\r\n\t\tif (!solo.getCurrentListViews().isEmpty()) {\r\n\t\t\tlv = solo.getCurrentListViews().get(0);\r\n\t\t}\r\n\r\n\t\t// Comprueba que haya un elemento más en la lista\r\n\t\tassertTrue((items + 1) == lv.getCount());\r\n\r\n\t\t// Recoge el elemento nuevo\r\n\t\tAviso a = (Aviso) lv.getItemAtPosition(items);\r\n\r\n\t\t// Comprueba que coincidan los datos\r\n\t\tassertTrue(a.getNombreAviso().equals(nombre));\r\n\t}", "@Test\n public void testLeerArchivo() {\n System.out.println(\"LeerArchivo\");\n String RutaArchivo = \"\";\n RandomX instance = null;\n Object[] expResult = null;\n Object[] result = instance.LeerArchivo(RutaArchivo);\n assertArrayEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "public void testFilaMediaLlena( )\n {\n setupEscenario3( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 4, marcaJugador1 );\n triqui.marcarCasilla( 5, marcaJugador1 );\n triqui.marcarCasilla( 6, marcaJugador1 );\n assertTrue( triqui.filaMediaLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "@Test\r\n public void testGetAnalizar() {\r\n System.out.println(\"getAnalizar\");\r\n RevisorParentesis instance = null;\r\n String expResult = \"\";\r\n String result = instance.getAnalizar();\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 }", "@Test\n public void testCSesionAgregarLiena6() throws Exception {\n System.out.println(\"testCSesionAgregarLiena 2 lineas iguales\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.agregaLinea(1, 2);\n }", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }", "@Test\n public void testAnalisarAno() throws Exception {\n System.out.println(\"analisarAno\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarAno(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "void testeAcessos() {\n System.out.println(formaDeFalar);// acessa por herança\n System.out.println(todosSabem);\n }", "@Test\n public void testExecutarAcao() {\n try {\n SBCore.configurar(new ConfiguradorCoreShortMessageService(), SBCore.ESTADO_APP.DESENVOLVIMENTO);\n ItfResposta resposta = FabIntegracaoSMS.ENVIAR_MENSAGEM.getAcao(\"+5531971125577\", \"Teste\").getResposta();\n Assert.notNull(resposta, \"A resposta foi nula\");\n\n if (!resposta.isSucesso()) {\n resposta.dispararMensagens();\n }\n Assert.isTrue(resposta.isSucesso(), \"Falha enviando SMS\");\n\n } catch (Throwable t) {\n SBCore.RelatarErro(FabErro.SOLICITAR_REPARO, \"Erro \" + t.getMessage(), t);\n }\n }", "@Test\n\tpublic void testAgregar() {\n\t\tassertFalse(l.agregar(1, -1));\n\t\tassertEquals(0, l.tamanio());\n\t\t\n\t\t//Test de agregar al principio cuando no hay nada\n\t\tassertTrue(l.agregar(2, 0));\n\t\tassertEquals((int)(new Integer(2)), l.elemento(0));\n\t\tassertEquals(1, l.tamanio());\n\t\t\n\t\t//Test de agregar al principio cuando hay algo\n\t\tassertTrue(l.agregar(0, 0));\n\t\tassertEquals((int)(new Integer(0)), l.elemento(0));\n\t\tassertEquals((int)(new Integer(2)), l.elemento(1));\n\t\tassertEquals(2, l.tamanio());\n\t\t\n\t\t//Test de agregar entremedio\n\t\tassertTrue(l.agregar(1, 1));\n\t\tassertEquals((int)(new Integer(0)), l.elemento(0));\n\t\tassertEquals((int)(new Integer(1)), l.elemento(1));\n\t\tassertEquals((int)(new Integer(2)), l.elemento(2));\n\t\tassertEquals(3, l.tamanio());\n\t\t\n\t\t//Test de agregar al final\n\t\tassertTrue(l.agregar(3, 3));\n\t\tassertEquals((int)(new Integer(0)), l.elemento(0));\n\t\tassertEquals((int)(new Integer(1)), l.elemento(1));\n\t\tassertEquals((int)(new Integer(2)), l.elemento(2));\n\t\tassertEquals((int)(new Integer(3)), l.elemento(3));\n\t\tassertEquals(4, l.tamanio());\n\t\t\n\t\t//Test de agregar despues del final\n\t\tassertFalse(l.agregar(4, 5));\n\t\tassertEquals((int)(new Integer(0)), l.elemento(0));\n\t\tassertEquals((int)(new Integer(1)), l.elemento(1));\n\t\tassertEquals((int)(new Integer(2)), l.elemento(2));\n\t\tassertEquals((int)(new Integer(3)), l.elemento(3));\n\t\tassertEquals(4, l.tamanio());\n\t\t\n\t}", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test(expected = Exception.class)\n public void testCSesionAgregarLiena1() throws Exception {\n System.out.println(\"testCSesionAgregarLiena No Login\");\n CSesion instance = new CSesion();\n instance.agregaLinea(1, 2);\n }", "@Test\n public void testCSesionGenerarOrden3() throws Exception {\n System.out.println(\"testCSesionGenerarOrden\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.generarOrden();\n }", "@Test\n public void proximaSequencia(){\n\n }", "@Test\r\n public void testCarregaAny() {\r\n System.out.println(\"carregaAny\");\r\n Choice choice2 = new Choice();\r\n CarregaChoice.carregaAny(choice2);\r\n \r\n \r\n }", "@Test\r\n\tpublic void acreditar() {\r\n\t}", "public void iniciarRotina() {\n }", "@Test\n\tpublic void obtenerNombreTest() {\n\t\tArchivo ar = new Imagen(\"test\", \"contenido\");\n\t\tassertEquals(\"test\", ar.obtenerNombre());\n\t}", "@Test\n public void testBajarLibro() {\n System.out.println(\"BajarLibro\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Libro expResult = new LibrosList().getLibros().get(0);\n Libro result = instance.BajarLibro(libro);\n assertEquals(expResult, result);\n System.out.println(\"Libro dado de baja\\ntitulo:\" + result.getTitulo() + \"\\nISBN: \" + result.getIsbn());\n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\n public void testAltaEjemplar() {\n System.out.println(\"AltaEjemplar\");\n Date fechaAdquisicion = new Date(1, 10, 2223);\n Date fechaDevolucion = new Date(1, 10, 2220);\n Date fechaPrestamo = new Date(1, 10, 2222);\n String idEjemplar = \"idEjemplar\";\n String localizacion = \"localizacion\";\n String observaciones = \"observaciones\";\n BibliotecarioController instance = new BibliotecarioController();\n \n Ejemplar result = instance.AltaEjemplar(fechaAdquisicion, fechaDevolucion, fechaPrestamo, idEjemplar, localizacion, observaciones);\n assertEquals(fechaAdquisicion, result.getFechaAdquisicion());\n assertEquals(fechaDevolucion, result.getFechaDevolucion());\n assertEquals(fechaPrestamo, result.getFechaPrestamo());\n assertEquals(idEjemplar, result.getIdEjemplar());\n assertEquals(localizacion, result.getLocalizacion());\n assertEquals(observaciones, result.getObservaciones());\n\n }", "@Test\n public void testAltaLibro() {\n System.out.println(\"AltaLibro\");\n Long id = new Long(1);\n String isbn = \"isbn\";\n String titulo = \"Don Quijote de la Mancha\";\n String autor = \"Miguel de Cervantes\";\n Integer numPaginas = 10;\n Date fechaAlta = new Date(1,02,2021);\n Integer numDisponibles = 5;\n BibliotecarioController instance = new BibliotecarioController();\n Libro result = instance.AltaLibro(id, isbn, titulo, autor, numPaginas, fechaAlta, numDisponibles);\n assertEquals(id, result.getId());\n assertEquals(isbn, result.getIsbn());\n assertEquals(titulo, result.getTitulo());\n assertEquals(autor, result.getAutor());\n assertEquals(numPaginas, result.getNumPaginas());\n assertEquals(fechaAlta, result.getFechaAlta());\n assertEquals(numDisponibles, result.getNumDisponibles());\n\n }", "@Test\r\n public void testRealizaSorteio() {\r\n \r\n FormaViciada instance = new FormaViciada();\r\n EnumResultados expResult = EnumResultados.PASSA_VEZ;\r\n EnumResultados result = instance.realizaSorteio(new ArrayList<EnumResultados>());\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n\tpublic void nuevoTest() {\n\t\tFactura resultadoObtenido = sut.nuevo(facturaSinId);\n\t\t//resuladoObtenido es unicamente dependiente de nuestro algoritmo\n\t\t\n\t\t//Validar\n\t\tassertEquals(facturaConId.getId(), resultadoObtenido.getId());\n\t\t\n\t}", "@Test\n public void testGetMatricula() {\n System.out.println(\"getMatricula\");\n Usuario instance = null;\n String expResult = \"\";\n String result = instance.getMatricula();\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 }", "@Test\r\n public void testActualizar() throws Exception {\r\n System.out.println(\"actualizar\");\r\n String pcodigo = \"qart\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n \r\n Reparacion preparacion = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n MultiReparacion instance = new MultiReparacion();\r\n instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n \r\n preparacion.setNombre(\"Arreglar retrovisores\");\r\n \r\n instance.actualizar(preparacion);\r\n Reparacion nueva = instance.buscar(pcodigo);\r\n \r\n assertEquals(nueva.getNombre(), \"Arreglar retrovisores\");\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 }", "@Test\n public void testValida() {\n System.out.println(\"valida\");\n Simulacao simulacao = new Simulacao();\n Material mat = new Material();\n mat.setCoeficienteConducao(0.5);\n mat.setCoeficienteConveccao(0.002);\n mat.setCoeficienteRadiacao(0.07);\n mat.setNome(\"Material XPTO\");\n mat.setDescricao(\"Descricao XPTO\");\n mat.setImagem(new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB));\n Sala sala = new Sala(20, 20, 20, 20, 20, 20, 20, 20, mat);\n simulacao.setSala(sala);\n\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n boolean expResult = true;\n boolean result = instance.valida();\n assertEquals(expResult, result);\n }", "private void mostrarEmenta (){\n }", "@Test\n public void testIsApellido_Materno() {\n System.out.println(\"isApellido_Materno\");\n String AM = \"Proud\";\n Entradas instance = new Entradas();\n boolean expResult = false;\n boolean result = instance.isApellido_Materno(AM);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n\n }", "@Test\n public void testMenu() {\n System.out.println(\"menu\");\n Calculadora_teste.menu();\n \n }", "@Test\n public void testArreglarCadena() {\n System.out.println(\"arreglarCadena\");\n String cadena = \"\";\n String expResult = \"\";\n String result = utilsHill.arreglarCadena(cadena);\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 }", "@Test\r\n\tpublic void testAplicarDescuento() {\r\n\t\tArticulo articulo = new Articulo(\"Pantalon\",17.6);\r\n\t\twhen(bbddService.findArticuloByID(any(Integer.class))).thenReturn(articulo);\r\n\t\tDouble res = carritoCompraService.aplicarDescuento(1, 50D);\r\n\t\tSystem.out.println(\"Aplicar Descuento : \" + res);\r\n\t\tassertEquals(8.8, res);\r\n\t\tMockito.verify(bbddService, times(1)).findArticuloByID(any(Integer.class));\r\n\t}", "@Test\n\tpublic void validaRegras1() {\n\t // Selecionar Perfil de Investimento\n\t //#####################################\n\t\t\n\t\t\n\t\tsimipage.selecionaPerfil(tipoperfilvoce);\n\t\t\n\t\t//#####################################\n\t // Informar quanto será aplicado\n\t //#####################################\n\t\t \t\n\t\tsimipage.qualValorAplicar(idvaloraplicacao,valoraplicacao);\n\t\t\n\t\t//#####################################\n\t // Que valor poupar todo mês\n\t //#####################################\n\t\tsimipage.quantopoupartodomes(idvalorpoupar,valorpoupar,opcao);\n\t\t\t\t\n\t \t//#####################################\n\t \t//Por quanto tempo poupar\n\t \t//#####################################\n\t \t\n\t\t//Informar o total de Meses ou Anos\n\t \tsimipage.quantotempopoupar(idperiodopoupar,periodopoupar); \n\t \t\n\t\t//Selecionar Combobox Se Meses ou Anos \n\t \tsimipage.selecionamesano(mesano, idmesano);\n\t \t\n\t \t//#####################################\n\t \t//Clica em Simular\n\t \t//#####################################\n\t \t\n\t \tsimipage.clicaremsimular(); \n\t\t\n\t\t\t\t\n\t}", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "@Test\n\tpublic void testRicercaArticolo1() {\n\t\tString ricerca = \"No\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve essere vuota\", trovati.isEmpty());\n\t}", "@Test\n\tpublic void testDarMotivoIngreso()\n\t{\n\t\tassertEquals(\"El motivo de ingreso esperado es: Accidente\", Motivo.ACCIDENTE, paciente.darMotivoIngreso());\n\t}", "@Test\n public void testRucheVide() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test rucheVide =============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test sur une ruche venant d'être créé :\");\n assertTrue(instance.rucheVide());\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec un insecte a l'origine :\");\n instance.ajoutInsecte(reine, orig);\n assertFalse(instance.rucheVide());\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n }", "public void atrapar() {\n if( una == false) {\n\t\tif ((app.mouseX > 377 && app.mouseX < 591) && (app.mouseY > 336 && app.mouseY < 382)) {\n\t\t\tint aleotoridad = (int) app.random(0, 4);\n\n\t\t\tif (aleotoridad == 3) {\n\n\t\t\t\tSystem.out.print(\"Lo atrapaste\");\n\t\t\t\tcambioEnemigo = 3;\n\t\t\t\tsuerte = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\t\t\tif (aleotoridad == 1 || aleotoridad == 2 || aleotoridad == 0) {\n\n\t\t\t\tSystem.out.print(\"Mala Suerte\");\n\t\t\t\tcambioEnemigo = 4;\n\t\t\t\tmal = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\n\t\t}\n }\n\t}", "@Test\n public void testBajarEjemplar() {\n System.out.println(\"BajarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar expResult = new EjemplaresList().getEjemplares().get(0);\n Ejemplar result = instance.BajarEjemplar(ejemplar);\n assertEquals(expResult, result);\n System.out.println(\"Ejemplar dado de baja\\nid:\" + result.getIdEjemplar());\n }", "public void testAuta()\n\t{\n\t\tNakladak nakl = new Nakladak(Simulator.getCas());\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\t//cesta po prekladistich\n\t\tfor(int i=4001;i<4009;i++)\n\t\t{\n\t\t\tnakl.cesta.add(i);\n\t\t}\n\t\tnakl.kDispozici = false;\n\t\tnakl.jede = true;\n\t\tsim.addObserver(nakl);\n\t\t\n\t\tthis.vozy.add(nakl);\n\t\t\n\t}", "@Test\n public void testGerarAnaliseEstatisticas() {\n System.out.println(\"gerarAnaliseEstatisticas\");\n Empresa empresa = inicializarModeloTeste();\n GerarAnaliseEstatisticaRevisaoController instance = new GerarAnaliseEstatisticaRevisaoController(empresa);\n boolean expResult = true;\n boolean result = instance.gerarAnaliseEstatisticas();\n assertEquals(expResult, result);\n }", "@Ignore\n\t@Test\n\tpublic void testaMediaDeZeroLance() {\n\t\tLeilao leilao = new Leilao(\"Iphone 7\");\n\n//\t\tcriaAvaliador();\n\t\tleiloeiro.avalia(leilao);\n\n\t\t// validacao\n\t\tassertEquals(0, leiloeiro.getValorMedio(), 0.0001);\n\t}", "@Test(expected = Exception.class)\n public void testCSesionAgregarLiena3() throws Exception {\n System.out.println(\"testCSesionAgregarLiena cantidad Negativa\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(-1, 2);\n }", "@Test\n\tpublic void testLecturaFrom(){\n\t\tassertEquals(esquemaEsperado.getExpresionesFrom().toString(), esquemaReal.getExpresionesFrom().toString());\n\t}", "@Test\n\tpublic void deveEntenderLancesEmOrdemCrescente() {\n\t\tLeilao leilao = new LeilaoDataBuilder().leilao(\"Playstation 3 Novo\")\n\t\t\t\t.lance(maria, 250.0)\n\t\t\t\t.lance(joao, 300.0)\n\t\t\t\t.lance(jose, 400.0).constroi();\n\n\t\t// Parte 2: executando a acao\n\t\t// Avaliador leiloeiro = new Avaliador(); // invocado no método auxiliar @Before\n\t\tleiloeiro.avalia(leilao);\n\n\t\t// Parte 3: comparando a saida com o esperado\n//\t\tdouble maiorEsperado = 400;\n//\t\tdouble menorEsperado = 250;\n\t\t// afirmar iqualdade do maior esperado com o que o leiloeiro retorna\n//\t\tassertEquals(maiorEsperado, leiloeiro.getMaiorLance(), 0.0001);\n//\t\tassertEquals(menorEsperado, leiloeiro.getMenorLance(), 0.0001);\n\n\t\t//com Hamcrest - mais legível\n\t\t// afirmar que o retorno de leiloeiro é igual a 400.0\n\t\tassertThat(leiloeiro.getMaiorLance(), equalTo(400.0));\n\t\tassertThat(leiloeiro.getMenorLance(), equalTo(250.0));\n\n\t}", "@Test\n public void testCarregarTrimestre() {\n }", "private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n if (tiempoBase>0) {\n tiempoBase -= 0.01f;\n }\n\n camioneta= new Camioneta(texturaCamioneta,ANCHO,60f);\n arrEnemigosCamioneta.add(camioneta);\n\n\n }\n\n //Si el vehiculo se paso de la pantalla, lo borra\n for (int i = arrEnemigosCamioneta.size-1; i >= 0; i--) {\n Camioneta camioneta1 = arrEnemigosCamioneta.get(i);\n if (camioneta1.sprite.getX() < 0- camioneta1.sprite.getWidth()) {\n arrEnemigosCamioneta.removeIndex(i);\n\n }\n }\n }", "public void anexaEvidencia(Object casoDeTeste) {\n Log.info(\"Anexando evidencia\");\n Allure.addAttachment((String) casoDeTeste,\n new ByteArrayInputStream(((TakesScreenshot) getDriver()).getScreenshotAs(OutputType.BYTES)));\n }", "@Test\r\n\tpublic void debitarRechazado() {\r\n\t}", "@Test\r\n public void testMostrar() {\r\n System.out.println(\"mostrar\");\r\n Integer idUsuario = null;\r\n Usuario instance = new Usuario();\r\n Usuario expResult = null;\r\n Usuario result = instance.mostrar(idUsuario);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test(expected = Exception.class)\n public void testCSesionAgregarLiena5() throws Exception {\n System.out.println(\"testCSesionAgregarLiena cantidad Negativa(2)\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.agregaLinea(-2, 2);\n }", "@Test\n public void testAnalisarDia() throws Exception {\n System.out.println(\"analisarDia\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarDia(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "@Test\n public void testMediaPesada() {\n System.out.println(\"mediaPesada\");\n int[] energia = null;\n int linhas = 0;\n double nAlpha = 0;\n Double[] expResult = null;\n Double[] resultArray = null;\n double[] result = ProjetoV1.mediaPesada(energia, linhas, nAlpha);\n if (result != null) {\n resultArray = ArrayUtils.converterParaArrayDouble(result);\n }\n\n assertArrayEquals(expResult, resultArray);\n\n }", "public abstract boolean comprobar(Articulo articulo);", "@Test\n public void testMueve()\n throws MenorQueUnoException {\n Tablero tablero4 = new Tablero(2);\n\n boolean obtenido = false;\n\n assertEquals(tablero4.mueve(3), false);\n assertEquals(tablero4.mueve(4), false);\n assertEquals(tablero4.mueve(1), true);\n\n assertEquals(tablero4.mueve(1), false);\n assertEquals(tablero4.mueve(4), false);\n assertEquals(tablero4.mueve(2), true);\n\n assertEquals(tablero4.mueve(1), false);\n assertEquals(tablero4.mueve(2), false);\n assertEquals(tablero4.mueve(3), true);\n\n assertEquals(tablero4.mueve(2), false);\n assertEquals(tablero4.mueve(3), false);\n assertEquals(tablero4.mueve(4), true);\n\n assertEquals(tablero4.mueve(2), true);\n\n }", "@Test\n\tpublic void obtenerPrevisualizacionTest() {\n\t\tString contenido = \"contenido\";\n\t\tArchivo ar = new Imagen(\"test\", contenido);\n\t\tString expected = \"test\" + \"(\" + ar.obtenerTamaño() + \" bytes, \" + ar.obtenerMimeType() + \")\";\n\t\tassertEquals(expected, ar.obtenerPreVisualizacion());\n\t}", "public void testbusquedaAvanzada() {\n// \ttry{\n\t \t//indexarODEs();\n\t\t\tDocumentosVO respuesta =null;//this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"agregatodos identificador:es-ma_20071119_1_9115305\", \"\"));\n\t\t\t/*\t\tObject [ ] value = { null } ;\n\t\t\tPropertyDescriptor[] beanPDs = Introspector.getBeanInfo(ParamAvanzadoVO.class).getPropertyDescriptors();\n\t\t\tString autor=autor\n\t\t\tcampo_ambito=ambito\n\t\t\tcampo_contexto=contexto\n\t\t\tcampo_descripcion=description\n\t\t\tcampo_edad=edad\n\t\t\tcampo_fechaPublicacion=fechaPublicacion\n\t\t\tcampo_formato=formato\n\t\t\tcampo_idiomaBusqueda=idioma\n\t\t\tcampo_nivelEducativo=nivelesEducativos\n\t\t\tcampo_palabrasClave=keyword\n\t\t\tcampo_procesoCognitivo=procesosCognitivos\n\t\t\tcampo_recurso=tipoRecurso\n\t\t\tcampo_secuencia=conSinSecuencia\n\t\t\tcampo_titulo=title\n\t\t\tcampo_valoracion=valoracion\n\t\t\tfor (int j = 0; j < beanPDs.length; j++) {\n\t\t\t\tif(props.getProperty(\"campo_\"+beanPDs[j].getName())!=null){\n\t\t\t\t\tvalue[0]=\"valor a cargar\";\n\t\t\t\t\tsetPropValue(Class.forName(ParamAvanzadoVO.class.getName()).newInstance(), beanPDs[j],value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t*/\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\tcomprobarRespuesta(respuesta.getResultados()[0]);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pruebatitulo\", \"\"));\n//\t\t\tSystem.err.println(\"aparar\");\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nivel*\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nived*\"));\n//\t\t\tassertNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nivel\"));\n//\t\t\tassertNotNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"\", \"nivel\"));\n//\t\t\tassertNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"}f2e_-i3299(--5\"));\n//\t\t\tassertNull(respuesta.getResultados());\n\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"verso estrofa\", \"universal pepito\",\"\"));\n//\t\t\tassertNull(respuesta.getResultados());\n\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"descwildcard\", \"ambito0\",\"\"));\n//\t\t\tassertEquals(respuesta.getSugerencias().length, 1);\n//\t\t\t\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"desc*\", \"\",\"\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 2);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion compuesta\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion pru*\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"descwild*\", \"\",\"\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n// \t}catch(Exception e){\n//\t\t \tlogger.error(\"ERROR: fallo en test buscador-->\",e);\n//\t\t\tthrow new RuntimeException(e);\n// \t}finally{\n// \t\teliminarODE(new String [] { \"asdf\",\"hjkl\"});\n// \t}\n\t\t\tassertNull(respuesta);\n }", "@Test\n public void testCarregarAno() {\n }", "@Test\r\n public void testMostrar() {\r\n System.out.println(\"mostrar\");\r\n Integer idDepto = null;\r\n Departamento instance = new Departamento();\r\n Departamento expResult = null;\r\n Departamento result = instance.mostrar(idDepto);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\r\n\tpublic void testConstructorSinParameros(){\n\t\tassertNotNull(ventaAD.getProductos());\r\n\t\tassertNotNull(ventaAD.getProductosSinStock());\r\n\t\t\r\n\t\t// Veo que la forma de pago sea efectivamente una forma de pago\r\n\t\tassertTrue(ventaAD.getFormaDePago().equals(fp));\r\n\r\n\t}", "@Test\n public void showReceitas(){\n\n verify(receitasListFragment).showReceitas(receitas);\n }", "@Test\n public void testAnalisarMes() throws Exception {\n System.out.println(\"analisarMes\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarMes(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }", "@Test\r\n public void testCaso3_1() {\r\n System.out.println(\"Caso 3.1: Datos de entrada: cadena de 5 caracteres. Resultado esperado (Salida): La\\n\" +\r\n\"aplicación no permite el ingreso del dato y muestra un mensaje de error. \\n\");\r\n Ejercicio1 instance = new Ejercicio1();\r\n String expResult = \"Cadena incorrecta. La longuitud de la cadena es < 6\";\r\n String result = instance.IntroducirCadena(\"cinco\");\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testLukitseRuutu() {\n System.out.println(\"lukitseRuutu\");\n int x = 0;\n int y = 0;\n Peli peli = new Peli(new Alue(3, 1));\n peli.lukitseRuutu(x, y);\n ArrayList[] lista = peli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isLukittu());\n }", "@Test\n\tpublic void testLecturaNombre() {\n\t\tassertTrue(!esquemaReal.getNombrePatron().equals(\"\"));\n\t}", "@Test\n public void testCSesionVerInfoUsuario() throws Exception {\n System.out.println(\"testCSesionVerInfoUsuario\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"[email protected]\", \"tim123\");\n DataUsuario dU = instance.verInfoPerfil();\n }", "@Test\n public void testIsNombre() {\n System.out.println(\"isNombre\");\n String Nom = \"Alfred\";\n Entradas instance = new Entradas();\n boolean expResult = false;\n boolean result = instance.isNombre(Nom);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n public void testIsApellido_Paterno() {\n System.out.println(\"isApellido_Paterno\");\n String AP = \"ulfric\";\n Entradas instance = new Entradas();\n boolean expResult = false;\n boolean result = instance.isApellido_Paterno(AP);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\n\tpublic void testAltaAgenda() throws Exception {\n\t\tString guid = \"123456789\";\n\t\tAgendaNegocio negocio = new AgendaNegocio();\n\t\ttry {\n\t\t\t//negocio.registraActividadDiaria(actividadDiaria);\n\t\t\t//negocio.eliminaActividadDiaria(actividadDiaria);\n\n\t\t\tActividadDiariaDocumentosDTO doc = new ActividadDiariaDocumentosDTO();\n\t\t\tdoc.setIdActividadDiaria(1);\n\t\t\tdoc.setCodigoActividad(\"INCI\");\n\t\t\tdoc.setUrl(\"URL\");\n\t\t\tdoc.setUsuarioAlta(\"usuario\");\n\t\t\tnegocio.registraActividadDiariaDocumentos(doc);\n\t\t} catch (Exception ex) {\n\t\t\tLogHandler.debug(guid, this.getClass(), \"Error\");\n\t\t}\n\t}", "public void testOctaedre() {\n\t\t\t\n\t\t\tSolide i = Octaedre.octaedre();\n\t\t\t\n\t\t\t/* creation de points qui ont les memes coordonnees que ceux qui \n\t\t\t * constituent notre solide (car octaedre() n'a pas de parametres)\n\t\t\t */\n\t\t\t\n\t\t\tPoint p1 = new Point(-25, 0,-25);\n\t\t\tPoint p2 = new Point(-25, 0,25);\n\t\t\tPoint p3 = new Point(25, 0,-25);\n\t\t\tPoint p4 = new Point(25,0,25);\n\t\t\tfloat hauteur = (float) (50/Math.sqrt(2));\n\t\t\t// on se sert de la hauteur pour donnee les coordonees des sommets manquant\n\t\t\tPoint p5 = new Point(0, hauteur,0);\n\t\t\tPoint p6 = new Point(0,-hauteur,0);\n\t\t\t\n\t\t\t//On teste si les points de l'octaedre i sont bien les memes que ceux créés\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getAbscisse()==(p1.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(1).getAbscisse()==(p2.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(5).getAbscisse()==(p3.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(3).getAbscisse()==(p4.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(2).getAbscisse()==(p5.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(0).getAbscisse()==(p6.getAbscisse()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getOrdonnee()==(p1.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(1).getOrdonnee()==(p2.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(5).getOrdonnee()==(p3.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(3).getOrdonnee()==(p4.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(2).getOrdonnee()==(p5.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(0).getOrdonnee()==(p6.getOrdonnee()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getProfondeur()==(p1.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(1).getProfondeur()==(p2.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(5).getProfondeur()==(p3.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(3).getProfondeur()==(p4.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(2).getProfondeur()==(p5.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(0).getProfondeur()==(p6.getProfondeur()));\n\t\t\t\n\t\t\t//On teste si les faces de l'octaedre contiennent bien les points créés\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(0).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(1).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(2).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(3).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p6));\n\t\t\n\t\t\tassertTrue(i.getFaces().get(4).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(5).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(6).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(7).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p6));\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "@Test(expected = Exception.class)\n public void testCSesionAgregarLiena2() throws Exception {\n System.out.println(\"testCSesionAgregarLiena Es Proveedor\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"[email protected]\", \"tim123\");\n instance.agregaLinea(1, 2);\n }", "@Test\n\tpublic void testResponderEjercicio1(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(1));\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tassertTrue(ej1.responderEjercicio(nacho, array));\n\t\tassertFalse(nacho.getEstadisticas().isEmpty());\n\t}", "public void testBuscarEntradas(){\r\n\t\t\r\n\t\t\r\n\t\tfinal Mock mock=mock(MaquilaManager.class);\r\n\t\tmock.expects(once()).method(\"buscarEntradasDeMaterial\")\r\n\t\t\t.withNoArguments()\r\n\t\t\t.will(returnValue(new BasicEventList<EntradaDeMaterial>()))\r\n\t\t\t;\r\n\t\tmodel.setMaquilaManager((MaquilaManager)mock.proxy());\r\n\t\t//assertNotNull(model.getEntradas());\r\n\t\t//assertFalse(model.getEntradas().isEmpty());\r\n\t\t\r\n\t}", "public EmbarcacionAMotor(String matricula, double eslora, int anoFabricacion, Persona persona, int potenciaCV)\n {\n super(matricula, eslora, anoFabricacion, persona);\n this.potenciaCV = potenciaCV;\n }", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "@Test\n public void quandoCriaPilhaVazia(){\n // QUANDO (PRE-CONDIÇAO) E FAÇA (EXECUÇAO DO COMPORTAMENTO):\n PilhaString pilha1 = new PilhaString();\n \n // VERIFICAR (CHECK)\n assertTrue(pilha1.isVazia()); //true\n }", "public void testFilaInferiorLlena( )\n {\n setupEscenario1( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 7, marcaJugador1 );\n triqui.marcarCasilla( 8, marcaJugador1 );\n triqui.marcarCasilla( 9, marcaJugador1 );\n assertTrue( triqui.filaInferiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "@Test\n public void testCont() {\n System.out.println(\"cont\");\n int[] serieTemp = new int[1];\n int expResult = 0;\n int result = ProjetoV1.cont(serieTemp);\n assertEquals(expResult, result);\n\n }", "@Test\r\n\tpublic void testFineTurno() {\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tthis.giocatori.add(new Giocatore());\r\n\t\t\tfor (int j = 0; j < 4; j++) {\r\n\t\t\t\tthis.giocatori.get(i).getFamigliare(j).setPosizionato(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.giocatoreDiTurno = this.giocatori.get(1);\r\n\t\tassertTrue(this.giocatoreDelTurnoSuccessivo(giocatoreDiTurno) == null);\r\n\t}" ]
[ "0.7308816", "0.6910069", "0.6841422", "0.66745687", "0.66297704", "0.6532912", "0.6506662", "0.64821446", "0.64007866", "0.63845396", "0.6384432", "0.6358531", "0.63389796", "0.6319535", "0.6310544", "0.6280969", "0.6271632", "0.6262084", "0.625875", "0.6242025", "0.6215809", "0.6207832", "0.62056476", "0.61768943", "0.61726296", "0.61664003", "0.61249346", "0.6106722", "0.60816693", "0.6072077", "0.6058125", "0.6057335", "0.60521764", "0.6048163", "0.6040208", "0.6030754", "0.6023397", "0.6004154", "0.59972674", "0.59970236", "0.59948224", "0.598905", "0.5970365", "0.5968703", "0.5952598", "0.5948559", "0.59411985", "0.59322906", "0.5930773", "0.59051096", "0.5895457", "0.58919203", "0.58747786", "0.58729523", "0.587262", "0.5870154", "0.58659136", "0.5865333", "0.58577484", "0.58540344", "0.5853655", "0.5834556", "0.5816777", "0.57924116", "0.57891506", "0.5787185", "0.578242", "0.5781124", "0.57798046", "0.577426", "0.577171", "0.5771581", "0.5766907", "0.5766564", "0.5764114", "0.5760109", "0.5758383", "0.5757155", "0.57527673", "0.5744965", "0.5742212", "0.57414067", "0.5738251", "0.5737673", "0.5734597", "0.57268625", "0.57241565", "0.5711365", "0.5701312", "0.5700637", "0.57006234", "0.56924474", "0.5684643", "0.56810206", "0.5678575", "0.56785107", "0.5677803", "0.5677514", "0.5674554", "0.56721973" ]
0.72520024
1
Test of getIdentificador method, of class Camiones.
@Test public void testGetIdentificador() { System.out.println("getIdentificador"); Camiones instance = new Camiones("C088IJ", true, 10); int expResult = 0; int result = instance.getIdentificador(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetId_edificio() {\n System.out.println(\"getId_edificio\");\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n int expResult = 1;\n int result = instance.getId_edificio();\n assertEquals(expResult, result);\n \n }", "public int getIdentificador() {\r\n\t\treturn identificador;\r\n\t}", "public String getIdentificacion()\r\n/* 123: */ {\r\n/* 124:223 */ return this.identificacion;\r\n/* 125: */ }", "String getIdentifiant();", "@Test\r\n\tpublic void testGetId() {\r\n\t\tassertEquals(1, breaku1.getId());\r\n\t\tassertEquals(2, externu1.getId());\r\n\t\tassertEquals(3, meetingu1.getId());\r\n\t\tassertEquals(4, teachu1.getId());\r\n\t}", "@Test\n public void testGetId() {\n System.out.println(\"getId\");\n Reserva instance = new Reserva();\n Long expResult = null;\n Long result = instance.getId();\n assertEquals(expResult, result);\n \n }", "public String getIdentificacao() {\n\t\treturn identificacao;\n\t}", "@Test\n\tpublic void validarPeticionGetIdRegistro() {\n\t\t// Arrange\n\t\tString idRegistro = \"1\";\n\t\tRegistro registro = new RegistroTestDataBuilder().withIdRegistro(\"1\").build();\n\t\tMockito.when(registroRepository.findOne(registro.getIdVehiculo())).thenReturn(registro);\n\t\t// Act\n\t\tRegistro registroRecuperado = registroService.getRegistroById(idRegistro);\n\t\t// Assert\n\t\tAssert.assertEquals(\"Valor recuperado es igual\", registroRecuperado.getIdRegistro(), idRegistro);\n\t}", "public int getIdenti() {\r\n return identi;\r\n }", "public void testGetIdUtilisateur() {\n System.out.println(\"getIdUtilisateur\");\n Utilisateur instance = new Utilisateur(1, 1, \"User\", \"Nom\", \"Prenom\", \"MotPasse\", \"Courriel\");\n int expResult = 1;\n int result = instance.getIdUtilisateur();\n assertEquals(expResult, result);\n }", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Test\n\tpublic void testGetIdFondo() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tfondo = Fondo.visualizzaFondo(nome);\n\t\tassertTrue(\"getIdFondo() non funziona correttamente\", fondo.getId_Fondo() == idFondo);\n\t}", "@Test\n public void testGetCidadaoPorNumero() {\n System.out.println(\"getCidadaoPorNumero\");\n Cidadao cid = new Cidadao(\"teste\", 999999999, \"@\", \"4490-479\", 1111);\n Reparticao instance = new Reparticao(\"porto\", 1111, 4490, new ArrayList<>());\n instance.addCidadao(cid);\n\n Cidadao expResult = cid;\n Cidadao result = instance.getListaCidadao().getCidadaoPorNumero(999999999);\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void getIdTest() {\n\t}", "@Test\n public void testGetIdUsuario() {\n System.out.println(\"getIdUsuario\");\n Usuario instance = new Usuario();\n int expResult = 4;\n instance.setIdUsuario(expResult);\n int result = instance.getIdUsuario();\n assertEquals(expResult, result);\n }", "@Test\n public void testObtenerid() {\n System.out.println(\"obtenerid\");\n String usuario = \"\";\n cursoDAO instance = new cursoDAO();\n int expResult = 0;\n int result = instance.obtenerid(usuario);\n assertEquals(expResult, result);\n \n }", "public int buscar_usuario_id(VOUsuario usu) throws RemoteException {\n int linea=-1;\n int id=Integer.parseInt(usu.getId());\n try {\n FileReader fr = new FileReader(datos);\n BufferedReader entrada = new BufferedReader(fr);\n String s, texto=\"\";\n int n, num, l=0;\n boolean encontrado=false;\n while((s = entrada.readLine()) != null && !encontrado) {\n\n texto=s;\n n=texto.indexOf(\" \");\n texto=texto.substring(0, n);\n num=Integer.parseInt(texto);\n\n if(num==id) {\n encontrado=true;\n linea=l;\n }\n l++;\n }\n entrada.close();\n } catch (FileNotFoundException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n } catch (IOException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n }\n return linea;\n }", "@Test\n public void identifierTest() {\n assertEquals(\"ident1\", authResponse.getIdentifier());\n }", "public java.lang.Long getIdentificador()\r\n {\r\n return this.identificador;\r\n }", "public int getCampoIdentificacao() {\r\n return campoIdentificacao;\r\n }", "@Test\r\n public void testGetIdUsuario() {\r\n System.out.println(\"getIdUsuario\");\r\n Usuario instance = new Usuario();\r\n Integer expResult = null;\r\n Integer result = instance.getIdUsuario();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public void identificacion(){\n System.out.println(\"¡Bienvenido gamer!\\nSe te solcitaran algunos datos con el fin de personalizar tu experiencia :)\");\n System.out.println(\"Porfavor, ingresa tu nombre\");\n nombre = entrada.nextLine();\n System.out.println(\"Bien, ahora, ingresa tu gamertag\");\n gamertag = entrada.nextLine();\n System.out.println(\"Ese es un gran gamertag, ahora, diseña tu id, recuerda que tiene que ser un numero entero\");\n id = entrada.nextInt();\n //se le pide al usuario que elija la dificultad del juego, cada dificultad invocara a un metodo distinto\n System.out.println(\"Instrucciones:\\nTienes un numero limitado de intentos, tendras que encontrar las minas para asi desactivarlas\\n¿Quien no queria ser un Desactivador de minas de niño?\");\n System.out.println(\"Selecciona la dificultad\\n1. Facil\\n2. Intermedia\\n3 .Dificil\\n4. Imposible\");\n decision = entrada.nextInt();\n //creo el objeto que me llevara al juego, mandandolo con mis variables recopiladas\n Buscaminas dear = new Buscaminas(nombre, gamertag, id);\n if (decision==1){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Facil\");\n //vamos para el juego\n dear.juego();\n }else if(decision==2){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Intermedia\");\n dear.juego1();\n\n }else if(decision==3){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Dificil\");\n dear.juego2();\n\n }else if(decision==4){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Imposible\");\n dear.juego3();\n\n }\n\n\n\n }", "@Test\n public void getID() {\n\n }", "@Test\r\n public void testEGet_int() {\r\n System.out.println(\"get\");\r\n \r\n \r\n UsuarioDao instance = new UsuarioDao();\r\n Usuario obj = instance.getByUserName(\"admin\");\r\n \r\n int usuarioId = obj.getId();\r\n \r\n Usuario result = instance.get(usuarioId);\r\n \r\n assertEquals(usuarioId, result.getId());\r\n }", "@Test\n public void testGetUsuarioId() {\n System.out.println(\"getUsuarioId\");\n Reserva instance = new Reserva();\n long expResult = 0L;\n long result = instance.getUsuarioId();\n assertEquals(expResult, result);\n \n }", "@Test\n\tpublic void testRechercherParIdentifiant() {\n\t\tProfesseur prof;\n\t\tString idprof = \"ID-PROF-2018-1\";\n\t\tprof = professeurServiceEmp.rechercherParIdentifiant(idprof);\n\t\tAssert.assertNotNull(prof);\n\t}", "@Test\n public void getPerroByIDPerroTest() {\n PerroEntity entity = Perrodata.get(0);\n \n PerroEntity resultEntity = perroLogic.getPerroByIDPerro(entity.getIdPerro());\n Assert.assertNotNull(resultEntity);\n \n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getIdPerro(), resultEntity.getIdPerro());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n Assert.assertEquals(entity.getEdad(), resultEntity.getEdad());\n Assert.assertEquals(entity.getRaza(), resultEntity.getRaza());\n }", "@Test\n public void testGenerarIdentificacion() {\n }", "public int getIdentifiant() {\r\n return identifiant;\r\n }", "@Test\n public void testfindNoteCoursByIdRepositoryIsInvoked() throws NoteCoursNotFoundException {\n when(ncRepository.findById(eq(ncExpected.getId()))).thenReturn(Optional.ofNullable(ncExpected));\n // when: la méthode findActiviteById est invoquée\n ncService.findNoteCoursById(ncExpected.getId());\n // then: la méthode findById du Repository associé est invoquée\n verify(ncService.getNoteCoursRepository()).findById(ncExpected.getId());\n }", "public int getcodigoIdentificador() {\r\n\t\treturn codigoIdentificador;\r\n\t}", "@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n \r\n int expResult = 0;\r\n int result = instance.getId();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "@Test\n\tpublic void testGetID() {\n\t}", "@Test\r\n public void getIdTest() {\r\n assertEquals(1, testTile.getId());\r\n }", "public void setIdentificacion(String identificacion)\r\n/* 128: */ {\r\n/* 129:233 */ this.identificacion = identificacion;\r\n/* 130: */ }", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "@Test\r\n public void testGetID() {\r\n user = userFactory.getUser(\"C\");\r\n assertEquals(\"121\", user.getID());\r\n }", "@Test\r\n public void testGetId() {\r\n System.out.println(\"getId\");\r\n Integrante instance = new Integrante();\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 }", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "public void testGetIdentifier() {\n\t\tassertEquals(item.getIdentifier(),\"cup8\");\r\n\t}", "public void testGetId(){\n exp = new Experiment(\"10\");\n assertEquals(\"getId does not work\", \"10\", exp.getId());\n }", "public void testGetEfoAccessionIdByName() {\n EFOServiceImpl impl = new EFOServiceImpl();\n assertEquals(\"EFO_0000860\", impl.getEfoAccessionIdByName(\"thymus\"));\n }", "@Test\n public void testGetIdPaciente() {\n System.out.println(\"getIdPaciente\");\n Paciente instance = new Paciente();\n Integer expResult = null;\n Integer result = instance.getIdPaciente();\n assertEquals(expResult, result);\n \n }", "public void obtenerID();", "@Test\n public void getId() {\n UUID id = UUID.randomUUID();\n User u = new User(id.toString(), name, mail, pass, address, gender);\n Assert.assertEquals(u.getId(), id);\n }", "@Test\r\n public void testCarregarPeloId() throws Exception {\r\n tx.begin();\r\n Categoria categoria = new Categoria(\"Teste carregar categoria por id\");\r\n dao.persiste(categoria);\r\n tx.commit();\r\n em.refresh(categoria);\r\n Long id = categoria.getId();\r\n Categoria result = dao.carregarPeloId(id);\r\n assertEquals(categoria, result);\r\n \r\n }", "public void testGetInvoiceStatusByIdAccuracy() throws Exception {\n InvoiceStatus invoiceStatus = invoiceSessionBean.getInvoiceStatus(1);\n\n assertEquals(\"The id of the returned value is not as expected\", 1, invoiceStatus.getId());\n }", "public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }", "public void setIdentificacionEntrega(java.lang.String identificacionEntrega) {\r\n this.identificacionEntrega = identificacionEntrega;\r\n }", "@Test\n public void testFindUsuario_Integer() {\n System.out.println(\"findUsuario\");\n Integer id = 1;\n String user = \"[email protected]\";\n UsuarioJpaController instance = new UsuarioJpaController(emf);\n Usuario expResult = instance.findUsuario(user);\n Usuario result = instance.findUsuario(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n if (!result.equals(expResult)) {\n fail(\"El test de busqueda por usuario ha fallado\");\n }\n }", "public Identificador(int linea, int columna, String Archivo, String identificador) {\n super(linea, columna, Archivo);\n this.id = identificador;\n }", "private boolean idSaoIguais(Service servico, Service servicoAComparar) {\n return servico.getId() == servicoAComparar.getId();\n }", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "@Test\n public void getComentarioTest() {\n ComentarioEntity entity = data.get(0);\n ComentarioEntity nuevaEntity = comentarioPersistence.find(dataLibro.get(0).getId(), entity.getId());\n Assert.assertNotNull(nuevaEntity);\n Assert.assertEquals(entity.getNombreUsuario(), nuevaEntity.getNombreUsuario());\n }", "public Empleado buscarEmpleadoPorId(String identificacion){\n Empleado empleadoEncontrado = null ;\n for (int i = 0; i < listaEmpleados.size(); i++) {\n if(listaEmpleados.get(i).getIdentificacion().equalsIgnoreCase(identificacion)){\n empleadoEncontrado = listaEmpleados.get(i);\n }\n }\n return empleadoEncontrado;\n }", "@Test\n void getByIdSuccess(){\n CompositionInstrument retrievedCompositionInstrument = (CompositionInstrument) genericDao.getById(3);\n assertEquals(\"Mellits\", retrievedCompositionInstrument.getComposition().getComposer().getLastName());\n\n }", "@Test\n public void testGetId() {\n System.out.println(\"getId\");\n DTO_Ride instance = dtoRide;\n long expResult = 1L;\n long result = instance.getId();\n assertEquals(expResult, result);\n }", "@Test\n public void getEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity resultEntity = especieLogic.getSpecies(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n }", "public java.lang.String getIdentificacionEntrega() {\r\n return identificacionEntrega;\r\n }", "@Test\n public void testGetLibroId() {\n System.out.println(\"getLibroId\");\n Reserva instance = new Reserva();\n long expResult = 0L;\n long result = instance.getLibroId();\n assertEquals(expResult, result);\n \n }", "@Test\n public void testGetId() {\n System.out.println(\"Animal.getId\");\n assertEquals(252, animal1.getId());\n assertEquals(165, animal2.getId());\n }", "public SgfensPedidoProducto[] findWhereIdentificacionEquals(String identificacion) throws SgfensPedidoProductoDaoException;", "@Test\r\n public void testGetIdDepto() {\r\n System.out.println(\"getIdDepto\");\r\n Departamento instance = new Departamento();\r\n Integer expResult = null;\r\n Integer result = instance.getIdDepto();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n public void getDeviceIDTest() {\n assertEquals(deviceID, device.getDeviceID());\n }", "public boolean irAIdentificador(String identificador){\n Nodo_Bodega Temporal = Nodo_bodega_inicial;\n if(Size==0){\n return false;\n }else{\n if(Temporal.obtenerIdentificador().equals(identificador)){\n Nodo_bodega_actual = Temporal;\n return true;\n }\n }\n \n while(Temporal.obtenerSiguiente()!= null){\n Temporal = Temporal.obtenerSiguiente();\n if(Temporal.obtenerIdentificador().equals(identificador)){\n Nodo_bodega_actual = Temporal;\n return true;\n }\n }\n return false;\n }", "@Test\n\tpublic void test08FindByIdCRIL() throws SQLException {\n\t\tEntreprise entreprise = spentreprise.findById(0);\n\t\tassertThat(entreprise, is(Entreprise.CRIL));\n\t}", "public Integer getIdLocacion();", "public String getInoId();", "public void testGetIdRole() {\n System.out.println(\"getIdRole\");\n Utilisateur instance = null;\n int expResult = 0;\n int result = instance.getIdRole();\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 }", "public abstract java.lang.Long getId_causal_peticion();", "int getIdNum();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();" ]
[ "0.66410196", "0.65534115", "0.65396017", "0.642745", "0.63907206", "0.6350497", "0.63329154", "0.6307897", "0.62589693", "0.62577033", "0.62403506", "0.6236449", "0.6201871", "0.61984015", "0.61977094", "0.6170809", "0.61700946", "0.61686933", "0.6145152", "0.6125937", "0.609506", "0.6091288", "0.6071377", "0.606788", "0.6056985", "0.6056482", "0.6026081", "0.6008556", "0.5961723", "0.5955172", "0.5931861", "0.5923551", "0.5920373", "0.5916794", "0.5916534", "0.59143895", "0.59065205", "0.5894059", "0.58919924", "0.58910877", "0.58898914", "0.58894366", "0.5883201", "0.5875881", "0.5874659", "0.5861113", "0.5860052", "0.58479446", "0.58426994", "0.583327", "0.5828892", "0.58223665", "0.5821538", "0.5808411", "0.5806652", "0.5781215", "0.5780228", "0.5773214", "0.5763807", "0.5742602", "0.5735554", "0.573391", "0.5731945", "0.5730369", "0.5727623", "0.5711677", "0.570825", "0.57020026", "0.56902856", "0.5689963", "0.5687226", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444", "0.56823444" ]
0.7419622
0
To load all mydog plugin properties
void loadMyDogPluginParams(MyDogPluginsParams myDogPluginsParams);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void load() {\n tag = getPlugin().getConfig().getString(\"Tag\");\n hologram_prefix = getPlugin().getConfig().getString(\"Prefix\");\n hologram_time_fixed = getPlugin().getConfig().getBoolean(\"Hologram_time_fixed\");\n hologram_time = getPlugin().getConfig().getInt(\"Hologram_time\");\n hologram_height = getPlugin().getConfig().getInt(\"Hologram_height\");\n help_message = getPlugin().getConfig().getStringList(\"Help_message\");\n hologram_text_lines = getPlugin().getConfig().getInt(\"Max_lines\");\n special_chat = getPlugin().getConfig().getBoolean(\"Special_chat\");\n radius = getPlugin().getConfig().getBoolean(\"Radius\");\n radius_distance = getPlugin().getConfig().getInt(\"Radius_distance\");\n chat_type = getPlugin().getConfig().getInt(\"Chat-type\");\n spectator_enabled = getPlugin().getConfig().getBoolean(\"Spectator-enabled\");\n dataType = getPlugin().getConfig().getInt(\"Data\");\n mySQLip = getPlugin().getConfig().getString(\"Server\");\n mySQLDatabase = getPlugin().getConfig().getString(\"Database\");\n mySQLUsername = getPlugin().getConfig().getString(\"Username\");\n mySQLPassword = getPlugin().getConfig().getString(\"Password\");\n\n }", "public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }", "private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}", "public void setupProperties() {\n // left empty for subclass to override\n }", "private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "public void loadPlugins() {\n\n ServiceLoader<Pump> serviceLoader = ServiceLoader.load(Pump.class);\n for (Pump pump : serviceLoader) {\n availablePumps.put(pump.getPumpName(), pump);\n }\n\n Pump dummy = new DummyControl();\n availablePumps.put(dummy.getName(), dummy);\n\n Pump lego = new LegoControl();\n availablePumps.put(lego.getName(), lego);\n }", "public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }", "public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "private void loadPreferences() {\n\t\tXSharedPreferences prefApps = new XSharedPreferences(PACKAGE_NAME);\n\t\tprefApps.makeWorldReadable();\n\n\t\tthis.debugMode = prefApps.getBoolean(\"waze_audio_emphasis_debug\", false);\n }", "public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}", "public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "default void load(Map<String, Object> properties)\r\n {\r\n }", "@Override\r\n protected void loadStrings() {\r\n \r\n mfile = settings.getProperty( \"mfile\" );\r\n rmode = settings.getProperty( \"rmode\" );\r\n cmap = settings.getProperty( \"cmap\" );\r\n cmapMin = Double.parseDouble( settings.getProperty( \"cmapMin\" ) );\r\n cmapMax = Double.parseDouble( settings.getProperty( \"cmapMax\" ) );\r\n \r\n }", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "PropertyRegistry getPropertyRegistry();", "private PropertyUtil(){\n\t\ttry{\n\t\t\tloadURL();\n\t\t\tRuntime.getRuntime().addShutdownHook(new UtilShutdownHook());\n\t\t}catch(IOException ioe){\n\t\t\tLOGGER.error(\"Unable to load Property File\\n\"+ioe);\n\t\t}\n\t\tLOGGER.debug(\"INSTANTIATED\");\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}", "public\n YutilProperties()\n {\n super(new Properties());\n }", "@Override\n\tpublic void loadProperties() {\n\t\tPropertySet mPropertySet = PropertySet.getInstance();\n\t\tdouble kp = mPropertySet.getDoubleValue(\"angleKp\", 0.05);\n\t\tdouble ki = mPropertySet.getDoubleValue(\"angleKi\", 0.0);\n\t\tdouble kd = mPropertySet.getDoubleValue(\"angleKd\", 0.0001);\n\t\tdouble maxTurnOutput = mPropertySet.getDoubleValue(\"turnPIDMaxMotorOutput\", Constants.kDefaultTurnPIDMaxMotorOutput);\n\t\tmAngleTolerance = mPropertySet.getDoubleValue(\"angleTolerance\", Constants.kDefaultAngleTolerance);\n\t\tsuper.setPID(kp, ki, kd);\n\t\tsuper.setOutputRange(-maxTurnOutput, maxTurnOutput);\n\t}", "protected void loadProperties(ClassLoader al, URL url) {\n try (InputStream is = url.openStream()) {\n if (is == null) {\n log(\"Could not load definitions from \" + url,\n Project.MSG_WARN);\n return;\n }\n Properties props = new Properties();\n props.load(is);\n for (String key : props.stringPropertyNames()) {\n name = key;\n classname = props.getProperty(name);\n addDefinition(al, name, classname);\n }\n } catch (IOException ex) {\n throw new BuildException(ex, getLocation());\n }\n }", "private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "private void initializePropertySubstitution() {\n log.debug(\"Initializing property substitution\");\r\n String discoveryBundleName = discoveryBootstrapService.getSymbolicBundleName();\r\n DiscoveryConfiguration discoveryConfiguration = getConfiguration(discoveryBundleName, DiscoveryConfiguration.class);\r\n\r\n // initialize discovery; may start a local discovery server and/or query existing servers\r\n Map<String, String> discoveryProperties = discoveryBootstrapService.initializeDiscovery(discoveryConfiguration);\r\n\r\n // register the properties learned from discovery (if any) under the \"discovery\" namespace\r\n this.addSubstitutionProperties(\"discovery\", discoveryProperties);\r\n }", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "Properties getProperties();", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static void registerToSystem() {\n Enumeration<?> enumeration = properties.propertyNames();\r\n while (enumeration.hasMoreElements()) {\r\n String name = (String) enumeration.nextElement();\r\n String value = properties.getProperty(name);\r\n if (value != null) {\r\n System.setProperty(name, value);\r\n }\r\n }\r\n\t}", "public PSBeanProperties()\n {\n loadProperties();\n }", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "private List<Object> pluginPropertyDefinitions() {\n List<Object> extensions = new ArrayList<>();\n extensions.add(getProperty(Constants.ENABLED, \"Plugin enabled\",\n \"Are Teams notifications enabled in general?\",\n \"false\", PropertyType.BOOLEAN));\n extensions.add(getProperty(Constants.BYPASS_HTTPS_VALIDATION, \"Bypass HTTPS Validation\",\n \"Bypass SSL/TLS certificate validation on HTTPS requests (useful for proxies)\",\n \"false\", PropertyType.BOOLEAN));\n extensions.add(getProperty(Constants.PROXY_IP, \"Proxy Server\",\n \"Domain or IP address of proxy server to use\",\n \"\", PropertyType.STRING));\n extensions.add(getProperty(Constants.PROXY_PORT, \"Proxy Port\",\n \"Port for the proxy server\",\n \"8080\", PropertyType.INTEGER));\n extensions.add(getProperty(Constants.PROXY_USER, \"Proxy User\",\n \"User name for proxy authentication\",\n \"\", PropertyType.STRING));\n extensions.add(getProperty(Constants.PROXY_PASS, \"Proxy Password\",\n \"Password for proxy authentication\",\n \"\", PropertyType.PASSWORD));\n return extensions;\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}", "@Override\n\tpublic void onLoad() {\n\t\tdescription = this.getDescription();\n\t\tpluginConfiguration = this.getConfig();\n\t\tLogHelper.initLogger(\"BukkitWebby\", \"Minecraft\");\n\t}", "public LoadTestProperties() {\n }", "public void loadPluginsStartup();", "public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}", "private void readPreferences() {\n configAutonomousCommand();\n }", "public void loadValues() {\n color.setText(bluej.getExtensionPropertyString(PROFILE_LABEL, \"\"));\r\n }", "public static void registerProps() throws API_Exception {\n\t\tProperties.registerProp( DOCKER_IMG_VERSION, Properties.STRING_TYPE, DOCKER_IMG_VERSION_DESC );\n\t\tProperties.registerProp( SAVE_CONTAINER_ON_EXIT, Properties.BOOLEAN_TYPE, SAVE_CONTAINER_ON_EXIT_DESC );\n\t\tProperties.registerProp( DOCKER_HUB_USER, Properties.STRING_TYPE, DOCKER_HUB_USER_DESC );\n\t}", "private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "void bootPlugins() {\n\t\tList<List<String>>vals = (List<List<String>>)properties.get(\"PlugInConnectors\");\n\t\tif (vals != null && vals.size() > 0) {\n\t\t\tString name, path;\n\t\t\tIPluginConnector pc;\n\t\t\tList<String>cntr;\n\t\t\tIterator<List<String>>itr = vals.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tcntr = itr.next();\n\t\t\t\tname = cntr.get(0);\n\t\t\t\tpath = cntr.get(1);\n\t\t\t\ttry {\n\t\t\t\t\tpc = (IPluginConnector)Class.forName(path).newInstance();\n\t\t\t\t\tpc.init(this, name);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogError(e.getMessage(), e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Dictionary<String, Object> getProperties();", "@Override\n public void initialize() {\n for (final PluginInfo<AbstractVolumeManagerPlugin> info : getPlugins()) {\n String name = info.getName();\n if (name == null || name.isEmpty()) {\n name = info.getClassName();\n }\n // Add the plugin to the list of known animals.\n plugins.put(name, info);\n }\n }", "public void loadConfig() {\n\t}", "public void loadConfigs() {\n\t configYML = new ConfigYML();\n\t configYML.setup();\n }", "protected Properties loadData() {\n/* 362 */ Properties mapData = new Properties();\n/* */ try {\n/* 364 */ mapData.load(WorldMapView.class.getResourceAsStream(\"worldmap-small.properties\"));\n/* 365 */ } catch (IOException e) {\n/* 366 */ e.printStackTrace();\n/* */ } \n/* */ \n/* 369 */ return mapData;\n/* */ }", "protected void initVars() {}", "@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}", "private void loadOtherSetting(GameEngine engine, CustomProperties prop) {\r\n\t\tsuper.loadOtherSetting(engine, prop, \"spf\");\r\n\t\tint playerID = engine.getPlayerID();\r\n\t\tojamaHard[playerID] = 4;\r\n\t\tojamaRate[playerID] = prop.getProperty(\"avalanchevsspf.ojamaRate.p\" + playerID, 120);\r\n\t\tojamaCountdown[playerID] = prop.getProperty(\"avalanchevsspf.ojamaCountdown.p\" + playerID, 3);\r\n\t\tdropSet[playerID] = prop.getProperty(\"avalanchevsspf.dropSet.p\" + playerID, 4);\r\n\t\tdropMap[playerID] = prop.getProperty(\"avalanchevsspf.dropMap.p\" + playerID, 0);\r\n\t}", "protected void pluginInitialize() {}", "private static void initPlugins() {\n \tJSPFProperties props = new JSPFProperties();\n PluginManager pm = PluginManagerFactory.createPluginManager(props);\n pm.addPluginsFrom(new File(\"plugins/\").toURI());\n JavaBot.plugins = new PluginManagerUtil(pm).getPlugins(javaBotPlugin.class);\n }", "private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }", "public\n YutilProperties(String argv[])\n {\n super(new Properties());\n setPropertiesDefaults(argv);\n }", "public void loadConfig(){\n \t\tFile configDir = this.getDataFolder();\n \t\tif (!configDir.exists())\n \t\t\tconfigDir.mkdir();\n \n \t\t// Check for existance of config file\n \t\tFile configFile = new File(this.getDataFolder().toString() + \"/config.yml\");\n \t\tconfig = YamlConfiguration.loadConfiguration(configFile);\n \t\t\n \t\t// Adding Variables\n \t\tif(!config.contains(\"Debug\"))\n \t\t{\n \t\t\tconfig.addDefault(\"Debug\", false);\n \t \n \t config.addDefault(\"Worlds\", \"ExampleWorld1, ExampleWorld2\");\n \t\n\t config.addDefault(\"Regions.Residence\", \"ExampleWorld.ExampleResRegion1, ExampleWorld.ExampleResRegion2\");\n \t \n\t config.addDefault(\"Regions.WorldGuard\", \"ExampleWorld.ExampleWGRegion1, ExampleWorld.ExampleWGRegion2\"); \n \t\t}\n \n // Loading the variables from config\n \tdebug = (Boolean) config.get(\"Debug\");\n \tpchestWorlds = (String) config.get(\"Worlds\");\n \tpchestResRegions = (String) config.get(\"Regions.Residence\");\n \tpchestWGRegions = (String) config.get(\"Regions.WorldGuard\");\n \n if(pchestWorlds != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Chests Worlds: \" + pchestWorlds);\n }\n \n if(pchestResRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Residence Regions: \" + pchestResRegions);\n }\n \n if(pchestWGRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All World Guard Regions: \" + pchestWGRegions);\n }\n \n config.options().copyDefaults(true);\n try {\n config.save(configFile);\n } catch (IOException ex) {\n Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, \"Could not save config to \" + configFile, ex);\n }\n }", "public void load () {\n hasSoundOn = preference.getBoolean(\"sound effect\", true);\n hasMusicOn = preference.getBoolean(\"background music\", true);\n soundVolume = MathUtils.clamp(preference.getFloat(\"sound volume\", 0.5f), 0.0f, 1.0f);\n musicVolume = MathUtils.clamp(preference.getFloat(\"music volume\", 0.5f), 0.0f, 1.0f);\n }", "void graphLoadProperties( boolean light, PropertyReceiver receiver );", "public Map getProperties();", "public static void LoadIntoConfigFiles()\n {\n \tProperties prop = new Properties();\n ///*\n \ttry {\n \t\t//set the properties value\n \n prop.setProperty(\"comp_name\", \"Teledom International Ltd\");\n prop.setProperty(\"com_city\", \"Lagos\");\n \t\tprop.setProperty(\"State\", \"Lagos\");\n \t\tprop.setProperty(\"logo_con\", \"logo.png\");\n \t\tprop.setProperty(\"front_frame\", \"front.png\");\n prop.setProperty(\"back_frame\", \"back.png\");\n \n \n \n \n \t\t//save properties to project root folder\n \t\tprop.store(new FileOutputStream(setupFileName), null);\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n // */\n \n \n \n }", "Map<String, String> getProperties();", "Map<String, String> getProperties();", "@Override\n public void loadFromPreferencesAdditional(PortletPreferences pp) {\n }", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "private void initProperties(URL url) {\n if(null == url) {\n LOGGER.error(\"Can Load empty path.\");\n return;\n }\n\n Properties invProperties = getProperties(url);\n if(null == invProperties || invProperties.isEmpty()) {\n LOGGER.error(\"Load invsvr.properties failed !\");\n return;\n }\n\n INVTABLEPREFIX = invProperties.getProperty(\"tableprefix\");\n EXTENSIONTABLEPOSTFIX = invProperties.getProperty(\"exttablepostfix\");\n RELATIONTABLEPOSTFIX = invProperties.getProperty(\"relationtablepostfix\");\n CHANGESETAUTHOR = invProperties.getProperty(\"changesetauthor\");\n DEFAULTSCHEMA = invProperties.getProperty(\"defaultschema\");\n BASICTABLEFIXEDCOLIMN = invProperties.getProperty(\"basictablefixedcolumn\").split(\"/\");\n EXRENSIONTABLECOLUMN = invProperties.getProperty(\"exttablecolumn\").split(\"/\");\n EXTENDINDEXS = invProperties.getProperty(\"exttableindex\").split(\"/\");\n RELATIONTABLECOLUMN = invProperties.getProperty(\"relationtablecolumn\").split(\"/\");\n RELATIONINDEXS = invProperties.getProperty(\"relationtableindex\").split(\"/\");\n\n INFOMODELPREFIX = invProperties.getProperty(\"infomodelprefix\");\n DATAMODELPREFIX = invProperties.getProperty(\"datamodelprefix\");\n RELAMODELPREFIX = invProperties.getProperty(\"relamodelprefix\");\n RELATIONTYPEVALUES = getRelationTypeValues(invProperties.getProperty(\"relationtypevalue\"));\n }", "private void configInit() {\r\n\t\tconfig = pluginInstance.getConfiguration();\r\n\t\tif (!new File(pluginInstance.getDataFolder().getPath() + File.separator + \"config.yml\")\r\n\t\t\t\t.exists()) {\r\n\t\t\tconfig.setProperty(\"reset-deathloc\", true);\r\n\t\t\tconfig.setProperty(\"use-iConomy\", true);\r\n\t\t\tconfig.setProperty(\"creation-price\", 10.0D);\r\n\t\t\tconfig.setProperty(\"deathtp-price\", 50.0D);\r\n\t\t\tconfig.setProperty(\"allow-tp\", true);\r\n\t\t\tconfig.setProperty(\"maxTombStone\", 0);\r\n\t\t\tconfig.setProperty(\"TombKeyword\", \"[Tomb]\");\r\n\t\t\tconfig.setProperty(\"use-tombAsSpawnPoint\", true);\r\n\t\t\tconfig.setProperty(\"cooldownTp\", 5.0D);\r\n\t\t\tconfig.setProperty(\"reset-respawn\", false);\r\n\t\t\tconfig.setProperty(\"maxDeaths\", 0);\r\n\t\t\tconfig.save();\r\n\t\t\tworkerLog.info(\"Config created\");\r\n\t\t}\r\n\t\tconfig.load();\r\n\t}", "private void initializeProperties() throws IOException {\n String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString();\n String wattDepotHome = userHome + \"/.wattdepot\";\n String clientHome = wattDepotHome + \"/client\";\n String propFile = clientHome + \"/datainput.properties\";\n initializeProperties(propFile);\n }", "private void loadCustomConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CUSTOM_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n LOG.info(\"Load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n } else {\r\n LOG.warn(\"Can't load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n }\r\n }", "public abstract Properties getProperties();", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static void readCitProperties(String fileName) {\n/* */ try {\n/* 91 */ ResourceLocation e = new ResourceLocation(fileName);\n/* 92 */ InputStream in = Config.getResourceStream(e);\n/* */ \n/* 94 */ if (in == null) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 99 */ Config.dbg(\"CustomItems: Loading \" + fileName);\n/* 100 */ Properties props = new Properties();\n/* 101 */ props.load(in);\n/* 102 */ in.close();\n/* 103 */ useGlint = Config.parseBoolean(props.getProperty(\"useGlint\"), true);\n/* */ }\n/* 105 */ catch (FileNotFoundException var4) {\n/* */ \n/* */ return;\n/* */ }\n/* 109 */ catch (IOException var5) {\n/* */ \n/* 111 */ var5.printStackTrace();\n/* */ } \n/* */ }", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "private void initConfigVar() {\n\t\tConfigUtils configUtils = new ConfigUtils();\n\t\tmenuColor = configUtils.readConfig(\"MENU_COLOR\");\n\t\taboutTitle = configUtils.readConfig(\"ABOUT_TITLE\");\n\t\taboutHeader = configUtils.readConfig(\"ABOUT_HEADER\");\n\t\taboutDetails = configUtils.readConfig(\"ABOUT_DETAILS\");\n\t\tgsTitle = configUtils.readConfig(\"GS_TITLE\");\n\t\tgsHeader = configUtils.readConfig(\"GS_HEADER\");\n\t\tgsDetailsFiles = configUtils.readConfig(\"GS_DETAILS_FILES\");\n\t\tgsDetailsCases = configUtils.readConfig(\"GS_DETAILS_CASES\");\n\t}", "private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "void setupPropertiesPostDeserialization() {\n initLayout();\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (prop instanceof Properties) {\n ((Properties) prop).setupPropertiesPostDeserialization();\n } else {\n prop.setI18nMessageFormater(getI18nMessageFormater());\n }\n }\n\n }", "public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }", "Map<String, String> properties();", "Map<String, String> properties();", "public void afterPropertiesSet() {\n super.afterPropertiesSet();\n\n debug(\"Plugin validated\");\n\n }", "public Properties getProperties();", "public void postLoadProperties(){\n\ttry{\n\t \n\t switch (source){\n\t case \"heroku\":\n\t\tURL = new String(\"jdbc:postgresql://\" + host + \":\" + port + \"/\" + dbname + \"?sslmode=require&user=\" + user + \"&password=\" +password );\n\t\tbreak;\n\t case \"local\":\n\t\tURL = new String(\"jdbc:postgresql://\" + host + \"/\" + dbname);\n\t break;\n\t case \"elephantsql\":\n\t\n\t \tURL = new String(\"jdbc:postgresql://\" + host + \":\" + port + \"/\" + dbname + \"?user=\" + user + \"&password=\" +password + \"&SSL=true\" );\n\t\tbreak;\n\t}\n\t //\t LOGGER.info(\"URL: \" + URL);\n\n\tdbm = new DatabaseManager( this );\n\tif(authenticated){\n\t dbr = dbm.getDatabaseRetriever();\n\t dbi = dbm.getDatabaseInserter();\n\t dmf = new DialogMainFrame(this);\n\t}else{\n\t \tJOptionPane.showMessageDialog(null,\n\t\t\t \"Invalid username or password. Session terminated.\",\n\t\t\t\t \"Authentication Failure!\",\n\t\t\t JOptionPane.ERROR_MESSAGE);\n\t}\n\t}\n catch(SQLException sqle){\n\tLOGGER.info(\"SQL exception creating DatabaseManager: \" + sqle);\n }\n\t\n }", "private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }", "public abstract Properties getProfileProperties();", "@Override\n public void lifeCycleStarting(LifeCycle anyLifeCycle) {\n System.getProperties().putAll(toSet);\n }", "private Properties loadDefaultProperties() {\n Properties pref = new Properties();\n try {\n String path = \"resources/bundle.properties\";\n InputStream stream = PreferenceInitializer.class.getClassLoader().getResourceAsStream(path);\n pref.load(stream);\n } catch (IOException e) {\n ExceptionHandler.logAndNotifyUser(\"The default preferences for AgileReview could not be initialized.\"\n + \"Please try restarting Eclipse and consider to write a bug report.\", e, Activator.PLUGIN_ID);\n return null;\n }\n return pref;\n }", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }", "public Iterator<String> getUserDefinedProperties();", "void initProperties()\n\t{\n\t\tpropertyPut(LIST_SIZE, 10);\n\t\tpropertyPut(LIST_LINE, 1);\n\t\tpropertyPut(LIST_MODULE, 1); // default to module #1\n\t\tpropertyPut(COLUMN_WIDTH, 70);\n\t\tpropertyPut(UPDATE_DELAY, 25);\n\t\tpropertyPut(HALT_TIMEOUT, 7000);\n\t\tpropertyPut(BPNUM, 0);\t\t\t\t// set current breakpoint number as something bad\n\t\tpropertyPut(LAST_FRAME_DEPTH, 0);\t\t// used to determine how much context information should be displayed\n\t\tpropertyPut(CURRENT_FRAME_DEPTH, 0); // used to determine how much context information should be displayed\n\t\tpropertyPut(DISPLAY_FRAME_NUMBER, 0); // houses the current frame we are viewing\n\t\tpropertyPut(FILE_LIST_WRAP, 999999); // default 1 file name per line\n\t\tpropertyPut(NO_WAITING, 0);\n\t\tpropertyPut(INFO_STACK_SHOW_THIS, 1); // show this pointer for info stack\n\t}", "public void load(Maussentials plugin);", "private void initScriptObjects() {\n BeanShell bsh = BeanShell.get();\n for (Player p : game.getAllPlayers()) {\n String colorName = ColorUtil.toString(p.getColor());\n bsh.set(\"p_\" + colorName, p);\n }\n\n bsh.set(\"game\", game);\n bsh.set(\"map\", map);\n }", "private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }", "Map<String, Object> properties();", "public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void printSettingsContents() {\n String fileName = \"collect.settings\";\n try {\n ClassLoader classLoader = getClass().getClassLoader();\n FileInputStream fin = new FileInputStream(\n classLoader.getResource(fileName).getFile());\n ObjectInputStream ois = new ObjectInputStream(fin);\n Map<?, ?> user_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : user_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"user.\" + key.toString() + \"=\" + v.toString());\n }\n Map<?, ?> admin_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : admin_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"admin.\" + key.toString() + \"=\" + v.toString());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }" ]
[ "0.6557359", "0.6239225", "0.6159763", "0.6153539", "0.6114984", "0.6031165", "0.59723675", "0.5971117", "0.5939959", "0.59015596", "0.5885264", "0.58797383", "0.5868724", "0.58302677", "0.58278346", "0.5809412", "0.579586", "0.5794901", "0.5789778", "0.5784527", "0.5781879", "0.57706696", "0.5764616", "0.57360846", "0.57351375", "0.57342076", "0.5734172", "0.57202506", "0.5717397", "0.5715485", "0.57154393", "0.57062197", "0.56887275", "0.5684128", "0.56791216", "0.56788605", "0.5676969", "0.5656868", "0.5655474", "0.56340134", "0.56134564", "0.5611097", "0.56029105", "0.56012213", "0.5589398", "0.5586614", "0.55755836", "0.5575291", "0.5563173", "0.5559869", "0.55572224", "0.55502367", "0.5549379", "0.5541279", "0.5533676", "0.55305576", "0.55296767", "0.55252445", "0.5525134", "0.5522423", "0.5510984", "0.55092794", "0.55069405", "0.5500661", "0.5498435", "0.54966986", "0.5492037", "0.5492037", "0.5489533", "0.5485938", "0.5483588", "0.54832757", "0.54785347", "0.5474009", "0.5469835", "0.54680467", "0.54671764", "0.54660845", "0.5457896", "0.5455428", "0.5442977", "0.54387975", "0.5437533", "0.5437533", "0.5425753", "0.5421239", "0.54199094", "0.54182744", "0.5416541", "0.5415154", "0.54083765", "0.5405307", "0.5403799", "0.54022986", "0.53908813", "0.5385761", "0.53839165", "0.53722787", "0.5371412", "0.5370206" ]
0.70097375
0
AudioListener listener = new AudioListener();
public void run() { try { sourcedata.play(); //sourcedata.load(); } catch ( Exception e ) { e.printStackTrace(); System.exit(0); }//end catch }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AudioMonitor(AudioMonitorListener listener) {\n this.listener = listener;\n }", "private Audio() {}", "public interface IAudioMediaPlayerListener {\n void onLoadAudioDone(int duration);\n void onLoadAudioError();\n void onLoadAudioBuffering(int percent);\n}", "public void playAudio() {\n\n }", "public interface AudioPlayListener {\n\n\n /**\n * 播放\n * @param url 音频url 包括网络url,本地路径,raw资源文件\n */\n void play(String url,OnAudioPlayListener onAudioPlayListener);\n\n /**\n * 暂停\n */\n void pause();\n\n /**\n * 开始\n */\n void start();\n\n /**\n * 重新播放\n */\n void restart();\n\n\n boolean isPlaying();\n\n\n /**\n * 获取音频时长\n * @return\n */\n long getDuration();\n\n /**\n * 仅仅获取音频时长,由于获取是时长是异步操作,通过回调方式回去\n * @param sourceUrl 音频文件url或者本地路径\n *\n *note 只支持单个音频文件,如果要支持列表多个音频文件,是从服务器端返回总时长\n **/\n void getOnlyDuration(String sourceUrl,OnAudioPlayListener2 listener);\n\n\n /**\n * 释放播放器\n */\n void release();\n\n /**\n * 获取播放的位置\n */\n long getCurrentPosition();\n\n /**\n * 设置循环播放\n * @param isLoop\n */\n void setLooping(boolean isLoop);\n}", "void onPrepared(AudioPlayerIterface mp);", "public interface SoundTrackListener {\r\n\r\n\t/**\r\n\t * Called when a soundtrack has completed the whole track.\r\n\t */\r\n\tpublic void finished();\r\n}", "public MyListener() {\r\n }", "void addListener(GameEventListener listener);", "@Override\n public void makeSound() {\n\n }", "@Override\n public void makeSound() {\n\n }", "public void UpdateSounds(mobj_t listener);", "public interface Listener {\n}", "public interface Listener {\n}", "public DataSource getAudioSource();", "@Override\r\n\tpublic void onCreate() {\n\t\tlogger.error(\"onCreate\");\r\n\t\tinListener = true;\r\n\t\t//player = MediaPlayer.create(this,R.raw.message);//运行例子是,需要替换音乐的名称\r\n\t\t//player.setLooping(false); // Set looping \r\n\t\t\r\n\t\tgetITelephony();//获取电话对象\r\n\t\tTelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);\r\n\t\ttm.listen(new TeleListener(),PhoneStateListener.LISTEN_CALL_STATE);//设置监听对象\r\n\t}", "protected Listener(){super();}", "void onAudioLevel(float level);", "public void onPlayStart(){\n\n\t}", "public AudioManager getAudioManager() {\r\n return audioManager;\r\n }", "public void setAudioDescriptor( AudioDescriptor audioDescriptor );", "void onListeningStarted();", "public interface Listener {}", "public interface OnPreparedListener\n{\n /**\n * Called when the media file is ready for playback.\n *\n * @param mp the MidiPlayer that is ready for playback\n */\n void onPrepared(AudioPlayerIterface mp);\n}", "public AudioDescriptor getAudioDescriptor();", "@Override\r\n public void play()\r\n {\n\r\n }", "public interface PlaybackListener {\n void onPlaybackStart();\n void onDurationChanged(long duration);\n}", "public interface IPitchListener {\n void onPitchdetected(double freq);\n}", "private Listener() {\r\n // unused\r\n }", "void mo23491a(MediaSourceEventListener mediaSourceEventListener);", "interface NowPlayingListener\n{\n\tpublic void nowPlayingSongSet(NowPlayingEvent ev);\n\tpublic void nowPlayingSongCleared(NowPlayingEvent ev);\n}", "public interface VoiceManager {\n\n void speak(int requestCode, int speechResourceId, Object... formatArgs);\n\n void speak(int requestCode, int speechResourceId);\n\n void listen(int requestCode);\n\n void shutdown();\n\n void setVoiceManagerListener(VoiceManagerImpl.VoiceManagerListener listener);\n}", "public int getAudioPort();", "public interface SKListenerMux extends MediaPlayer.OnPreparedListener,\n MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener,\n MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnSeekCompleteListener,\n MediaPlayer.OnInfoListener {\n}", "public AudioFragment() {\n }", "public AudioController(){\n\t sounds = new LinkedList<>();\n\t removables = new LinkedList<>();\n\t availableIds = new HashSet<>();\n\t populateIds();\n\t}", "public Voice() {\n }", "Builder addAudio(AudioObject value);", "public void setAudioPort(int port);", "void startMusic(AudioTrack newSong);", "public AudioList(){}", "public interface IPlayerListener {\n\n public void onError(String message);\n public void onBufferingStarted();\n public void onBufferingFinished();\n public void onRendereingstarted();\n void onCompletion();\n\n}", "protected abstract void startListener();", "public SoundEvent() \n\t{\n\tsuper(GAME_SOUND_EVENT);\n\t}", "private SoundUtils() {}", "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "public boolean isAudio()\n {return false ;\n }", "public static void loadAudio()\n\t{\n\t\ttry\n\t\t{\n\t\t\tmusic = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/Pamgaea.wav\"));\n\t\t\tlaser = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/laser.wav\"));\n\t\t\tlaserContinuous = Applet.newAudioClip(new URL(\"file:\" + System.getProperty(\"user.dir\") + \"/sound/laser_continuous.wav\"));\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private DefaultListener() {\n }", "@Override\n\tpublic void getListener(){\n\t}", "private void initListener() {\n }", "private void setListener() {\n\t}", "public interface AudioSink {\n /**\n * comfort default functionality to see if the player currently is available (not playing\n * anything)\n *\n * @return true if AudioState.Stopped, false otherwise\n */\n default boolean isAvailable() {\n switch (getState()) {\n case STOPPED:\n return true;\n case STARTING:\n return false;\n case STARTED:\n return false;\n case STOPPING:\n return false;\n default:\n throw new IllegalStateException(\"The speaker state is in an unknown state\");\n }\n }\n\n /** sets the AudioState to Stopped */\n default void free() {\n setState(Audio.AudioState.STOPPED);\n }\n\n Audio.Connection getConnection();\n\n void setConnection(Audio.Connection connection);\n\n Audio.AudioState getState();\n\n void setState(Audio.AudioState audioState);\n}", "public interface TextToSpeechListener {\n\n public void onInitSucceeded();\n public void onInitFailed();\n public void onCompleted();\n\n}", "private void initialMusic(){\n\n }", "void addListener(BotListener l);", "AudioGenerator() {\n minim = new Minim(this);\n // use the getLineOut method of the Minim object to get an AudioOutput object\n out = minim.getLineOut();\n }", "public void start()\n\t{\n\t\tString name = getAudioFileName();\n\t\ttry\n\t\t{\t\t\t\n\t\t\tInputStream in = getAudioStream();\n\t\t\tAudioDevice dev = getAudioDevice();\n\t\t\tplay(in, dev);\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tsynchronized (System.err)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Unable to play \"+name);\n\t\t\t\tex.printStackTrace(System.err);\n\t\t\t}\n\t\t}\n\t}", "public interface OnRecordVoiceListener {\n\n /**\n * Fires when started recording.\n */\n void onStartRecord();\n\n /**\n * Fires when finished recording.\n *\n * @param voiceFile The audio file.\n * @param duration The duration of audio file, specified in seconds.\n */\n void onFinishRecord(File voiceFile, int duration);\n}", "public void startListening();", "@Override\r\n\tpublic void initListener() {\n\r\n\t}", "void setListener(Listener listener);", "public interface OnPlayStateChangeListener {\n\n void onPlayStateChange(int playState);\n}", "public void addListener(EventListener listener);", "public interface VoiceActivityDetectorListener {\n void onVoiceActivityDetected();\n void onNoVoiceActivityDetected();\n}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "private SpeedSliderListener()\n {\n }", "public abstract void makeSound();", "public AudioService(Context context) {\n this.sharedPreferences = context.getSharedPreferences(\"SPOTIFY\", 0);\n queue = Volley.newRequestQueue(context);\n }", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder iBinder) {\n audioServiceBinder = (AudioServiceBinder) iBinder;\n }", "public void onAudioInfoChanged(PlaybackInfo info) {\n }", "public interface Observer {\n void releaseInputStream(InputAudioStream inputAudioStream);\n }", "public void initListener() {\n }", "public interface AudiosListener {\n void onResponseAudiosListener(ArrayList<Multimedia> audios);\n}", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "void play ();", "@Override\r\n protected void playGameStartAudio() {\n\taudio.playClip();\r\n }", "public AudioPlayer() {\n\t\tselectMixer(0);\n\n\t\tcreateListenerOnCondition(onFinishRunnables, (event) -> \n\t\t\tevent.getType() == LineEvent.Type.STOP && getRemainingTime() <= 0.0 && !isRepeating\n\t\t);\n\t\tcreateListenerOnCondition(onEndRunnables, (event) -> \n\t\t\tevent.getType() == LineEvent.Type.STOP && getRemainingTime() <= 0.0\n\t\t);\n\t\tcreateListenerOnCondition(onLoadRunnables, (event) -> \n\t\t\tevent.getType() == LineEvent.Type.OPEN\n\t\t);\n\t\tcreateListenerOnCondition(onPlayRunnables, (event) -> \n\t\t\tevent.getType() == LineEvent.Type.START\n\t\t);\n\t}", "public interface TextToSpeechListener {\n\n\tvoid onTTSInit(int ttsResult) ;\n}", "public AudioSettings() {\n this.emulator = NEmuSUnified.getInstance().getEmulator();\n }", "public interface Audible {\n public String makeSound();\n}", "@Override\n public void run() {\n AudioManager m_amAudioManager;\n m_amAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);\n m_amAudioManager.setMode(AudioManager.MODE_IN_CALL);\n m_amAudioManager.setSpeakerphoneOn(false);\n AudioTrack track = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,\n AudioFormat.ENCODING_PCM_16BIT, BUF_SIZE, AudioTrack.MODE_STREAM);\n track.play();\n try {\n // Define a socket to receive the audio\n byte[] buf = new byte[BUF_SIZE];\n while(speakers && !UDP) {\n // Play back the audio received from packets\n int rec;\n rec = dataInputStreamInstance.read(buf);\n Log.d(\"rec123\", String.valueOf(rec));\n if (rec > 0)\n track.write(buf, 4, rec);\n }\n // Stop playing back and release resources\n track.stop();\n track.flush();\n track.release();\n speakers = false;\n return;\n }\n catch(SocketException e) {\n speakers = false;\n }\n catch(IOException e) {\n speakers = false;\n }\n }", "@Override\r\n public void loadPianoAudioStart() {\n }", "private void createAndListen() {\n\n\t\t\n\t}", "public void play(){\n\t\t\n\t}", "@Override\n public void run() {\n AudioTrack track = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,\n AudioFormat.ENCODING_PCM_16BIT, BUF_SIZE, AudioTrack.MODE_STREAM);\n track.play();\n try {\n // Define a socket to receive the audio\n DatagramSocket socket = new DatagramSocket(5000);\n byte[] buf = new byte[BUF_SIZE];\n while(speakers && UDP) {\n // Play back the audio received from packets\n DatagramPacket packet1 = new DatagramPacket(buf, BUF_SIZE);\n socket.receive(packet1);\n Log.d(\"sent\", \"recv\");\n Object[] dataPack = packet.depacketize(packet1.getData());\n if((int) dataPack[0] == 1){\n Log.d(\"check\", \"de-packet\");\n byte[] audio = (byte[]) dataPack[1];\n track.write(audio, 0, audio.length);\n byte[] ack = (byte[]) dataPack[2];\n DatagramPacket packet_ack = new DatagramPacket(ack, ack.length, address, port);\n try {\n socket.send(packet_ack);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }\n // Stop playing back and release resources\n socket.disconnect();\n socket.close();\n track.stop();\n track.flush();\n track.release();\n speakers = false;\n return;\n }\n catch(SocketException e) {\n speakers = false;\n }\n catch(IOException e) {\n speakers = false;\n }\n }", "private void startAudioLevelPoll() {\n audioPoller.run();\n }", "public GetConnListener() {\n }", "public AirLineListener() {\r\n\r\n }", "public interface ContextListener {\n /**\n * Gets the albums.\n * \n * @return the albums\n */\n public List<AlbumInfo> getAlbums();\n\n /**\n * Notify album retrieved.\n * \n * @param file the file\n * @param id the id\n */\n public void notifyAlbumRetrieved(AudioObject file, long id);\n\n /**\n * Notify artist image.\n * \n * @param img the img\n * @param id the id\n */\n public void notifyArtistImage(Image img, long id);\n\n /**\n * Notify cover retrieved.\n * \n * @param album the album\n * @param cover the cover\n * @param id the id\n */\n public void notifyCoverRetrieved(AlbumInfo album, Image cover, long id);\n\n /**\n * Notify finish get similar artist.\n * \n * @param a the a\n * @param img the img\n * @param id the id\n */\n public void notifyFinishGetSimilarArtist(ArtistInfo a, Image img, long id);\n\n /**\n * Notify start retrieving artist images.\n * \n * @param id the id\n */\n public void notifyStartRetrievingArtistImages(long id);\n\n /**\n * Notify start retrieving covers.\n * \n * @param id the id\n */\n public void notifyStartRetrievingCovers(long id);\n\n /**\n * Notify wiki info retrieved.\n * \n * @param wikiText the wiki text\n * @param wikiURL the wiki url\n * @param id the id\n */\n public void notifyWikiInfoRetrieved(String wikiText, String wikiURL, long id);\n\n /**\n * Sets the album.\n * \n * @param album the album\n * @param id the id\n */\n public void setAlbum(AlbumInfo album, long id);\n\n /**\n * Sets the albums.\n * \n * @param album the album\n * @param id the id\n */\n public void setAlbums(List<? extends AlbumInfo> album, long id);\n\n /**\n * Sets the image.\n * \n * @param img the img\n * @param ao audio object\n * @param id the id\n */\n public void setImage(Image img, AudioObject ao, long id);\n\n /**\n * Sets the last album retrieved.\n * \n * @param album the album\n * @param id the id\n */\n public void setLastAlbumRetrieved(String album, long id);\n\n /**\n * Sets the last artist retrieved.\n * \n * @param artist the artist\n * @param id the id\n */\n public void setLastArtistRetrieved(String artist, long id);\n}", "private void onAudioManagerChangedState() {\n setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\n }", "public interface OnMediaPlayingListener {\n /**\n * duration for the media file\n * @param duration milliseconds\n */\n void onStart(int duration);\n\n void onComplete();\n\n /**\n * media play progress\n * @param currentPosition milliseconds\n */\n void onProgress(int currentPosition);\n}", "Move listen(IListener ll);", "void onPlaybackStarted(Consumer<Void> listener) {\n playbackStartedListeners.add(listener);\n }", "public TrackdInputDevice() {\n }", "public void addGameEventListener(GameEventListener gameEventListener);", "private void initSpeechManager() {\n mSpeechManager = SpeechManager.getInstance(this);\n }", "public DefaultDeviceDiscovererListener()\r\n {\r\n }", "void addListener(MediaQueryListListener listener);", "private void initSounds() {\n\n\n\t}" ]
[ "0.73296875", "0.7235378", "0.6841324", "0.6839647", "0.6814244", "0.64409614", "0.64107627", "0.6405614", "0.63394725", "0.63182503", "0.63182503", "0.62980956", "0.62896013", "0.62896013", "0.6272608", "0.6242715", "0.6182233", "0.6174314", "0.61672825", "0.61576855", "0.6131165", "0.6098936", "0.60892487", "0.6055316", "0.60271114", "0.6024726", "0.60124373", "0.60000205", "0.5996003", "0.5984409", "0.59812963", "0.59693325", "0.5963954", "0.59453356", "0.59291875", "0.59262717", "0.5910643", "0.5903245", "0.58991283", "0.58874464", "0.5882947", "0.587831", "0.58778477", "0.5877074", "0.5870639", "0.58664376", "0.5845527", "0.5842425", "0.5837732", "0.5836375", "0.5831119", "0.58283746", "0.5822573", "0.58223945", "0.58116895", "0.5807303", "0.5806061", "0.58051157", "0.57985234", "0.5797446", "0.57951695", "0.5793779", "0.5780813", "0.5772585", "0.5771326", "0.5766624", "0.5766624", "0.5763383", "0.57569057", "0.5749027", "0.57404107", "0.5736786", "0.5734634", "0.57211554", "0.5720121", "0.5718243", "0.5705926", "0.5705182", "0.56834745", "0.5677692", "0.5677434", "0.5676193", "0.56712675", "0.56647485", "0.56616074", "0.5656535", "0.5656014", "0.5653465", "0.56508446", "0.56490326", "0.5646451", "0.56448996", "0.5641729", "0.56409246", "0.56371915", "0.56297123", "0.56219554", "0.56216246", "0.56173724", "0.56103593", "0.56034166" ]
0.0
-1
Title: ProductMapper ProjectName: springbootpanicbuying description: TODO
@Mapper public interface ProductMapper { ProductPo getProduct(Long id); int decreaseProduct(@Param("id") Long id, @Param("quantity") Integer quantity, @Param("version") Integer version); int decreaseProductRedis(@Param("id") Long id, @Param("quantity") Integer quantity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository(\"productTypeMapper\")\npublic interface ProductTypeMapper extends CommonMapper<ProductTypeInfo> {\n}", "public static void main(String[] args) {\n AbstractApplicationContext context = new AnnotationConfigApplicationContext(\"com.ravindra\");\n Product p =(Product)context.getBean(\"product \");\n p.setId(\"123\");\n p.setName(\"Dell\");\n p.setPrice(400);\n System.out.println(p.toString());\n }", "@Mapper\npublic interface ProductMapper {\n\t@Select({\n\t\t\t\"select id, name, introduce, number, price, stock, is_deleted, create_time, update_time\" +\n\t\t\t\t\t\" from product where is_deleted and id = #{id} limit 1\"\n\t})\n\t@Results({\n\t\t\t@Result(column = \"id\", property = \"id\"),\n\t\t\t@Result(column = \"name\", property = \"name\"),\n\t\t\t@Result(column = \"introduce\", property = \"introduce\"),\n\t\t\t@Result(column = \"number\", property = \"number\"),\n\t\t\t@Result(column = \"price\", property = \"price\"),\n\t\t\t@Result(column = \"stock\", property = \"stock\"),\n\t\t\t@Result(column = \"is_deleted\", property = \"isDeleted\"),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\"),\n\t\t\t@Result(column = \"update_time\", property = \"updateTime\")\n\t})\n\tProduct selectByPrimaryKey(@Param(\"id\") Long id);\n}", "private static void createProducts() {\n productRepository.addProduct(Product.builder()\n .name(\"Milk\")\n .barcode(new Barcode(\"5900017304007\"))\n .price(new BigDecimal(2.90))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Butter\")\n .barcode(new Barcode(\"5906217041483\"))\n .price(new BigDecimal(4.29))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Beer\")\n .barcode(new Barcode(\"5905927001114\"))\n .price(new BigDecimal(2.99))\n .build()\n );\n }", "@Mapper\npublic interface ProductMapper {\n\n @Select(\"select * from t_product\")\n List<Product> findAll();\n\n void save(String productName, Integer productInventory);\n\n void save(Product product);\n}", "@Mapper(componentModel = \"spring\", uses = {ProOrderMapper.class})\r\npublic interface ProOrderItemMapper extends EntityMapper<ProOrderItemDTO, ProOrderItem> {\r\n\r\n @Mapping(source = \"proOrder.id\", target = \"proOrderId\")\r\n ProOrderItemDTO toDto(ProOrderItem proOrderItem);\r\n\r\n @Mapping(source = \"proOrderId\", target = \"proOrder\")\r\n ProOrderItem toEntity(ProOrderItemDTO proOrderItemDTO);\r\n\r\n default ProOrderItem fromId(Long id) {\r\n if (id == null) {\r\n return null;\r\n }\r\n ProOrderItem proOrderItem = new ProOrderItem();\r\n proOrderItem.setId(id);\r\n return proOrderItem;\r\n }\r\n}", "@Component\npublic interface BkProductMapper {\n\n List<BkProductVo> selectByCondition(BkProductReq bkProductReq);\n\n void insert(BkProductReq bkProductReq);\n\n BkProductVo getMaxProductId();\n\n void deleteById(Integer id);\n\n void update(BkProductReq bkProductReq);\n}", "@Mapper\npublic interface HoPureOfferDao extends TkBaseMapper<HoPureOffer> {\n\n\n List<PureOfferListRepo> listForWeb(@Param(\"productType\") String productType, @Param(\"dateType\") String dateType);\n\n List<PureOfferListRepo> selfListForWeb(@Param(\"userId\") String userId, @Param(\"keys\") String keys,@Param(\"orderBy\") String orderBy);\n\n List<PureOfferListRepo> listForBackend(@Param(\"title\") String title,@Param(\"status\") String status);\n\n List<PureOfferListRepo> snatchListForWeb(@Param(\"userId\") String userId, @Param(\"keys\") String keys,@Param(\"orderBy\") String orderBy);\n}", "@Bean(name = \"product\")\n\tpublic Product getProduct() {\n\t\treturn new Product(\"C0001\", \"테스트\", 1000); // Constructor Injection\n\t}", "@Service(\"productMapper\")\npublic interface ProductMapper {\n\n public void addProduct(Product product);\n\n public int updateProduct(Product product);\n\n public int updateProductBySelective(Product product);\n\n public int deleteProductById(@Param(\"id\") Object id);\n\n public int deleteProductByIds(@Param(\"ids\") Object ids);\n\n public int queryProductByCount(Criteria criteria);\n\n public List queryProductForList(Criteria criteria);\n\n public Product queryProductById(@Param(\"id\") Object id);\n\n}", "@Mapper(componentModel = \"spring\")\npublic interface WaitApportionMapper {\n /**\n * Entity to model app user info.\n *\n * @param waitApportionEntity\n * @return\n */\n @Mappings({\n\n })\n WaitApportion entityToModel(WaitApportionEntity waitApportionEntity);\n\n /**\n * Model to entity app user entity.\n *\n * @param waitApportion\n * @return\n */\n @Mappings({\n\n })\n WaitApportionEntity modelToEntity(WaitApportion waitApportion);\n\n /**\n * Entitiesto models list.\n *\n * @param waitApportionEntityList the app user entity\n * @return the list\n */\n List<WaitApportion> entitiestoModels(Iterable<WaitApportionEntity> waitApportionEntityList);\n\n /**\n * Modelsto entities list.\n *\n * @param waitApportionList the app user entity\n * @return the list\n */\n List<WaitApportionEntity> modelstoEntities(List<WaitApportion> waitApportionList);\n}", "@Mapper\r\n@Component\r\npublic interface ProjectMapper {\r\n\r\n /**\r\n * 通过项目code查询对应项目\r\n * @param pjt_code\r\n * @return\r\n */\r\n @Select(\"select * from jproject where pjt_code=#{0}\")\r\n Project findProjectByCode(String pjt_code);\r\n}", "@Repository\n@Mapper\npublic interface AppInfoMapper extends BaseMapper<AppInfoEntity> {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrderPaymentMapper extends EntityMapper<OrderPaymentDTO, OrderPayment> {\n\n\n\n default OrderPayment fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrderPayment orderPayment = new OrderPayment();\n orderPayment.setId(id);\n return orderPayment;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, LanguageMapper.class })\npublic interface ProjectMapper {\n\n @Mapping(source = \"owner.id\", target = \"ownerId\")\n @Mapping(source = \"owner.login\", target = \"ownerName\")\n ProjectDTO projectToProjectDTO(Project project);\n\n List<ProjectDTO> projectsToProjectDTOs(List<Project> projects);\n\n @Mapping(target = \"releases\", ignore = true)\n @Mapping(source = \"ownerId\", target = \"owner\")\n Project projectDTOToProject(ProjectDTO projectDTO);\n\n List<Project> projectDTOsToProjects(List<ProjectDTO> projectDTOs);\n\n default Language languageFromId(Long id) {\n if (id == null) {\n return null;\n }\n Language language = new Language();\n language.setId(id);\n return language;\n }\n}", "public static void main(String[] args) {\n\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"mapconfig.xml\");\n\t\tCustomer customer= (Customer) context.getBean(\"customer\");\n\t\t \n\t\tSystem.out.println(\"customer: \" + customer.getId());\n\t\tSystem.out.println(\"customer products Name: \" +customer.getProducts());\n\n\t\t\n\t}", "@Mapper\n@Repository\npublic interface StockMapper {\n\n @Insert(\"insert into product_stock(valued,product_id) values(#{valued},#{product_id})\")\n public void insertProductStock(ProductStock ProductStock);\n @Update(\"update product_stock set valued=#{valued},product_id=#{product_id} where id=#{id}\")\n public void updateProductStock(ProductStock ProductStock);\n @Delete(\"delete from product_stock where id=#{id}\")\n public void deleteProductStock(Integer id);\n @Select(\"select * from product_stock\")\n public List<ProductStock> selectAll();\n @Select(\"select * from product_stock where id=#{id}\")\n ProductStock selectById(Integer id);\n @Select(\"select * from product_stock where product_id=#{id}\")\n ProductStock findStockByProductId(Integer id);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TemplateFormulaireMapper extends EntityMapper<TemplateFormulaireDTO, TemplateFormulaire> {\n\n\n @Mapping(target = \"questions\", ignore = true)\n TemplateFormulaire toEntity(TemplateFormulaireDTO templateFormulaireDTO);\n\n default TemplateFormulaire fromId(Long id) {\n if (id == null) {\n return null;\n }\n TemplateFormulaire templateFormulaire = new TemplateFormulaire();\n templateFormulaire.setId(id);\n return templateFormulaire;\n }\n}", "public static void main( String[] args ) throws IOException {\n\n InputStream inputStream= Resources.getResourceAsStream(\"mybatis-conf.xml\");\n\n //获取SqlSessionFactory的对象\n SqlSessionFactory sf= new SqlSessionFactoryBuilder().build(inputStream);\n\n ProductType productType=new ProductType();\n productType.setName(\"ccs\");\n productType.setStatus(1);\n //获取\n SqlSession session=sf.openSession();\n\n\n\n productType.setName(\"c\");\n List<ProductType> productTypes=session.selectList(util.selectMapper(\"productTypeMapper.selectProductType\"),productType);\n\n productTypes.forEach(p-> System.out.println(p));\n\n session.commit();\n session.close();\n\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\n }\n}", "@Mapper\npublic interface CategoryRepairDao extends BaseMapper<BackendMerchantCategoryEntity>{\n}", "ProductProperties productProperties();", "public interface ProductInfoRepository {\n}", "public static void main(String[] args) {\n\t\tProduct p = new Product(\"Oppo\",5000.98f,0);\r\n\t\tMySqlProductDAO pd = new MySqlProductDAO();\r\n\t\tProduct ans = pd.addNew(p);\r\n\t\t//pd.display(ans);\r\n\t\t/*ans = pd.findOne(8);\r\n\t\tpd.display(ans);\r\n\t\tpd.delete(8);\r\n\t\tans = pd.findOne(8);\r\n\t\tpd.display(ans);*/\r\n\t\tList<Product> pro = pd.findAll();\r\n\t\tSystem.out.println(\"Finding All Products : \");\r\n\t\tpro.forEach(System.out::println);\r\n\t\tSystem.out.println(\"Price greater than 500 : \");\r\n\t\tpro = pd.findByPriceGreaterThan(5000);\r\n\t\tpro.forEach(System.out::println);\r\n\t\tpd.removeOutOfStockProducts();\r\n\t\tpd.findAll();\r\n\t\t\r\n\r\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface StockInMapper {\n\n @Mapping(source = \"tranship.id\", target = \"transhipId\")\n @Mapping(source = \"project.id\", target = \"projectId\")\n @Mapping(source = \"projectSite.id\", target = \"projectSiteId\")\n StockInDTO stockInToStockInDTO(StockIn stockIn);\n\n List<StockInDTO> stockInsToStockInDTOs(List<StockIn> stockIns);\n\n @Mapping(source = \"transhipId\", target = \"tranship\")\n @Mapping(source = \"projectId\", target = \"project\")\n @Mapping(source = \"projectSiteId\", target = \"projectSite\")\n StockIn stockInDTOToStockIn(StockInDTO stockInDTO);\n\n List<StockIn> stockInDTOsToStockIns(List<StockInDTO> stockInDTOS);\n\n default Tranship transhipFromId(Long id) {\n if (id == null) {\n return null;\n }\n Tranship tranship = new Tranship();\n tranship.setId(id);\n return tranship;\n }\n\n default Project projectFromId(Long id) {\n if (id == null) {\n return null;\n }\n Project project = new Project();\n project.setId(id);\n return project;\n }\n\n default ProjectSite projectSiteFromId(Long id) {\n if (id == null) {\n return null;\n }\n ProjectSite projectSite = new ProjectSite();\n projectSite.setId(id);\n return projectSite;\n }\n\n default List<StockInForDataTable> stockInsToStockInTables(List<StockIn> stockIns){\n if ( stockIns == null ) {\n return null;\n }\n\n List<StockInForDataTable> list = new ArrayList<StockInForDataTable>();\n for ( StockIn stockIn : stockIns ) {\n list.add( stockInToStockInTable( stockIn ) );\n }\n\n return list;\n }\n\n default StockInForDataTable stockInToStockInTable(StockIn stockIn){\n if ( stockIn == null ) {\n return null;\n }\n\n StockInForDataTable stockInTable = new StockInForDataTable();\n\n stockInTable.setId( stockIn.getId() );\n stockInTable.setProjectCode( stockIn.getProjectCode() );\n stockInTable.setProjectSiteCode( stockIn.getProjectSiteCode() );\n stockInTable.setStoreKeeper1( stockIn.getStoreKeeper1() );\n stockInTable.setStoreKeeper2( stockIn.getStoreKeeper2() );\n stockInTable.setStockInDate( stockIn.getStockInDate() );\n stockInTable.setCountOfSample( stockIn.getCountOfSample() );\n stockInTable.setStatus( stockIn.getStatus() );\n stockInTable.setTranshipCode(stockIn.getTranship().getTranshipCode());\n stockInTable.setCountOfBox(stockIn.getTranship().getFrozenBoxNumber());\n stockInTable.setRecordDate(stockIn.getTranship().getReceiveDate());\n stockInTable.setStockInCode(stockIn.getStockInCode());\n return stockInTable;\n }\n\n default StockInForDataDetail stockInToStockInDetail(StockIn stockIn){\n if ( stockIn == null ) {\n return null;\n }\n\n StockInForDataDetail stockInDetail = new StockInForDataDetail();\n\n stockInDetail.setId( stockIn.getId() );\n stockInDetail.setProjectId(stockIn.getProject()!=null?stockIn.getProject().getId():null);\n stockInDetail.setProjectCode( stockIn.getProjectCode() );\n stockInDetail.setProjectSiteId(stockIn.getProjectSite()!=null?stockIn.getProjectSite().getId():null);\n stockInDetail.setProjectSiteCode( stockIn.getProjectSiteCode() );\n stockInDetail.setStoreKeeper1( stockIn.getStoreKeeper1() );\n stockInDetail.setStoreKeeper2( stockIn.getStoreKeeper2() );\n stockInDetail.setStockInDate( stockIn.getStockInDate() );\n stockInDetail.setStatus( stockIn.getStatus() );\n stockInDetail.setTranshipCode(stockIn.getTranship()!=null?stockIn.getTranship().getTranshipCode():null);\n stockInDetail.setReceiveDate(stockIn.getReceiveDate());\n stockInDetail.setStockInCode(stockIn.getStockInCode());\n stockInDetail.setReceiver(stockIn.getReceiveName());\n stockInDetail.setMemo(stockIn.getMemo());\n return stockInDetail;\n }\n}", "@GetMapping(\"/product\") \nprivate List<Products> getAllProducts() \n{ \nreturn ProductsService.getAllProducts(); \n}", "@PostConstruct\nvoid initProductDatabase() {\n\tproductRepository.save(new Product(\"Laika cap\", \"LaikaProduction\", 100, 12.00,3000,\"assets/images/Pet.png\",\"For everyday adventures outdoors. The Laika Cap has an adjustable back strap and embroidered logo details.\"));\n\tproductRepository.save(new Product(\"Laika t-shirt\", \"LaikaProduction\", 100, 15.00, 3500, \"assets/images/Shirt.png\", \"The official Laika t-shirt.\"));\n\tproductRepository.save(new Product(\"Laika vest\", \"LaikaProduction\", 100, 25.00, 4500, \"assets/images/Vest.png\", \"To keep your warm during all your epic adventures in space.\"));\n\tproductRepository.save(new Product(\"Laika Phone case\", \"LaikaProduction\", 100, 20.00, 2500, \"assets/images/case.png\", \"Protect your mobile phone with our special Laika phone case.\" ));\n\t\n\t\n\t\n//\tproductRepository.save(new Product(\"Laika\", \"LaikaProduction\", 101, 10.99,5, \"assets/images/LaikaLogoDog.png\",\"\"));\n\tproductRepository.save(new Product(\"Mars\", \"LaikaProduction\", 11, 5.00,50, \"assets/images/Mars.jpg\",\"The special Laika Mars wallpaper\"));\n\tproductRepository.save(new Product(\"Moon\", \"LaikaProduction\", 12, 5.00,50, \"assets/images/Moon.jpg\",\"The Very special Laika Moon wallpaper\"));\n\tproductRepository.save(new Product(\"Saturn\", \"LaikaProduction\", 13, 5.00,50, \"assets/images/Saturn.jpg\",\"The Mega special Laika Saturn wallpaper\"));\n\tproductRepository.save(new Product(\"Sun\", \"LaikaProduction\", 14,5.00,100, \"assets/images/Sun.jpg\",\"The Ultra special Laika Sun wallpaper\"));\n\n\n\t}", "@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "@Repository\npublic interface ItemMapper extends Mapper<Item> {\n\n\n}", "public interface CProductoMapper {\r\n \r\n // <editor-fold defaultstate=\"collapsed\" desc=\"CONSULTAS DEFINIDAS\">\r\n \r\n static final String FIND_ALL = \"SELECT \"\r\n + \" productos.id as recid,\"\r\n + \" productos.codigo,\"\r\n + \" productos.descripcion,\"\r\n + \" productos.unidad_produccion as unidadProductiva, \"\r\n + \" unidades_productivas.codigo AS codigoUnidadProduccion \"\r\n + \"FROM productos \"\r\n + \"LEFT JOIN unidades_productivas ON \"\r\n + \"unidades_productivas.id = productos.unidad_produccion\";\r\n \r\n static final String FIND_BY_CODE = \"SELECT \"\r\n + \" productos.id \"\r\n + \"FROM productos WHERE productos.codigo = #{code}\";\r\n \r\n // </editor-fold>\r\n \r\n /**\r\n * Query que regresa todos los productos existentes\r\n * @return lista de productos\r\n */\r\n @Select(FIND_ALL)\r\n public List<CProducto> findAll(); \r\n \r\n /**\r\n * Query que me permite ubicar un registro de la tabla de productos a partir de\r\n * un código. \r\n * @param code el código bajo el cual se busca\r\n * @return el id del registro.\r\n */\r\n @Select(FIND_BY_CODE)\r\n public Long findByCode(String code);\r\n}", "public interface InstallationMapper {\n\n public List<Installation> getInstallations();\n\n public List<Installation> findByUser();\n\n public Installation findById(long id);\n\n public void add(Installation installation);\n\n public void delete();\n\n public void update(Installation installation);\n\n public List<Installation> findByUserName(\n @Param(\"userName\")String userName,\n @Param(\"postDate\")String postDate,\n @Param(\"isComplete\")boolean isComplete);\n\n}", "public interface ProductsMapper {\n\n List<Product_Info> queryPhoneList();\n\n Product_Info PhoneDetails(String productId);\n}", "public static void main (String []args) {\n\n\t\tProductBean p1=new ProductBean();\n\t\tp1.setPdCode(\"01\");\n\t\tp1.setPdName(\"iPhone\");\n\t\tp1.setPdPrice(899.99);\n\n\t\tProductBean p2=new ProductBean();\n\t\tp2.setPdCode(\"02\");\n\t\tp2.setPdName(\"MacBook\");\n\t\tp2.setPdPrice(1999.99);\n\n\t\tProductBean p3=new ProductBean();\n\t\tp3.setPdCode(\"03\");\n\t\tp3.setPdName(\"iPad\");\n\t\tp3.setPdPrice(699.99);\n\n\t\tProductBean p4=new ProductBean();\n\t\tp4.setPdCode(\"04\");\n\t\tp4.setPdName(\"iWatch\");\n\t\tp4.setPdPrice(599.99);\n\n\t\tProductBean p5=new ProductBean();\n\t\tp5.setPdCode(\"05\");\n\t\tp5.setPdName(\"AirPods\");\n\t\tp5.setPdPrice(199.99);\n\n\t\tMap <String, Object > map = new HashMap();\n\n //Add keys and values to map\n\t\tmap.put(\"01\",p1);\n\t\tmap.put(\"02\",p2);\n\t\tmap.put(\"03\",p3);\n\t\tmap.put(\"04\",p4);\n\t\tmap.put(\"05\",p5);\n\n\n\t\t for (Map.Entry<String, Object>m:map.entrySet())\n\t\t{\n\t\t\t //added pdCode by user and validation\n\t\t if (m.getKey()== \"02\")\n\t\t System.out.println(m.getValue());\n\t\t}\n\n\t}", "@Component\n@Mapper\npublic interface AppraiseMapper {\n\n /**\n * 获取所有评价\n * @return\n */\n List<Appraise> getAll();\n\n /**\n * 添加评价\n * @return\n */\n boolean addAppraise(Appraise appraise);\n}", "public interface Product {\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 etag property: The entity tag used for optimistic concurrency when modifying the resource.\n *\n * @return the etag value.\n */\n String etag();\n\n /**\n * Gets the displayName property: The display name of the product.\n *\n * @return the displayName value.\n */\n String displayName();\n\n /**\n * Gets the description property: The description of the product.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the publisherDisplayName property: The user-friendly name of the product publisher.\n *\n * @return the publisherDisplayName value.\n */\n String publisherDisplayName();\n\n /**\n * Gets the publisherIdentifier property: Publisher identifier.\n *\n * @return the publisherIdentifier value.\n */\n String publisherIdentifier();\n\n /**\n * Gets the offer property: The offer representing the product.\n *\n * @return the offer value.\n */\n String offer();\n\n /**\n * Gets the offerVersion property: The version of the product offer.\n *\n * @return the offerVersion value.\n */\n String offerVersion();\n\n /**\n * Gets the sku property: The product SKU.\n *\n * @return the sku value.\n */\n String sku();\n\n /**\n * Gets the billingPartNumber property: The part number used for billing purposes.\n *\n * @return the billingPartNumber value.\n */\n String billingPartNumber();\n\n /**\n * Gets the vmExtensionType property: The type of the Virtual Machine Extension.\n *\n * @return the vmExtensionType value.\n */\n String vmExtensionType();\n\n /**\n * Gets the galleryItemIdentity property: The identifier of the gallery item corresponding to the product.\n *\n * @return the galleryItemIdentity value.\n */\n String galleryItemIdentity();\n\n /**\n * Gets the iconUris property: Additional links available for this product.\n *\n * @return the iconUris value.\n */\n IconUris iconUris();\n\n /**\n * Gets the links property: Additional links available for this product.\n *\n * @return the links value.\n */\n List<ProductLink> links();\n\n /**\n * Gets the legalTerms property: The legal terms.\n *\n * @return the legalTerms value.\n */\n String legalTerms();\n\n /**\n * Gets the privacyPolicy property: The privacy policy.\n *\n * @return the privacyPolicy value.\n */\n String privacyPolicy();\n\n /**\n * Gets the payloadLength property: The length of product content.\n *\n * @return the payloadLength value.\n */\n Long payloadLength();\n\n /**\n * Gets the productKind property: The kind of the product (virtualMachine or virtualMachineExtension).\n *\n * @return the productKind value.\n */\n String productKind();\n\n /**\n * Gets the productProperties property: Additional properties for the product.\n *\n * @return the productProperties value.\n */\n ProductProperties productProperties();\n\n /**\n * Gets the compatibility property: Product compatibility with current device.\n *\n * @return the compatibility value.\n */\n Compatibility compatibility();\n\n /**\n * Gets the inner com.azure.resourcemanager.azurestack.fluent.models.ProductInner object.\n *\n * @return the inner object.\n */\n ProductInner innerModel();\n}", "public interface PaymentOrderMapper extends Mapper<PaymentOrder>{\n\n}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "@Mapper\npublic interface DiscountMapper extends IBaseDao<DiscountDTO>{\n\n /**\n * 查询DISCOUNT表\n * @param (supplierId)\n */\n List<DiscountDTO> findAllBySupplierID(String supplierId);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface PerformerMapper extends EntityMapper<PerformerDTO, Performer> {\n\n\n\n default Performer fromId(Long id) {\n if (id == null) {\n return null;\n }\n Performer performer = new Performer();\n performer.setId(id);\n return performer;\n }\n}", "public interface StockCompanyBusinessProfitMapper extends BaseMapper<StockCompanyBusinessProfit> {\n\n List<StockCompanyBusinessProfit> getStockCompaneyProfitList(@Param(\"stockCode\") String stockCode);\n}", "private OwBootstrapToIdMapping()\r\n {\r\n\r\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface MisteriosoMapper extends EntityMapper<MisteriosoDTO, Misterioso> {\n\n \n\n \n\n default Misterioso fromId(Long id) {\n if (id == null) {\n return null;\n }\n Misterioso misterioso = new Misterioso();\n misterioso.setId(id);\n return misterioso;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifMapper extends EntityMapper <TarifDTO, Tarif> {\n \n \n default Tarif fromId(Long id) {\n if (id == null) {\n return null;\n }\n Tarif tarif = new Tarif();\n tarif.setId(id);\n return tarif;\n }\n}", "@Repository\npublic interface CollectParamConfigMapper {\n\n int insert(CollectParamConfigEntity record);\n\n CollectParamConfigEntity selectById(@Param(\"id\") Integer id);\n\n int selectCollectParamConfigCount(@Param(\"applicationName\") String applicationName);\n\n List<CollectParamConfigEntity> selectCollectParamConfigList(@Param(\"rowBegin\") int rowBegin, @Param(\"rowNum\") int rowNum, @Param(\"applicationName\") String applicationName);\n\n\n void deleteById(@Param(\"id\")Integer id);\n\n List<CollectParamConfigEntity> selectCollectParamConfigListWithDetail();\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface HeritageMediaMapper {\n\n @Mapping(source = \"category.id\", target = \"categoryId\")\n @Mapping(source = \"category.categoryName\", target = \"categoryCategoryName\")\n @Mapping(source = \"language.id\", target = \"languageId\")\n @Mapping(source = \"language.heritageLanguage\", target = \"languageHeritageLanguage\")\n @Mapping(source = \"group.id\", target = \"groupId\")\n @Mapping(source = \"group.name\", target = \"groupName\")\n @Mapping(source = \"heritageApp.id\", target = \"heritageAppId\")\n @Mapping(source = \"heritageApp.name\", target = \"heritageAppName\")\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.login\", target = \"userLogin\")\n HeritageMediaDTO heritageMediaToHeritageMediaDTO(HeritageMedia heritageMedia);\n\n @Mapping(source = \"categoryId\", target = \"category\")\n @Mapping(source = \"languageId\", target = \"language\")\n @Mapping(source = \"groupId\", target = \"group\")\n @Mapping(source = \"heritageAppId\", target = \"heritageApp\")\n @Mapping(source = \"userId\", target = \"user\")\n HeritageMedia heritageMediaDTOToHeritageMedia(HeritageMediaDTO heritageMediaDTO);\n\n default HeritageCategory heritageCategoryFromId(Long id) {\n if (id == null) {\n return null;\n }\n HeritageCategory heritageCategory = new HeritageCategory();\n heritageCategory.setId(id);\n return heritageCategory;\n }\n\n default HeritageLanguage heritageLanguageFromId(Long id) {\n if (id == null) {\n return null;\n }\n HeritageLanguage heritageLanguage = new HeritageLanguage();\n heritageLanguage.setId(id);\n return heritageLanguage;\n }\n\n default HeritageGroup heritageGroupFromId(Long id) {\n if (id == null) {\n return null;\n }\n HeritageGroup heritageGroup = new HeritageGroup();\n heritageGroup.setId(id);\n return heritageGroup;\n }\n\n default HeritageApp heritageAppFromId(Long id) {\n if (id == null) {\n return null;\n }\n HeritageApp heritageApp = new HeritageApp();\n heritageApp.setId(id);\n return heritageApp;\n }\n\n default User userFromId(Long id) {\n if (id == null) {\n return null;\n }\n User user = new User();\n user.setId(id);\n return user;\n }\n}", "@GetMapping(\"/product/{productid}\") \nprivate Products getProducts(@PathVariable(\"productid\") int productid) \n{ \nreturn productsService.getProductsById(productid); \n}", "public interface ICompanyBannerMapper {\n\n\n List<Banner> queryBannerForAPP(@Param(\"companyId\") Integer companyId,@Param(\"type\") Integer type);\n\n\n Banner queryBannerByIdForAPP(@Param(\"id\") Integer id);\n\n Integer addCompanyBanner(CompanyBanner companyBanner);\n\n\n Integer updateCompanyBanner(@Param(\"companyBanner\") CompanyBanner companyBanner);\n\n\n List<CompanyBanner> queryCompanyBannerByItems(Map<String,Object> map);\n\n\n Integer countCompanyBannerByItems(Map<String,Object> map);\n\n\n Integer delCompanyBanner(@Param(\"id\") Integer id);\n\n\n\n CompanyBanner queryBannerById(@Param(\"id\") Integer id);\n\n\n}", "@Bean\n public Docket productApi() {\n return new Docket(DocumentationType.SWAGGER_2)\n .select()\n .paths(PathSelectors.regex(\"/api/.*\"))\n .apis(RequestHandlerSelectors.basePackage(\"com.stackroute.muzix\"))\n .build()\n .apiInfo(apiDetails());\n }", "@GetMapping(\"/product\")\n public String productList(Model model) {\n List<Product> productList = sportyShoesService.getProductList();\n model.addAttribute(\"productList\", productList);\n model.addAttribute(\"appName\", appName);\n return \"product\";\n }", "@Mapper\n@Repository\npublic interface DelPackageMapper extends BaseMapper<MyPackage> {\n}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"下面制造汽车和汽车的各个部件...\");\n\t\t\n\t\tMap<String,Object> carProperties = new HashMap<>();\n\t\tcarProperties.put(HasModel.PROPERTY,\"300SL\"); //这里就是动态(on the fly)为汽没有车添加属性了。\n\t\tcarProperties.put(HasPrice.PROPERTY,100000L);\n\t\t\n\t\t//注意,要创建的wheel这个更是动态的,没有预先给汽车设计wheel这个属性\n\t\t//实际,汽车类里一个属性都没有,如果不使用这个方式,那么还要设计一个wheel类,wheel类下又有至少下面的两个属性(Model和Price)\n\t\t//这里一定要突出事先并不知道汽车到需要什么属性,也只有到了程序运行时(on the fly)才知道\n\t\tMap<String,Object> wheelProperties = new HashMap<>();\n\t\twheelProperties.put(HasType.PROPERTY, \"wheel\");\n\t\twheelProperties.put(HasModel.PROPERTY, \"15C\");\n\t\twheelProperties.put(HasPrice.PROPERTY, 100L);\n\t\t\n\t\tMap<String, Object> doorProperties = new HashMap<>();\n\t\tdoorProperties.put(HasType.PROPERTY, \"door\");\n\t\tdoorProperties.put(HasModel.PROPERTY, \"Lambo\");\n\t\tdoorProperties.put(HasPrice.PROPERTY, 300L);\n\n\t\tcarProperties.put(HasParts.PROPERTY, Arrays.asList(wheelProperties,doorProperties));\n\t\t\n\t\tCar car = new Car(carProperties);\n\t\t\n\t\tSystem.out.println(\"下面我们已经创建好的汽车:\");\n\t\tSystem.out.println(\" -> model:\"+car.getModel().get());\n\t\tSystem.out.println(\" -> price:\"+car.getPrice().get());\n\t\tSystem.out.println(\"汽车的其它部件:\");\n\t\tcar.getParts().forEach(p -> System.out.println(\"->\"+p.getType().get()+\",\"+p.getModel().get()+\",\"+p.getPrice().get()));\n\t}", "@Mapper\npublic interface IndustryDistributionMapper {\n\n /**\n * 行业分布\n *\n * @return\n */\n List<IndustryDistributionModel> queryIndustryDistribution();\n\n}", "public interface SaleStoreDesignerMapper extends BaseMapperWithBLOBS<SaleStoreDesigner,SaleStoreDesignerWithBLOBs, Long, SaleStoreDesignerExample> {\n @Select(\"select id,name from sale_store_designer where delete_flag=0 and store_id=#{storeId}\")\n List<IdName> getSimpleListByStoreId(Long storeId);\n\n @Select(\"select id,name,portrait from sale_store_designer where id = #{id}\")\n IdNamePortrait getSimpleInfo(Long id);\n\n @Select(\"select id, store_id, name, head_img,portrait, intro, html_content from sale_store_designer where delete_flag=0 and id =#{id}\")\n DesignerInfoPage getInfo(Long id);\n\n @Select(\"select id,name,portrait from sale_store_designer where delete_flag=0\")\n List<SimpleDesigner> getSimpleList();\n\n @Select(\"select id,name,portrait from sale_store_designer where delete_flag=0 and store_id = #{storeId}\")\n List<SimpleDesigner> getSimpleListByStore(Long storeId);\n\n @Select(\"select d.id,d.name,d.portrait from sale_store_designer d left join sys_store s on s.id=d.store_id where d.delete_flag=0 and s.project_id = #{projectId}\")\n List<SimpleDesigner> getSimpleListByProject(Long projectId);\n\n}", "public ProductDetails getProductDetails(Long productId) {\n\t\t// TODO Auto-generated method stub\t\t\n\t\t//do http get call\n ResponseEntity<String> productDetails = doRestTemplateCall(ConstantsUtil.BASE_URL+productId+ConstantsUtil.URL_ENDPOINT);\n ProductDetails pdtDetailsResponse = new ProductDetails();\n //To handle redirect from http to https\n HttpHeaders httpHeaders = productDetails.getHeaders();\n HttpStatus statusCode = productDetails.getStatusCode();\n if (statusCode.equals(HttpStatus.MOVED_PERMANENTLY) || statusCode.equals(HttpStatus.FOUND) || statusCode.equals(HttpStatus.SEE_OTHER)) {\n if (httpHeaders.getLocation() != null) {\n \tproductDetails = doRestTemplateCall(httpHeaders.getLocation().toString());\n } else {\n throw new RuntimeException();\n }\n }\n if(null!= productDetails) { //to check if productdetail response is received \n log.info(\"product details found:\"+productDetails.getBody());\n \n JsonNode node;\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n\t\t\tnode = objectMapper.readValue(productDetails.getBody(), JsonNode.class);\n\t\t\tif(!myRetailAppDao.isProductDetailsPresent(productId))\t //check if product data is present in MongoDB\n\t\t\t\tmyRetailAppDao.saveToMongoDB(productDetails.getBody()); // if not, save product data to MongoDB\n\t\t\telse\n\t\t\t\tlog.info(\"Data for prductId \"+productId+\" is already present in DB, skipping insert\");\n\t\t\tJsonNode title = null;\n\t\t\t//get product title from the nested json\n\t\t\ttitle = node.get(ConstantsUtil.PRODUCT).get(ConstantsUtil.ITEM).get(ConstantsUtil.PDT_DESC).get(ConstantsUtil.TITLE);\n\t\t\tlog.info(\"title:\"+title.asText());\n\t\t\t//set the product details response\n\t\t\tpdtDetailsResponse.setName(title.asText());\n\t\t\tpdtDetailsResponse.setId(productId);\n\t\t\tCurrentPrice currentPrice = new CurrentPrice();\n\t\t\tPriceAndCurrency priceAndCurr = myRetailAppDao.getPriceAndCurrency(productId); //get price and currency details\n\t\t\tcurrentPrice.setCurrency_code(CurrencyMap.getCurrencyCode(priceAndCurr.getCurrency()));\n\t\t\tcurrentPrice.setValue(priceAndCurr.getPrice()); \n\t\t\tpdtDetailsResponse.setCurrentPrice(currentPrice);\n\t\t\t\n\t\t\tlog.info(\"pdtDetailsResponse:\"+pdtDetailsResponse.toString());\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"Error while calling external api for title\",e);\n\t\t}\n }\n \n \treturn pdtDetailsResponse;\n\t}", "public interface SkuStorageAttachMapper {\n\n /**\n * 查询指定优先级下有效的SKU库存\n *\n * @param params\n * @return\n */\n public List<SkuStorage> queryOfPriority(Map<String,Object> params);\n\n /**\n * 查询库存组下启用库存的SKU库存下没有价格的数量\n * @param groupId\n * @return\n */\n public Integer countOfNoPrice(@Param(\"groupId\")String groupId);\n}", "@RequestMapping(\"/productlist/Productdetails/{id}\")\n\n public String Productdetails(@PathVariable String id, Model model) throws IOException{\n\n Product bike = productDao.getProductById(id);\n model.addAttribute(bike);\n\n\n return \"productdetails\";\n }", "@Mapper(componentModel = \"spring\", uses = {OperationMapper.class, PecStatusChangeMatrixMapper.class, StatusPecMapper.class,})\npublic interface RaisonPecMapper extends EntityMapper <RaisonPecDTO, RaisonPec> {\n\n @Mapping(source = \"operation.id\", target = \"operationId\")\n @Mapping(source = \"operation.label\", target = \"operationLabel\")\n @Mapping(source = \"statusPec.id\", target = \"statusPecId\")\n @Mapping(source = \"statusPec.label\", target = \"statusPecLabel\")\n\n \n @Mapping(source = \"pecStatusChangeMatrix.id\", target = \"pecStatusChangeMatrixId\")\n @Mapping(source = \"pecStatusChangeMatrix.label\", target = \"pecStatusChangeMatrixLabel\")\n \n RaisonPecDTO toDto(RaisonPec raisonPec); \n\n @Mapping(source = \"operationId\", target = \"operation\")\n\n\n\n @Mapping(source = \"statusPecId\", target = \"statusPec\")\n\n \n @Mapping(source = \"pecStatusChangeMatrixId\", target = \"pecStatusChangeMatrix\")\n\n RaisonPec toEntity(RaisonPecDTO raisonPecDTO); \n default RaisonPec fromId(Long id) {\n if (id == null) {\n return null;\n }\n RaisonPec raisonPec = new RaisonPec();\n raisonPec.setId(id);\n return raisonPec;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Owner3Mapper extends EntityMapper <Owner3DTO, Owner3> {\n \n @Mapping(target = \"car3S\", ignore = true)\n Owner3 toEntity(Owner3DTO owner3DTO); \n default Owner3 fromId(Long id) {\n if (id == null) {\n return null;\n }\n Owner3 owner3 = new Owner3();\n owner3.setId(id);\n return owner3;\n }\n}", "ProductDto createProduct(ProductDto productDto);", "@Repository\npublic interface MeisoShopStoreBlockLogMapper extends Mapper<MeisoShopStoreBlockLog>{\n\n int insertSsbs(MeisoShopStoreBlockLog meisoShopStoreBlockLog);\n \n //解封商家\n int updateAgencyStatus();\n \n //解封门店\n int updateStoreStatus();\n \n //更新exception表异常状态\n int updateAgencyException();\n \n //更新exception表异常状态\n int updateStoreException();\n \n}", "@Repository\npublic interface ICommonMapper extends BaseMapper {\n /**\n * 查询审批中的项目\n * @param type 项目类型\n * @param id 项目ID\n * @return List<HashMap<String, Object>>\n */\n List<HashMap<String, Object>> selectApprovalProjects(@Param(\"type\") String type, @Param(\"id\")String id);\n /**\n * 查询评审中的项目\n * @param type 项目类型\n * @param id 项目ID\n * @return List<HashMap<String, Object>>\n */\n List<HashMap<String, Object>> selectReviewProjects(@Param(\"type\")String type, @Param(\"id\")String id);\n}", "@Mapper(componentModel = \"spring\", uses = {AppMenuMapper.class, AppGroupMapper.class})\npublic interface AppAppsMapper extends EntityMapper<AppAppsDTO, AppApps> {\n\n @Mapping(source = \"menu.id\", target = \"menuId\")\n @Mapping(source = \"group.id\", target = \"groupId\")\n AppAppsDTO toDto(AppApps appApps); \n\n @Mapping(source = \"menuId\", target = \"menu\")\n @Mapping(source = \"groupId\", target = \"group\")\n AppApps toEntity(AppAppsDTO appAppsDTO);\n\n default AppApps fromId(Long id) {\n if (id == null) {\n return null;\n }\n AppApps appApps = new AppApps();\n appApps.setId(id);\n return appApps;\n }\n}", "public interface AlmacenMapper {\n @Select(value = \"select tipo,descripcion from tipoproducto\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n })\n List<Producto> listarTipoProducto();\n\n @Insert(value = \"INSERT \" +\n \"INTO producto \" +\n \" ( \" +\n \" codigo, \" +\n \" nombre, \" +\n \" tipo, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" producto_seq.nextval, \" +\n \" #{produ.nombre}, \" +\n \" #{produ.tipo}, \" +\n \" #{produ.porc_precio}, \" +\n \" #{produ.uni_medida}, \" +\n \" #{produ.cantidad} \" +\n \" )\")\n void GuardarProducto(@Param(\"produ\") Producto producto);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre, \" +\n \" p.tipo, \" +\n \" tp.descripcion, \" +\n \" porc_precio, \" +\n \" uni_medida, \" +\n \" cantidad \" +\n \"FROM producto p \" +\n \"INNER JOIN tipoproducto tp \" +\n \"ON(p.tipo=tp.tipo)\")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n @Result(property = \"tipo\",column = \"tipo\"),\n @Result(property = \"descripcion\",column = \"descripcion\"),\n @Result(property = \"porc_precio\",column = \"porc_precio\"),\n @Result(property = \"uni_medida\",column = \"uni_medida\"),\n @Result(property = \"cantidad\",column = \"cantidad\"),\n })\n List<Producto> listarProductos();\n\n @Update(value =\"UPDATE producto \" +\n \"SET nombre =#{produ.nombre}, \" +\n \" porc_precio=#{produ.porc_precio}, \" +\n \" tipo= \" +\n \" #{produ.tipo} \" +\n \"WHERE codigo=#{produ.codigo}\" )\n void ActualizarProducto(@Param(\"produ\") Producto producto);\n\n @Delete(value=\"DELETE FROM PRODUCTO WHERE codigo=#{id}\")\n void EliminarProducto(@Param(\"id\") Integer id);\n\n @Select(value = \"SELECT codigo, \" +\n \" nombre \" +\n \"FROM producto p where tipo=#{id} \")\n @Results(value = {\n @Result(javaType = Producto.class),\n @Result(property = \"codigo\",column = \"codigo\"),\n @Result(property = \"nombre\",column = \"nombre\"),\n })\n List<Producto> ListarProductosxCategoria(@Param(\"id\") Integer id);\n\n @Insert(value = \"INSERT \" +\n \"INTO entrada_productos \" +\n \" ( \" +\n \" n_entrada, \" +\n \" fecha, \" +\n \" costo_total \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" entrada_seq.nextval , \" +\n \" sysdate, \" +\n \" #{entrada.costo_total} \" +\n \" )\")\n void insertEntradaProducto(@Param(\"entrada\") EntradaProducto entrada);\n\n @Insert(value = \"INSERT \" +\n \"INTO detalle_entrada_productos \" +\n \" ( \" +\n \" N_ENTRADA, \" +\n \" COD_PRODUCTO, \" +\n \" COD_PROVEEDOR, \" +\n \" CANTIDAD, \" +\n \" PRECIO_COMPRA, \" +\n \" COSTO_TOTAL_PRODUCTO \" +\n \" ) \" +\n \" VALUES \" +\n \" ( \" +\n \" (select max(n_entrada) from entrada_productos), \" +\n \" #{entrada.cod_producto}, \" +\n \" #{entrada.cod_proveedor}, \" +\n \" #{entrada.cantidad}, \" +\n \" #{entrada.precio_compra}, \" +\n \" #{entrada.costo_total_producto} \" +\n \" )\")\n void inserDetalleEntradaProductos(@Param(\"entrada\") EntradaProducto entrada);\n\n @Update(value =\"UPDATE producto \" +\n \"SET cantidad=(select cantidad+#{entrada.cantidad} from producto where codigo=#{entrada.cod_producto}) \"+\n \"WHERE codigo=#{entrada.cod_producto}\" )\n void updateStockProducto(@Param(\"entrada\")EntradaProducto entrada);\n}", "@Component(value = \"p2pMapper\")\npublic interface P2PMapper extends SqlMapper {\n\n void createInfo(P2PInfo info);\n void updateInfo(P2PInfo info);\n Tender queryTenderById(Integer id);\n\n P2PInfo queryInfoById(int id);\n\n P2PInfo queryInfoByOrderId(int id);\n\n}", "@Mapper\npublic interface RecruitMapper {\n\n /**\n * 根据招募表主键ID查询\n * @param id\n * @return\n */\n public Recruit getRecruitById(String id);\n\n /**\n * 根据商家ID查询对应招募信息\n * @param owner\n * @return\n */\n public List<Recruit> getRecruitListByOwner(String owner);\n\n public int insertRecruit(Recruit recruit);\n\n public int updateRecruit(Recruit recruit);\n}", "public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(Config.class);\n User user = context.getBean(User.class);\n Product product = context.getBean(Product.class);\n product.setName(\"moz\");\n product.setPrice(20000);\n user.setName(\"ali\");\n user.setLastName(\"piry\");\n user.setProduct(product);\n\n User user1 = context.getBean(User.class);\n user1.setName(\"asgar\");\n user1.setLastName(\"asgari\");\n Product product1 = context.getBean(Product.class);\n product1.setName(\"khiar\");\n product1.setPrice(5000);\n user1.setProduct(product1);\n System.out.println(user);\n System.out.println(user1);\n }", "@Mapper(withIoC = IoC.SPRING, withIgnoreMissing = IgnoreMissing.ALL)\npublic interface RemainMapper extends SelmaObjectMapper<RemainTadbir, Remain> {\n}", "@Mapper(componentModel = \"spring\", uses = {CompanyMapper.class})\npublic interface VehicleMapper extends EntityMapper<VehicleDTO, Vehicle> {\n\n @Mapping(source = \"company.id\", target = \"companyId\")\n VehicleDTO toDto(Vehicle vehicle);\n\n @Mapping(target = \"vehicleDocuments\", ignore = true)\n @Mapping(target = \"vehicleStaffs\", ignore = true)\n @Mapping(source = \"companyId\", target = \"company\")\n Vehicle toEntity(VehicleDTO vehicleDTO);\n\n default Vehicle fromId(Long id) {\n if (id == null) {\n return null;\n }\n Vehicle vehicle = new Vehicle();\n vehicle.setId(id);\n return vehicle;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface MilestoneMapper extends EntityMapper<MilestoneDTO, Milestone> {\n\n\n\n default Milestone fromId(Long id) {\n if (id == null) {\n return null;\n }\n Milestone milestone = new Milestone();\n milestone.setId(id);\n return milestone;\n }\n}", "@Mapper(componentModel = \"spring\")\npublic interface FrecuenciaMapper extends AbstractMapper<FrecuenciaVO, Frecuencia> {\n}", "public interface CspPackageDAO extends Mapper<CspPackage> {\n\n CspPackage findUserPackageById(@Param(\"userId\") String userId);\n\n List<CspPackage> findCspPackage();\n\n\n\n}", "public interface ProductMeterialInfoDao {\r\n public List<Product_material_info> getProductPageList(Page<Product_material_info> pageInfo);\r\n public int getProductPageCount(Map<String, Object> params);\r\n\r\n List<Supplier_product_rel> getSupplierProductPageList(Page<Supplier_product_rel> pageInfo);\r\n int getSupplierProductPageCount(Page<Supplier_product_rel> pageInfo);\r\n\r\n public void addProductInfo(Map<String, Object> params);\r\n public void delProduct(Map<String, Object> params);\r\n public Product_material_info getProductInfo(Map<String, Object> params);\r\n public void updProductInfo(Map<String,Object> params);\r\n public List<Product_material_info> getProductList(Map<String, Object> params);\r\n public String getProductImage(Map<String, Object> params);\r\n\r\n\r\n List<product_use> getProductMaterialList(Map<String,Object> params);\r\n int getProductMaterialCount(Map<String,Object> params);\r\n List<product_use> use_material(Map<String,Object> params);\r\n void add_Usematerial(Map<String,Object> params);\r\n List<product_use> MaterialHistoryList(Map<String,Object> params);\r\n int MaterialHistoryCount(Map<String,Object> params);\r\n void updProductMaterial(Map<String,Object> params);\r\n List<consumable_use> getProductSuppliesList(Map<String,Object> params);\r\n int getProductSuppliesCount(Map<String,Object> params);\r\n List<consumable_use> use_supplies(Map<String,Object> params);\r\n void add_Usesupplies(Map<String,Object> params);\r\n void updProductSupplies(Map<String,Object> params);\r\n List<consumable_use> SuppliesHistoryList(Map<String,Object> params);\r\n int SuppliesHistoryCount(Map<String,Object> params);\r\n List<product_research> getProductResearchList(Map<String,Object> params);\r\n int getProductResearchCount(Map<String,Object> params);\r\n List<product_research> use_res(Map<String,Object> params);\r\n void add_Useres(Map<String,Object> params);\r\n void updProductRes(Map<String,Object> params);\r\n List<product_research> ResearchHistoryList(Map<String,Object> params);\r\n int ResearchHistoryCount(Map<String,Object> params);\r\n public List<Staff_info> moblieSelect(Map<String,Object> params);\r\n List<Product_material_enter_detail> stockSelectCas(Map<String,Object> params);\r\n void apply_purchasing(Map<String,Object> params);\r\n List<Product_material_enter_detail> use_purchasing(Map<String,Object> params);\r\n void add_purchasing(Map<String,Object> params);\r\n List<consumable_material_info> suppliesSelectName(Map<String,Object> params);\r\n void add_supplies(Map<String,Object> params);\r\n void add_consumable_use(Map<String,Object> params);\r\n List<consumable_repair> suppliesRepairList(Map<String,Object> params);\r\n int suppliesRepairCount(Map<String,Object> params);\r\n void addRepairList(Map<String,Object> params);\r\n void updRepair(Map<String,Object> params);\r\n List<consumable_repair> selectRepairName(Map<String,Object> params);\r\n List<consumable_repair> selectRepairFanxiu(Map<String,Object> params);\r\n void addRepairFanxiu(Map<String,Object> params);\r\n void no_addRepairFanxiu(Map<String,Object> params);\r\n List<consumable_material_info> fanxiu_add_select(Map<String,Object> params);\r\n void addFanxiuRepair(Map<String,Object> params);\r\n void fanxiu_info_add(Map<String,Object> params);\r\n\r\n List<product_use> MaterialRequisitionAuditList(Map<String,Object> params);\r\n int MaterialRequisitionAuditCount(Map<String,Object> params);\r\n void ConfirmationAudit(Map<String,Object> params);\r\n product_use Receive_Preview(int use_id);\r\n List<Staff_info> staff_mobilephone(Map<String,Object> params);\r\n List<consumable_use> getConsumableList(Map<String,Object> params);\r\n int getConsumableCount(Map<String,Object> params);\r\n void useUpdate(Map<String,Object> params);\r\n List<consumable_use> consumable_mobilephone(Map<String, Object> params);\r\n List<product_research> getResearchList(Map<String, Object> params);\r\n int getResearchCount(Map<String, Object> params);\r\n void researchStatusUp(Map<String,Object> params);\r\n void researchDel(product_research product_research);\r\n\r\n\r\n\r\n List<PurchaseInventoryInfo> warehouseMaterialList(Map<String, Object> params);\r\n int warehouseMaterialCount(Map<String, Object> params);\r\n\r\n List<PurchaseInventoryInfo> warehouseMaterialList_history(Map<String, Object> params);\r\n int warehouseMaterialCount_history(Map<String, Object> params);\r\n\r\n}", "@Mapper(componentModel = \"spring\", uses = {LessonMapper.class})\npublic interface CourseMapper extends EntityMapper<CourseDTO, Course> {\n\n\n @Mapping(target = \"resources\", ignore = true)\n @Mapping(target = \"programs\", ignore = true)\n Course toEntity(CourseDTO courseDTO);\n\n default Course fromId(Long id) {\n if (id == null) {\n return null;\n }\n Course course = new Course();\n course.setId(id);\n return course;\n }\n}", "@Test\n public void productSpecificationTest() {\n // TODO: test productSpecification\n }", "@Mapper\npublic interface SysPayMoneyDao extends BaseMapper<SysPayMoneyEntity> {\n}", "public static void main(String[] args) {\n PizzaOrderer po = new PizzaOrderer();\r\n po.addProduct(new Gavaian())\r\n .addProduct(new GoldFeather(new Margarita()));\r\n\r\n Product pizza = new Gavaian();\r\n pizza.productDescribtion();\r\n\r\n pizza = new GoldFeather(new Margarita());\r\n\r\n pizza.productDescribtion();\r\n\r\n //System.out.println(po.getTotalCharge());\r\n //Gavaian pizza = new Gavaian();\r\n //pizza.productBuilder();\r\n }", "public String getDatabaseName()\n {\n return \"product\";\n }", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface WwtreatmentthreeMapper {\n\n WwtreatmentthreeDTO wwtreatmentthreeToWwtreatmentthreeDTO(Wwtreatmentthree wwtreatmentthree);\n\n List<WwtreatmentthreeDTO> wwtreatmentthreesToWwtreatmentthreeDTOs(List<Wwtreatmentthree> wwtreatmentthrees);\n\n Wwtreatmentthree wwtreatmentthreeDTOToWwtreatmentthree(WwtreatmentthreeDTO wwtreatmentthreeDTO);\n\n List<Wwtreatmentthree> wwtreatmentthreeDTOsToWwtreatmentthrees(List<WwtreatmentthreeDTO> wwtreatmentthreeDTOs);\n}", "@GetMapping(\"/sysadm/product\")\n public String showAllProduct() {\n return \"admin/sysadm/productList\";\n }", "@Test\n public void bundledProductOfferingTest() {\n // TODO: test bundledProductOffering\n }", "@Component(\"keeperWelfareDao\")\npublic interface IKeeperWelfareMapper extends IMyBatisMapper {\n List<ShopKeeperWelfareDomain> queryWelfare(@Param(\"welfareName\") String welfareName, @Param(\"welfareId\") Integer welfareId, @Param(\"typeId\") Integer typeId,@Param(\"limit\") Integer limit, @Param(\"offset\") Integer offset, @Param(\"areaId\") Integer areaId, @Param(\"netType\") String netType);\n\n int queryWelfareCount(@Param(\"welfareName\") String welfareName, @Param(\"welfareId\") Integer welfareId, @Param(\"typeId\") Integer typeId, @Param(\"areaId\") Integer areaId, @Param(\"netType\") String netType);\n\n void addWelfare(ShopKeeperWelfareDomain shopKeeperWelfareDomain);\n\n void updateWelfare(@Param(\"welfareDomain\") ShopKeeperWelfareDomain shopKeeperWelfareDomain);\n\n void deleteWelfare(@Param(\"welfareId\") Integer welfareId);\n\n int queryWelfareCountByProductId(@Param(\"productId\") String productId);\n\n List<ShopKeeperWelfareDomain> queryWelfareForApp();\n}", "@Mapper(componentModel = \"spring\", uses = {ProduitMapper.class, AchatLigneProformaMapper.class})\npublic interface AchatArticleLigneProformaMapper extends EntityMapper<AchatArticleLigneProformaDTO, AchatArticleLigneProforma> {\n\n @Mapping(source = \"produit.id\", target = \"produitId\")\n @Mapping(source = \"achatLigneProforma.id\", target = \"achatLigneProformaId\")\n AchatArticleLigneProformaDTO toDto(AchatArticleLigneProforma achatArticleLigneProforma);\n\n @Mapping(source = \"produitId\", target = \"produit\")\n @Mapping(source = \"achatLigneProformaId\", target = \"achatLigneProforma\")\n AchatArticleLigneProforma toEntity(AchatArticleLigneProformaDTO achatArticleLigneProformaDTO);\n\n default AchatArticleLigneProforma fromId(Long id) {\n if (id == null) {\n return null;\n }\n AchatArticleLigneProforma achatArticleLigneProforma = new AchatArticleLigneProforma();\n achatArticleLigneProforma.setId(id);\n return achatArticleLigneProforma;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {OrderPreparationMapper.class})\npublic interface StateMapper extends EntityMapper<StateDTO, State> {\n\n @Mapping(source = \"orderPreparation.id\", target = \"orderPreparationId\")\n StateDTO toDto(State state);\n\n @Mapping(source = \"orderPreparationId\", target = \"orderPreparation\")\n State toEntity(StateDTO stateDTO);\n\n default State fromId(Long id) {\n if (id == null) {\n return null;\n }\n State state = new State();\n state.setId(id);\n return state;\n }\n}", "public interface ProductService {\n\n\t/**\n\t * Method gets a product based on the automatically generated productId\n\t * Primary Key\n\t * \n\t * @param productId\n\t * @return Product\n\t */\n\tProduct getProductById(Integer productId);\n\n\t/**\n\t * Method gets a product based on the provided product name\n\t * \n\t * @param productName\n\t * Name of the product\n\t * @return Product\n\t */\n\tProduct getProductByProductName(String productName);\n\n\t/**\n\t * Method registers a product based on the information filled on product\n\t * form\n\t * \n\t * @param userDTO\n\t * @return User\n\t */\n\tProduct registerProduct(ProductDTO productDTO);\n\n\t/**\n\t * Method marks a product record as deleted in the database based on the\n\t * provided productName and return true as boolean result on success\n\t * \n\t * @param productDTO\n\t * @param authentication\n\t * Spring Security Authentication object to acquire admin details\n\t * @return boolean\n\t */\n\tboolean deleteProduct(ProductDTO productDTO, Authentication authentication);\n\n\t/**\n\t * Method gets a list of all the products in the database\n\t * \n\t * @return List of all the products ordered by the productName\n\t */\n\tList<Product> getAllProducts();\n\n\t/**\n\t * Method gets a list of all the products in the database belonging to the\n\t * category provided\n\t * \n\t * @param category\n\t * Category of the product\n\t * @return List of all the products based on provided category\n\t */\n\tList<Product> getProductsByCategory(String category);\n\n\t/**\n\t * Method updates a product based on the information filled on product\n\t * update form\n\t * \n\t * @param productDTO\n\t * @param authentication\n\t * Spring Security Authentication object to acquire admin details\n\t * @return updated product\n\t */\n\n\tProduct updateProductDetails(ProductDTO productDTO, Authentication authentication);\n\n\t/**\n\t * Method finds top 5 products sorted in a descending order indicating which\n\t * products have the highest quantity sold\n\t * \n\t * @return List of products based sorted in a descending order based on the\n\t * quantity sold\n\t */\n\tList<Product> getTop5ProductsByQuantitySold();\n\n\t/**\n\t * Method gets a list of products whose productName or short description\n\t * containing the provided productName and short description\n\t * \n\t * @param productSearchString\n\t * The entered search string for product\n\t * @return The list of products containing the supplied search string\n\t */\n\tList<Product> getProductsContainingProductNameOrShortDescription(String productSearchString);\n\n\t/**\n\t * Method counts the number of products in the system\\database\n\t * \n\t * @return the number of products in the system\n\t */\n\tlong countNumberOfProductsInDatabase();\n}", "@Test\n public void createProduct() {\n }", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TerminalMapper extends EntityMapper<TerminalDTO, Terminal> {\n\n\n\n default Terminal fromId(Long id) {\n if (id == null) {\n return null;\n }\n Terminal terminal = new Terminal();\n terminal.setId(id);\n return terminal;\n }\n}", "public ProductOverviewController() {\n }", "@Autowired\n public void objectMapper(ObjectMapper objectMapper) {\n objectMapper.addMixIn(ProductOption.class, ProductOptionMixIn.class);\n }", "@Repository\npublic interface TmsWishMapper {\n //提交我的心愿歌单\n void insert(TmsWish tmsWish);\n //查询我的愿望歌单\n List<TmsWish> getList(TmsWishParam param);\n Integer getCount(TmsWishParam param);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifLineMapper extends EntityMapper <TarifLineDTO, TarifLine> {\n \n \n default TarifLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n TarifLine tarifLine = new TarifLine();\n tarifLine.setId(id);\n return tarifLine;\n }\n}", "@Bean\n public Docket productApi() {\n return new Docket(DocumentationType.SWAGGER_2) \t\t\t\t \n\t\t .select()\n\t\t \t//.apis(RequestHandlerSelectors.any())\n\t\t \t.apis(RequestHandlerSelectors.basePackage(\"com.thingtrack.training.vertica.services.controller\"))\n\t\t \t.paths(PathSelectors.any())\t\t \t\t \n\t\t \t.build()\n\t\t .securitySchemes(Lists.newArrayList(apiKey()))\n\t\t .securityContexts(Lists.newArrayList(securityContext()))\t\t \t\n\t\t .apiInfo(metaData());\n }", "@DirtiesDatabase\n\t@Test\n\tpublic void testGetImageMapProduct() {\n\t\tProduct product = createProduct();\n\t\t\n\t\tImageMap imageMap = service.getImageMap(product);\n\t\tSet<String> imageKeys = imageMap.getImageKeys();\n\t\tassertEquals(\"There should be 3 image keys\", 3, imageKeys.size());\n\t\tassertEquals(\"There should be 3 keys for English\", 3, imageMap.getImageKeys(Locale.ENGLISH).size());\n\t\tassertEquals(\"There should be 3 keys for English Canadian\", 3, imageMap.getImageKeys(new Locale(\"en\", \"CA\")).size());\n\t\tassertEquals(\"There should be 2 keys for French Canadian\", 2, imageMap.getImageKeys(Locale.CANADA_FRENCH).size());\n\t\tassertEquals(\"There should be 1 key for other languages\", 1, imageMap.getImageKeys(Locale.GERMAN).size());\n\t\t\n\t\tassertTrue(\"There should be images for English\", imageMap.hasImages(Locale.ENGLISH));\n\t\tassertTrue(\"There should be images for French Canadian\", imageMap.hasImages(Locale.CANADA_FRENCH));\n\t\tassertTrue(\"There should be images for even German, since we do have a default image!\", imageMap.hasImages(Locale.GERMAN));\n\t\t\n\t\tassertEquals(\"The image for the thumbnail should point to thumbnail.jpg\", \"thumbnail.jpg\", imageMap.getImagePath(\"thumbnail\", Locale.ENGLISH));\n\n\t\tassertEquals(\"There should be a default image\", \"defaultImage.jpg\", imageMap.getImagePath(\"defaultImage\", Locale.ENGLISH));\n\t\tassertEquals(\"The english image should be found\", \"mainImage.jpg\", imageMap.getImagePath(\"mainImage\", Locale.ENGLISH));\n\t\tassertEquals(\"The more specific image should be found\", \"mainImageCanada.jpg\", imageMap.getImagePath(\"mainImage\", new Locale(\"en\", \"CA\")));\n\t\tassertEquals(\"There should be fallback if an image doesn't exist for a specific locale/country\", \"mainImage.jpg\",\n\t\t\t\timageMap.getImagePath(\"mainImage\", new Locale(\"en\", \"AU\")));\n\t}", "public interface ProductService {\n Product save(Product unsavedProduct);\n void remove(long id);\n Product getOne(long id);\n Page<Product> list(long productTemplateId, String name, int status, int page, int size);\n Page<Product> list(String username, long productTemplateId, String name, int status, int page, int size);\n List<Product> list(Collection<Long> productIds);\n List<Product> list(long cityId, int status);\n Product review(User user, Product fromProduct, Product toProduct);\n boolean hasChildProducts(Product product);\n}", "@Mapper(componentModel = \"spring\", uses = {GovernorateMapper.class, DelegationMapper.class, UserMapper.class, })\npublic interface PolicyHolderMapper extends EntityMapper <PolicyHolderDTO, PolicyHolder> {\n\n @Mapping(source = \"governorate.id\", target = \"governorateId\")\n @Mapping(source = \"governorate.label\", target = \"governorateLabel\")\n\n @Mapping(source = \"delegation.id\", target = \"delegationId\")\n @Mapping(source = \"delegation.label\", target = \"delegationLabel\")\n\n @Mapping(source = \"creationUser.id\", target = \"creationUserId\")\n @Mapping(source = \"creationUser.login\", target = \"creationUserLogin\")\n\n @Mapping(source = \"updateUser.id\", target = \"updateUserId\")\n @Mapping(source = \"updateUser.login\", target = \"updateUserLogin\")\n PolicyHolderDTO toDto(PolicyHolder policyHolder); \n\n @Mapping(source = \"governorateId\", target = \"governorate\")\n\n @Mapping(source = \"delegationId\", target = \"delegation\")\n\n @Mapping(source = \"creationUserId\", target = \"creationUser\")\n\n @Mapping(source = \"updateUserId\", target = \"updateUser\")\n PolicyHolder toEntity(PolicyHolderDTO policyHolderDTO); \n default PolicyHolder fromId(Long id) {\n if (id == null) {\n return null;\n }\n PolicyHolder policyHolder = new PolicyHolder();\n policyHolder.setId(id);\n return policyHolder;\n }\n}", "public static void main(String[] args) throws Exception {\n\t\tApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);\n\t\t\n\t\t\n\t\tProductService service = (ProductServiceImpl) factory.getBean(ProductServiceImpl.class);\n\t\tSystem.out.println(\"Scanning Items.... \");\n\t\t\n\t\tservice.scanProductId(\"Item_1\");\n\t\tservice.scanProductId(\"Item_2\");\n\t\tservice.scanProductId(\"Item_3\");\n\t\tservice.scanProductId(\"Item_4\");\n\t\tservice.scanProductId(\"Item_5\");\n\t\tservice.scanProductId(\"Item_6\");\n\t\tservice.scanProductId(\"Item_7\");\n\t\t\n\t\tSystem.out.println(\"Calculating order amount....\");\n\t\tservice.calculateBill();\n\n\t\t//SpringApplication.run(OrderApplication.class, args);\n\t}", "@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}" ]
[ "0.60077745", "0.59205294", "0.5844186", "0.5821817", "0.57614976", "0.5750053", "0.57446265", "0.5706835", "0.56858367", "0.56699914", "0.56618035", "0.5643287", "0.560798", "0.5577127", "0.5576904", "0.5576621", "0.55759186", "0.5563518", "0.55543447", "0.5544271", "0.5534525", "0.5512516", "0.5475675", "0.5461526", "0.545082", "0.54422295", "0.54349595", "0.5433312", "0.54299426", "0.5422339", "0.54208344", "0.54083157", "0.5405823", "0.5394023", "0.53906703", "0.538753", "0.5333145", "0.5331107", "0.5330344", "0.5325422", "0.5320193", "0.53168243", "0.5313926", "0.5312516", "0.5311153", "0.53025186", "0.53008366", "0.5297803", "0.5296002", "0.5287936", "0.52871", "0.5284934", "0.52806413", "0.5274277", "0.52741396", "0.52738225", "0.5270849", "0.5268455", "0.5261486", "0.52608764", "0.5259795", "0.52523184", "0.5243794", "0.5243003", "0.52429277", "0.5236075", "0.5234726", "0.5218388", "0.5216114", "0.52120703", "0.52110076", "0.5210382", "0.5209874", "0.5209087", "0.520708", "0.52043205", "0.5201209", "0.5195614", "0.51911235", "0.5187365", "0.51859283", "0.5185242", "0.5185139", "0.5182224", "0.5181384", "0.5179542", "0.51775056", "0.51766604", "0.5168146", "0.5167866", "0.5164647", "0.516073", "0.51573557", "0.51553977", "0.51509666", "0.5149844", "0.514377", "0.5142529", "0.5136975", "0.5134704" ]
0.5633669
12
int i, j; i = j = 0;
private double[][] convertArrayToMatrix(ArrayList<String> data, int row, int column) { int ct = 0; double[][] mat = new double[row][column]; for (int i = 0; i < row; i++) { for (int j = 0; j < column; j++) { mat[i][j] = Double.parseDouble(data.get(ct)); ct++; } } /*for (String s : data) { mat[i][j] = Double.parseDouble(s); i++; if (i == row) { i = 0; j++; } if (i == row && j == column) { break; } }*/ return mat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void swap(int i, int j) {\n\t\tlong temp = a[i];\n\t\ta[i] = a[j];\n\t\ta[j] = temp;\n\t}", "private void swap(int i, int j){\n \t\tint temp = a[i];\n \t\ta[i] = a[j];\n \t\ta[j] = temp;\n }", "private void swap(int[] nums, int i, int j) {\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }", "private void swap(int i, int j) {\n\t\tint tmp = data.get(i);\n\t\tdata.set(i, data.get(j));\n\t\tdata.set(j, tmp);\n\t}", "public void foo() {\n\tint j;\n\tint jj = 0;\n\t// System.out.println(i); Will not compile; local variables must be initialized\n\tSystem.out.println(jj);\n }", "public static void swap (int[] elts, int i, int j) {\r\n\t\tint temp = elts[i];\r\n\t\telts[i] = elts[j];\r\n\t\telts[j] = temp;\r\n\t}", "public static void swap (int[] elts, int i, int j) {\r\n\t\tint temp = elts[i];\r\n\t\telts[i] = elts[j];\r\n\t\telts[j] = temp;\r\n\t}", "private void swap(int[] nums, int i, int j) {\n\t\tint tmp=nums[i];\n\t\tnums[i]=nums[j];\n\t\tnums[j]=tmp;\n\t}", "public void swap(int i, int j) {\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }", "public static void test(int j) {\n\t\tj = 33;\n\t}", "private void exchange(int i, int j) {\n int temp = numbers[i];\n numbers[i] = numbers[j];\n numbers[j] = temp;\n \n }", "public void swap(int[] nums, int i, int j) {\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }", "void m15861b(int i, int i2);", "public final void a() {\n this.j = null;\n this.f = 0;\n this.e = 0;\n this.d = 0;\n this.c = 0;\n this.b = 0;\n this.a = 0;\n this.g = null;\n synchronized (i) {\n if (h != null) {\n this.j = h;\n }\n h = this;\n }\n }", "private void exchange(int i, int j){\n\t\tnode_data t = _a[i];\n\t\t_a[i] = _a[j];\n\t\t_a[j] = t;\n\t}", "private void swapAt(int i, int j) {\n\t\tfloat tmp = sequence[i];\n\t\tsequence[i] = sequence[j];\n\t\tsequence[j] = tmp;\n\t}", "private static void swap(int[] array, int j, int i) {\r\n\t\tint temp = array[i];\r\n\t\tarray[i] = array[j];\r\n\t\tarray[j] = temp;\r\n\t}", "static void setX(int j) {\n\t\tpy = j;\n\t}", "static void swap(int[] array, int i, int j) {\n if (i >= 0 && j >= 0 && i < array.length && j < array.length) {\n int tmp = array[i];\n array[i] = array[j];\n array[j] = tmp;\n }\n }", "void mo63039b(int i, int i2);", "void mo54410a(int i, int i2, long j);", "static void swap(int[] A, int i, int j) {\n\t\tint temp = A[i];\n\t\tA[i] = A[j];\n\t\tA[j] = temp;\n\t}", "private static void swap(int[] array, int i, int j) {\n\n int temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }", "public static void main(String[] args) {\n\t\tint a;\n\t\tSystem.out.println(a = 5);\n\t\tSystem.out.println(a);\n\t\tint b = a = 6;\n\t\tSystem.out.println(b);\n\t\tint c=b=a=7;\n\t\t\n\t\ta = 1;\n\t\ta += 2;\n\t\tSystem.out.println(a);\n\t\tint n = 45678;\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\n\t}", "private static void swap(int[] A, int i, int j) {\n int temp = A[i];\n A[i] = A[j];\n A[j] = temp;\n }", "abstract void assign(int i);", "private Pair p(int i, int j) {\n return new Pair(i, j);\n }", "public static void main(String[] args) {\n\t\tint i = 10;\r\n\t\t// i++;\r\n\t\t i=i+1;\r\n\t\t System.out.println(i);\r\n\t\t i=i+2;\r\n\t\t System.out.println(i);\r\n\t\t \r\n\t\t i+=3;\r\n\t\t System.out.println(i);\r\n\t\t \r\n\t\t i++;\r\n\t\t System.out.println(i);\r\n\t\t \r\n\t\t/* j=j+1;\r\n\t\t System.out.println(j); because we did not declare any variable*/\r\n\r\n\t}", "public static void swap(List<Integer> values, int i, int j) {\r\n int temp = values.get(i);\r\n values.set(i, values.get(j));\r\n values.set(j, temp);\r\n }", "void m15859a(int i, int i2);", "private static void swap(int[] nums, int i, int j) {\n nums[i] += nums[j];\n nums[j] = nums[i] - nums[j];\n nums[i] = nums[i] - nums[j];\n }", "void swap(int[] array, int i, int j) {\n\t\tint t = array[i];\n\t\tarray[i] = array[j];\n\t\tarray[j] = t;\n\t}", "public void swap(int i, int j) {\n swapRows(i, j);\n swapColumns(i, j);\n }", "private void swap(int []a, int i, int j){\n\t\tint temp = a[i];\n\t\ta[i] = a[j];\n\t\ta[j] = temp;\n\t}", "static void setTxp(int i, int j){txp1=i;txp2=j;}", "private static void swap(int[] a, int i, int j) {\n int swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static void swap(int[] A, int i , int j){\r\n\t\tint temp = A[i];\r\n\t\tA[i] = A[j];\r\n\t\tA[j] = temp;\r\n\t}", "private void swap(int[] a, int i, int j) {\n int tmp = a[i];\n a[i] = a[j];\n a[j] = tmp;\n }", "private void exchange(int i, int j){\n\t\tString temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n\t}", "private void exchange(int i, int j) {\r\n\t\t//swap values\r\n\t\tint temp = mutualNum[i];\r\n\t\tmutualNum[i] = mutualNum[j];\r\n\t\tmutualNum[j] = temp;\r\n\t\t//swap the same friends\r\n\t\tString Stemp = potentialFriends[i];\r\n\t\tpotentialFriends[i] = potentialFriends[j];\r\n\t\tpotentialFriends[j] = Stemp;\r\n\t}", "private void exch(int i, int j) {\n \tif (i < 0 || j< 0 || j >= length() || i >= length()) \n \t\tthrow new IllegalArgumentException();\n int swap = csa[i];\n csa[i] = csa[j];\n csa[j] = swap;\n }", "private void swapElement ( int p1, int p2 )\n\t{\n\t}", "void mo34684de(int i, int i2);", "public void mo9223a(long j, int i, int i2) {\n }", "public static void swap(int[] a, int i, int j)\n {\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }", "void mo54409a(int i, int i2, int i3, long j);", "private static void swap(int[] arr, int i, int j) {\n arr[i] = arr[j]^arr[i]^(arr[j] = arr[i]);\n }", "public static void swap (int x, int y) {\r\n\t\tint t = x;\r\n\t\tx = y;\r\n\t\ty = t;\r\n\t}", "void mo17008a(int i, int i2);", "public static void swap(int arr[], int i, int j){\n int tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n }", "public static void swap(Integer arr[], int i, int j)\n {\n int tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n }", "void mo54407a(int i, int i2);", "public static void swap(int i, int j, int[] arr)\n {\n int temp=0;\n temp=arr[i];\n arr[i]=arr[j];\n arr[j]=temp;\n }", "public static void swap(int[] arr, int i, int j) {\r\n int temp = arr[i];\r\n arr[i] = arr[j];\r\n arr[j] = temp;\r\n }", "public static void swap(int arr[], int i, int j) {\n int tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n }", "void mo7304b(int i, int i2);", "public static void swap(int[] arr, int i, int j) {\n System.out.println(\"Swapping \" + arr[i] + \" and \" + arr[j]);\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }", "public void mo115203b(int i, int i2) {\n }", "private void assignment() {\n\n\t\t\t}", "public final void mo99830a(int i, int i2) {\n }", "void mo63037a(int i, int i2);", "public static void setBlocked(int i, int j) {\n\tgrid[i][j] = null;\n//\tSystem.out.println(\"end\");\n}", "public static void swap(int[] array, int i, int j)\n {\n int temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }", "private static void swap(List<Integer> list, int i, int j){\n int temp = list.get(i);\n list.set(i,list.get(j));\n list.set(j, temp);\n }", "void mo34676dd(int i, int i2);", "private void swap(int i, int j) {\n double[] temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }", "private int[] swap(int[] a, int i, int j) {\n int tmp;\n tmp = a[i];\n a[i] = a[j];\n a[j] = tmp;\n return a;\n }", "public static void swap(int[] arr, int i, int j) {\n System.out.println(\"Swapping index \" + j + \" and index \" + i);\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }", "void mo17017a(int i, int i2);", "public static void swap(int[] input, int i, int j){\n\t\tint temp = input[i];\n\t\tinput[i] = input[j];\n\t\tinput[j] = temp;\n\t}", "private static <E> void swap(ArrayList<E> a, int i, int j) {\n\t\tE t = a.get(i);\n\t\ta.set(i, a.get(j));\n\t\ta.set(j, t);\n\t}", "private static <E> void swap(ArrayList<E> a, int i, int j) {\n\t\tE t = a.get(i);\n\t\ta.set(i, a.get(j));\n\t\ta.set(j, t);\n\t}", "public void mo5356b(int i, int i2) {\n }", "public static void main(String[] args) {\n int x = 2;\n int y = x ;\n\n\n }", "void mo13371a(int i, long j);", "public static void swap(int[] array, int i, int j) {\n if (i == j) {\n return;\n }\n int temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }", "private static void exch(Object[] a, int i, int j) {\r\n Object swap = a[i];\r\n a[i] = a[j];\r\n a[j] = swap;\r\n }", "@Override\n \tpublic void swap(int i, int j) {\n \t\tint t=data[i];\n \t\tdata[i]=data[j];\n \t\tdata[j]=t;\n \t}", "void mo7308d(int i, int i2);", "public static void swap(int[] array,int i, int j)\n {\n if( i==j)\n {\n return;\n }\n int temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n }", "private static void exch(Object[] a, int i, int j) {\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static void exch(Object[] a, int i, int j) {\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "private static void exch(Object[] a, int i, int j) {\n Object swap = a[i];\n a[i] = a[j];\n a[j] = swap;\n }", "public static void swap(int[] arr,int i,int j){\n int temp=arr[i];\n arr[i]=arr[j];\n arr[j]=temp;\n }", "public static void swap(int[] array, int i, int j) {\n if (array == null || array.length == 0){\n return;\n }\n int temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n\n }", "public static void swap(int[] s, int i, int j) {\n\t\tif (i == j) {\n\t\t\treturn;\n\t\t} else {\n\t\t\t// System.out.println(\"i = \" + i + \" j = \" + j);\n\t\t\ts[i] = s[i] + s[j];\n\t\t\ts[j] = s[i] - s[j];\n\t\t\ts[i] = s[i] - s[j];\n\t\t}\n\t}", "public int setBit(int i, int j){\n return (i|(1<<j));\n }", "private static void swap(int[] arr, int j) {\n\t\t\n\t\tint temp = arr[j];\n\t\tarr[j] = arr[j+1];\n\t\tarr[j+1] = temp;\n\t}", "void mo56156a(int i, int i2);", "void mo4102a(int i, int i2);", "public void swap(int i, int j) {\n double[] temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }", "public void unAssign(){\n\t\tthis.value = 0;\n\t}", "public void swapTwoNumbersWithoutUsingThirdVariable(int a,int b)\n {\n a=a+b;\n b=a-b;\n a=a-b;\n System.out.println(\"a =\"+a);\n System.out.println(\"b =\"+b);\n }", "void mo7301a(int i, int i2);", "public void swapTwoNumbersUsingThirdVariable(int a,int b)\n {\n int temp =0;\n temp = a;\n a=b;\n b=temp;\n System.out.println(\"a = \"+ a);\n System.out.println(\"b = \"+ b);\n }", "void mo7445h(int i, int i2);", "private void swap(int i, int j) {\n Item tmp = heap[i-1];\n heap[i-1] = heap[j-1];\n heap[j-1] = tmp;\n }", "public static void swap(int[] A, int i, int j) {\n int temp = A[i];\n A[i] = A[j];\n A[j] = temp;\n }", "public static void mai(int i, int j) {\n\r\n\t}", "public void mo5369d(int i, int i2) {\n }", "public static void main(String[] args) {\n int a = 123;\r\n int b = 526;\r\n\r\n System.out.println(a);\r\n System.out.println(b);\r\n\r\n int temp;\r\n temp = a;\r\n a = b;\r\n b = temp;\r\n\r\n System.out.println(a);\r\n System.out.println(b);\r\n\r\n // other solution from howotodoinjava.com\r\n int x = 100;\r\n int y = 200;\r\n System.out.println(\"x original: \" + x);\r\n System.out.println(\"y original: \" + y);\r\n\r\n x = x + y;\r\n y = x - y;\r\n x = x - y;\r\n\r\n System.out.println(\"x = \" + x + \" and y = \" + y);\r\n }" ]
[ "0.5928941", "0.5867724", "0.58552283", "0.58265454", "0.57946765", "0.57903045", "0.57903045", "0.5790155", "0.57505906", "0.5732275", "0.57296765", "0.5727004", "0.5713811", "0.57086486", "0.56921285", "0.5674976", "0.56555194", "0.56518745", "0.5626392", "0.56168115", "0.5601883", "0.56005776", "0.5592352", "0.5592083", "0.55880284", "0.55858064", "0.55827224", "0.55822766", "0.5568884", "0.556234", "0.55606544", "0.5557159", "0.55514824", "0.5544334", "0.5543574", "0.55432105", "0.5541233", "0.55405957", "0.55218923", "0.5516318", "0.5508256", "0.55082524", "0.54907256", "0.54731023", "0.5455575", "0.54462856", "0.5441658", "0.5431205", "0.54304206", "0.5425637", "0.54158837", "0.54111356", "0.5401663", "0.5398475", "0.5396341", "0.5395802", "0.5394916", "0.53932875", "0.5388899", "0.5385278", "0.53770286", "0.53728235", "0.53624177", "0.53617984", "0.53573674", "0.53503674", "0.53448796", "0.534279", "0.533989", "0.5325598", "0.531966", "0.531966", "0.5308789", "0.53017837", "0.52857655", "0.5279055", "0.527856", "0.52776444", "0.52719533", "0.5265015", "0.5264075", "0.5264075", "0.5264075", "0.52578694", "0.5256945", "0.5255427", "0.52396387", "0.52323145", "0.52310556", "0.5218525", "0.52177197", "0.5217067", "0.52118164", "0.5210558", "0.52096915", "0.51972747", "0.5195283", "0.51860046", "0.5184713", "0.5183404", "0.5183167" ]
0.0
-1
Create a FacesBean for a component class. TODO change from ownerClass to componentFamily?
static public FacesBean createFacesBean( Class<?> ownerClass, String rendererType) { if (ownerClass == null) return null; String className = ownerClass.getName(); FacesBean bean = createFacesBean(className, rendererType); if (bean == null && rendererType != null) bean = createFacesBean(className, null); if (bean == null) bean = createFacesBean(ownerClass.getSuperclass(), rendererType); return bean; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewJSFManagedBean() {\n }", "ComponentBean getBean();", "ComponentType createComponentType();", "ComponentBean getReferencedBean();", "public BPCustomCharts() {\n FacesContext BPCustomcontext = FacesContext.getCurrentInstance();\n ValueBinding bpCustomValueBinding = \n BPCustomcontext.getApplication().createValueBinding(BPCustomChartBean.BEAN_NAME);\n bpCustomBean = \n (BPCustomChartBean) bpCustomValueBinding.getValue(BPCustomcontext); \n }", "Component createComponent();", "Component createComponent();", "public abstract UIComponent getFacet(String name);", "public static ComponentUI createUI(JComponent pComponent)\r\n {\r\n return new OSDarkLAFComboBoxUI();\r\n }", "@Override\r\n\tpublic JChangeApply createBean() {\n\t\treturn new JChangeApply();\r\n\t}", "public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}", "public UpdateClassManagedBean() {\n }", "public JSFManagedBeanHistorialTurno() {\r\n }", "ComponentRefType createComponentRefType();", "public ClasseBean() {\r\n }", "public ClasseBean() {\r\n }", "@Override\r\n\tpublic UserBean createUserBean()\r\n\t{\r\n\t\treturn new UserManagedBean();\r\n\t}", "public CreadorComentario() {\n faceContext = FacesContext.getCurrentInstance();\n }", "public interface FacesConfig extends JSFConfigComponent, IdentifiableElement {\n \n /**\n * Property for &lt;managed-bean&gt; element\n */\n String MANAGED_BEAN = JSFConfigQNames.MANAGED_BEAN.getLocalName();\n /**\n * Property of &lt;navigation-rule&gt; element\n */\n String NAVIGATION_RULE = JSFConfigQNames.NAVIGATION_RULE.getLocalName();\n /**\n * Property of &lt;converter&gt; element\n */\n String CONVERTER = JSFConfigQNames.CONVERTER.getLocalName();\n \n /**\n * Property of &lt;application&gt; element\n */\n String APPLICATION = JSFConfigQNames.APPLICATION.getLocalName();\n \n /**\n * Property of &lt;ordering&gt; element\n */\n String ORDERING = JSFConfigQNames.ORDERING.getLocalName();\n \n /**\n * Property of &lt;absolute-ordering&gt; element\n */\n String ABSOLUTE_ORDERING =JSFConfigQNames.ABSOLUTE_ORDERING.getLocalName();\n \n /**\n * Property of &lt;factory&gt; element\n */\n String FACTORY =JSFConfigQNames.FACTORY.getLocalName();\n \n /**\n * Property of &lt;component&gt; element\n */\n String COMPONENT =JSFConfigQNames.FACTORY.getLocalName();\n \n /**\n * Property of &lt;name&gt; element.\n */\n String NAME = JSFConfigQNames.NAME.getLocalName();\n \n /**\n * Property of &lt;referenced-bean&gt; element.\n */\n String REFERENCED_BEAN = JSFConfigQNames.REFERENCED_BEAN.getLocalName();\n \n /**\n * Property of &lt;referenced-bean&gt; element.\n */\n String RENDER_KIT = JSFConfigQNames.RENDER_KIT.getLocalName();\n \n /**\n * Property of &lt;lifecycle&gt; element.\n */\n String LIFECYCLE= JSFConfigQNames.LIFECYCLE.getLocalName();\n \n /**\n * Property of &lt;validator&gt; element.\n */\n String VALIDATOR= JSFConfigQNames.VALIDATOR.getLocalName();\n \n /**\n * Property of &lt;faces-config-extension&gt; element.\n */\n String FACES_CONFIG_EXTENSION= JSFConfigQNames.FACES_CONFIG_EXTENSION.getLocalName();\n \n /**\n * Property of &lt;behavior&gt; element.\n */\n String BEHAVIOR= JSFConfigQNames.BEHAVIOR.getLocalName();\n \n \n /**\n * Attribute &lt;metadata-complete&gt; element.\n */\n String METADATA_COMPLETE = \"metadata-complete\"; // NOI18N\n \n /**\n * Attribute &lt;version&gt; element.\n */\n String VERSION = \"version\"; // NOI18N\n\n /**\n * Attribute &lt;faces-flow-definition&gt; element.\n */\n String FLOW_DEFINITION = JSFConfigQNames.FLOW_DEFINITION.getLocalName();\n\n /**\n * Attribute &lt;protected-views&gt; element.\n */\n String PROTECTED_VIEWS = JSFConfigQNames.PROTECTED_VIEWS.getLocalName();\n \n List<Ordering> getOrderings();\n void addOrdering(Ordering ordering);\n void removeOrdering(Ordering ordering);\n \n List<AbsoluteOrdering> getAbsoluteOrderings();\n void addAbsoluteOrdering(AbsoluteOrdering ordering);\n void removeAbsoluteOrdering(AbsoluteOrdering ordering);\n \n List<Factory> getFactories();\n void addFactories( Factory factory );\n void removeFactory( Factory factory );\n \n List<Component> getComponents();\n void addComponent( FacesComponent component );\n void removeComponent( FacesComponent component );\n \n List<Name> getNames();\n void addName( Name name );\n void removeName(Name name );\n \n List<ReferencedBean> getReferencedBeans();\n void addReferencedBean( ReferencedBean bean );\n void removeReferencedBean( ReferencedBean bean);\n \n List<RenderKit> getRenderKits();\n void addRenderKit( RenderKit kit );\n void removeRenderKit( RenderKit kit );\n \n List<Lifecycle> getLifecycles();\n void addLifecycle( Lifecycle lifecycle );\n void removeLifecycle( Lifecycle lifecycle );\n \n List<FacesValidator> getValidators();\n void addValidator( FacesValidator validator );\n void removeValidator( FacesValidator validator );\n \n List<FacesConfigExtension> getFacesConfigExtensions();\n void addFacesConfigExtension( FacesConfigExtension extension );\n void removeFacesConfigExtension( FacesConfigExtension extension );\n \n List<Converter> getConverters();\n void addConverter(Converter converter);\n void removeConverter(Converter converter);\n \n List <ManagedBean> getManagedBeans();\n void addManagedBean(ManagedBean bean);\n void removeManagedBean(ManagedBean bean);\n \n List<NavigationRule> getNavigationRules();\n void addNavigationRule(NavigationRule rule);\n void removeNavigationRule(NavigationRule rule);\n \n List<Application> getApplications();\n void addApplication(Application application);\n void removeApplication(Application application);\n \n List<FacesBehavior> getBehaviors();\n void addBehavior( FacesBehavior behavior );\n void removeBehavior( FacesBehavior behavior );\n\n List<FlowDefinition> getFlowDefinitions();\n void addFlowDefinition(FlowDefinition flowDefinition);\n void removeFlowDefinition(FlowDefinition flowDefinition);\n\n List<ProtectedViews> getProtectedViews();\n void addProtectedView(ProtectedViews protectedView);\n void removeProtectedView(ProtectedViews protectedView);\n \n void addFacesConfigElement( int index, FacesConfigElement element );\n List<FacesConfigElement> getFacesConfigElements();\n \n Boolean isMetaDataComplete();\n void setMetaDataComplete( Boolean isMetadataComplete);\n \n String getVersion();\n void setVersion(String version);\n}", "private JComponent initComponent(Class compClass, String label) {\r\n\t\tJComponent comp = null;\r\n\t\tif (compClass == JLabel.class) {\r\n\t\t\tcomp = new JLabel(label);\t\t\t\r\n\t\t}\r\n\t\telse if (compClass == JTextField.class) {\r\n\t\t\tcomp = new JTextField();\t\t\t\r\n\t\t}\r\n\t\telse if (compClass == JComboBox.class) {\r\n\t\t\tcomp = new JComboBox();\r\n\t\t\t((JComboBox) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JButton.class) {\r\n\t\t\tcomp = new JButton(label);\r\n\t\t\t((JButton) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JRadioButton.class) {\r\n\t\t\tcomp = new JRadioButton(label);\r\n\t\t\t((JRadioButton) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JMenuItem.class) {\r\n\t\t\tcomp = new JMenuItem(label);\r\n\t\t\t((JMenuItem) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JCheckBox.class) {\r\n\t\t\tcomp = new JCheckBox(label);\r\n\t\t\t((JCheckBox) comp).addActionListener(this);\r\n\t\t}\r\n\t\tcomp.setFont(tahoma);\r\n\t\treturn comp;\r\n\t}", "ComponentsType createComponentsType();", "public AfficherEtatManagedBean() {\r\n\r\n }", "public TestManagedBeanFactory(String name) {\n \n super(name);\n \n }", "private JComponent createComponent(ViewModel<?> model)\r\n {\r\n JComponent comp = ControllerFactory.createComponent(model, null);\r\n if (comp instanceof JCheckBox)\r\n {\r\n ((JCheckBox)comp).setText(null);\r\n }\r\n return comp;\r\n }", "@Subcomponent.Builder\n interface Factory {\n LoginComponent create();\n }", "public void createAndShowGUI() {\n JFrame frame = new JFrame();\n frame.setSize(500, 500);\n frame.setTitle(\"Face Viewer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n FaceComponent component = new FaceComponent();\n frame.add(component);\n frame.setVisible(true);\n }", "public StaffBean() {\n try {\n username = SessionController.getInstance().getUser((HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false));\n genders = GBEnvironment.getInstance().getCatalog(GB_CommonStrConstants.CT_GENDER).getAllCatalog();\n id_types= GBEnvironment.getInstance().getCatalog(GB_CommonStrConstants.CT_IDTYPE).getAllCatalog();\n charge_up();\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(28), null);\n }\n }", "public static ComponentUI createUI(JComponent b)\r\n/* 15: */ {\r\n/* 16:49 */ return new ExtBasicCheckBoxMenuItemUI();\r\n/* 17: */ }", "public Class<?> getComponentType();", "private void initERF_GuiBean() {\n // create the ERF Gui Bean object\n ArrayList erf_Classes = new ArrayList();\n erf_Classes.add(FRANKEL2000_ADJ_FORECAST_CLASS_NAME);\n erf_Classes.add(FRANKEL_ADJ_FORECAST_CLASS_NAME);\n erf_Classes.add(STEP_FORECAST_CLASS_NAME);\n erf_Classes.add(WG02_ERF_LIST_CLASS_NAME);\n erf_Classes.add(STEP_ALASKA_ERF_CLASS_NAME);\n erf_Classes.add(POISSON_FAULT_ERF_CLASS_NAME);\n erf_Classes.add(PEER_AREA_FORECAST_CLASS_NAME);\n erf_Classes.add(PEER_NON_PLANAR_FAULT_FORECAST_CLASS_NAME);\n erf_Classes.add(PEER_MULTI_SOURCE_FORECAST_CLASS_NAME);\n erf_Classes.add(PEER_LOGIC_TREE_FORECAST_CLASS_NAME);\n\n try{\n if(erfGuiBean == null)\n erfGuiBean = new ERF_GuiBean(erf_Classes);\n }catch(InvocationTargetException e){\n throw new RuntimeException(\"Connection to ERF's failed\");\n }\n erfPanel.setLayout(gridBagLayout5);\n erfPanel.removeAll();\n erfPanel.add(erfGuiBean, new GridBagConstraints( 0, 0, 1, 1, 1.0, 1.0,\n GridBagConstraints.CENTER,GridBagConstraints.BOTH, defaultInsets, 0, 0 ));\n erfPanel.validate();\n erfPanel.repaint();\n }", "Component getComponent() {\n/* 224 */ return this.component;\n/* */ }", "private void createUIComponents() {\n }", "@Override\n\tpublic Object creatBean(BeanEntity beanEntity) {\n\t\treturn null;\n\t}", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "Object getBean();", "private void createUIComponents() {\n editor = createEditor(project, document);\n splitter = new JBSplitter(0.4f);\n ((JBSplitter) splitter).setFirstComponent(editor.getComponent());\n// ((JBSplitter) splitter).setSecondComponent();\n }", "<V> IBeanRuntime<V> registerBean(Class<V> beanType);", "private static BeanDescriptor getBdescriptor() {\n BeanDescriptor beanDescriptor = new BeanDescriptor(org.geogurus.gas.objects.GeometryClassFieldBean.class, null); // NOI18N//GEN-HEADEREND:BeanDescriptor\n\n // Here you can add code for customizing the BeanDescriptor.\n\n return beanDescriptor;\n }", "public <S> ComponentInstance<S> getComponentInstance();", "public Class<? extends T> getUIBeanClass() {\r\n\t\tif (null == uiBeanClass && null == getEntityMetaModel())\r\n\t\t\treturn null;\r\n\t\treturn null == uiBeanClass ? entityMetaModel.getUIBeanClass() : uiBeanClass;\r\n\t}", "public TestManagedBeanFactory() {\n super(\"TestManagedBeanFactory\");\n }", "@Override\n protected ShowbaseUserBean createUserBean(Member userEntity) {\n return new ShowbaseUserBean(userEntity);\n }", "public String getComponentType() { \n return \"com.sun.faces.AjaxZone\"; \n }", "private void createUIComponents() {\n\n String[] criterios = {\"Nombre\",\"Identificación\"};\n DefaultListModel modelo = new DefaultListModel();\n criterioBusquedaComboBox = new JComboBox(criterios);\n tablaCitas = new JTable();\n tablaBusqueda = new JTable();\n tableModel = (DefaultTableModel) tablaCitas.getModel();\n tableModelBusqueda = (DefaultTableModel) tablaBusqueda.getModel();\n scrollerTable = new JScrollPane(tablaCitas, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n scrollerBusqueda = new JScrollPane(tablaBusqueda, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n guardarInformacionButton = new JButton(\"Guardar información\");\n guardarInformacionButton.setVisible(false);\n }", "public static void registerBean(Class<?> cls) {\n\t\tGenericBeanDefinition gbd = new GenericBeanDefinition();\n\t\tgbd.setBeanClass(cls);\n\t\tDefaultListableBeanFactory factory = new DefaultListableBeanFactory();\n\t\tfactory.registerBeanDefinition(cls.getSimpleName(), gbd);\n\t}", "Class<?> getComponentType();", "public PacienteBean() {\r\n paciente = new Paciente();\r\n logueado = new Usuario();\r\n //datospersonales = new HelperDatosPersonales();\r\n this.resultado = \"\";\r\n pacienteSeleccionado = false;\r\n \r\n // Carga session\r\n faceContext=FacesContext.getCurrentInstance();\r\n httpServletRequest=(HttpServletRequest)faceContext.getExternalContext().getRequest();\r\n if(httpServletRequest.getSession().getAttribute(\"Usuario\") != null)\r\n {\r\n logueado = (Usuario)httpServletRequest.getSession().getAttribute(\"Usuario\");\r\n }\r\n \r\n if(httpServletRequest.getSession().getAttribute(\"Centro\") != null)\r\n {\r\n //logueadoCentro = (Centro)httpServletRequest.getSession().getAttribute(\"Centro\");\r\n CentroID = Integer.parseInt(httpServletRequest.getSession().getAttribute(\"Centro\").toString());\r\n }\r\n }", "public Component createComponent(String ComponentClass, String id) throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\t\n\t\tComponent c = (Component)Class.forName(ComponentClass).newInstance();\n\t\tc.setId(id);\n\t\t\n\t\treturn c;\n\t}", "protected ValidationComponent createElementClassComponent (\n\t\tfinal RelationshipElement field)\n\t{\n\t\treturn new ValidationComponent ()\n\t\t{\n\t\t\tpublic void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString className = getClassName();\n\t\t\t\tString fieldName = field.getName();\n\n\t\t\t\tif (isCollection(className, fieldName))\n\t\t\t\t{\n\t\t\t\t\tString elementClass = field.getElementClass();\n\n\t\t\t\t\tif (StringHelper.isEmpty(elementClass))\n\t\t\t\t\t{\n\t\t\t\t\t\tMappingClassElement mappingClass = \n\t\t\t\t\t\t\tgetMappingClass(className);\n\t\t\t\t\t\tMappingFieldElement mappingElement = \n\t\t\t\t\t\t\t((mappingClass != null) ? \n\t\t\t\t\t\t\tmappingClass.getField(fieldName) : null);\n\n\t\t\t\t\t\tif ((mappingElement != null) && \n\t\t\t\t\t\t\t(mappingElement.getColumns().size() > 0))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\t\"util.validation.element_class_not_found\");//NOI18N\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "public Object getManagedBean(String beanName) {\n\t FacesContext fc = FacesContext.getCurrentInstance();\n\t Object bean;\n\t \n\t try {\n\t ELContext elContext = fc.getELContext();\n\t bean = elContext.getELResolver().getValue(elContext, null, beanName);\n\t } catch (RuntimeException e) {\n\t throw new FacesException(e.getMessage(), e);\n\t }\n\n\t if (bean == null) {\n\t throw new FacesException(\"Managed bean with name '\" + beanName\n\t + \"' was not found. Check your faces-config.xml or @ManagedBean annotation.\");\n\t }\n\t return bean;\n\t}", "public Component getConfigFormPanel()\n {\n if (configFormPanel == null)\n {\n Object form = configForm.getForm();\n if ((form instanceof Component) == false)\n {\n throw new ClassCastException(\"ConfigurationFrame :\"\n + form.getClass()\n + \" is not a class supported by this ui implementation\");\n }\n configFormPanel = (Component) form;\n }\n return configFormPanel;\n }", "public GestorAhorcadoManagedBean() {\r\n ahorcado = new Ahorcado();\r\n }", "public static Object getManagedBean(String beanName) {\r\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\tELContext elc = fc.getELContext();\r\n\t\tExpressionFactory ef = fc.getApplication().getExpressionFactory();\r\n\t\treturn ef.createValueExpression(elc, getJsfEl(beanName), Object.class).getValue(elc);\r\n\t}", "private FacesMessageUtil(){\n\t}", "@Override\n protected Class<ShowbaseUserBean> getUserBeanType() {\n return ShowbaseUserBean.class;\n }", "@Override\r\n\tprotected Component[] createToggledComponents() throws ThinklabException {\r\n\t\tHbox classel = new Hbox();\r\n\r\n\t\tclassel.setWidth(\"100%\");\r\n\t\t\r\n\t\tWindow wc = new Window();\r\n\t\twc.setWidth(\"100%\");\r\n\t\twc.setBorder(\"normal\");\r\n\t\t\r\n\t\tclassel.appendChild(new Label(\"restrict type to \"));\r\n\t\tclassel.appendChild(new ObjectClassSelector(conceptID, indentLevel));\r\n\t\t\r\n\t\t/* TODO we must track the recursion level and insert an \"indent\" component if > 0 */\r\n\t\t\r\n\t\tInstanceSelector subc = new InstanceSelector(indentLevel);\r\n\t\tsubc.setConcept(conceptID);\r\n\t\tsubc.setWidth(\"100%\");\r\n\t\tobjComponent = subc;\r\n\t\t\r\n\t\tVbox amo = new Vbox(); amo.setWidth(\"100%\");\r\n\t\tHbox uff = new Hbox(); uff.setWidth(\"100%\");\r\n\t\r\n\t\tamo.appendChild(classel);\r\n\t\tamo.appendChild(subc);\r\n\t\twc.appendChild(amo);\r\n\t\t\r\n\t\tif (indentLevel > 0) {\r\n\t\t\tSeparator sep = new Separator(\"vertical\");\r\n\t\t\tsep.setWidth((30*indentLevel) + \"px\");\r\n\t\t\tuff.appendChild(sep);\r\n\t\t}\r\n\t\tuff.appendChild(wc);\r\n\t\t\r\n\t\tComponent[] c = new Component[1];\r\n\t\tc[0] = uff;\r\n\t\t\r\n\t\treturn c;\r\n\t\t\r\n\t}", "public SampletypeBean createSampletypeBean()\n {\n return new SampletypeBean();\n }", "public Class<BEAN> getBeanClass() {\n\t\treturn beanClass;\n\t}", "public <U extends T> U getComponent(Class<U> clazz);", "protected ValidationComponent createFieldExistenceComponent (Object field)\n\t{\n\t\treturn createFieldExistenceComponent(field.toString());\n\t}", "public PeopleBean() {\n\n }", "public void setUIComponent(Component c) {}", "@Override\r\n\tprotected void criarNovoBean() {\r\n\t\tcurrentBean = new MarcaOsEntity();\r\n\t}", "@Override\npublic void setUIComponent(VirtualComponent c) {\n\t\n}", "public FacturaBean() {\n }", "@Deprecated\n ExperimentBean createExperimentBean(Experiment experiment) {\n\n ExperimentBean newExperimentBean = new ExperimentBean();\n List<Sample> samples =\n this.getOpenBisClient().getSamplesofExperiment(experiment.getIdentifier());\n\n String status = \"\";\n\n // Get all properties for metadata changing\n List<PropertyType> completeProperties = this.getOpenBisClient().listPropertiesForType(\n this.getOpenBisClient().getExperimentTypeByString(experiment.getExperimentTypeCode()));\n\n Map<String, String> assignedProperties = experiment.getProperties();\n Map<String, List<String>> controlledVocabularies = new HashMap<String, List<String>>();\n Map<String, String> properties = new HashMap<String, String>();\n\n\n if (assignedProperties.keySet().contains(\"Q_CURRENT_STATUS\")) {\n status = assignedProperties.get(\"Q_CURRENT_STATUS\");\n }\n\n else if (assignedProperties.keySet().contains(\"Q_WF_STATUS\")) {\n status = assignedProperties.get(\"Q_WF_STATUS\");\n }\n\n for (PropertyType p : completeProperties) {\n\n // TODO no hardcoding\n\n if (p instanceof ControlledVocabularyPropertyType) {\n controlledVocabularies.put(p.getCode(),\n getOpenBisClient().listVocabularyTermsForProperty(p));\n }\n\n if (assignedProperties.keySet().contains(p.getCode())) {\n properties.put(p.getCode(), assignedProperties.get(p.getCode()));\n } else {\n properties.put(p.getCode(), \"\");\n }\n }\n\n Map<String, String> typeLabels = this.getOpenBisClient().getLabelsofProperties(\n this.getOpenBisClient().getExperimentTypeByString(experiment.getExperimentTypeCode()));\n\n // Image statusColor = new Image(status, this.setExperimentStatusColor(status));\n // statusColor.setWidth(\"15px\");\n // statusColor.setHeight(\"15px\");\n\n newExperimentBean.setId(experiment.getIdentifier());\n newExperimentBean.setCode(experiment.getCode());\n newExperimentBean.setType(experiment.getExperimentTypeCode());\n newExperimentBean.setStatus(status);\n newExperimentBean.setRegistrator(experiment.getRegistrationDetails().getUserId());\n newExperimentBean\n .setRegistrationDate(experiment.getRegistrationDetails().getRegistrationDate());\n newExperimentBean.setProperties(properties);\n newExperimentBean.setControlledVocabularies(controlledVocabularies);\n newExperimentBean.setTypeLabels(typeLabels);\n\n // TODO do we want to have that ? (last Changed)\n newExperimentBean.setLastChangedSample(null);\n newExperimentBean.setContainsData(false);\n\n // Create sample Beans (or fetch them) for samples of experiment\n BeanItemContainer<SampleBean> sampleBeans = new BeanItemContainer<SampleBean>(SampleBean.class);\n for (Sample sample : samples) {\n SampleBean sbean = this.getSample(sample);\n if (sbean.getDatasets().size() > 0) {\n newExperimentBean.setContainsData(true);\n }\n sampleBeans.addBean(sbean);\n }\n newExperimentBean.setSamples(sampleBeans);\n return newExperimentBean;\n }", "public interface DomainBuilderComponent extends PropertyChangeListener {\n\t/**\n\t * get name of the component\n\t * @return\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * get icon for the component\n\t * @return\n\t */\n\tpublic Icon getIcon();\n\t\n\t\n\t/**\n\t * get component\n\t * @return\n\t */\n\tpublic Component getComponent();\n\t\n\t\n\t/**\n\t * get menu bar\n\t * @return\n\t */\n\tpublic JMenuBar getMenuBar();\n\t\n\t\n\t/**\n\t * load whatever resources one needs to get this piece working \n\t */\n\tpublic void load();\n\t\n\t/**\n\t * dispose of this component\n\t */\n\tpublic void dispose();\n}", "ViewComponent createViewComponent();", "public interface BeanFactory {\n\n Object getBean(Class<?> clazz);\n\n}", "public ClasificacionBean() {\r\n }", "public Object getFacet(String name, IProfile profile, Object targetObject, Class targetObjectType);", "public ClienteBean() {\n }", "public QuotationDetailProStaffManagedBean() {\n }", "<V> IBeanRuntime<V> registerExternalBean(V externalBean);", "private void createComponents(String label) {\n itsCombo = createComboBox();\n JScrollPane scroll = new JScrollPane(itsCombo);\n scroll.setPreferredSize(new Dimension(WIDTH, HEIGHT));\n\n LabeledComponent c = new LabeledComponent(\"Symbol\", itsCombo);\n itsComp = c;\n }", "public interface BeanFactory {\n\n// BeanDefinition getBeanDefinition(String beanID);\n\n Object getBean(String beanID);\n}", "ViewComponentPart createViewComponentPart();", "public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}", "ComponentParameterInstance createComponentParameterInstance();", "public String getBrowseBeanName() {\n\treturn \"com.hps.july.persistence.LeasePosSchetFaktAccessBean\";\n}", "public Component getTabComponent();", "public Component getComponent() {\n\treturn component;\n}", "protected ValidationComponent createClassExistenceComponent (\n\t\tfinal String className, final PersistenceFieldElement relatedField)\n\t{\n\t\treturn new ValidationComponent ()\n\t\t{\n\t\t\tpublic void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tif ((className == null) || \n\t\t\t\t\t!getModel().hasClass(className, getClassLoader()))\n\t\t\t\t{\n\t\t\t\t\tthrow constructClassException(className, relatedField, \n\t\t\t\t\t\t\"util.validation.class_not_found\");\t\t//NOI18N\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}" ]
[ "0.6669995", "0.61485183", "0.6018101", "0.5670632", "0.56150955", "0.55782527", "0.55782527", "0.5572082", "0.54930705", "0.54924953", "0.5475208", "0.5466458", "0.5461517", "0.5426579", "0.539665", "0.539665", "0.5363524", "0.53504896", "0.53439426", "0.5335116", "0.52868605", "0.52455163", "0.52158797", "0.5202214", "0.51567733", "0.5140116", "0.5135654", "0.5132252", "0.51312196", "0.51185364", "0.5108676", "0.5103964", "0.5095844", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5083242", "0.5062852", "0.5062466", "0.50577277", "0.5024636", "0.50192124", "0.5013122", "0.5013005", "0.5012794", "0.5011938", "0.5009582", "0.49944788", "0.4986231", "0.49797186", "0.4950996", "0.49499503", "0.49481398", "0.49319664", "0.49297467", "0.49162692", "0.49096882", "0.49033973", "0.48915255", "0.48906964", "0.4889987", "0.488009", "0.48780516", "0.48756596", "0.4863181", "0.4857232", "0.48542804", "0.48540485", "0.48517346", "0.4847632", "0.4820404", "0.48149338", "0.48122534", "0.4811765", "0.48031667", "0.47967353", "0.47956166", "0.4785059", "0.4783024", "0.47827408", "0.47755387", "0.47737616", "0.47705814", "0.47606158", "0.47556666", "0.47486758" ]
0.7247927
0
TODO Autogenerated method stub
public void handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what) { case 1: if (!isStop) { updateTimeSpent(); mHandler.sendEmptyMessageDelayed(1, 1000); } break; case 0: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
clicks where the AI tells it to
private void click(int[] coordinates) { String id = "#cell" + ((coordinates[0] < 10)? "0" + coordinates[0] : coordinates[0]) + ((coordinates[1] < 10)? "0" + coordinates[1] : coordinates[1]); AnchorPane cell = (AnchorPane) play.getScene().lookup(id); // click on the cell cell.fireEvent(new MouseEvent(MouseEvent.MOUSE_CLICKED, 0, 0, 0, 0, MouseButton.PRIMARY, 1, true, true, true, true, true, true, true, true, true, true, null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point userClickPoint();", "public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}", "public void ClickSearchOnline() throws InterruptedException {\n\n searchOnline.click();\n //sameOriginAndDestination();\n\n\n }", "public void situerClick() {\n\n\tSystem.out.println(\"Allez-y, cliquez donc.\") ;\n\t\n\tif (dessin.waitClick()) {\n\t float lon = dessin.getClickLon() ;\n\t float lat = dessin.getClickLat() ;\n\t \n\t System.out.println(\"Clic aux coordonnees lon = \" + lon + \" lat = \" + lat) ;\n\n\t // On cherche le noeud le plus proche. O(n)\n\t float minDist = Float.MAX_VALUE ;\n\t Noeud noeud = null ;\n\t \n\t for(Map.Entry<Integer, Noeud> entry : noeuds.entrySet())\t{\r\n\t \tNoeud n = entry.getValue();\r\n\t \tfloat londiff = n.getLongitude() - lon;\r\n\t \tfloat latdiff = n.getLatitude() - lat;\r\n\t \tfloat dist = londiff*londiff + latdiff*latdiff ;\r\n\t \tif(dist < minDist)\t{\r\n\t \t\tnoeud = n;\r\n\t \t\tminDist = dist;\r\n\t \t}\r\n\t }\n\n\t System.out.println(\"Noeud le plus proche : \" + noeud) ;\n\t System.out.println() ;\n\t dessin.setColor(java.awt.Color.red) ;\n\t dessin.drawPoint(noeud.getLongitude(), noeud.getLatitude(), 5) ;\n\t}\n }", "void clickSomewhereElse();", "@Override\r\n\tpublic void mouseClicked(MouseEvent e)\r\n\t{\r\n\t\tjump();\r\n\t}", "public void click(ToddEthottGame game);", "public abstract void clickHelp(FloodItWorld w, ACell topLeft);", "@Override\n public void click(int x, int y)\n {\n\n if(!clicked)\n {\n if(game.setFirstClickCords(x/50,y/50))\n clicked = true;\n }\n else\n {\n game.move(x/50,y/50);\n clicked = false;\n \n }\n \n repaint();\n }", "public abstract void click(long ms);", "public void click() {\n this.lastActive = System.nanoTime();\n }", "public void mouseClicked(MouseEvent arg0) {\n\t\tint aimr=(arg0.getY()+GOBJECT.Map.movey)/GOBJECT.Map.space;\n\t\tint aimc=(arg0.getX()+GOBJECT.Map.movex)/GOBJECT.Map.space;\n\t\tint startr=(GOBJECT.hero.rect.y+GOBJECT.Map.movey)/GOBJECT.Map.space;\n\t\tint startc=(GOBJECT.hero.rect.x+GOBJECT.Map.movex)/GOBJECT.Map.space;\n\t\tsmart.bfs(GOBJECT.Map.maptable[0], GOBJECT.Map.maxr, GOBJECT.Map.maxc, startr, startc, aimr, aimc);\n\t\tsmart.getRoad();\n\t\tthis.GOBJECT.mouseAn.getLive();\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(this.chance==1)\r\n\t\t{\r\n\t\t\tmouseX = arg0.getX();\r\n\t\t\tmouseY= arg0.getY();\r\n\t\t\tclick=1;\r\n\t\t}\r\n\t}", "@Then(\"I click on rewards points\")\r\n\tpublic void i_click_on_rewards_points() {\n\t\tSystem.out.println(\"code for rewards\");\r\n\t}", "public void click() {\n System.out.println(\"Click\");\n }", "@Override\n public void clicked(InputEvent e, float x, float y) {\n }", "public void mouseClicked(){\n int x = mouseX/64;\n int y = mouseY/64;\n boolean placed = Grid.place(x, y, gridPlane, 10, 6, this.turn, this.players, 0);\n if(placed){\n Player prev_player = players.get(this.turn%2);\n players.get(this.turn%2).addNumMoves();\n this.turn+=1;\n while(true){\n if((players.get(this.turn%2).getNumMoves() > 0 && players.get(this.turn%2).getGridsOwned() == 0) || (players.get(this.turn%2).isLost() == true)){\n players.get(this.turn%2).lost();\n this.turn+=1;\n }else{\n break;\n }\n }\n if(players.get(this.turn%2).equals(prev_player)){\n this.finish = true;\n }\n }\n }", "public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}", "public void click(int mx,int my){\r\n super.setLocation(mx+boundMap.getCamera().getX(),0,(my+boundMap.getCamera().getY())/Globals.__PROJECTION_SCALE__);\r\n Spatial[] spats = boundMap.getSpace().grabSpatialsAround(this)[1];\r\n for (Spatial s: spats){\r\n if (s instanceof NPC){\r\n if (((NPC)s).collideMouse())\r\n ((NPC)s).clicked();\r\n }\r\n }\r\n }", "HtmlPage clickLink();", "public void act() \r\n {\r\n if (Greenfoot.mouseClicked(this)) {\r\n Greenfoot.setWorld(new howToPlayGuide());\r\n }\r\n }", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "public void clickEvent(int index){\n t.stop();\n Timer(15);\n if (cards.get(index).getTurned() == false) {\n if (wait == 1) {\n setTurned(c1, false);\n setTurned(c2, false);\n wait = 0;\n }\n setTurned(index, true);\n if (state == 2) {\n state = 1;\n c2 = index;\n if (cards.get(c1).getImgAnime().contains((cards.get(c2).getImgAnime()))) {\n if (activePlayer == 1) {\n if(cards.get(index).getNumber() == 1){\n p1Points += 3;\n }\n else {\n p1Points++;\n }\n points(activePlayer, p1Points);\n activePlayer = 1;\n changePlayer(activePlayer);\n } else {\n if(cards.get(index).getNumber() == 1){\n p2Points += 3;\n }\n else {\n p2Points++;\n }\n points(activePlayer, p2Points);\n activePlayer = 2;\n changePlayer(2);\n\n }\n checkFinished();\n } else {\n wait = 1;\n if (activePlayer == 1) {\n activePlayer = 2;\n changePlayer(activePlayer);\n } else {\n activePlayer = 1;\n changePlayer(activePlayer);\n }\n }\n } else {\n state = 2;\n c1 = index;\n }\n }\n }", "public void clickAssessment() {\r\n\t\tthis.clickAssessment.click();\r\n\t}", "public void mouseClicked(int ex, int ey, int button) {\r\n\t}", "public void mouseClicked(MouseEvent e){\r\n\t\tif (e.getButton() == MouseEvent.BUTTON1){\r\n\t\t\tboolean b = myGraph.isAdjacent(roboSpot,(Spot)e.getSource()); \r\n\t\t\tSystem.out.print(e.getSource()+\" Clicked and it is\");\r\n\t\t\tif(!b) System.out.print(\" not\");\r\n\t\t\tSystem.out.println(\" adjacent\");\r\n\t\t} else { //a different button was clicked...\r\n\t\t\tArrayList<Spot> sequence = myGraph.getShortestPath(roboSpot,goalSpot);\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<sequence.size(); i++){\r\n\t\t\t\tsequence.get(i).setSeqInd(i+1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.revalidate();\r\n\t\tthis.repaint();\r\n\t}", "public void DoGoToSeat() {\n\t\tcommand = Command.FollowWaiter;\n\t}", "void clickNextStation();", "private int clickOnWaypoint(int a_x, int a_y)\n {\n Vector2d click = new Vector2d(a_x,a_y);\n int drawRadius = Ship.SHIP_RADIUS * Waypoint.RADIUS;\n for(int i = 0; i < m_waypoints.size(); ++i)\n {\n Vector2d v = m_waypoints.get(i);\n if(click.dist(v) < drawRadius * 0.5)\n {\n return i;\n }\n\n }\n return -1;\n }", "void click(int x, int y, Keys... modifiers);", "void clickItem(int uid);", "private void cs1() {\n\t\t\tctx.mouse.click(675,481,true);\n\t\t\t\n\t\t}", "protected void doScreenClick() {\r\n\t\tbtnColonyInfo.visible = btnButtons.down;\r\n\t\tbtnPlanet.visible = btnButtons.down;\r\n\t\tbtnStarmap.visible = btnButtons.down;\r\n\t\tbtnBridge.visible = btnButtons.down;\r\n\t\trepaint();\r\n\t}", "@Override\n public void mousePressed(MouseEvent mouseEvent) {\n if(autoFollow) {\n BoardIndex index = board.getIndexAtCoord(\n camera.pixelToPosition(new Vector2f(((float)mouseEvent.getX() / getWidth()) * width, ((float)mouseEvent.getY() / getHeight()) * height))\n );\n\n game.getCurrentPlayer().boardClicked(index);\n\n canPlay = false;\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trequestLocClick();\n\t\t\t}", "public void mouseClicked() {\n\t\tif(gameState==0 && mouseX >= 580 && mouseX <=580+140 && mouseY>=650 && mouseY<=700){\r\n\t\t\tLOGGER.info(\"Detected click on Play, sending over to gameDriver\");\r\n\t\t\t//Changes the game state from start menu to running\r\n\t\t\tgameState = 1;\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//if on menu n click instructions\r\n\t\tif(gameState==0 && mouseX >= 100 && mouseX <=450 && mouseY>=650 && mouseY<=700){\r\n\t\t\tLOGGER.info(\"Detected click on Instructions, sending over to gameDriver\");\r\n\t\t\t//Changes the game state from start menu to instructions\r\n\t\t\tgameState = 3 ;\r\n\t\t}\r\n\t\t\r\n\t\t//if user clicks on back change game state while on map select or instructions\r\n\t\tif((gameState == 3||gameState == 1)&& mouseX >= 50 && mouseX <=50+125 && mouseY>=650 && mouseY<=700 )\r\n\t\t\tgameState = 0;\r\n\t\t\r\n\t\t\r\n\t\t//if they are on mapSelect and they click\r\n\t\tif(gameState==1 && mouseX > 70 && mouseX <420 && mouseY> 100 && mouseY<470){\r\n\t\t\tLOGGER.info(\"selected map1, sending over to game driver\");\r\n\t\t\tmapSelected=1;\r\n\t\t\tMAP=new Map(this, mapSelected);\r\n\t\t\tgame = new gameDriver(this, MAP);\r\n\t\t\tgameState=2;\r\n\t\t}\r\n\t\t\r\n\t\t//if they click quit while on the main menu\r\n\t\tif(gameState==0 && mouseX >= 950 && mouseX <=950+130 && mouseY>=650 && mouseY<=700 ){\r\n\t\t\tLOGGER.info(\"Detected quit button, now closing window\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t//if they click on play agagin button while at the game overscrren\r\n\t\tif(gameState==4 && mouseX>680 && mouseX<1200 && mouseY>520 && mouseY<630){\r\n\t\t\t//send them to the select menu screen\r\n\t\t\tgameState=1;\r\n\t\t}\r\n\t\t\r\n\t\t//displays rgb color values when click, no matter the screen\r\n//\t\tprintln(\"Red: \"+red(get().pixels[mouseX + mouseY * width]));\r\n// println(\"Green: \"+green(get().pixels[mouseX + mouseY * width]));\r\n// println(\"Blue: \"+blue(get().pixels[mouseX + mouseY * width]));\r\n//\t\tprintln();\r\n\t}", "public void click() throws ApplicationException, ScriptException {\n mouse.click(driver, locator);\n }", "public void onClicked(EntityPlayer player, QRayTraceResult hit, ItemStack item);", "void issuedClick(String item);", "public void clickElementLocation(By anyElement)\n {\n\n Actions execute = new Actions(driver);\n execute.moveToElement(findElement(anyElement)).click().perform();\n }", "protected void click(By locator) {\n waitForVisibilityOf(locator, 5);\n waitForElementToBeClickable(locator);\n find(locator).click();\n }", "public void ClickSearch() {\r\n\t\tsearch.click();\r\n\t\t\tLog(\"Clicked the \\\"Search\\\" button on the GIS Locator page\");\r\n\t}", "public final void click() {\n getUnderlyingElement().click();\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public static void mouseClick (Console c){\r\n\t\t//wait for mouse click\r\n\t\tc.addMouseListener(new MouseAdapter() { \r\n \t\t\tpublic void mousePressed(MouseEvent me) {\r\n \t\t\t\tx = me.getX();\r\n \t\t\t\ty = me.getY();\r\n \t\t\t} \r\n \t\t});\r\n\t\t\r\n\t}", "public void clickYes ();", "public void clickIfExists() {\n try {\n\n waitTillElementVisible(5000);\n mouse.click(driver, locator);\n\n } catch (Exception e) {\n log.error(\"exception :\", e);\n }\n }", "void onClick(Address addr);", "public void hitButtonClicked()\r\n {\r\n Card hit = game.hit(\"Player\");\r\n playerCardList.get(nextPlayerIndex).setImage(hit.toGraphic());\r\n nextPlayerIndex++;\r\n if(game.checkLose())\r\n {\r\n playerLost();\r\n }\r\n }", "@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }", "@Override\r\n\tpublic void clickObject() {\n\r\n\t}", "public void act() \n {\n if (Greenfoot.mouseClicked(this))\n {\n Peter.lb=2; \n Greenfoot.playSound(\"click.mp3\");\n Greenfoot.setWorld(new StartEngleza());\n };\n }", "@Override\n\tpublic void onNaviTurnClick() {\n\t\t\n\t}", "public void clickCourse() {\r\n\t\tthis.clickcourse.click();\r\n\r\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif(e.getX()>46&&e.getX()<151){\n\t\t\tif(e.getY()<362&&e.getY()>321){\n\t\t\t\trunner.exitAction();\n\t\t\t\tSystem.out.println(\"dsd\");\n\t\t\t}\n\t\t\telse if(e.getY()<311&&e.getY()>270){\n\t\t\t\trunner.meanStartyAction();\n\t\t\t\tSystem.out.println(\"dssd\");\n\t\t\t}\n\t\t\telse if(e.getY()>219&&e.getY()<260){\n\t\t\t\trunner.meanOrderAction();\n\t\t\t\tSystem.out.println(\"dsssd\");\n\t\t\t}\n\t\t\telse if(e.getY()>168&&e.getY()<209){\n\t\t\t\trunner.meanInfoAction();\n\t\t\t\tSystem.out.println(\"dsdd\");\n\t\t\t}\n\t\t\telse if(e.getY()<158&&e.getY()>58){\n\t\t\t\trunner.showWelcome();\n\t\t\t\tSystem.out.println(\"d欢迎\");\n\t\t\t}\n\t\t}\n\t\telse if(e.getX()>580&&e.getX()<615&&e.getY()>70&&e.getY()<105){\n\t\t\trunner.getQuickHotel(hotelFrame.name.getText());\n\t\t}\n\t\telse if(e.getX()>190&&e.getX()<366&&e.getY()>125&&e.getY()<285){\n\t\t\trunner.getQuickHotel(\"北京\");\n\t\t}\n\t\telse if(e.getX()>375&&e.getX()<645&&e.getY()>125&&e.getY()<285){\n\t\t\trunner.getQuickHotel(\"南京\");\n\t\t}\n\t\telse if(e.getX()>190&&e.getX()<460&&e.getY()>290&&e.getY()<450){\n\t\t\trunner.getQuickHotel(\"香港\");\n\t\t}\n\t\telse if(e.getX()>465&&e.getX()<735&&e.getY()>290&&e.getY()<450){\n\t\t\trunner.getQuickHotel(\"上海\");\n\t\t}\n\t}", "void clickAmFromMenu();", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "protected void click(By locator) {\n \tint waitTime = 10;\n \tWebElement element = new WebDriverWait(DRIVER, waitTime)\n \t.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\n \t element.click();\n }", "public void onMouseClick(Location point) {\n\t Thread t6 = new MoveMouth(0, 0, canvas);\n t6.start(); \n }", "@Override\n\tpublic void DoGoToSeat(int x, int y) {\n\t\t\n\t}", "@Override\r\n public void afterClickOn(final WebElement arg0, final WebDriver arg1) {\n\r\n }", "public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}", "@When(\"user clicks on Careers link\")\n public void user_clicks_on_careers_link() throws InterruptedException {\n // bu.windowHandling();\n hp.search();\n }", "public void click(int mouseButton){\n\n if(mouseButton ==1){\n for (int i = 0; i <buttons.length ; i++) {\n //if click was registered on a button\n if(buttons[i].contains(Game.mousePoint)){\n int j = i +1;\n\n if(i == 0 && !(noOfCredits - Translator.pitifullPrice < 0)){\n noOfCredits -= Translator.pitifullPrice;\n army.addToArmyQueue(TrooperType.PITIFUL);\n\n }\n if(i == 1 && !(noOfCredits -\n Translator.armoredTrooperPrice < 0)){\n noOfCredits -= Translator.armoredTrooperPrice;\n army.addToArmyQueue(TrooperType.ARMORED);\n }\n if(i == 2 && !(noOfCredits -\n Translator.teleporterPrice < 0)){\n noOfCredits -= Translator.teleporterPrice;\n army.addToArmyQueue(TrooperType.TELEPORTER);\n }\n if(i==3){\n for (Trooper t:army.getArmy()) {\n if(t.getClass().equals(TeleportTrooper.class)){\n TeleportTrooper tp = (TeleportTrooper)t;\n if(tp.hasTeleport()) {\n Game.air[t.getPosition().getX()]\n [t.getPosition().getY()] =\n Translator.indexTeleportZone;\n tp.placePortal(tp.getDirection());\n Game.air[t.getPosition().getX()]\n [t.getPosition().getY()] =\n Translator.indexTeleporterZoneOut;\n }\n }\n }\n }\n if(i==4){\n if(army != null && army.getPreferred() == null\n || army.getPreferred() == Direction.RIGHT) {\n buttons[i].setIsSelected(true);\n buttons[i+1].setIsSelected(false);\n army.setPreferred(Direction.LEFT);\n }\n else if(army.getPreferred().equals(Direction.LEFT)){\n buttons[i].setIsSelected(false);\n army.setPreferred(null);\n }\n }\n if(i==5){\n if(army != null && army.getPreferred() == null\n || army.getPreferred() == Direction.LEFT) {\n army.setPreferred(Direction.RIGHT);\n buttons[i].setIsSelected(true);\n buttons[i-1].setIsSelected(false);\n }\n else if(army.getPreferred().equals(Direction.RIGHT)){\n army.setPreferred(null);\n buttons[i].setIsSelected(false);\n }\n }\n }\n }\n }\n }", "void mouseClicked(double x, double y, MouseEvent e );", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 2);\n\t\t\t\tintent.putExtra(\"latc\", 13.0827);\n\t\t\t\tintent.putExtra(\"lngc\", 80.2707);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "public void mouseClicked (MouseEvent e)\r\n\t{\r\n\t\tx = e.getX ();\r\n\t\ty = e.getY ();\r\n\t\t//Rules screen photo button 'PLAY'\r\n\t\tif ((screen == 0 || screen == 4 || screen == 5) && (x > 250 && x < 320) && (y > 360 && y < 395)){ \r\n\t\t\tscreen = 1;\r\n\t\t\trepaint();\r\n\t\t}\r\n\t\t//Game screen photo button 'Press to Start'\r\n\t\telse if (screen == 1 || screen == 2 || screen == 3){ \r\n\t\t\tif ((x > 10 && x < 180) && (y > 80 && y < 105)) \r\n\t\t\t\tnewGame();\r\n\t\t\tanimateButtons ();\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "@Override\r\npublic void afterClickOn(WebElement arg0, WebDriver arg1) {\n\tSystem.out.println(\"as\");\r\n}", "void click(int slot, ClickType type);", "public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}", "private void clickInvite(){\n WebDriverHelper.clickElement(inviteButton);\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\r\n public void clicked(InputEvent event, float x, float y) {\n\r\n \t\tGameDataInterface gameData = GameDataUtils.getInstance();\r\n \t\t\r\n \t\t/*\r\n \t\t * hardcoded a instance to send to the gameDataInterface\r\n \t\t */\r\n \t\tInstance instance = new Instance();\r\n \t\tinstance.setBoardId(1);\r\n \t\tinstance.setInstanceId(2);\r\n \t\tinstance.setMissionId(1);\r\n \t\tinstance.setTurnId(1);\r\n \t\t\r\n \t\tgameData.loadInstance(game,instance); \r\n \t\tgame.setScreen(game.board);\r\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (isTest) {\n\t\t\t\t} else {\n\t\t\t\t\tif (isSwitch) {// 电梯\n\t\t\t\t\t\tAppManager.getAppManager().finishActivity(\n\t\t\t\t\t\t\t\tNearbyElevatorPlaygroundListActivity.class);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tAppManager.getAppManager().finishActivity(\n\t\t\t\t\t\tNearbyElevatorOrPlaygroundMap.class);\n\t\t\t}", "@Override\n public void grindClicked() {\n Uri webpage = Uri.parse(\"http://www.grind-design.com\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void onNaviTurnClick() {\n\r\n\t}", "public void clickOnText(String text);", "public void onClicked();", "@Override\n public void onClick(View v) {\n if (!mTrackingLocation) {\n iniciarLocal();\n //Intent it = new Intent(Intent.ACTION_WEB_SEARCH);\n //it.putExtra(SearchManager.QUERY, \"Lojas Geek próximas \"+ lastAdress);\n //startActivity(it);\n } else {\n pararLocal();\n }\n }", "public void act() \n {\n checkClicked();\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t\tPoint mouseClick = SwingUtilities.convertPoint(this, e.getPoint(), view);\n\t\t\n\t\tnext = handleInGameMenu(mouseClick);\n\t\t\n\t\thandlePlay(mouseClick);\n\t\t\n\t}", "HtmlPage clickSiteLink();", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 1);\n\t\t\t\tintent.putExtra(\"latb\", 12.9716);\n\t\t\t\tintent.putExtra(\"lngb\", 77.5946);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "@And (\"^I click \\\"([^\\\"]*)\\\"$\")\n\tpublic void click(String object){\n\t\tString result = selenium.click(object);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "public void clickAction(int clickCount);", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "protected void mouseClicked(int par1, int par2, int par3)\n {\n if (par3 == 0)\n {\n ChatClickData chatclickdata = mc.ingameGUI.func_50012_a(Mouse.getX(), Mouse.getY());\n\n if (chatclickdata != null)\n {\n URI uri = chatclickdata.func_50089_b();\n\n if (uri != null)\n {\n field_50065_j = uri;\n mc.displayGuiScreen(new GuiChatConfirmLink(this, this, chatclickdata.func_50088_a(), 0, chatclickdata));\n return;\n }\n }\n }\n\n field_50064_a.mouseClicked(par1, par2, par3);\n super.mouseClicked(par1, par2, par3);\n }", "public void mouseClicked(MouseEvent e) {\n\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\n\t\t\t}", "public void Goto() {\n\t\t\n\t}", "public void click(WebElement element) {\nelement.click();\n\t}" ]
[ "0.68207407", "0.6810007", "0.6697475", "0.6691869", "0.66456914", "0.66085", "0.6597077", "0.64912593", "0.6436263", "0.64114285", "0.63975227", "0.6371074", "0.63584673", "0.6338585", "0.6336616", "0.63330144", "0.6312294", "0.63027877", "0.62824273", "0.62788737", "0.6225892", "0.6225407", "0.6212149", "0.6205151", "0.6171661", "0.6171092", "0.6167479", "0.61475545", "0.6147179", "0.6144109", "0.61351335", "0.6131645", "0.6121128", "0.61207116", "0.6118704", "0.61161304", "0.61057097", "0.61024195", "0.60970414", "0.6080493", "0.6078332", "0.6068397", "0.6059664", "0.6057515", "0.6048029", "0.6046644", "0.6038", "0.6035681", "0.60354435", "0.60345554", "0.603402", "0.6029911", "0.6009613", "0.600569", "0.59997416", "0.5997541", "0.5996288", "0.5991999", "0.59862", "0.5978672", "0.5974921", "0.5968531", "0.5964869", "0.59635484", "0.5962988", "0.595337", "0.59408975", "0.59273016", "0.59247786", "0.59198046", "0.5915735", "0.59108984", "0.5906509", "0.5905308", "0.5903287", "0.5901886", "0.5901886", "0.5901886", "0.5897274", "0.58908933", "0.58902013", "0.5888843", "0.58883506", "0.58849764", "0.5882389", "0.58823144", "0.5881257", "0.58735615", "0.5868252", "0.5868252", "0.5867784", "0.5867628", "0.5861362", "0.5861362", "0.58569956", "0.5853232", "0.58399993", "0.58391434", "0.58391434", "0.5837978", "0.5837486" ]
0.0
-1
do the winner stuff
private void win() { Player winner = board.win(); if (winner == null) return; int winner_number; Label winner_info; Label loser_info; if (winner.getId() == 'U') { winner_info = player1info; loser_info = player2info; winner_number = 1; } else { winner_info = player2info; loser_info = player1info; winner_number = 2; } winner_info.setFont(new Font("Segoe UI Semibold", 20)); winner_info.setText("You Won!!"); loser_info.setFont(new Font("Segoe UI Semibold", 20)); loser_info.setText("You Lost :)"); for (int i = 0; i < 17; ++i) for (int j = 0; j < 17; j++) { String id = "#cell" + ((i < 10) ? "0" + i : i) + ((j < 10) ? "0" + j : j); AnchorPane cell = (AnchorPane) (play.getScene().lookup(id)); // remove functionality cell.setOnMouseClicked(null); cell.setOnMouseEntered(null); cell.setOnMouseExited(null); if (!cup_is_on) { if (i == 6) { if (j == 6) { cell.setStyle("-fx-background-color: mediumaquamarine"); Label label = new Label("try"); label.setTextFill(Color.BLACK); label.setFont(new Font("Arial Rounded MT Bold", 12)); label.setAlignment(Pos.CENTER); label.setPrefSize(40, 40); cell.getChildren().add(label); if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY()) bead1.setVisible(false); if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY()) bead2.setVisible(false); } else if (j == 8) { cell.setStyle("-fx-background-color: mediumaquamarine"); Label label = new Label("again?"); label.setTextFill(Color.BLACK); label.setFont(new Font("Arial Rounded MT Bold", 12)); label.setAlignment(Pos.CENTER); label.setPrefSize(40, 40); cell.getChildren().add(label); if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY()) bead1.setVisible(false); if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY()) bead2.setVisible(false); } } else if(i == 8) { if (j == 6) { cell.setStyle("-fx-background-color: limegreen"); Label label = new Label("YES"); label.setTextFill(Color.BLACK); label.setFont(new Font("Arial Rounded MT Bold", 12)); label.setAlignment(Pos.CENTER); label.setPrefSize(40, 40); label.setOnMouseClicked(event -> { try { gotoNewGame(new Player(board.getPlayer1().getName(), 'U', 10), new Player(board.getPlayer2().getName(), 'D', 10)); } catch (IOException ioException) { ioException.printStackTrace(); } }); cell.getChildren().add(label); if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY()) bead1.setVisible(false); if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY()) bead2.setVisible(false); } else if (j == 8) { cell.setStyle("-fx-background-color: red"); Label label = new Label("NO"); label.setTextFill(Color.BLACK); label.setFont(new Font("Arial Rounded MT Bold", 12)); label.setAlignment(Pos.CENTER); label.setPrefSize(40, 40); label.setOnMouseClicked(event -> { try { gotoGameModes(); } catch (IOException ioException) { ioException.printStackTrace(); } }); cell.getChildren().add(label); if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY()) bead1.setVisible(false); if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY()) bead2.setVisible(false); } } } } if (cup_is_on) cupOptimizer(winner_number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkWinner() {\n\t}", "public void tellPlayerResult(int winner) {\n\t}", "private void win(int winner)\n {\n switch (winner) {\n case PLAYER_1_FLAG:\n player1.gameOver(RESULT_WIN);\n player2.gameOver(RESULT_LOSS);\n winSend.close();\n break;\n case PLAYER_2_FLAG:\n player1.gameOver(RESULT_LOSS);\n player2.gameOver(RESULT_WIN);\n \n winSend.close();\n break;\n }\n }", "private boolean winner() {\n\t\t\n\t\tif(( gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_LEFT] + gameBoard[BTM_LEFT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_CENTER] + gameBoard[CTR_CENTER] + gameBoard[BTM_CENTER]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_RIGHT] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_CENTER] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_CENTER] + gameBoard[BTM_LEFT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_LEFT] + gameBoard[BTM_LEFT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_CENTER] + gameBoard[CTR_CENTER] + gameBoard[BTM_CENTER]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_RIGHT] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_CENTER] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_CENTER] + gameBoard[BTM_LEFT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if(gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT] + \n\t\t\t\t gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT] +\n\t\t\t\t gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT] == CAT){\n\t\t\t//cat winner player_1 goes first\n\t\t\twinner = CAT;\n\t\t}else if(gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT] + \n\t\t\t\t gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT] +\n\t\t\t\t gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT] == (CAT + 3)){\n\t\t\t//cat winner player_2 goes first\n\t\t\twinner = CAT;\n\t\t} \n\t\t\n\t\tif(winner > 0){\n\t\t\treturn true;//there is a winner\n\t\t}else{\n\t\t\treturn false;//still no winner yet\n\t\t}\t\n\t}", "public static void decidedWinner(){\n if(playerOneWon == true ){\n//\n// win.Fill(\"Player One Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else if (playerTwoWon == true){\n// win.Fill(\"Player Two Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else\n {\n// win.Fill(\"Match Has been Tied !\");\n// new WinnerWindow().setVisible(true);\n }\n }", "void playMatch() {\n while (!gameInformation.checkIfSomeoneWonGame() && gameInformation.roundsPlayed() < 3) {\n gameInformation.setMovesToZeroAfterSmallMatch();\n playSmallMatch();\n }\n String winner = gameInformation.getWinner();\n if(winner.equals(\"DRAW!\")){\n System.out.println(messageProvider.provideMessage(\"draw\"));\n }else {\n System.out.println(messageProvider.provideMessage(\"winner\")+\" \"+winner+\"!\");\n }\n }", "public void win() {\n if (turn == 1) {\n p1.incrementLegs();\n if (p1.getLegs() == 5) {\n p1.incrementSets();\n p1.setLegs(0);\n p2.setSets(0);\n\n }\n if (p1LastScore > p1.getHighout()) {\n p1.setHighout(p1LastScore);\n\n }\n\n if (p1.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p1.getHighout();\n }\n } else if (turn == 2) {\n p2.incrementLegs();\n if (p2.getLegs() == 5) {\n p2.incrementSets();\n p2.setLegs(0);\n p1.setSets(0);\n\n }\n if (p2LastScore > p2.getHighout()) {\n p2.setHighout(p2LastScore);\n }\n\n if (p2.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p2.getHighout();\n }\n\n\n\n }\n changeFirstTurn();\n win = true;\n\n\n\n }", "public boolean winner(){\n\t\treturn goals1 > goals2;\n\t}", "public void winGame() {\n this.isWinner = true;\n }", "private static void winner()\n {\n if ((board[1] == userLetter && board[2] == userLetter && board[3] == userLetter) ||\n (board[4] == userLetter && board[5] == userLetter && board[6] == userLetter) ||\n (board[7] == userLetter && board[8] == userLetter && board[9] == userLetter) ||\n (board[1] == userLetter && board[5] == userLetter && board[9] == userLetter) ||\n (board[3] == userLetter && board[5] == userLetter && board[7] == userLetter))\n {\n showBoard();\n System.out.println(\"Player win the game\");\n System.exit(0);\n }\n }", "public void winner(){\n System.out.println();\n System.out.println(\"You are the winner.!!!CONGRATULATIONS!!!.\");\n System.exit(1); // Close the game\n }", "public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n data.victoryFlag = true;\r\n data.gameState = 5;\r\n }", "private static void winnerOrTie()\n\t{\n\t\t//Check each row for winning or tie condition.\n\t\tif(tictactoeBoard[0] == tictactoeBoard[1] && tictactoeBoard[1] == tictactoeBoard[2] && tictactoeBoard[0] != 1)\n\t\t{\n\t\t\tSystem.out.println(\"Winner\");\n\t\t}\n\t\tif(tictactoeBoard[3] == tictactoeBoard[4] && tictactoeBoard[4] == tictactoeBoard[5] && tictactoeBoard[3] != 4)\n\t\t{\n\t\t\tSystem.out.println(\"Winner\");\n\t\t}\n\t\tif(tictactoeBoard[6] == tictactoeBoard[7] && tictactoeBoard[7] == tictactoeBoard[8] && tictactoeBoard[6] != 7)\n\t\t{\n\t\t\tSystem.out.println(\"Winner\");\n\t\t}\n\t\t//Check diagonally for winning or tie condition.\n\t\tif(tictactoeBoard[0] == tictactoeBoard[4] && tictactoeBoard[4] == tictactoeBoard[8] && tictactoeBoard[0] != 1)\n\t\t{\n\t\t\tSystem.out.println(\"Winner\");\n\t\t}\n\t\tif(tictactoeBoard[6] == tictactoeBoard[4] && tictactoeBoard[4] == tictactoeBoard[2] && tictactoeBoard[6] != 7)\n\t\t{\n\t\t\tSystem.out.println(\"Winner\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//nobody has won yet.\n\t\t\t//changeTurn();\n\t\t}\n\t}", "public void announceWinner() {\r\n Piece winer;\r\n if (_board.piecesContiguous(_board.turn().opposite())) {\r\n winer = _board.turn().opposite();\r\n } else {\r\n winer = _board.turn();\r\n }\r\n if (winer == WP) {\r\n _command.announce(\"White wins.\", \"Game Over\");\r\n System.out.println(\"White wins.\");\r\n } else {\r\n _command.announce(\"Black wins.\", \"Game Over\");\r\n System.out.println(\"Black wins.\");\r\n }\r\n }", "private void announceRoundResult()\n {\n // Last actions of each player, to compare\n GameAction fpAction = firstPlayer.getLastAction();\n GameAction spAction = secondPlayer.getLastAction();\n\n // Display first IA game\n if (!hasHuman)\n {\n if (fpAction instanceof RockAction)\n {\n animateSelectedButton(firstPlayerRock, true);\n }\n else if (fpAction instanceof PaperAction)\n {\n animateSelectedButton(firstPlayerPaper, true);\n }\n else if (fpAction instanceof ScissorsAction)\n {\n animateSelectedButton(firstPlayerScissors, true);\n }\n }\n // Display second IA game\n if (spAction instanceof RockAction)\n {\n animateSelectedButton(secondPlayerRock, false);\n }\n else if (spAction instanceof PaperAction)\n {\n animateSelectedButton(secondPlayerPaper, false);\n }\n else if (spAction instanceof ScissorsAction)\n {\n animateSelectedButton(secondPlayerScissors, false);\n }\n\n\n // First player has played something ==> look at result\n if (firstPlayer.hasAlreadyPlayed())\n {\n switch (fpAction.versus(spAction))\n {\n case WIN:\n updateResultIcons(true, false);\n break;\n case DRAW:\n updateResultIcons(false, true);\n break;\n case LOSE:\n updateResultIcons(false, false);\n break;\n }\n }\n // First player didn't play ==> draw or loose\n else\n {\n // Draw\n if (!secondPlayer.hasAlreadyPlayed())\n {\n updateResultIcons(false, true);\n }\n // Lose\n else\n {\n updateResultIcons(false, false);\n }\n }\n }", "private void announceWinner() {\n // FIXME\n if (_board.turn() == Piece.WP) {\n System.out.println(\"Black wins.\");\n } else {\n System.out.println(\"White wins.\");\n }\n }", "public void determineWinner() {\n\t\twinner = \"\";\n\t\tif (board[6] > board[13])\n\t\t\twinner = player1.getName();\n\t\telse if (board[6] < board[13])\n\t\t\twinner = player2.getName();\n\t\telse {\n\t\t\tSystem.out.println(\"The game is a tie\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(winner + \" is the winner\");\n\t}", "private void whoIsTheWinner() {\n\t\t// at first we say let the number for winner and the maximal score be 0.\n\t\tint winnerName = 0;\n\t\tint maxScore = 0;\n\t\t// then, for each player, we check if his score is more than maximal\n\t\t// score, and if it is we let that score to be our new maximal score and\n\t\t// we generate the player number by it and we let that player number to\n\t\t// be the winner, in other way maximal scores doen't change.\n\t\tfor (int i = 1; i <= nPlayers; i++) {\n\t\t\tif (totalScore[i] > maxScore) {\n\t\t\t\tmaxScore = totalScore[i];\n\t\t\t\twinnerName = i - 1;\n\t\t\t}\n\t\t}\n\t\t// finally, program displays on screen who is the winner,and what score\n\t\t// he/she/it got.\n\t\tdisplay.printMessage(\"Congratulations, \" + playerNames[winnerName]\n\t\t\t\t+ \", you're the winner with a total score of \" + maxScore + \"!\");\n\t}", "public void playRoundOne() {\r\n\t\t\r\n\t\twhile (!theModel.isGameOver()) {\r\n\t\t\tif (theModel.chooseFirstActivePlayer() == true) {\r\n\t\t\t\t// theModel.selectCategory();\r\n\t\t\t\t// so at this point we have returned strings?\r\n\t\t\t\twinningPlayer = theModel.compareCards(theModel.getSelectedCategory(theModel.selectCategory()));\r\n\t\t\t\tcheckIfWinOrDraw();\r\n\r\n\t\t\t\tSystem.out.println(\"this should be the human\");\r\n\r\n\t\t\t\tplayRound();\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\twinningPlayer = theModel.compareCards(theModel.getSelectedCategory(theModel.autoCategory()));\r\n\t\t\t\tcheckIfWinOrDraw();\r\n\r\n\t\t\t\t// theModel.displayTopCard();\r\n\t\t\t\tSystem.out.println(\"this should be the ai\");\r\n\t\t\t\tplayRound();\r\n\t\t\t\t// return true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (theModel.isGameOver()) {\r\n\t\t\tsql.setGameDataToSQL(GameID, RoundID, winningPlayer.getName(), DrawNum, theModel.humanIsActivePlayer);\r\n\t\t}\r\n\t}", "public void win() {\n JOptionPane.showConfirmDialog(null, \"You won! You got out with \" + this.player.getGold() + \" gold!\", \"VICTORY!\", JOptionPane.OK_OPTION);\n this.saveScore();\n this.updateScores();\n this.showTitleScreen();\n }", "@Test\r\n\tpublic void gameWinCheckCallsCorrectWinner() {\r\n\t\tBowl bowl = new Bowl();\r\n\t\tvar answer = bowl.gameWinCheck();\r\n\t\tassertEquals(-1,answer);\r\n\t\tbowl = setupGame(bowl);\r\n\t\tanswer = bowl.gameWinCheck();\r\n\t\tassertEquals(1,answer);\r\n\t\tbowl.getNeighbor(6).passTheft(49);\r\n\t\tanswer = bowl.getNeighbor(2).gameWinCheck();\r\n\t\tassertEquals(0,answer);\r\n\t}", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "void update(boolean winner);", "private void getWinner() {\r\n int nWhite = 0, nBlack = 0;\r\n if(nextPlayer.getChecks() == 0 && nextPlayer.getQueens() == 0){\r\n winner = currentPlayer;\r\n }\r\n else if(currentPlayer.getQueens() == nextPlayer.getQueens()){\r\n for (int i = 1; i<8; i++){\r\n for (int x = 0; x<8; x++) {\r\n if (checks[i][x] == 1) nBlack++;\r\n if (checks[7 - i][x] == 2) nWhite++;\r\n }\r\n if (nWhite>nBlack) winner = getPlayer(WHITE);\r\n else if(nBlack>nWhite)winner = getPlayer(BLACK);\r\n nWhite = 0;\r\n nBlack = 0;\r\n }\r\n }\r\n else if (currentPlayer.getQueens() > nextPlayer.getQueens()){ winner = currentPlayer;}\r\n else{winner = nextPlayer; }\r\n }", "public void checkWin(){\n boolean result = false;\n if(game.getTurn() > 3){\n Player currentPlayer = game.getPlayerTurn();\n int playernumber = currentPlayer.getPlayericon();\n result = game.winChecker(game.getBored(),playernumber);\n if(result == true) {\n setWinMsgBox(currentPlayer.getPlayerName() + \" Is victorious :)\",\"WIN\");\n }else if(game.getTurn() == 8 && result == false){\n setWinMsgBox(\"Too bad it is a draw, No one out smarted the other -_-\",\"DRAW\");\n }else{}\n }else{\n result = false;\n }\n }", "public int winner() {\n if(humanPlayerHits == 17) {\n return 1;\n }\n if(computerPlayerHits == 17){\n return 2;\n }\n return 0;\n }", "public final boolean checkForWin() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n result = true;\r\n for(Tile tile : rail.getTiles()) {\r\n tile.setBackground(Color.GREEN);\r\n player = tile.getText();\r\n }\r\n if (player.equals(\"X\")) {\r\n winningPlayer = \"X\";\r\n this.xWins++;\r\n } else if (player.equals(\"0\")) {\r\n winningPlayer = \"0\";\r\n this.oWins++;\r\n }\r\n break;\r\n }\r\n }\r\n \r\n return result;\r\n }", "void matchEnd(boolean winner);", "public void run() {\r\n for(int i = group; i < 64; i += 4) {\r\n if(!m_teams[i].isOut()) {\r\n setSurvivingTeam(m_teams[i]);\r\n return;\r\n }\r\n }\r\n\r\n m_botAction.sendArenaMessage(\"No one won for Base \" + (group + 1));\r\n }", "private void checkWinner() {\n\t\tif(player.getHandVal() == BLACKJACK && dealer.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"Both players have Blackjack!\\n\");\n\t\t\tresult = \"TIE\";\n\t\t}\n\t\telse if (player.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"The Player has Blackjack!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if (dealer.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"The Dealer has Blackjack!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(player.getHandVal() > BLACKJACK && dealer.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"Both players bust!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(player.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"The Player has busted!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(dealer.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"The Dealer has busted!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if(player.getHandVal() > dealer.getHandVal()) {\n\t\t\tSystem.out.println(\"The Player has a higher score!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if(player.getHandVal() < dealer.getHandVal()){\n\t\t\tSystem.out.println(\"The dealer has a higher score!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Both players have the same score!\\n\");\n\t\t\tresult = \"TIE\";\n\t\t}\n\t}", "private void showChampionshipWinner()\n {\n boolean singleWinner = true;\n String winnerDrivers = getDrivers().getDriver(0).getName();\n for(int j = 1; j < getDrivers().getSize(); j++)\n { \n if(getDrivers().getDriver(0).getAccumulatedScore() == getDrivers().getDriver(j).getAccumulatedScore()) // if multiple winners\n {\n singleWinner = false;\n winnerDrivers += \" and \" + getDrivers().getDriver(j).getName();\n break;\n }\n else\n {\n break;\n }\n\n }\n if(singleWinner)\n System.out.println(winnerDrivers + \" is the winner of the championship with \" + getDrivers().getDriver(0).getAccumulatedScore() + \" points\");\n else // if multiple winner\n System.out.println(\"ITS A CHAMPIONSHIP TIE!!!\" + winnerDrivers + \" are the winners of the championship with \" + getDrivers().getDriver(0).getAccumulatedScore() + \" points\");\n }", "public static void declareWinner() {\n if (playerWins > compWins) {\n System.out.println(\"!!!PLAYER WINS THE GAME!!!\");\n } else if (playerWins < compWins) {\n System.out.println(\"Comp wins the game...better luck next time!\");\n } else {\n System.out.println(\"Player and Comp are tied after rounds.\");\n }\n\n if (ties > playerWins && ties > compWins) {\n System.out.println(\"A hard battle...\");\n }\n }", "public static void outcomes(){\n switch(outcome){\n case 1:\n System.out.println(\"Player 1 is the Winner\");\n System.exit(0);\n break;\n case 2:\n System.out.println(\"Player 2 is the Winner\");\n System.exit(0);\n break;\n case 3:\n System.out.println(\"Tie\");\n System.exit(0);\n break;\n\n }\n }", "public void checkWinner(){\n \n if ((board[0][0] == 'X' && board[0][1] == 'X' && board[0][2] == 'X')||(board[1][0] == 'X' && board[1][1] == 'X' && board[1][2] == 'X')||(board[2][0] == 'X' && board[2][1] == 'X' && board[2][2] == 'X')){\n winner();\n }\n else if ((board[0][0] == 'X' && board[1][0] == 'X' && board[2][0] == 'X')||(board[0][1] == 'X' && board[1][1] == 'X' && board[2][1] == 'X')||(board[0][2] == 'X' && board[1][2] == 'X' && board[2][2] == 'X')){\n winner();\n }\n else if ((board[0][0] == 'X' && board[1][1] == 'X' && board[2][2] == 'X')||(board[0][2] == 'X' && board[1][1] == 'X' && board[2][0] == 'X')){\n winner();\n }\n else if ((board[0][0] == 'O' && board[0][1] == 'O' && board[0][2] == 'O')||(board[1][0] == 'O' && board[1][1] == 'O' && board[1][2] == 'O')||(board[2][0] == 'O' && board[2][1] == 'O' && board[2][2] == 'O')){\n winner();\n }\n else if ((board[0][0] == 'O' && board[1][0] == 'O' && board[2][0] == 'O')||(board[0][1] == 'O' && board[1][1] == 'O' && board[2][1] == 'O')||(board[0][2] == 'O' && board[1][2] == 'O' && board[2][2] == 'O')){\n winner();\n }\n else if ((board[0][0] == 'O' && board[1][1] == 'O' && board[2][2] == 'O')||(board[0][2] == 'O' && board[1][1] == 'O' && board[2][0] == 'O')){\n winner();\n }\n \n }", "public int getWinner() {return winner();}", "public int checkForWinner() {\n\n // Check horizontal wins\n for (int i = 0; i <= 6; i += 3)\t{\n if (mBoard[i] == HUMAN_PLAYER &&\n mBoard[i+1] == HUMAN_PLAYER &&\n mBoard[i+2]== HUMAN_PLAYER)\n return 2;\n if (mBoard[i] == COMPUTER_PLAYER &&\n mBoard[i+1]== COMPUTER_PLAYER &&\n mBoard[i+2] == COMPUTER_PLAYER)\n return 3;\n }\n\n // Check vertical wins\n for (int i = 0; i <= 2; i++) {\n if (mBoard[i] == HUMAN_PLAYER &&\n mBoard[i+3] == HUMAN_PLAYER &&\n mBoard[i+6]== HUMAN_PLAYER)\n return 2;\n if (mBoard[i] == COMPUTER_PLAYER &&\n mBoard[i+3] == COMPUTER_PLAYER &&\n mBoard[i+6]== COMPUTER_PLAYER)\n return 3;\n }\n\n // Check for diagonal wins\n if ((mBoard[0] == HUMAN_PLAYER &&\n mBoard[4] == HUMAN_PLAYER &&\n mBoard[8] == HUMAN_PLAYER) ||\n (mBoard[2] == HUMAN_PLAYER &&\n mBoard[4] == HUMAN_PLAYER &&\n mBoard[6] == HUMAN_PLAYER))\n return 2;\n if ((mBoard[0] == COMPUTER_PLAYER &&\n mBoard[4] == COMPUTER_PLAYER &&\n mBoard[8] == COMPUTER_PLAYER) ||\n (mBoard[2] == COMPUTER_PLAYER &&\n mBoard[4] == COMPUTER_PLAYER &&\n mBoard[6] == COMPUTER_PLAYER))\n return 3;\n\n // Check for tie\n for (int i = 0; i < BOARD_SIZE; i++) {\n // If we find a number, then no one has won yet\n if (mBoard[i] != HUMAN_PLAYER && mBoard[i] != COMPUTER_PLAYER)\n return 0;\n }\n\n // If we make it through the previous loop, all places are taken, so it's a tie\n return 1;\n }", "public void playRound() {\r\n\t\twhile (!theModel.isGameOver()) {\r\n\t\t\tif (theModel.setActivePlayer(winningPlayer) == true) {\r\n\t\t\t\t// theModel.selectCategory();\r\n\t\t\t\t// so at this point we have returned strings?\r\n\t\t\t\ttheModel.displayTopCard();\r\n\t\t\t\twinningPlayer = theModel.compareCards(theModel.getSelectedCategory(theModel.selectCategory()));\r\n\t\t\t\t\r\n\t\t\t\tcheckIfWinOrDraw();\r\n\t\t\t\t\r\n\t\t\t\tRoundID++;\r\n\t\t\t\t\r\n\t\t\t\tSystem.err.println(\"\\nThe current Round : \" + RoundID);\r\n\t\t\t\t\r\n\t\t\t\tlog.writeFile(\"\\nThe current Round : \" + RoundID);\r\n\t\t\t\t\r\n\t\t\t\tsql.setRoundDataToSQL(GameID, RoundID, winningPlayer.getName(), theModel.getIsDraw(), theModel.humanIsActivePlayer);\r\n\t\t\t\r\n\t\t\t\t//System.out.println(\"this should be the human having won round\");\r\n\r\n\t\t\t} else {\r\n\t\t\t\tcheckIfHumanPlayerInGame();\r\n\t\t\t\twinningPlayer = theModel.compareCards(theModel.getSelectedCategory(theModel.autoCategory()));\r\n\t\t\t\tcheckIfWinOrDraw();\r\n\t\t\t\t\r\n\t\t\t\tRoundID++;\r\n\t\t\t\t\r\n\t\t\t\tSystem.err.println(\"\\nThe current Round: \" + RoundID);\r\n\t\t\t\tlog.writeFile(\"\\nThe current Round : \" + RoundID);\r\n\t\t\t\tsql.setRoundDataToSQL(GameID, RoundID, winningPlayer.getName(), theModel.getIsDraw(), theModel.humanIsActivePlayer);\r\n\r\n\t\t\t\t//System.out.println(\"this should be the ai \" + winningPlayer.getName() + \"who has won the last round\");\r\n\t\t\t\t// return true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void decideWinner() {\n String winnerAnnouncement;\n if(player1Choice.equalsIgnoreCase(\"rock\") && player2Choice.equalsIgnoreCase(\"scissors\")) {\n winnerAnnouncement = \"Player: ROCK vs Computer: SCISSORS ----- PLAYER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"scissors\") && player2Choice.equalsIgnoreCase(\"rock\")) {\n winnerAnnouncement = \"Player: SCISSORS vs Computer: ROCK ----- COMPUTER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"paper\") && player2Choice.equalsIgnoreCase(\"rock\")) {\n winnerAnnouncement = \"Player: PAPER vs Computer: ROCK ----- PLAYER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"rock\") && player2Choice.equalsIgnoreCase(\"paper\")) {\n winnerAnnouncement = \"Player: ROCK vs Computer: PAPER ----- COMPUTER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"scissors\") && player2Choice.equalsIgnoreCase(\"paper\")) {\n winnerAnnouncement = \"Player: SCISSORS vs Computer: PAPER ----- PLAYER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"paper\") && player2Choice.equalsIgnoreCase(\"scissors\")) {\n winnerAnnouncement = \"Player: PAPER vs Computer: SCISSORS ----- COMPUTER WINS\";\n } else {\n winnerAnnouncement = \"Its a TIE ---- EVERYONE IS A LOSER\";\n }\n // Print out who won in this format: \"Player: ROCK vs Computer: SCISSORS ----- PLAYER WINS\"\n System.out.println(winnerAnnouncement);\n }", "void computeResult() {\n // Get the winner (null if draw).\n roundWinner = compareTopCards();\n\n\n if (roundWinner == null) {\n logger.log(\"Round winner: Draw\");\n logger.log(divider);\n // Increment statistic.\n numDraws++;\n\n } else {\n logger.log(\"Round winner: \" + roundWinner.getName());\n\t logger.log(divider);\n this.gameWinner = roundWinner;\n if (roundWinner.getIsHuman()) {\n // Increment statistic.\n humanWonRounds++;\n }\n }\n\n setGameState(GameState.ROUND_RESULT_COMPUTED);\n }", "private void computeWinLose() {\n\n if (!id11.getText().isEmpty()) {\n if ((id11.getText().equals(id00.getText()) && id11.getText().equals(id22.getText())) ||\n (id11.getText().equals(id02.getText()) && id11.getText().equals(id20.getText())) ||\n (id11.getText().equals(id10.getText()) && id11.getText().equals(id12.getText())) ||\n (id11.getText().equals(id01.getText()) && id11.getText().equals(id21.getText()))) {\n winner = id11.getText();\n }\n }\n\n if (!id00.getText().isEmpty()) {\n if ((id00.getText().equals(id01.getText()) && id00.getText().equals(id02.getText())) ||\n id00.getText().equals(id10.getText()) && id00.getText().equals(id20.getText())) {\n winner = id00.getText();\n }\n }\n\n if (!id22.getText().isEmpty()) {\n if ((id22.getText().equals(id21.getText()) && id22.getText().equals(id20.getText())) ||\n id22.getText().equals(id12.getText()) && id22.getText().equals(id02.getText())) {\n winner = id22.getText();\n }\n }\n\n // If all the grid entries are filled, it is a draw\n if (!id00.getText().isEmpty() && !id01.getText().isEmpty() && !id02.getText().isEmpty() && !id10.getText().isEmpty() && !id11.getText().isEmpty() && !id12.getText().isEmpty() && !id20.getText().isEmpty() && !id21.getText().isEmpty() && !id22.getText().isEmpty()) {\n winner = \"Draw\";\n }\n\n if (winner != null) {\n if (\"X\".equals(winner)) {\n winner = playerX;\n } else if (\"O\".equals(winner)) {\n winner = playerO;\n } else {\n winner = \"Draw\";\n }\n showWindow(winner);\n }\n }", "public void scoringTrick(){\n wizardRule();\n winner.tricksWon++;\n winner = new Player();\n }", "private void doMatch() {\n // Remember how many games in this session\n mGameCounter++;\n\n PebbleDictionary resultDict = new PebbleDictionary();\n\n switch (mChoice) {\n case Keys.CHOICE_ROCK:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN); // Inform Pebble of opposite result\n break;\n case Keys.CHOICE_SCISSORS:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n }\n break;\n case Keys.CHOICE_PAPER:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n }\n break;\n case Keys.CHOICE_SCISSORS:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n case Keys.CHOICE_PAPER:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n }\n break;\n }\n\n // Inform Pebble of result\n PebbleKit.sendDataToPebble(getApplicationContext(), APP_UUID, resultDict);\n\n // Finally reset both\n mChoice = Keys.CHOICE_WAITING;\n mP2Choice = Keys.CHOICE_WAITING;\n\n // Leave announcement for 5 seconds\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n updateUI();\n }\n\n }, 5000);\n }", "public int winner(){\n getValidMoves();\n if(check(1)!=0) return 1;\n else if(check(-1)!=0) return -1;\n else if(validX.size()==0) return 2;\n else return 0;\n }", "private boolean winGame() {\n if (model.isCompleted()) {\n win.message(\"Winner\");\n return true;\n }\n return false;\n }", "public void gameWon()\n {\n ScoreBoard endGame = new ScoreBoard(\"You Win!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }", "private static void checkForKnockout()\n\t{\n\t\tif (playerOneHealth <= 0 && opponentHealth <= 0)\n\t\t{\n\t\t\tSystem.out.println(playerOneName + \" and \" + opponentName + \" both go down for the count!\");\n\t\t\t\n\t\t\t// Prints one to ten because fighter is knocked out\n\t\t\tfor (int i = 1; i <= 10; i++)\n\t\t\t{\n\t\t\t\tif (i < 6) System.out.println(i);\n\t\t\t\telse System.out.println(i + \"!\");\n\t\t\n\t\t\t\t// Delays count – from StackOverflow\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\\n*DING* *DING* *DING* The match is over in round number \" + roundNumber + \"!!\\n\" + playerOneName + \" and \" + opponentName + \" knocked each other out at the same time.\\nWhat a weird ending!!!\");\n\t\t}\n\t\n\t\t// Check if Player One Lost\n\t\telse if (playerOneHealth <= 0)\n\t\t{\n\t\t\t// Prints one to ten because player one is knocked out\n\t\t\tSystem.out.println(playerOneName + \" is down for the count!\");\n\t\t\tfor (int i = 1; i <= 10; i++)\n\t\t\t{\n\t\t\t\tif (i < 6) System.out.println(i);\n\t\t\t\telse System.out.println(i + \"!\");\n\t\t\t\n\t\t\t\t// Delays count – from StackOverflow\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException exception) \n\t\t\t\t{\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Game Over\n\t\t\tSystem.out.println(\"\\n*DING* *DING* *DING* The match is over in round number \" + roundNumber + \"!!\\n\" + playerOneName + \" was knocked out, and \" + opponentName + \" still had \" + opponentHealth + \" health left. \\nBetter luck next time player one!!!\");\n\t\t}\n\t\n\t\t// Check if Player Two Lost\n\t\telse if (opponentHealth <= 0)\n\t\t{\n\t\t\tSystem.out.println(opponentName + \" is down for the count!\");\n\n\t\t\t// Prints one to ten because fighter is knocked out\n\t\t\tfor (int i = 1; i <= 10; i++)\n\t\t\t{\n\t\t\t\tif(i < 6)System.out.println(i);\n\t\t\t\telse System.out.println(i + \"!\");\n\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException exception) \n\t\t\t\t{\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t// Game Over\n\t\t\tSystem.out.println(\"\\n*DING* *DING* *DING* The match is over in round number \" + roundNumber + \"!! \\n\" + opponentName + \" was knocked out, and \" + playerOneName + \" still had \" + playerOneHealth + \" health left.\\nCONGRATULATIONS PLAYER ONE!!!\");\n\t\t}\n\t}", "private void checkForGameOver() {\n\t\t// if 11 rounds are over, calculate winner\n\t\tif (round == 12) {\n\t\t\tif (player1.getPoints() > player2.getPoints()) {\n\t\t\t\ttextAreaInstructions.setText(\"Game Over!! Player 1 wins!!\");\n\t\t\t} else {\n\t\t\t\ttextAreaInstructions.setText(\"Game Over!! Player 2 Wins!!\");\n\t\t\t}\n\t\t\tround = 1;\n\t\t\ttextFieldRound.setText(\"1\");\n\t\t\ttextFieldPlayerOneScore.setText(\"0\");\n\t\t\ttextFieldPlayerTwoScore.setText(\"0\");\n\t\t\tplayer1.setPoints(0);\n\t\t\tplayer2.setPoints(0);\n\t\t}\n\t}", "public void finishSubRound(){\n\n\t\t/* sorts the cards on in the table pool in a decsending order */\n List<PlayerCardArray> sortedTableHand =\n\t\t\t\tgameLogic.getTableHand().sortedTableHand(gameLogic.getTrumpCard().getSuit(),\n gameLogic.getLeadSuitCard().getSuit());\n\n System.out.println(sortedTableHand);\n\n PlayerCardArray winner = sortedTableHand.get(0);\n\n\t\t/* Display winner of the round */\n System.out.println(\"The winner of this round is player ID: \" + winner.getPlayerId());\n gameLogic.getScoreboard().addTricksWon(round, winner.getPlayerId());\n\n\t\t/* Get the winner name */\n\t\tif (winner.getPlayerId() == 0){\n\t\t\twinnerName = lblNameA.getText();\n\t\t} else if (winner.getPlayerId() == 1){\n\t\t\twinnerName = lblNameB.getText();\n\t\t}else if (winner.getPlayerId() == 2){\n\t\t\twinnerName = lblNameC.getText();\n\t\t}else if (winner.getPlayerId() == 3){\n\t\t\twinnerName = lblNameD.getText();\n\t\t}\n\n\t\t/* displays the message dialog box informing winner of the round */\n JOptionPane.showMessageDialog(null, \"Round: \" + round + \"\\nSubround: \" + (roundCounter+1) + \"\\nWinner is: \" + winnerName);\n\n\t\t/* set Winner for player */\n for (Player p : gameLogic.getArrayOfPlayers().getArrayOfPlayers()) {\n if ( p.getPlayerId() == winner.getPlayerId() ) {\n p.setTrickWinner(true);\n } else {\n p.setTrickWinner(false);\n }\n }\n\n\t\t/* updates the UI informing play how many tricks won so far */\n\t\tfor (Player p : gameLogic.getArrayOfPlayers().getArrayOfPlayers()) {\n\t\t\tif (winner.getPlayerId() == 0){\n\t\t\t\troundBidsWon += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 1){\n\t\t\t\troundBidsWon1 += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 2){\n\t\t\t\troundBidsWon2 += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 3){\n\t\t\t\troundBidsWon3 += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t/* Set position for players */\n System.out.println(\"OLD PLAYER ORDER: \" + gameLogic.getArrayOfPlayers().getArrayOfPlayers());\n if (round != 11) {\n gameLogic.setPlayerOrder(round);\n currentPlayer = gameLogic.getArrayOfPlayers().getArrayOfPlayers().get(0).getPlayerId();\n if (currentPlayer == 0){\n \tSystem.out.println(\"YOU ARE NOW THE FIRST PERSON TO PLAY\");\n \twaitingUser = true;\n } else {\n \twaitingUser = false;\n }\n System.out.println(\"NEW PLAYER ORDER: \" + gameLogic.getArrayOfPlayers().getArrayOfPlayers());\n }\n\n\t\t/* Clear tableHand at end of subround */\n gameLogic.getTableHand().clearTableHand();\n\t}", "public String winner(){\n\t\tString winner =\"\";\n\t\tif(board.isWin() == \"blue\")\n\t\t\t{\n\t\t\twinner= \"blue\";\n\t\t\t}\n\t\telse if(board.isWin()==\"red\")\n\t\t\t{\n\t\t\twinner= \"red\";\n\t\t\t}\n\t\treturn winner; \n\t}", "public boolean winner(){ \r\n\t\tif (rowWin() || colWin() || diagWin()){ \r\n\t\t\tchangeTurn(); \r\n\t\t\tSystem.out.println(\"Winner: \" + playerToString(currentTurn) + \"!\"); \r\n\t\t\treturn true; \r\n\t\t}\r\n\t\telse if (tie()){\r\n\t\t\tSystem.out.println(\"There is a tie.\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse{ \r\n\t\t\tSystem.out.println(\"No winner yet.\\n\"); \r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "private void DeclareWinner(){\n\t\tTextView tvStatus = (TextView) findViewById(R.id.tvStatus);\n\t\tTextView tvP1Score = (TextView) findViewById(R.id.tvP1Score);\n\t\tTextView tvP2SCore = (TextView) findViewById(R.id.tvP2Score);\n\t\tTextView tvTieScore = (TextView) findViewById(R.id.tvTieScore);\n\t\tswitch(winner){\n\t\t\tcase CAT:\n\t\t\t\ttieScore = tieScore + 1;\n\t\t\t\ttvStatus.setText(\"Tie Cat Wins!\");\n\t\t\t\ttvTieScore.setText(String.valueOf(tieScore));\n\t\t\t\tbreak;\n\t\t\tcase P1_WINNER:\n\t\t\t\tp1Score = p1Score + 1;\n\t\t\t\ttvStatus.setText(\"Player 1 Wins!\");\n\t\t\t\ttvP1Score.setText(String.valueOf(p1Score));\n\t\t\t\tbreak;\n\t\t\tcase P2_WINNER:\n\t\t\t\tp2Score = p2Score + 1;\n\t\t\t\ttvStatus.setText(\"Player 2 Wins!\");\n\t\t\t\ttvP2SCore.setText(String.valueOf(p2Score));\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void round(Player playerWhoseTurn, ArrayList<Player> players) {\n\n view.print(\"\");\n view.print(\"--Player \" + playerWhoseTurn.getPlayerId() + \"--\");\n view.print(\"\");\n\n // displaying decisive player's card\n view.printCard(playerWhoseTurn.showTopCard());\n view.print(\"\\n\\n\");\n\n // creating list of cards currently in game (table)\n ArrayList<Card> cardsOnTable = new ArrayList<Card>();\n\n // All players lay their cards on table\n for (Player player : players) {\n cardsOnTable.add(player.layCardOnTable());\n }\n\n // Actual round\n\n // Asking player for decision which feature to fight with\n int playerDecision;\n\n while (true) {\n\n // decisive player decides which feature to fight with\n playerDecision = view.decideWhichFeature();\n\n // possible decisions\n int[] possibleChoices = {1, 2, 3, 4};\n\n // check if player choose existing option\n if (!checkIfValueInArray(possibleChoices, playerDecision)) {\n view.print(\"No such choice! Try again!\");\n } else {\n break;\n }\n }\n\n // Dealer checks who won (there might be exequo winners!)\n ArrayList<Integer> winnersIds = dealer.getWinner(cardsOnTable, playerDecision);\n\n // if there are no exequo winners, so there is only one winner:\n if (winnersIds.size() == 1) {\n\n // display message who won\n view.print(\"\\nPlayer \" + winnersIds.get(0) + \" won the round!\");\n\n //add cards from cardsOnTable to winner's hand\n for (Card card : cardsOnTable) {\n for (Player player : players) {\n if (player.getPlayerId() == winnersIds.get(0)) {\n player.addCard(card);\n }\n }\n }\n // clear cardsOnTable\n cardsOnTable.clear();\n\n //add cards from tempCardStack (if ther are any) to winner's hand\n for (Card card : tempCardStack) {\n for (Player player : players) {\n if (player.getPlayerId() == winnersIds.get(0)) {\n player.addCard(card);\n }\n }\n }\n // clear tempCardStack\n tempCardStack.clear();\n }\n\n // when there are exequo winners:\n else if (winnersIds.size() > 1) {\n\n // Nobody gets the cards, instead cards go to temporary stack untill someone wins them\n // in the next round\n for (Card card : cardsOnTable) {\n tempCardStack.add(card);\n }\n // display who won (for example \"Players 1, 2, 3 exequo won the round\")\n view.printExequoWinners(winnersIds);\n }\n }", "public static void checkResult() {\n\t\tint sum = PlayerBean.PLAYERONE - PlayerBean.PLAYERTWO;\n\n\t\tif (sum == 1 || sum == -2) {\n\t\t\tScoreBean.addWin();\n\t\t\tresult = \"player one wins\";\n\t\t} else {\n\t\t\tScoreBean.addLoss();\n\t\t\tresult = \"player two wins\";\n\t\t}\n\t}", "void win() {\n\t\t_money += _bet * 2;\n\t\t_wins++;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "void win(Player player);", "public void handleEndAuctionRound(String winner);", "private int win_determination()\n {\n int flag=0;\n String box1 = jButton1.getText();\n String box2 = jButton2.getText();\n String box3 = jButton3.getText();\n String box4 = jButton4.getText();\n String box5 = jButton5.getText();\n String box6 = jButton6.getText();\n String box7 = jButton7.getText();\n String box8 = jButton8.getText();\n String box9 = jButton9.getText();\n \n \n if(box1==box2 && box1==box3) //check for equality then sign and then declare winner\n {\n if(box1.equalsIgnoreCase(\"X\"))\n {\n Xwins();\n }\n if(box1.equalsIgnoreCase(\"O\"))\n {\n OWins();\n flag=1;\n }\n }\n \n if(box4==box5 && box4==box6) //check for equality then sign and then declare winner\n {\n if(box4.equalsIgnoreCase(\"X\"))\n {\n Xwins();\n }\n if(box4.equalsIgnoreCase(\"O\"))\n {\n OWins();\n flag=1;\n }\n }\n if(box7==box8 && box7==box9) //check for equality then sign and then declare winner\n {\n if(box7.equalsIgnoreCase(\"X\"))\n {\n Xwins();\n }\n if(box7.equalsIgnoreCase(\"O\"))\n {\n OWins();\n flag=1;\n }\n }\n \n if(box1==box4 && box1==box7) //check for equality then sign and then declare winner\n {\n if(box1.equalsIgnoreCase(\"X\"))\n {\n Xwins();\n }\n if(box1.equalsIgnoreCase(\"O\"))\n {\n OWins();\n flag=1;\n }\n }\n if(box2==box5 && box2==box8) //check for equality then sign and then declare winner\n {\n if(box2.equalsIgnoreCase(\"X\"))\n {\n Xwins();\n }\n if(box2.equalsIgnoreCase(\"O\"))\n {\n OWins();\n flag=1;\n }\n }\n if(box3==box6 && box3==box9) //check for equality then sign and then declare winner\n {\n if(box3.equalsIgnoreCase(\"X\"))\n {\n Xwins();\n }\n if(box3.equalsIgnoreCase(\"O\"))\n {\n OWins();\n flag=1;\n }\n }\n if(box1==box5 && box1==box9) //check for equality then sign and then declare winner\n {\n if(box1.equalsIgnoreCase(\"X\"))\n {\n Xwins();\n }\n if(box1.equalsIgnoreCase(\"O\"))\n {\n OWins();\n flag=1;\n }\n }\n if(box3==box5 && box3==box7) //check for equality then sign and then declare winner\n {\n if(box3.equalsIgnoreCase(\"X\"))\n {\n Xwins();\n }\n if(box3.equalsIgnoreCase(\"O\"))\n {\n OWins();\n flag=1;\n }\n }\n return flag;\n }", "private boolean checkGameStatus() {\n int res = model.getWinner();\n if (res == Model.DRAW) {\n draw();\n return false;\n } else if (res == Model.WHITE) {\n whiteScore++;\n view.getPrompt().setText(whiteName + \" win!\");\n prepareRestart();\n return false;\n } else if (res == Model.BLACK) {\n blackScore++;\n view.getPrompt().setText(blackName + \" win!\");\n prepareRestart();\n return false;\n }\n return true;\n }", "public void tie() {\r\n\t\tfor (int n = 0; n < 6; n++) {\r\n\t\t\tfor (int m = 0; m < 7; m++) {\r\n\t\t\t\tsquares[n][m].setEnabled(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 7; a++) {\r\n\t\t\tbuttons[a].setEnabled(false);\r\n\t\t}\r\n\t\tint result = JOptionPane.showConfirmDialog(null,\r\n\t\t\t\t\" TIE GAME! No winner Found! Do you want to start a new game?\", null, JOptionPane.YES_NO_OPTION);\r\n\r\n\t\tif (result == JOptionPane.YES_OPTION) {\r\n\t\t\tgameReset();\r\n\t\t} else if (result == JOptionPane.NO_OPTION) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \" Click Ok to return to Main Menu\");\r\n\r\n\t\t\tJFrame backToMenu = new JFrame(\"Main Menu\");\r\n\r\n\t\t\tbackToMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\tbackToMenu.getContentPane().add(new MainMenu());\r\n\t\t\tbackToMenu.pack();\r\n\t\t\tbackToMenu.setSize(750, 650);\r\n\t\t\tbackToMenu.setVisible(true);\r\n\t\t}\r\n\r\n\t}", "public void announceWinner(){\n gameState = GameState.HASWINNER;\n notifyObservers();\n }", "public void finalResult() {\n ConnectionSockets.getInstance().sendMessage(Integer.toString(points)+\"\\n\");\n System.out.println(\"escreveu para o oponente\");\n opponentPoints = Integer.parseInt(ConnectionSockets.getInstance().receiveMessage());\n System.out.println(\"leu do oponente\");\n if(points != opponentPoints) {\n if (points > opponentPoints) {// Won\n MatchController.getInstance().getSets().add(1);\n MatchController.getInstance().increaseSet();\n } else { //Lost\n MatchController.getInstance().getSets().add(0);\n MatchController.getInstance().increaseSet();\n }\n }\n }", "@Override\n\tpublic void win() {\n\t\t\n\t\tfround[fighter1]++;\n\t fplatz[fighter1]=Math.round((float)fplatz[fighter1]/2); \n\t \n\t\tnextRound();\n\t}", "private void gameOver() {\n\t\t\n\t}", "public static void checkWinCondition() {\n\t\twin = false;\n\t\tif (curPlayer == 1 && arrContains(2, 4))\n\t\t\twin = true;\n\t\telse if (curPlayer == 2 && arrContains(1, 3))\n\t\t\twin = true;\n\t\tif (curPlayer == 2 && !gameLogic.Logic.arrContains(2, 4))\n\t\t\tP2P.gameLost = true;\n\t\telse if (gameLogic.Logic.curPlayer == 1 && !gameLogic.Logic.arrContains(1, 3))\n\t\t\tP2P.gameLost = true;\n\t\tif (P2P.gameLost == true) {\n\t\t\tif (gameLogic.Logic.curPlayer == 1)\n\t\t\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Black player won! </font></b></center></html>\");\n\t\t\telse\n\t\t\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Red player won! </font></b></center></html>\");\n\t\t}\n\t\telse\n\t\t\twin = false;\n\t}", "public static void checkPlayer()\n\t{\n\t\ttry {\n\t\t\t\n\t\t\tscenarioResults = new String[127];\n\t\t\tArrayList<Integer> differences = new ArrayList<Integer>();\n\t\t\t//set scenarioResults to current result or player's bracket when not impossible\n\t\t\tfor(int i=0; i < 127; i++)\n\t\t\t{\n\t\t\t\tif(i < nextMatch){\n\t\t\t\t\tscenarioResults[i] = results[i];\n\t\t\t\t}else{\n\t\t\t\t\t//check if a pick has been disqualified by previous results. \n\t\t\t\t\t//If it is still possible, assume it happens, else add the match number to the list to iterate through.\n\t\t\t\t\tif(isValid(allPicks.get(checkIndex)[i],i)){\n\t\t\t\t\t\tscenarioResults[i] = allPicks.get(checkIndex)[i];\n\t\t\t\t\t}else{\n\t\t\t\t\t\tscenarioResults[i] = \"\";\n\t\t\t\t\t\tdifferences.add(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if there aren't any matches to check specifically (i.e. no picked winners that lost in previous rounds)\n\t\t\t//\tjust check to see if they win if everything breaks right.\n\t\t\tif(differences.size() == 0)\n\t\t\t{\n\t\t\t\tif(outputScenarioWinner(\"any combination+\"))\n\t\t\t\t{\n\t\t\t\t\twriter.write(\"\\t\"+entrants[checkIndex]+\" is ALIVE\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(entrants[checkIndex]);\n\t\t\t\t\twriter.write(\"\\t\"+entrants[checkIndex]+\" is DEAD\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//find later round matches to iterate through, where the player is already guaranteed to be wrong\n\t\t\t\twrongMatches = new int[differences.size()];\n\n\n\t\t\t\tfor(int i = 0; i < wrongMatches.length; i++)\n\t\t\t\t{\n\t\t\t\t\twrongMatches[i] = differences.get(i).intValue();\n\t\t\t\t}\n\n\t\t\t\t//recurse through results, checking from left-most first. When you reach the end of the list of matches, check scores\n\t\t\t\t//\tand print the winner for the given combination.\n\t\t\t\tboolean isAlive = checkPlayerHelper(0,\"\");\n\n\t\t\t\t//if player is the winner, end execution\n\t\t\t\tif(isAlive)\n\t\t\t\t{\n\t\t\t\t\twriter.write(\"\\t\"+entrants[checkIndex]+\" is ALIVE\");\n\t\t\t\t}else{\n\t\t\t\t\twriter.write(\"\\t\"+entrants[checkIndex]+\" is DEAD\");\n\t\t\t\t\tSystem.out.println(entrants[checkIndex]);\n\t\t\t\t}\n\t\t\t}\n\t\t\twriter.write(\"\\n\");\n\t\t\t\n\t\t}\t\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"problem with output\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "private void playGame() {\n do {\n new Round(this);\n } while (!winner.isPresent());\n }", "public void round(){\n if (player2.getName().equals(\"Computer\")) {\n battle(JOptionPane.showInputDialog(\"Player 1 enter: paper; rock; or scissors\"),\n new Computer().choice());\n } else {\n battle(JOptionPane.showInputDialog(\"Player 1 enter: paper; rock; or scissors\"),\n JOptionPane.showInputDialog(\"Player 2 enter: paper; rock; or scissors\"));\n }\n }", "public void winnerFound() {\r\n\t\tfor (int n = 0; n < 6; n++) {\r\n\t\t\tfor (int m = 0; m < 7; m++) {\r\n\t\t\t\tsquares[n][m].setEnabled(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 7; a++) {\r\n\t\t\tbuttons[a].setEnabled(false);\r\n\t\t}\r\n\t\tif (winnerChip != 67) {\r\n\t\t\tint result = JOptionPane.showConfirmDialog(null,\r\n\t\t\t\t\t\" Player \" + (winnerChip - 48) + \" won! Do you want to start a new game?\", null,\r\n\t\t\t\t\tJOptionPane.YES_NO_OPTION);\r\n\r\n\t\t\tif (result == JOptionPane.YES_OPTION) {\r\n\t\t\t\tgameReset();\r\n\t\t\t} else if (result == JOptionPane.NO_OPTION) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Click Ok to return to Main Menu\");\r\n\r\n\t\t\t\tJFrame backToMenu = new JFrame(\"Main Menu\");\r\n\r\n\t\t\t\tbackToMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\t\tbackToMenu.getContentPane().add(new MainMenu());\r\n\t\t\t\tbackToMenu.pack();\r\n\t\t\t\tbackToMenu.setSize(750, 650);\r\n\t\t\t\tbackToMenu.setVisible(true);\r\n\t\t\t}\r\n\t\t}if (winnerChip == 67) {\r\n\t\t\tint result = JOptionPane.showConfirmDialog(null, \" You lost! Do you want to start a new game?\", null, JOptionPane.YES_NO_OPTION);\r\n\t\t\tif (result == JOptionPane.YES_OPTION) {\r\n\t\t\t\tgameReset();\r\n\t\t\t} else if (result == JOptionPane.NO_OPTION) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Click Ok to return to Main Menu\");\r\n\r\n\t\t\t\tJFrame backToMenu = new JFrame(\"Main Menu\");\r\n\r\n\t\t\t\tbackToMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\t\tbackToMenu.getContentPane().add(new MainMenu());\r\n\t\t\t\tbackToMenu.pack();\r\n\t\t\t\tbackToMenu.setSize(750, 650);\r\n\t\t\t\tbackToMenu.setVisible(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }", "public int winner() {\n if (player1Wins())\n return 1;\n if (player2Wins())\n return 2;\n return -1; // No one has won\n }", "public static void checkWinner() {\n for (int i = 0; i < 3; i++) {\r\n if (winner) {\r\n break;\r\n }\r\n for (int j = 0; j < 3; j++) {\r\n // Check each row\r\n if (output[i][0] == output[i][1] && output[i][0] == output[i][2]) {\r\n if (output[i][0] != ' ') {\r\n System.out.println(output[i][0] + \" wins!\");\r\n System.exit(0);\r\n winner = true;\r\n }\r\n break;\r\n }\r\n // Check each column\r\n else if (output[0][j] == output[1][j] && output[0][j] == output[2][j]) {\r\n if (output[0][j] != ' ') {\r\n System.out.println(output[0][j] + \" wins!\");\r\n System.exit(0);\r\n winner = true;\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n // Check Diagonals\r\n if (output[0][0] == output[1][1] && output[0][0] == output[2][2]) {\r\n if (output[0][0] != ' ') {\r\n System.out.println(output[0][0] + \" wins!\");\r\n System.exit(0);\r\n winner = true;\r\n }\r\n\r\n } else if (output[2][0] == output[1][1] && output[2][0] == output[0][2]) {\r\n if (output[2][0] != ' ') {\r\n System.out.println(output[2][0] + \" wins!\");\r\n System.exit(0);\r\n winner = true;\r\n }\r\n\r\n } else if (winner = false) {\r\n System.out.println(\"Draw\");\r\n System.exit(0);\r\n }\r\n }", "public void getScores(){\n String p1 = \"Player 1 has \" + Integer.toString(player1.getWins());\n String p2 = \"Player 2 has \" + Integer.toString(player2.getWins());\n String winner = \"tie\";\n if(player1.getWins()>player2.getWins()){\n winner = player1.getName() + \" wins!!!!\";\n }\n else if(player2.getWins()>player1.getWins()){\n winner = player2.getName() + \" Wins!!!\";\n }\n JOptionPane.showMessageDialog(null, (p1 + \"\\n\" + p2 + \"\\n\" + winner));\n }", "public abstract Chip checkWinner();", "private void calcWinner(){\n //local class for finding ties\n class ScoreSorter implements Comparator<Player> {\n public int compare(Player p1, Player p2) {\n return p2.calcFinalScore() - p1.calcFinalScore();\n }\n }\n\n List<Player> winners = new ArrayList<Player>();\n int winningScore;\n\n // convert queue of players into List<Player> for determining winner(s)\n while (players.size() > 0) {\n winners.add(players.remove());\n } \n\n // scoreSorter's compare() should sort in descending order by calcFinalScore()\n // Arrays.sort(winnersPre, new scoreSorter()); // only works w/ normal arrays :(\n Collections.sort(winners, new ScoreSorter());\n\n // remove any players that don't have the winning score\n winningScore = winners.get(0).calcFinalScore();\n for (int i = winners.size()-1; i > 0; i--) { // remove non-ties starting from end, excluding 0\n if (winners.get(i).calcFinalScore() < winningScore) {\n winners.remove(i);\n }\n }\n\n // Announce winners\n boolean hideCalculatingWinnerPopUp = false;\n String winnersString = \"\";\n if (winners.size() > 1) {\n winnersString = \"There's a tie with \" + winners.get(0).calcFinalScore() + \" points. The following players tied: \";\n for (Player p : winners) {\n winnersString += p.getName() + \" \";\n }\n view.showPopUp(hideCalculatingWinnerPopUp, winnersString);\n } else {\n view.showPopUp(hideCalculatingWinnerPopUp, winners.get(0).getName() + \" wins with a score of \" + winners.get(0).calcFinalScore() + \" points! Clicking `ok` will end and close the game.\");\n }\n }", "public void winner(String tmp){\n if(tmp == \"crosswins\"){\n TextView c = (TextView) findViewById(R.id.CrossWonView);\n c.setVisibility(View.VISIBLE);\n } else if (tmp == \"circlewins\"){\n TextView c = (TextView) findViewById(R.id.CircleWonView);\n c.setVisibility(View.VISIBLE);\n }\n //Disable buttons\n ImageButton b = (ImageButton) findViewById(R.id.imageButton1);\n b.setClickable(false);\n b.setEnabled(false);\n b = (ImageButton) findViewById(R.id.imageButton2);\n b.setClickable(false);\n b.setEnabled(false);\n b = (ImageButton) findViewById(R.id.imageButton3);\n b.setClickable(false);\n b.setEnabled(false);\n b = (ImageButton) findViewById(R.id.imageButton4);\n b.setClickable(false);\n b.setEnabled(false);\n b = (ImageButton) findViewById(R.id.imageButton5);\n b.setClickable(false);\n b.setEnabled(false);\n b = (ImageButton) findViewById(R.id.imageButton6);\n b.setClickable(false);\n b.setEnabled(false);\n b = (ImageButton) findViewById(R.id.imageButton7);\n b.setClickable(false);\n b.setEnabled(false);\n b = (ImageButton) findViewById(R.id.imageButton8);\n b.setClickable(false);\n b.setEnabled(false);\n b = (ImageButton) findViewById(R.id.imageButton9);\n b.setClickable(false);\n b.setEnabled(false);\n //turns on button to reset game\n counter = 0;\n gamereset();\n }", "private void myTurn()\n\t{\n\t\t\n\t\tif (canPlay())\n\t\t{\n\t\t\tif (isTop())\n\t\t\t{\n\t\t\t\traise();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tequal();\n\t\t\t}\n\t\t}\n\t\ttable.nextPlayer();\n\t\t\n\t}", "public boolean topPlayerWon() {\n return winner == 2;\n }", "private Boolean win(int counter) {\n \n winner = false;\n //if the counter is greater than 8, recognizes that it is a draw\n if (counter >= 8) {\n announce.setText(\"Draw\");\n turn.setText(\"\"); //game ends and is no ones turn\n }\n //list of all of the winning options\n if ((tBoard[0] == tBoard[1] && tBoard[1] == tBoard[2] && tBoard[0] != 2)\n || (tBoard[0] == tBoard[3] && tBoard[3] == tBoard[6] && tBoard[0] != 2)\n || (tBoard[3] == tBoard[4] && tBoard[4] == tBoard[5] && tBoard[3] != 2)\n || (tBoard[6] == tBoard[7] && tBoard[7] == tBoard[8] && tBoard[6] != 2)\n || (tBoard[1] == tBoard[4] && tBoard[4] == tBoard[7] && tBoard[1] != 2)\n || (tBoard[2] == tBoard[5] && tBoard[5] == tBoard[8] && tBoard[2] != 2)\n || (tBoard[0] == tBoard[4] && tBoard[4] == tBoard[8] && tBoard[0] != 2)\n || (tBoard[2] == tBoard[4] && tBoard[4] == tBoard[6] && tBoard[2] != 2)) {\n //if counter is even then recognizes that it is the person who has the X symbol and knows that X won \n if (counter % 2 == 0) {\n announce.setText(\"X is the Winner\"); //announces that X has won\n turn.setText(\"\"); //no ones turn anymore\n } //if it is not X, O has won the game and recognizes\n else {\n announce.setText(\"O is the Winner\"); //announces that O has won\n turn.setText(\"\"); //no ones turn anymore\n\n }\n //winner is set to true and stops allowing user to press other squares through pressed method\n winner = true;\n\n }\n //returns winner\n return winner;\n\n }", "private void drawWinner() {\n boolean allowMultiWinnings = ApplicationDomain.getInstance().getActiveLottery().isTicketMultiWinEnabled();\n\n // Get all lottery numbers without a prize\n ArrayList<LotteryNumber> numbersEligibleForWin = new ArrayList<>();\n TreeMap<Object, Ticket> tickets = ApplicationDomain.getInstance().getActiveLottery().getTickets();\n for (Object ticketId : tickets.keySet()) {\n Ticket ticket = tickets.get(ticketId);\n\n ArrayList<LotteryNumber> availableFromTicket = new ArrayList<>();\n for (LotteryNumber number : ticket.getLotteryNumbers()) {\n if (number.getWinningPrize() == null) {\n availableFromTicket.add(number);\n } else {\n if (!allowMultiWinnings) {\n // Stop looking through the ticket since it already has a winner and\n // multiply winnings are disallowed. And prevent the already-looked-through\n // numbers of the ticket to be added.\n availableFromTicket.clear();\n break;\n }\n }\n }\n numbersEligibleForWin.addAll(availableFromTicket);\n }\n\n // Check for all numbers having won\n if (numbersEligibleForWin.isEmpty()) {\n Toast.makeText(getContext(), R.string.no_winless_numbers, Toast.LENGTH_LONG).show();\n return;\n }\n\n // Draw random number and save the ID in the prize\n int numberSelector = (int) (Math.random() * numbersEligibleForWin.size());\n Prize prizeToBeWon = ApplicationDomain.getInstance().getPrizeToBeWon();\n prizeToBeWon.setNumberId(numbersEligibleForWin.get(numberSelector).getId());\n\n ApplicationDomain.getInstance().prizeRepository.savePrize(prizeToBeWon);\n ApplicationDomain.getInstance().setPrizeToBeWon(null);\n }", "@Override\n public void run() {\n Player winner = game.getWinner();\n String result = winner.getName() + \" won the game!\";\n\n // pass the string referred by \"result\" to make an alert window\n // check the bottom of page 9 of the PA description for the appearance of this alert window\n Alert alert = new Alert(AlertType.CONFIRMATION, result, ButtonType.YES, ButtonType.NO);\n alert.showAndWait();\n if (alert.getResult() == ButtonType.YES)\n {\n Platform.exit();\n }\n }", "public void warBattleHandling()\n\t{\n\t\tplayedCards.add(player1.draw());\n\t\tplayedCards.add(player2.draw());\n\t\t\n\t\tactivePlayerOneCard = player1.draw();\n\t\tactivePlayerTwoCard = player2.draw();\n\t\t\n\t\tplayedCards.add(activePlayerOneCard);\n\t\tplayedCards.add(activePlayerTwoCard);\n\t\t\n\t\tif(activePlayerOneCard.isEqual(activePlayerTwoCard))\n\t\t{\n\t\t\twarBattleHandling();\n\t\t}\n\t\tif(activePlayerOneCard.greaterThan(activePlayerTwoCard))\n\t\t{\n\t\t\tplayer1.winHandling(playedCards);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tplayer2.winHandling(playedCards);\n\t\t}\n\t\t\n\t}", "void win() {\n String name = score.getName();\n if (Time.getSecondsPassed() < 1) {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / 1);\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + 1 + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n } else {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / Time.getSecondsPassed());\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + Time.getSecondsPassed() + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n }\n }", "void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }", "public String win() {\r\n\t\tint blackCount = 0;\r\n\t\tint whiteCount = 0;\r\n\t\tfor (int i=0; i<piece.size(); i++) {\r\n\t\t\tif (piece.get(order[i]).chessPlayer.equals(\"black\")) {\r\n\t\t\t\tblackCount++;\r\n\t\t\t} else if (piece.get(order[i]).chessPlayer.equals(\"white\")) {\r\n\t\t\t\twhiteCount++;\r\n\t\t\t} else continue;\r\n\t\t}\r\n\t\tif (blackCount == 0) {\r\n\t\t\treturn \"white\";\r\n\t\t} else if (whiteCount == 0) {\r\n\t\t\treturn \"black\";\r\n\t\t} else return null;\r\n\t}", "private void checkWin() {\n // Check if a dialog is already displayed\n if (!this.gameOverDisplayed) {\n // Check left paddle\n if (Objects.equals(this.scoreL.currentScore, this.winCount) && (this.scoreL.currentScore != 0)) {\n if (twoUser) {\n gameOver(GeneralFunctions.TWO_1_WIN);\n } else {\n gameOver(GeneralFunctions.ONE_LOSE);\n }\n // Right paddle\n } else if (Objects.equals(this.scoreR.currentScore, this.winCount) && (this.scoreR.currentScore != 0)) {\n if (twoUser) {\n gameOver(GeneralFunctions.TWO_2_WIN);\n } else {\n gameOver(GeneralFunctions.ONE_WIN);\n }\n }\n }\n }", "public void compare(){\n\t\tboolean gameOver = false;\n\t\tfor (int j = 0; j < player.size(); j++){\n\t\t\t/**\n\t\t\t * gameover screen\n\t\t\t */\n\t\t\tif (player.get(j) != input.get(j)){\n\t\t\t\tif (score <= 3){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" + \"You got the rank \"\n\t\t\t\t\t\t+ \"of a Joker with a score of \" + score + '.');}\n\t\t\t\telse if (score > 3 && score <= 10){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a Knight with a score of \" + score + '.');}\n\t\t\t\telse if (score > 10 && score <=20){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a King with a score of \" + score + '.');}\n\t\t\t\telse if (score >20){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a Master with a score of \" + score + '.');}\n\t\t\t\tgameOver = true;\n\t\t\t\tif (score > highScore){\n\t\t\t\t\thighScore = score;\n\t\t\t\t\tscoreBoard.setHighScore(highScore);\n\t\t\t\t}\n\t\t\t\tplayer.clear();\n\t\t\t\tinput.clear();\n\t\t\t\tlist();\n\t\t\t\t++totalGames;\n\t\t\t\tfindGames();\n\t\t\t\tfindAvg();\n\t\t\t\tscore = 0;\n\t\t\t\tscoreBoard.setScore(score);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * starts new round after a successful round\n\t\t */\n\t\tif (player.size() == input.size() && !gameOver){\n\t\t\tplayer.clear();\n\t\t\tscore++;\n\t\t\tscoreBoard.setScore(score);\n\t\t\tstartGame();\n\t\t\t}\n\t}", "public int run() {\r\n // Player 1 plays first, and is X.\r\n while (true) {\r\n if (this.board.gameOver()) {\r\n break;\r\n }\r\n Move m1 = p1.makeMove(this.board.clone());\r\n this.board.makeMove(m1, this.p1.getSide());\r\n \r\n if (this.board.gameOver()) {\r\n break;\r\n }\r\n Move m2 = p2.makeMove(this.board.clone());\r\n this.board.makeMove(m2, this.p2.getSide()); \r\n }\r\n // Done with game.\r\n return this.board.winner();\r\n }", "private void checkForWin()\n\t\t\t{\n\t\t\t\tfor (j = 0; j < 8; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (win[j] == 3)\n\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbugflag = true;\n\t\t\t\t\t\t\t\tresult = j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tIntent it1 = new Intent(Main.this, Result.class);\n\t\t\t\t\t\t\t\tBundle b = new Bundle();\n\t\t\t\t\t\t\t\tb.putString(\"result\",\n\t\t\t\t\t\t\t\t\t\t\"You were lucky this time \" + name\n\t\t\t\t\t\t\t\t\t\t\t\t+ \". You won!\");\n\t\t\t\t\t\t\t\tit1.putExtras(b);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tstartActivity(it1);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t}", "public boolean winner() {\r\n return winner;\r\n }", "private void checkForGameEnd() {\n\t\tint checkWin = controller.checkForWinner();\n\t\tif(playerType == null && checkWin == 1 || (playerType != null && playerType == checkWin)) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"VICTORY\");\n\t\t\talert.setHeaderText(\"VICTORY\");\n\t\t\talert.setContentText(\"CONGRATULATIONS! YOU WIN!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t\t\n\t\t}else if (playerType == null && checkWin == 2 || (playerType != null && playerType%2 + 1 == checkWin)) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"DEFEAT\");\n\t\t\talert.setHeaderText(\"DEFEAT\");\n\t\t\talert.setContentText(\"SHAME! YOU LOSE!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t\t\n\t\t}else if (controller.checkForTie()) {\n\t\t\tgameFinished = true;\n\t\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\t\talert.setTitle(\"STALEMATE\");\n\t\t\talert.setHeaderText(\"STALEMATE\");\n\t\t\talert.setContentText(\"ALAS! TIE GAME!\");\n\t\t\talert.showAndWait()\n\t\t .filter(response -> response == ButtonType.OK)\n\t\t .ifPresent(response -> formatSystem());\n\t\t}\n\t\t\n\t\tif(playerType != null && gameFinished) {\n\t\t\tSystem.out.println(\"closing connection\");\n\t\t\ttry {\n\t\t\t\tconnection.close();\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"ERROR CLOSING\");\n\t\t\t}\n\t\t}\n\t}", "public void playRound(){\n this.gameState = GameController.createGameState(this.game);\n \n // Verifica se o \n if(this.gameState.isEnded()){\n var winner = this.gameState.getPlayerQttCards() == 0 ? this.game.getComputer() : this.game.getPlayer();\n\n this.gameState.setWinner(winner);\n }\n else{\n \n // Mostrando o vira, as manilhas, a quantidade de cartas dos jogadores e as cartas do jogador\n this.view.displayGame(this.gameState);\n\n var playerCardChose = this.getPlayerCardChose();\n var computerCardChose = Utils.generateRandomNumber(getGameState().getComputerQttCards());\n\n try{\n var playerCard = this.game.getPlayer().playCard(playerCardChose);\n var computerCard = this.game.getComputer().playCard(computerCardChose);\n\n var winnerCard = this.verifyBiggerCard(playerCard, computerCard);\n\n // Verificando qual `Player` ganhou e se um ganhou\n\n var hasPlayerWon = winnerCard.equals(playerCard);\n var hasComputerWon = winnerCard.equals(computerCard);\n\n var turnedCard = this.getGameState().getTurnedCard();\n\n // Aqui caso o player tenha ganhado ele recebe a carta do computador e senão ele perde a carta para o computador\n if(hasPlayerWon){\n this.game.getPlayer().earnCard(computerCard);\n this.game.getComputer().loseCard(computerCard);\n }\n else if(hasComputerWon){\n this.game.getComputer().earnCard(playerCard);\n this.game.getPlayer().loseCard(playerCard);\n }\n \n // Na hora de mostrar o vencedor eu verifico se um player venceu, se sim eu mostro vitória ou derrota para o Player\n // Se não eu mostro empate\n \n if(hasComputerWon || hasPlayerWon){\n this.view.displayRoundWinner(turnedCard, playerCard, computerCard, hasPlayerWon);\n }\n else {\n this.view.displayRoundWinner(turnedCard, playerCard, computerCard);\n }\n\n }\n catch(Exception excp){\n this.view.displayMessageError(excp.getMessage());\n\n this.playRound();\n }\n }\n \n }", "@Override\n public synchronized void postWinner(char result) {\n rememberGame(result);\n\n //Increase the heat (decrease randomness) as more games are played\n if (heat < heatMax && gamesPlayed % 50 == 0) heat++;\n\n gamesPlayed++;\n game = null; // No longer playing a game though.\n }", "void gameWin(Player player);", "public String getWinner(){\n if(whiteWins && blackWins){\n return \"ITS A DRAW\";\n } else if(whiteWins){\n return \"WHITE WINS\";\n } else if(blackWins){\n return \"BLACK WINS\";\n } else {\n return \"NO WINNER\";\n }\n }", "public static void win()\n\t{\n\t\tGame.setMoney(Game.getMoney()+bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tif(Game.getMoney()>Game.getHighScore())\n\t\t{\n\t\t\tGame.setHighScore(Game.getMoney());\n\t\t\tlblHighScore.setText(String.valueOf(Game.getHighScore()));\n\t\t}\n\t\tlblUpdate.setText(\"You win!\");\n\n\t}", "public static void main(String[] args) {\n String[] players = {\"Player1\",\"Player2\",\"Player3\",\"Player4\"};\n int numPlayers = players.length;\n \n System.out.println(\"Generating Deck and shuffling...\");\n Deck curDeck = new Deck();\n curDeck.generateDeck();\n //curDeck.showDeck();\n curDeck.shuffleDeck();\n \n System.out.println();\n \n Rules ruleBook = new Rules();\n \n ArrayList<Player> playersArray = new ArrayList<Player>();\n System.out.println(\"Creating Players...\");\n for(int i=0;i<numPlayers;i++) {\n playersArray.add(new Player(players[i]));\n playersArray.get(i).dealPlayersCard(curDeck);\n playersArray.get(i).createPlayerMetaData();\n }\n \n \n ArrayList<Player> winnerList = new ArrayList<Player>();\n \n checkForTrailWinners(winnerList,playersArray,ruleBook);\n \n if(winnerList.size()==1) {\n System.out.println(winnerList.get(0).getPlayerName() + \" wins!\");\n return;\n }\n \n checkForSequenceWinner(winnerList,playersArray,ruleBook);\n \n if(winnerList.size()==1) {\n System.out.println(winnerList.get(0).getPlayerName() + \" wins!\");\n return;\n }\n \n checkForPairWinner(winnerList,playersArray,ruleBook);\n \n if(winnerList.size()==1) {\n System.out.println(winnerList.get(0).getPlayerName() + \" wins!\");\n return;\n }\n if(winnerList.size()==0)\n winnerList=playersArray;\n \n ArrayList<Integer> scoreOfPlayers = new ArrayList<Integer>();\n for(int i=0;i<winnerList.size();i++) {\n scoreOfPlayers.add(winnerList.get(i).getPlayerCard(0));\n }\n \n checkForWinner(winnerList,scoreOfPlayers);\n if(winnerList.size()==1)\n return;\n \n // Each player in consideration picks up a card from the deck till winner is declared or deck has no cards\n \n drawCardsAndDeclareWinner(winnerList,curDeck);\n \n \n \n }", "void printWinner() {\n }", "public void isTrickComplete() {\n if(numPlays!=4){return;}\n if(player1Play == null | player2Play == null | player3Play == null | player4Play == null){return;}//should only call when all have played\n // reset numPlayed\n numPlays = 0;\n // find if the round is over\n currentMiddle.clear();\n trickNum++;\n try {\n sleep(200);//display all four cards before determining winner\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n int trickWinner;\n trickWinner = trickWinner();\n turn = trickWinner;\n if(trickWinner == 0 | trickWinner == 2){\n redTrickScore++;\n }\n else if(trickWinner == 1 | trickWinner == 3){\n blueTrickScore++;\n }\n player1Hand.remove(player1Play);//clear middle\n player2Hand.remove(player2Play);\n player3Hand.remove(player3Play);\n player4Hand.remove(player4Play);\n\n player1Play = null;\n player2Play = null;\n player3Play = null;\n player4Play = null;\n\n if(trickNum == 5){\n // reset everything for new round\n currentTrumpSuit = null;\n numPass = 0;\n isRoundOver();\n if(dealer == 3){\n dealer = 0;\n turn = 1;\n }\n else{\n dealer++;\n turn = dealer + 1;\n }\n gameStage = 0;\n deal();\n trickNum = 0;\n }\n\n\n\n }", "public void consolidate()\n { \n if (WarCW.p1.cardsRemaining() < 2)\n {\n if ((WarCW.p1.isEmpty()) && (WarCW.p1e.cardsRemaining() == 0))\n {\n //YOU LOSE\n //end game \n temp = (\"P2 WINS! It took \" + WarCW.round + \". There were \" + WarCW.warNum + \" wars.\");\n \n sup = new JLabel(\"\");\n sup.setFont(new Font(\"ARIAL\",Font.BOLD,46));\n sup.setText(temp);\n \n button.setEnabled(false);\n }\n else\n {\n while (!(WarCW.p1e.isEmpty())) \n {\n WarCW.p1e.shuffle();\n WarCW.temp = WarCW.p1e.useCard();\n WarCW.p1.addCard(WarCW.temp);\n }\n }\n }\n if (WarCW.p2.cardsRemaining() < 2)\n {\n if ((WarCW.p2.isEmpty()) && (WarCW.p2e.cardsRemaining() == 0))\n {\n //YOU WIN\n //end game\n temp = (\"P1 WINS! It took \" + WarCW.round + \". There were \" + WarCW.warNum + \" wars.\");\n \n sup = new JLabel(\"\");\n sup.setFont(new Font(\"ARIAL\",Font.BOLD,46));\n sup.setText(temp);\n \n button.setEnabled(false);\n }\n else\n {\n while (!(WarCW.p2e.isEmpty())) \n {\n WarCW.p2e.shuffle();\n WarCW.temp = WarCW.p2e.useCard();\n WarCW.p2.addCard(WarCW.temp);\n }\n }\n }\n }", "private void checkForPlayerChance()\n\t\t\t{\n\t\t\t\tf = false;\n\t\t\t\tfor (j = 0; j < 8; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (win[j] == 2 && lose[j] == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tf = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\tif (f == false)\n\t\t\t\t\tj = 10;\n\n\t\t\t}" ]
[ "0.7492281", "0.74499065", "0.73696387", "0.7357791", "0.73552483", "0.72365654", "0.71870524", "0.71814495", "0.7175226", "0.71610767", "0.7157984", "0.7114986", "0.7079828", "0.7041767", "0.6994562", "0.6979291", "0.6971771", "0.6961908", "0.6954644", "0.69521004", "0.6931092", "0.69280404", "0.69272935", "0.69229", "0.69175476", "0.69109154", "0.68986607", "0.6879576", "0.6860013", "0.68592334", "0.6852354", "0.6831992", "0.6813336", "0.68095565", "0.68071085", "0.6801902", "0.6801748", "0.6798374", "0.67956716", "0.6789555", "0.67851037", "0.6781401", "0.6781163", "0.67739993", "0.67572945", "0.6751575", "0.67489725", "0.67131686", "0.6711801", "0.66869044", "0.6683299", "0.66709095", "0.6661031", "0.6659025", "0.6656317", "0.66548914", "0.66510415", "0.66476834", "0.66459775", "0.6644547", "0.6624281", "0.6624204", "0.66240555", "0.66235596", "0.6620728", "0.661649", "0.6604763", "0.65996003", "0.65964", "0.65840536", "0.6582324", "0.6574739", "0.6574607", "0.6573209", "0.6572946", "0.65725595", "0.6572208", "0.6560819", "0.6559873", "0.65562046", "0.655354", "0.6553526", "0.6549673", "0.65487975", "0.65385", "0.6538302", "0.6531222", "0.65243536", "0.6523692", "0.6509245", "0.650609", "0.65036726", "0.65034336", "0.6497182", "0.64918345", "0.6489333", "0.64870363", "0.6472283", "0.6471884", "0.64702857" ]
0.6571008
77
maxProgress has not been determined manually => == 100
@Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if (fromUser) { switch (seekBar.getId()) { case R.id.farmersSeekBar: if (colonyManager.workersEnabled && colonyManager.scientistsEnabled) { double k; if (colonyManager.workersPercentage + colonyManager.scientistsPercentage != 0) { k = colonyManager.workersPercentage / (colonyManager.workersPercentage + colonyManager.scientistsPercentage); } else { k = 0.5; } double newFarmersPercentage = progress / 100.0; double sumPercentageLeft = 1 - newFarmersPercentage; double newWorkersPercentage = k * sumPercentageLeft; double newScientistPercentage = sumPercentageLeft - newWorkersPercentage; colonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, newScientistPercentage); } else { if (colonyManager.workersEnabled) { double maxPercentage = colonyManager.farmersPercentage + colonyManager.workersPercentage; int maxProgress = (int) Math.round(maxPercentage * 100); if (progress >= maxProgress) { colonyManager.setPercentage(maxPercentage, 0, colonyManager.scientistsPercentage); } else { double newFarmersPercentage = progress / 100.0; double newWorkersPercentage = maxPercentage - newFarmersPercentage; colonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, colonyManager.scientistsPercentage); } } else { /*=> colonyManager.scientistsEnabled == true, otherwise user would be unable to impact farmersSeekBar*/ double maxPercentage = colonyManager.farmersPercentage + colonyManager.scientistsPercentage; int maxProgress = (int) Math.round(maxPercentage * 100); if (progress >= maxProgress) { colonyManager.setPercentage(maxPercentage, colonyManager.workersPercentage, 0); } else { double newFarmersPercentage = progress / 100.0; double newScientistsPercentage = maxPercentage - newFarmersPercentage; colonyManager.setPercentage(newFarmersPercentage, colonyManager.workersPercentage, newScientistsPercentage); } } } invalidatePercentages(); invalidateDeltaMorale(); break; case R.id.workersSeekBar: if (colonyManager.farmersEnabled && colonyManager.scientistsEnabled) { double k; if (colonyManager.farmersPercentage + colonyManager.scientistsPercentage != 0) { k = colonyManager.farmersPercentage / (colonyManager.farmersPercentage + colonyManager.scientistsPercentage); } else { k = 0.5; } double newWorkersPercentage = progress / 100.0; double sumPercentageLeft = 1 - newWorkersPercentage; double newFarmersPercentage = k * sumPercentageLeft; double newScientistsPercentage = sumPercentageLeft - newFarmersPercentage; colonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, newScientistsPercentage); } else { if (colonyManager.farmersEnabled) { double maxPercentage = colonyManager.farmersPercentage + colonyManager.workersPercentage; int maxProgress = (int) Math.round(maxPercentage * 100); if (progress >= maxProgress) { colonyManager.setPercentage(0, maxPercentage, colonyManager.scientistsPercentage); } else { double newWorkersPercentage = progress / 100.0; double newFarmersPercentage = maxPercentage - newWorkersPercentage; colonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, colonyManager.scientistsPercentage); } } else { //=> colonyManager.scientistsEnabled == true, otherwise user would be unable to impact workersSeekBar double maxPercentage = colonyManager.workersPercentage + colonyManager.scientistsPercentage; int maxProgress = (int) Math.round(maxPercentage * 100); if (progress >= maxProgress) { colonyManager.setPercentage(colonyManager.farmersPercentage, maxPercentage, 0); } else { double newWorkersPercentage = progress / 100.0; double newScientistsPercentage = maxPercentage - newWorkersPercentage; colonyManager.setPercentage(colonyManager.farmersPercentage, newWorkersPercentage, newScientistsPercentage); } } } invalidatePercentages(); invalidateDeltaMorale(); break; case R.id.scientistsSeekBar: if (colonyManager.farmersEnabled && colonyManager.workersEnabled) { double k; if (colonyManager.farmersPercentage + colonyManager.workersPercentage != 0) { k = colonyManager.farmersPercentage / (colonyManager.farmersPercentage + colonyManager.workersPercentage); } else { k = 0.5; } double newScientistsPercentage = progress / 100.0; double sumPercentageLeft = 1 - newScientistsPercentage; double newFarmersPercentage = k * sumPercentageLeft; double newWorkersPercentage = sumPercentageLeft - newFarmersPercentage; colonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, newScientistsPercentage); } else { if (colonyManager.farmersEnabled) { double maxPercentage = colonyManager.farmersPercentage + colonyManager.scientistsPercentage; int maxProgress = (int) Math.round(maxPercentage * 100); if (progress >= maxProgress) { colonyManager.setPercentage(0, colonyManager.workersPercentage, maxPercentage); } else { double newScientistsPercentage = progress / 100.0; double newFarmersPercentage = maxPercentage - newScientistsPercentage; colonyManager.setPercentage(newFarmersPercentage, colonyManager.workersPercentage, newScientistsPercentage); } } else { /*=> colonyManager.workersEnabled == true, otherwise user would be unable to impact scientistsSeekBar*/ double maxPercentage = colonyManager.workersPercentage + colonyManager.scientistsPercentage; int maxProgress = (int) Math.round(maxPercentage * 100); if (progress >= maxProgress) { colonyManager.setPercentage(colonyManager.farmersPercentage, 0, maxPercentage); } else { double newScientistsPercentage = progress / 100.0; double newWorkersPercentage = maxPercentage - newScientistsPercentage; colonyManager.setPercentage(colonyManager.farmersPercentage, newWorkersPercentage, newScientistsPercentage); } } } invalidatePercentages(); invalidateDeltaMorale(); break; default: Toast.makeText(MainActivity.context, "Error: unknown seekBar.", Toast.LENGTH_SHORT).show(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onProgress(Object progress, Object max) {\n\t\t\t\t\t}", "private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }", "public void setMax(int max) {\n\t\tif (max <= 0 || max < mProgress) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Max (%d) must be > 0 and >= %d\", max, mProgress));\n\t\t}\n\t\tmMax = max;\n\t\tinvalidate();\n\t}", "public MyProgress setMaxProgress(int maxProgress) {\n mMaxProgress = maxProgress;\n return this;\n }", "public int getProgress();", "@BindingAdapter(value = {\"app:progressScaled\", \"android:max\"}, requireAll = true)\n public static void setProgress(ProgressBar progressBar,int like,int max){\n if((like * max / 5)>max){\n progressBar.setProgress(max);\n }else{\n progressBar.setProgress(like * max / 5);\n }\n }", "public void setProgressAndMax(int progress, int max) {\n\t\tif (progress > max || progress < 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Progress (%d) must be between %d and %d\", progress, 0, max));\n\t\t} else if (max <= 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Max (%d) must be > 0\", max));\n\t\t}\n\n\t\tmProgress = progress;\n\t\tmMax = max;\n\t\tinvalidate();\n\t}", "public int getProgress(){\n return -1;\n }", "public void setProgress(int value);", "public void setMax(int max) {\r\n\t\tif (!(max <= 0)) { // Check to make sure it's greater than zero\r\n\t\t\tif (max <= mProgress) {\r\n\t\t\t\tmProgress = 0; // If the new max is less than current progress, set progress to zero\r\n\t\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, mProgress, false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmMax = max;\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}", "public Double getProgressPercent();", "@FloatRange(from = 0, to = 1) float getProgress();", "int getProgressCount();", "int getProgressCount();", "int getProgressCount();", "public int getProgress() {\r\n\t\tint progress = Math.round((float)mMax * mProgressDegrees / mTotalCircleDegrees);\r\n\t\treturn progress;\r\n\t}", "private void setProgressPercent(Integer integer) {\n\t\t\n\t}", "public void setOverallProgressPercent(int value) {\n this.overallProgressPercent = value;\n }", "int getProgress(int index);", "int getProgress(int index);", "int getProgress(int index);", "@Override\n public long progressInterval() {\n return 500;\n }", "@Test\n public void setSeekBarProgressMax_allIconsAndFramesEnabled() {\n mIconDiscreteSliderLinearLayout.setProgress(1);\n\n assertThat(mIconStart.isEnabled()).isTrue();\n assertThat(mIconEnd.isEnabled()).isTrue();\n assertThat(mIconStartFrame.isEnabled()).isTrue();\n assertThat(mIconEndFrame.isEnabled()).isTrue();\n }", "public int getProgress() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return -1;\n \n int num = (int)((System.currentTimeMillis()-startTime)*100/d);\n if(num>=100) num=99;\n return num;\n }", "public void setProgress(float p) {\n _progress = Math.max(0.0f, Math.min(1.0f, p));\n }", "public Long getProgressDone();", "void setProgress(int progress);", "void setProgress(int progress);", "public int getProgress() {\n return Math.round(mProgress);\n }", "void setProgress(@FloatRange(from = 0, to = 1) float progress);", "@Override\n public void run() {\n progressBar.setValue(progressBar.getMaximum());\n }", "void setProgress(float progress);", "public void setProgress(int progress) {\n\t\tif (progress > mMax || progress < 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n\t\t}\n\t\tmProgress = progress;\n\t\tinvalidate();\n\t}", "public abstract void setProgress (int currentStep, int totalSteps);", "public float getProgress() {\n // Depends on the total number of tuples\n return 0;\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n progressValue = progress;\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n //Toast.makeText(MainActivity.this, \"Changing max value!\", Toast.LENGTH_SHORT).show();\r\n }", "public int getOverallProgressPercent() {\n return overallProgressPercent;\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n super.onProgressUpdate(progress);\n // if we get here, length is known, now set indeterminate to false\n AudioActivity.sProgDialDownload.setIndeterminate(false);\n AudioActivity.sProgDialDownload.setMax(100);\n AudioActivity.sProgDialDownload.setProgress(progress[0]);\n }", "public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }", "private void progressBar()\n {\n int amount = 0;\n for(Movie a:\n baseMovieList)\n if(a.isWatched())\n amount++;\n int fill = 100 / baseMovieList.size() * amount;\n progressBar.setProgress(fill);\n }", "public final long getCurrentProgress() {\n /*\n r9 = this;\n int r0 = r9.getState()\n r1 = 1\n r2 = 0\n if (r0 == r1) goto L_0x0012\n r1 = 2\n if (r0 == r1) goto L_0x0019\n r1 = 3\n if (r0 == r1) goto L_0x0014\n r1 = 4\n if (r0 == r1) goto L_0x0014\n L_0x0012:\n r0 = r2\n goto L_0x0032\n L_0x0014:\n long r0 = r9.getTargetProgress()\n goto L_0x0032\n L_0x0019:\n java.lang.String r0 = \"current_value\"\n long r0 = r9.getLong(r0)\n java.lang.String r4 = \"quest_state\"\n long r4 = r9.getLong(r4)\n r6 = 6\n int r8 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))\n if (r8 == 0) goto L_0x0032\n java.lang.String r4 = \"initial_value\"\n long r4 = r9.getLong(r4)\n long r0 = r0 - r4\n L_0x0032:\n java.lang.String r4 = \"MilestoneRef\"\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 >= 0) goto L_0x003e\n java.lang.String r0 = \"Current progress should never be negative\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n r0 = r2\n L_0x003e:\n long r2 = r9.getTargetProgress()\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 <= 0) goto L_0x004f\n java.lang.String r0 = \"Current progress should never exceed target progress\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n long r0 = r9.getTargetProgress()\n L_0x004f:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.games.quest.zzb.getCurrentProgress():long\");\n }", "@Override\n public void onProgress(long downloaded,\n long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "public static void showProgress(int id, int max, int progress) {\n showProgress(id, max, progress, false);\n }", "@Override\n\t\tprotected void onProgressUpdate(String... values) {\n\t\t\tlong total = Long.parseLong(values[0]);\n\t\t\tdialog.setProgress((int) ((total * 100) / lengthOfFile));\n\t\t\tdialog.setMessage((total / (1024 * 1014)) + \"MB/\"\n\t\t\t\t\t+ (lengthOfFile / (1024 * 1024)) + \"MB\");\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "public void onProgressUpdate(int numRouleau,String prochain);", "@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }", "public void setMaxPrelevabile(float max) {\n\t\tbuttonMax.setText(String.valueOf(max));\n\t\tbutton50.setEnabled((max >= 50));\n\t\tbutton100.setEnabled((max >= 100));\n\t\tbutton150.setEnabled((max >= 150));\n\t\tbutton250.setEnabled((max >= 250));\n\t\tbutton500.setEnabled((max >= 500));\n\t}", "public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }", "@Override\n public void transferred(long num) {\n publishProgress((int) ((num / (float) totalSize) * 100));\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tprgDlg.setMax(nTotalPage);\r\n\t\t\t\t\t\t\tprgDlg.setProgress(nPage);\r\n\t\t\t\t\t\t}", "private void updateSplitValue() {\n\t\tsplitValue = peopleSeekBar.getProgress();\t\n\t\tif ( splitValue < 1 ) {\n\t\t\tsplitValue = 1;\n\t\t}\n\t}", "@Override\n public void onLoadding(long total, long current, boolean isUploading) {\n mProgressDialog.setMax((int) total);\n mProgressDialog.setMessage(\"正在下载...\");\n mProgressDialog.setProgress((int) current);\n }", "public int getProgress() {\n\t\treturn mProgress;\n\t}", "public float getProgress() {\r\n if (start == end) {\r\n return 0.0f;\r\n } else {\r\n return Math.min(1.0f, (pos - start) / (float)(end - start));\r\n }\r\n }", "public static int toPercent(int current, int max) {\n return (int)Math.ceil((double)current * 100D / (double)max);\n }", "public int progress() {\n return _progress;\n }", "public ProgressBar setMaxValue(double maxValue) {\n this.maxValue = maxValue;\n setValue(this.value);\n return this;\n }", "private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}", "private void showNotificationWhileDownloading(long max, long progress){\n\t\tmRemoteView.setTextViewText(ResourceUtil.getId(this, \"lgsdk_download_notification_content\"), \"升级下载中\" + (int)(progress * 100 / max) + \"%\");\n\t\tmRemoteView.setProgressBar(ResourceUtil.getId(this, \"lgsdk_download_notification_progressbar\"), (int)max, (int)progress, false);\n\t\tmNotification.contentView = mRemoteView;\n\t\tmNotification.contentIntent = PendingIntent.getService(this, 0, new Intent(), PendingIntent.FLAG_CANCEL_CURRENT);\n\t\tmNotiManager.notify(NOTIFICATION_ID, mNotification);\n\t}", "public float getProgress() throws IOException {\r\n\t\tif (start == totalend) {\r\n\t\t\treturn 0.0f;\r\n\t\t} else {\r\n\t\t\treturn Math.min(1.0f, ((getFilePosition() - start) + finishLen) / (float) totalend);\r\n\t\t}\r\n\t}", "public void setMaxNumberOfBarsPerUnit(int max) {\n maxBarPerUnit = max;\n }", "public int getProgress() {\n\t\treturn activeQuest.getThreshold() - getRemaining();\n\t}", "public double getProgressFraction() {\n return (double) schedule.getSteps() / config.getSimulationIterations();\n }", "public void updateProgressMessage() {\n pb.setMax(frames);\n int rendered = getNumFramesRendered(this, projectName);\n pb.setProgress(Math.min(pb.getMax(), rendered));\n int n = pb.getMax();\n int ratio = (rendered * 100) / n;\n String temp = String.format(\"Progress: %d / %d (%d%%)\", rendered, n, ratio);\n progressMessage.setText(temp);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "public int getScaledProgress(int i)\n\t{\n\t\treturn operatingTicks*i / currentTicksRequired;\n\t}", "public ChannelProgressivePromise setProgress(long progress, long total)\r\n/* 63: */ {\r\n/* 64: 95 */ super.setProgress(progress, total);\r\n/* 65: 96 */ return this;\r\n/* 66: */ }", "@Override protected void onProgressUpdate(Integer... vals) {\n updateProgressBar(vals[0].intValue());\n }", "public int getMaxUploads() {\n return 0;\r\n }", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "@Override\n public void startProcessProgressUsingBr(String processName, String brNameToGenerateMaximumValue) {\n Result brResult = systemEJB.checkRuleGetResultSingle(brNameToGenerateMaximumValue, null);\n Integer maximumValue = 100;\n if (brResult.getValue() != null) {\n maximumValue = Integer.parseInt(brResult.getValue().toString());\n }\n startProcessProgress(processName, maximumValue);\n }", "public boolean hasProgress();", "@Override\n\tpublic void reportProgress(int progress, boolean isFinalCycle) {\n\t\t//if is final cycle and progress in 100\n\t\tif(progress == 100 && !isFinalCycle){\n\t\t\t//reset the progress\n\t\t\tsetProgress(0);\t\n\t\t}\n\t\telse{\n\t\t\t//set progress.\n\t\t\tsetProgress(progress);\n\t\t}\n\t}", "public void scanningBlurScoreBarSetProgress(int progress) {\n if (progress > scanningBlurValueBar.getProgress()) {\n scanningBlurValueBar.setProgress(progress);\n scanningBlurScoreBarDecrease();\n }\n }", "public Long getProgressTotalToDo();", "public String getProgress() {\n return this.progress;\n }", "void onProgress(long bytesTransferred);", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "public int uploadingProgressBarGetRate() {\n return uploadingProgressBar.getProgress();\n }", "public void checkProgress(){\n while(this.progress.getValue().compareTo(this.expToLevelUp.getValue()) >= 0){\n if(this.level < Constant.MAX_LEVEL) {\n this.level++;\n this.progress.subtract(this.expToLevelUp);\n this.expToLevelUp = this.expValues[this.level];\n }\n }\n }", "@Override\r\n\tprotected void progressFinished() {\n\t}", "public float getProgress() throws IOException {\n if (end == start) {\n return 0.0f;\n } else {\n return Math.min(1.0f, (in.getPosition() - start) / (float)(end - start));\n }\n }", "protected abstract void mo3469a(ProgressBar progressBar);", "public void updateProgress(int remaining, int total) {\n try {\n setProgress.invoke(bossBar, ((double) remaining) / ((double) total));\n } catch (IllegalAccessException | InvocationTargetException ex) {\n Bukkit.getLogger().log(Level.SEVERE, \"An error occurred while updating boss bar progress, are you using Minecraft 1.9 or higher?\", ex);\n }\n }", "private void reportPercent(int i)\n\t{\n\t\tif(i == fileArray.length / 100 * percent)\n\t\t{\n\t\t\tmainWindow.setProgress(percent);\n\t\t\tpercent++;\n\t\t}\n\t}", "@Override\n\tprotected void onProgressUpdate(Integer... values) {\n\t\tint len = progressBar.getProgress() + values[0];\n\t\tprogressBar.setProgress(len);\n\t\tString str = progressBar.getProgress() * 100 / progressBar.getMax()\n\t\t\t\t+ \"%\";\n\t\ttv.setText(\"下载完成\" + str);\n\t\tsuper.onProgressUpdate(values);\n\t}", "public void progressMade();", "@Override\n public void startProcessProgress(String processName, int maximumValue) {\n String sqlStatement = \"select system.process_progress_start(#{process_name}, #{maximum_value}) as vl\";\n Map params = new HashMap();\n params.put(CommonSqlProvider.PARAM_QUERY, sqlStatement);\n params.put(PROCESS_NAME, processName);\n params.put(\"maximum_value\", maximumValue);\n getRepository().getScalar(Void.class, params);\n }", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n dialog = new ProgressDialog(MainActivity.this);\n dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n dialog.setMax(Integer.parseInt(etNumber.getText().toString().trim()));\n dialog.show();\n }", "public abstract void onProgress(short percentage, long downloadedSoFar);", "@Override\n\tpublic int estimateCurrentProgress() {\n\t\treturn counter.getCurrent();\n\t}", "private void imprimirProgresso(AtualizacaoUI.Comunicado comunicado){\n\n if(comunicado.obterLimite() != Sintaxe.SEM_REGISTO){\n if(activityUploadBinding.progressBarProgresso.getMax() != comunicado.obterLimite()){\n activityUploadBinding.progressBarProgresso.setMax(comunicado.obterLimite());\n }\n }\n\n activityUploadBinding.txtProgresso.setText(comunicado.obterPosicao() + \"/\" + comunicado.obterLimite());\n activityUploadBinding.txtTituloProgresso.setText(comunicado.obterMensagem());\n activityUploadBinding.progressBarProgresso.setProgress(comunicado.obterPosicao());\n }", "@Override\n protected Void doInBackground(Void... params) {\n while(myProgress<TIEMPOMAXIMO){\n if (isCancelled())\n break;\n\n if(Cancelar==true){\n myProgress=TIEMPOMAXIMO;\n }else {\n\n if(issumartiempo==true){\n TIEMPOMAXIMO=TIEMPOAUMENTADO+TIEMPOLIMITE;\n\n }\n myProgress++;\n\n publishProgress(myProgress);\n\n\n SystemClock.sleep(1000);}\n }\n return null;\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "boolean hasProgress();", "boolean hasProgress();" ]
[ "0.750288", "0.7157622", "0.6927056", "0.6906573", "0.6867773", "0.6865764", "0.68234587", "0.6752939", "0.66571784", "0.66303056", "0.6614012", "0.65966886", "0.648345", "0.648345", "0.648345", "0.64831316", "0.6482441", "0.6421288", "0.6405839", "0.6405839", "0.6405839", "0.6403464", "0.63610244", "0.63462776", "0.6329407", "0.6301144", "0.6298714", "0.6298714", "0.62857413", "0.62770355", "0.623992", "0.62183815", "0.6216225", "0.62053937", "0.61983275", "0.6183825", "0.6148676", "0.6102035", "0.6100382", "0.60907465", "0.60764", "0.60752094", "0.60679966", "0.6064696", "0.6057124", "0.6022356", "0.6012195", "0.60045034", "0.5961569", "0.5951796", "0.5945034", "0.59408057", "0.5929422", "0.5920696", "0.5905776", "0.586664", "0.58611745", "0.58429134", "0.58407754", "0.5829946", "0.5826462", "0.58242524", "0.5824178", "0.5821419", "0.58043784", "0.58018386", "0.58018386", "0.57982016", "0.5795576", "0.5790189", "0.57863086", "0.5774472", "0.5774437", "0.5770517", "0.57654184", "0.57637775", "0.57636845", "0.57543904", "0.5749589", "0.57454526", "0.5735086", "0.5733371", "0.5732024", "0.572968", "0.5727853", "0.57188857", "0.5718728", "0.5711272", "0.570676", "0.57059115", "0.57040644", "0.57032424", "0.5698057", "0.5688577", "0.56828105", "0.56806195", "0.5679257", "0.5679257", "0.56791854", "0.5678486", "0.5678486" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mView= inflater.inflate(R.layout.fragment_default_internal_staff, container, false); initObjects(); getInternalStaffListThread(); getFlatOwnerListThread(); // :::::::::::::: Onclick:Listner ::::::::::::::::::: button_submit.setOnClickListener(this); button_Select.setOnClickListener(this); spinner_visitorTypeUser.setOnItemSelectedListener(this); spinner_searchToVisit.setOnItemSelectedListener(this); spinner_staffName.setOnItemSelectedListener(this); return mView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
API for getting list of all Employees
@RequestMapping(value = "/employees") public String getAllEmployess(@RequestParam String user,HttpServletRequest request,HttpServletResponse response,Model mv) throws JsonMappingException, JsonProcessingException { List<Employee> empList = RestCalls.getAllEmployees(); mv.addAttribute("empList",empList); mv.addAttribute("auth", "true"); mv.addAttribute("user", user); return "employeedetails.jsp"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}", "@RequestMapping(value = \"/getAllEmployees\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic List<Employee> getAllEmpoyees(){\r\n\t\treturn repository.getAllEmpoyees();\r\n\t}", "@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final List<EmployeeDTO> findAllEmployees() {\n LOGGER.info(\"getting all employees\");\n return employeeFacade.findAllEmployees();\n }", "@GetMapping(\"/findAllEmployees\")\n\tpublic List<Employee> getAll() {\n\t\treturn testService.getAll();\n\t}", "@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<Employee>> getAllEmployees() {\n\t\tList<Employee> list = service.getAllEmployees();\n\t\treturn new ResponseEntity<List<Employee>>(list, HttpStatus.OK);\n\t}", "@GetMapping(\"/employee\")\r\n\tpublic List<Employee> getAllEmployees()\r\n\t{\r\n\t\treturn empdao.findAll();\r\n\t}", "public ResponseEntity<List<Employee>> getAllEmployees() {\n \tList<Employee> emplist=empService.getAllEmployees();\n\t\t\n\t\tif(emplist==null) {\n\t\t\tthrow new ResourceNotFoundException(\"No Employee Details found\");\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<>(emplist,HttpStatus.OK);\t\t\n }", "@RequestMapping(\"/employee\")\n\tpublic List<Employee> getAllEmplyee() {\n\t\treturn service.getAllEmplyee();\n\t}", "@GetMapping(\"/employees\")\r\n\tpublic List<Employee> getEmployees(){\r\n\t\t\r\n\t\treturn employeeService.getEmployees();\r\n\t\t\r\n\t}", "@GetMapping(\"/employees\")\r\n\tpublic List<Employee> list() {\r\n\t return empService.listAll();\r\n\t}", "@GetMapping(\"/GetAllEmployees\")\r\n public List<Employee> viewAllEmployees() {\r\n return admin.viewAllEmployees();\r\n }", "@GetMapping(\"/employees\")\npublic List <Employee> findAlll(){\n\treturn employeeService.findAll();\n\t}", "public List<Employee> getAllEmployees() {\n return employeeRepository.findAll();\n }", "@GetMapping(\"/getEmployees\")\n\t@ResponseBody\n\tpublic List<Employee> getAllEmployees(){\n\t\treturn employeeService.getEmployees();\n\t}", "public List<Employee> getEmployees();", "@RequestMapping(value = \"/employeesList\", method = RequestMethod.GET, produces = {\"application/xml\", \"application/json\" })\n\t@ResponseStatus(HttpStatus.OK)\n\tpublic @ResponseBody\n\tEmployeeListVO getListOfAllEmployees() {\n\t\tlog.info(\"ENTERING METHOD :: getListOfAllEmployees\");\n\t\t\n\t\tList<EmployeeVO> employeeVOs = employeeService.getListOfAllEmployees();\n\t\tEmployeeListVO employeeListVO = null;\n\t\tStatusVO statusVO = new StatusVO();\n\t\t\n\t\tif(employeeVOs.size()!=0){\n\t\t\tstatusVO.setCode(AccountantConstants.ERROR_CODE_0);\n\t\t\tstatusVO.setMessage(AccountantConstants.SUCCESS);\n\t\t}else{\n\t\t\tstatusVO.setCode(AccountantConstants.ERROR_CODE_1);\n\t\t\tstatusVO.setMessage(AccountantConstants.NO_RECORDS_FOUND);\n\t\t}\n\t\t\n\t\temployeeListVO = new EmployeeListVO(employeeVOs, statusVO);\n\t\t\n\t\tlog.info(\"EXITING METHOD :: getListOfAllEmployees\");\n\t\treturn employeeListVO;\n\t}", "@RequestMapping(value = GET_ALL_EMPLOYEE_URL_API, method=RequestMethod.GET)\r\n public ResponseEntity<?> getAllEmployee() {\r\n\r\n checkLogin();\r\n\r\n return new ResponseEntity<>(employeeService.getAll(), HttpStatus.OK);\r\n }", "public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}", "@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Employee> allEmployees = employeeData.findAll();\r\n \r\n System.out.println(\"size of emp == \"+allEmployees.size());\r\n System.out.println(\"---END\");\r\n Employee oneEmployee = allEmployees.get(0);\r\n\t\treturn oneEmployee;\r\n }", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}", "@GetMapping(\"/emloyees\")\n public List<Employee> all() {\n return employeeRepository.findAll();\n }", "public List<EmployeeTO> getAllEmployees() {\n\t\t\r\n\t\treturn EmployeeService.getInstance().getAllEmployees();\r\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\ttry {\n\t\t\tList<Employee> empList = new ArrayList<Employee>();\n\t\t\tList<Map<String, Object>> rows = template.queryForList(\"select * from employee\");\n\t\t\tfor(Map<?, ?> rowNum : rows) {\n\t\t\t\tEmployee emp = new Employee();\n\t\t\t\temp.setEmployeeId((Integer)rowNum.get(\"empid\"));\n\t\t\t\temp.setFirstName((String)rowNum.get(\"fname\"));\n\t\t\t\temp.setLastName((String)rowNum.get(\"lname\"));\n\t\t\t\temp.setEmail((String)rowNum.get(\"email\"));\n\t\t\t\temp.setDesignation((String)rowNum.get(\"desig\"));\n\t\t\t\temp.setLocation((String)rowNum.get(\"location\"));\n\t\t\t\temp.setSalary((Integer)rowNum.get(\"salary\"));\n\t\t\t\tempList.add(emp);\n\t\t\t}\n\t\t\treturn empList;\n\t\t} catch (DataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Employee> getAllEmployees() {\n\t\tList<Employee> list = new ArrayList<Employee>();\n\t\tlist = template.loadAll(Employee.class);\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}", "public List<Employee> getAll() {\n\t\treturn edao.listEmploye();\n\t}", "@GetMapping(\"/all\")\n public ResponseEntity responseAllEmployees(){\n return new ResponseEntity<>(hr_service.getAllEmployees(), HttpStatus.OK);\n }", "@ResponseBody\n\t@GetMapping(\"/employees\")\n\tpublic List<Employee> listEmployees() {\n\t\tList<Employee> theEmployees = employeeDAO.getEmployees();\n\t\t\n\t\treturn theEmployees;\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\r\n\t}", "@RequestMapping(value=\"/employees/all\", method = RequestMethod.GET)\npublic @ResponseBody List<Employee> employeeListRest(){\n\treturn (List<Employee>) employeerepository.findAll();\n}", "List<Employee> allEmpInfo();", "public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}", "public List<Employee> getAllEmployees(){\n\t\tList<Employee> employees = employeeDao.findAll();\n\t\tif(employees != null)\n\t\t\treturn employees;\n\t\treturn null;\n\t}", "@RequestMapping(value = \"/v2/employees\", method = RequestMethod.GET)\r\n\tpublic List<Employee> employeev2() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QEmployee qemployee = QEmployee.employee;\r\n List<Employee> employees = (List<Employee>) query.from(qemployee).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn employees;\r\n }", "@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getAll() {\n\t\tEmployeeFacade employeeFacade = new EmployeeFacade();\n\n\t\tGenericEntity<List<EmployeeVO>> generic = new GenericEntity<List<EmployeeVO>>(employeeFacade.findAll()) {};\n\t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", CorsFilter.DEFAULT_ALLOWED_ORIGINS).entity(generic).build();\n\t}", "public List<Employee> getAllEmployee(){\n List<Employee> employee = new ArrayList<Employee>();\n employeeRepository.findAll().forEach(employee::add);\n return employee;\n }", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\n\t}", "@Override\n\tpublic ResponseEntity<Collection<Employee>> findAll() {\n\t\treturn new ResponseEntity<Collection<Employee>>(empService.findAll(),HttpStatus.OK);\n\t}", "Collection<EmployeeDTO> getAll();", "public List<EmployeeDto> retrieveEmployees();", "@Override\n\tpublic List<Employee> findAllEmployees() {\n\t\treturn employeeRepository.findAllEmployess();\n\t}", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "@Override\n public List<Employee> getAllEmployees() {\n return null;\n }", "List<Employee> findAll();", "public List<Employee> findAll() {\n return employeeRepository.findAll();\n }", "@RequestMapping(path = \"/employee\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic List<Employee> displayEmployee() {\r\n\t\treturn er.findAll();\r\n\t}", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\tList<Employee> employee = new ArrayList<>();\n\t\tlogger.info(\"Getting all employee\");\n\t\ttry {\n\t\t\temployee = employeeDao.getAllEmployee();\n\t\t\tlogger.info(\"Getting all employee = {}\",employee.toString());\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn employee;\n\t}", "@RequestLine(\"GET /show\")\n List<Bucket> getAllEmployeesList();", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getAllEmployees(){\n\t\tString employeesJsonString = getFileContent();\n\t\treturn employeesJsonString;\n\t}", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employeeDao.getAllEmployee();\r\n\t}", "@Override\n\tpublic List<EmployeeBean> getAllEmployees() {\n\t\tLOGGER.info(\"starts getAllEmployees method\");\n\t\tLOGGER.info(\"Ends getAllEmployees method\");\n\t\t\n\t\treturn adminEmployeeDao.getAllEmployees();\n\t}", "@GetMapping(\"/get_all_employees\")\n public String getAllEmployees(){\n\n Gson gsonBuilder = new GsonBuilder().create();\n List<Employee> initial_employee_list = employeeService.get_all_employees();\n String jsonFromJavaArray = gsonBuilder.toJson(initial_employee_list);\n\n return jsonFromJavaArray;\n }", "@Override\n\tpublic List<Employee> getEmpleados() {\n\t\treturn repositorioEmployee.findAll();\n\t}", "public List<User> getAllEmployees(String companyShortName);", "@Override\n\tpublic void getAllEmployee() {\n\t\t\n\t}", "public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}", "public List<String> getAll() {\n\treturn employeeService.getAll();\n }", "public List<Employe> findAllEmployees() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> viewAllEmployees() {\n\t\t CriteriaBuilder cb = em.getCriteriaBuilder();\n\t\t CriteriaQuery<Employee> cq = cb.createQuery(Employee.class);\n\t\t Root<Employee> rootEntry = cq.from(Employee.class);\n\t\t CriteriaQuery<Employee> all = cq.select(rootEntry);\n\t \n\t\t TypedQuery<Employee> allQuery = em.createQuery(all);\n\t\t return allQuery.getResultList();\n\t}", "@GetMapping(\"/employees\")\n Flux<Employee> all() { //TODO: Wasn't previously public\n return this.repository.findAll();\n }", "@Override\r\n\tpublic List<Employee> findAllEMployees() {\n\t\tList<Employee> employees = new ArrayList<Employee>();\r\n\t\tString findData = \"select * from employee\";\r\n\r\n\t\ttry {\r\n\t\t\tStatement s = dataSource.getConnection().createStatement();\r\n\r\n\t\t\tResultSet set = s.executeQuery(findData);\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tString name = set.getString(1);\r\n\t\t\t\tint id = set.getInt(\"empId\");\r\n\t\t\t\tint sal = set.getInt(\"salary\");\r\n\t\t\t\tString tech = set.getString(\"technology\");\r\n\t\t\t\tEmployee employee = new Employee(id, sal, name, tech);\r\n\t\t\t\temployees.add(employee);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn employees;\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Employee> getAllEmployees() {\r\n\t\tfinal Session session = sessionFactory.getCurrentSession();\t\t\r\n\t\tfinal Query query = session.createQuery(\"from Employee e order by id desc\");\r\n\t\t//Query q = session.createQuery(\"select NAME from Customer\");\r\n\t\t//final List<Employee> employeeList = query.list(); \r\n\t\treturn (List<Employee>) query.list();\r\n\t}", "public List<Employee> getAllEmployees(){\n\t\tFaker faker = new Faker();\n\t\tList<Employee> employeeList = new ArrayList<Employee>();\n\t\tfor(int i=101; i<=110; i++) {\n\t\t\tEmployee myEmployee = new Employee();\n\t\t\tmyEmployee.setId(i);\n\t\t\tmyEmployee.setName(faker.name().fullName());\n\t\t\tmyEmployee.setMobile(faker.phoneNumber().cellPhone());\n\t\t\tmyEmployee.setAddress(faker.address().streetAddress());\n\t\t\tmyEmployee.setCompanyLogo(faker.company().logo());\n\t\t\temployeeList.add(myEmployee);\n\t\t}\n\t\treturn employeeList;\n\t}", "@Override\n\tpublic List<EmployeeBean> getEmployeeList() throws Exception {\n\t\treturn employeeDao.getEmployeeList();\n\t}", "@Override\n\tpublic ResponseEntity<?> getAllEmployees(String eventToken) {\n\t\ttry {\n\t\t\tif(this.verifyIfAdmin(eventToken)) {\n\t\t\t\tIterable<Employee> employees= employeeRepository.findAll();\n\t\t\t\tList<Employee> employeeList = new ArrayList<>();\n\t\t\t\tfor(Employee emp: employees) {\n\t\t\t\t\temployeeList.add(emp);\n\t\t\t\t}\n\t\t\t\treturn ResponseEntity.status(HttpStatus.OK).body(employeeList);\n\t\t\t}\n\t\t\treturn ResponseEntity.status(HttpStatus.UNAUTHORIZED).body(null);\n\t\t}catch(Exception e){\n\t\t\tlogger.error(e.getMessage());\n\t\t}\n\t\treturn ResponseEntity.status(HttpStatus.BAD_REQUEST).body(null);\n\t}", "@Override\n\tpublic List<Employee> getAll() {\n\t\tList<Employee> list =null;\n\t\tEmployeeDAO employeeDAO = DAOFactory.getEmployeeDAO();\n\t\ttry {\n\t\t\tlist=employeeDAO.getAll();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();\n\n\t\tfor(int i=0; i<employees.length(); i++)\n\t\t{\n\t\t\tstr += employees.get(i).getName() + \"\\t\" + employees.get(i).getSurname() + \"\\t\" + employees.get(i).getMail() + \"\\t\" + employees.get(i).getPassword() + \"\\t\\t\" + employees.get(i).getBranchId() + \"\\t\\t\" + employees.get(i).getId() + \"\\n\";\n\t\t}\n\n\t\tSystem.out.println(str);\n\n\t}", "@Override\r\n\tpublic List<Employee> findAll() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Employee> findAllEmployee() {\n\t\treturn null;\n\t}", "@Transactional(readOnly = true)\r\n\t@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Employee> getAllEmployees() {\r\n\t\treturn em.createQuery(\"select e from Employee e order by e.office_idoffice\").getResultList();\r\n\t}", "public List<Empleado> getAll();", "public List<Employee> list() {\n\t\t\treturn employees;\n\t\t}", "@Override\n\tpublic List<Emp> findAll() {\n\t\treturn eb.findAll();\n\t}", "@GetMapping(value=\"/searchEmpData/{fname}\")\n\tpublic List<Employee> getEmployeeByName(@PathVariable (value = \"fname\") String fname)\n\t{\n\t\treturn integrationClient.getEmployees(fname);\n\t}", "@Override\r\n\tpublic List<Emp> getAll() {\n\t\treturn null;\r\n\t}", "@Override\n\t@Transactional\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn employeeDao.getAllEmployees();\n\t}", "@Transactional\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn accountDao.getAllEmployee();\n\t}", "@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }", "@Cacheable(cacheNames = \"allEmployeesCache\")\n\tpublic List<Employee> getAllEmployees() throws Exception {\n\t\tIterable<Employee> iterable = employeeRepository.findAll();\n\t List<Employee> result = new ArrayList<>();\n\t iterable.forEach(result::add);\n\t\treturn result;\n\t}", "public List<EmployeeDetails> getEmployeeDetails();", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "@Test\r\n\tpublic void test_getAllEmployees() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t// .pathParam(\"page\", \"0\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(0))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"[email protected]\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "public static List<Employee> getAllEmployees(){\n\t\t// Get the Datastore Service\n\t\tlog.severe(\"datastoremanager-\" + 366);\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tlog.severe(\"datastoremanager-\" + 368);\n\t\tQuery q = buildAQuery(null);\n\t\tlog.severe(\"datastoremanager-\" + 370);\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\tlog.severe(\"datastoremanager-\" + 373);\n\t\t//List for returning\n\t\tList<Employee> returnedList = new ArrayList<>();\n\t\tlog.severe(\"datastoremanager-\" + 376);\n\t\t//Loops through all results and add them to the returning list \n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.severe(\"datastoremanager-\" + 379);\n\t\t\t//Vars to use\n\t\t\tString actualFirstName = null;\n\t\t\tString actualLastName = null;\n\t\t\tBoolean attendedHrTraining = null;\n\t\t\tDate hireDate = null;\n\t\t\tBlob blob = null;\n\t\t\tbyte[] photo = null;\n\t\t\t\n\t\t\t//Get results via the properties\n\t\t\ttry {\n\t\t\t\tactualFirstName = (String) result.getProperty(\"firstName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tactualLastName = (String) result.getProperty(\"lastName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tattendedHrTraining = (Boolean) result.getProperty(\"attendedHrTraining\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\thireDate = (Date) result.getProperty(\"hireDate\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tblob = (Blob) result.getProperty(\"picture\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tphoto = blob.getBytes();\n\t\t\t} catch (Exception e){}\n\t\t\tlog.severe(\"datastoremanager-\" + 387);\n\t\t\t\n\t\t\t//Build an employee (If conditionals for nulls)\n\t\t\tEmployee emp = new Employee();\n\t\t \temp.setFirstName((actualFirstName != null) ? actualFirstName : null);\n\t\t \temp.setLastName((actualLastName != null) ? actualLastName : null);\n\t\t \temp.setAttendedHrTraining((attendedHrTraining != null) ? attendedHrTraining : null);\n\t\t \temp.setHireDate((hireDate != null) ? hireDate : null);\n\t\t \temp.setPicture((photo != null) ? photo : null);\n\t\t \tlog.severe(\"datastoremanager-\" + 395);\n\t\t \treturnedList.add(emp);\n\t\t}\n\t\tlog.severe(\"datastoremanager-\" + 398);\n\t\treturn returnedList;\n\t}", "@GetMapping\n\t@Secured(Roles.ADMIN)\n\tpublic ResponseEntity<EmployeeCollectionDto> getAll() {\n\t\tLogStepIn();\n\n\t\tList<Employee> employeeList = employeeRepository.findAll();\n\t\tEmployeeCollectionDto employeeCollectionDto = new EmployeeCollectionDto();\n\n\t\tfor (Employee employee : employeeList) {\n\t\t\temployeeCollectionDto.collection.add(toDto(employee));\n\t\t}\n\n\t\treturn LogStepOut(ResponseEntity.ok(employeeCollectionDto));\n\t}", "public List<Employee> selectAllEmployee() {\n\n\t\t// using try-with-resources to avoid closing resources (boiler plate code)\n\t\tList<Employee> emp = new ArrayList<>();\n\t\t// Step 1: Establishing a Connection\n\t\ttry (Connection connection = dbconnection.getConnection();\n\n\t\t\t\t// Step 2:Create a statement using connection object\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(SELECT_ALL_employe);) {\n\t\t\tSystem.out.println(preparedStatement);\n\t\t\t// Step 3: Execute the query or update query\n\t\t\tResultSet rs = preparedStatement.executeQuery();\n\n\t\t\t// Step 4: Process the ResultSet object.\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString employeename = rs.getString(\"employeename\");\n\t\t\t\tString address = rs.getString(\"address\");\n\t\t\t\tint mobile = rs.getInt(\"mobile\");\n\t\t\t\tString position = rs.getString(\"position\");\n\t\t\t\tint Salary = rs.getInt(\"Salary\");\n\t\t\t\tString joineddate = rs.getString(\"joineddate\");\n\t\t\t\tString filename =rs.getString(\"filename\");\n\t\t\t\tString path = rs.getString(\"path\");\n\t\t\t\temp.add(new Employee(id, employeename, address, mobile, position, Salary, joineddate,filename,path));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tdbconnection.printSQLException(e);\n\t\t}\n\t\treturn emp;\n\t}", "public void listEmployees() {\n\t\tSession session = factory.openSession();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tList employees = session.createQuery(\"FROM Employee\").list();\n\t\t\tfor (@SuppressWarnings(\"rawtypes\")\n\t\t\tIterator iterator = employees.iterator(); iterator.hasNext();) {\n\t\t\t\tEmployee employee = (Employee) iterator.next();\n\t\t\t\tSystem.out.print(\"First Name: \" + employee.getFirstName());\n\t\t\t\tSystem.out.print(\" Last Name: \" + employee.getLastName());\n\t\t\t\tSystem.out.println(\" Salary: \" + employee.getSalary());\n\t\t\t}\n\t\t\ttransaction.commit();\n\t\t} catch (HibernateException e) {\n\t\t\tif (transaction != null)\n\t\t\t\ttransaction.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@SuppressWarnings(\"unchecked\")\n\t\t\n\t\tpublic List<Employee> listEmployee() throws SQLException {\n\t\t\treturn (List<Employee>) employeeDAO.listEmployee();\n\t\t}", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\n\t@Override\n\t/**\n\t * Leo todos los empleados.\n\t */\n\tpublic List<Employees> readAll() {\n\t\tList<Employees> ls = null;\n\n\t\tls = ((SQLQuery) sm.obtenerSesionNueva().createQuery(\n\t\t\t\tInstruccionesSQL.CONSULTAR_TODOS)).addEntity(Employees.class)\n\t\t\t\t.list();// no creo que funcione, revisar\n\n\t\treturn ls;\n\t}", "@Override\r\n\tpublic List<Employee> selectAllEmployee() {\n\t\treturn null;\r\n\t}", "public Employee[] getEmployeesList() {\n\t\treturn employees;\n\t}", "@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }", "public List<Employee> getEmployeesOnly() {\n\t\treturn edao.listEmployeOnly();\n\t}", "@Override\n @Transactional\n public List<Employee> getlistEmployee() {\n \tList<Employee> employees = entityManager.createQuery(\"SELECT e FROM Employee e\", Employee.class).getResultList();\n \tfor(Employee p : employees)\n \t\tLOGGER.info(\"employee list::\" + p);\n \treturn employees;\n }", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}" ]
[ "0.86199963", "0.838291", "0.8349084", "0.8348313", "0.8346476", "0.830163", "0.8223551", "0.82226014", "0.82216895", "0.820573", "0.81615996", "0.81376624", "0.81331575", "0.812531", "0.8076654", "0.80730826", "0.8064224", "0.80581975", "0.8054742", "0.8002125", "0.80012584", "0.7987828", "0.7961828", "0.79601866", "0.7948439", "0.78942645", "0.78724986", "0.7842147", "0.783543", "0.78232294", "0.78199947", "0.7807503", "0.78038514", "0.77954066", "0.77523744", "0.77510566", "0.7750312", "0.77408844", "0.77349555", "0.77349555", "0.77328455", "0.7727534", "0.7720069", "0.76998544", "0.76964927", "0.7694351", "0.76801926", "0.7677124", "0.7667316", "0.7660696", "0.76429844", "0.7640097", "0.76323587", "0.7625621", "0.76091737", "0.759073", "0.7566202", "0.75495124", "0.75417686", "0.75360435", "0.7528999", "0.75240713", "0.7483313", "0.7479682", "0.74694973", "0.746789", "0.7459903", "0.74505174", "0.74260104", "0.7396818", "0.7391812", "0.7386572", "0.7370972", "0.73464715", "0.7339091", "0.73336035", "0.7331635", "0.7313379", "0.73133296", "0.7301159", "0.7299099", "0.7285181", "0.72708726", "0.72679377", "0.7252575", "0.72339576", "0.72161573", "0.72098774", "0.7203742", "0.7190462", "0.7184527", "0.71473044", "0.71373755", "0.7129032", "0.71267307", "0.71223015", "0.7078261", "0.70682675", "0.70573664", "0.7052031", "0.7022376" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String tipo = request.getParameter("tipo"); String url = "", erro; ConnectionFactory con = new ConnectionFactory(); if (con.conectarBanco()) { if (tipo.equals("racao")) { RacaoDAO racDAO = new RacaoDAO(con.getConexao()); ArrayList<Racao> racs = racDAO.getListaRacao(); if (racs != null) { VendaRacaoDAO venDAO = new VendaRacaoDAO(con.getConexao()); ArrayList<VendaRacao> vendas = new ArrayList<VendaRacao>(); for (Racao r : racs) { vendas.add(venDAO.getUltimaVenda(r.getCodigo())); } request.setAttribute("prods", racs); request.setAttribute("vendas", vendas); url = "/escolher-insumo.jsp"; } else { erro = "Não foi possível acessar as rações cadastradas."; url = "/erro.jsp?erro=" + erro; } } else { if (tipo.equals("quimico")) { QuimicoDAO quimDAO = new QuimicoDAO(con.getConexao()); ArrayList<Quimico> quims = quimDAO.getListaQuimico(); if (quims != null) { request.setAttribute("prods", quims); url = "/escolher-insumo.jsp"; } else { erro = "Não foi possível acessar os produtos químicos cadastradas."; url = "/erro.jsp?erro=" + erro; } } } con.fecharConexao(); } else { erro = "Não foi possível conectar-se ao banco de dados."; url = "/erro.jsp?erro=" + erro; } RequestDispatcher despachante = getServletContext().getRequestDispatcher(url); despachante.forward(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Map details = new HashMap();
@Override public void contribute(Builder builder) { builder.withDetail("yayay", "Donkey"); builder.withDetail("NumberOfOphaal", service.getLastOphaalData().size()); builder.withDetail("DateOfLastGet", service.dateOfLastGet); int counter=0; for(ModelAfvalkalender mod: service.getLastOphaalData()) { builder.withDetail("ophaaldata"+ counter++, mod.getAfvalstroomId() +"-"+ mod.getOphaaldatum()); } Map<String, String> details = new HashMap<>(); details.put("5", "Glas papier BEST tas"); details.put("11", "PMD (big bin)"); details.put("55", "GFT (green bin)"); builder.withDetail("Ophaal", details); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();", "java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();", "public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}", "public Map<String, Object> getInfo();", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "Map<String, String> mo14888a();", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getDetailsMap() {\n return internalGetDetails().getMap();\n }", "void setHashMap();", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getDetailsMap() {\n return internalGetDetails().getMap();\n }", "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "public HashMap getMetaData() ;", "public Map getTutorInfo() {\n //Create a map of arraylists to hold all data\n Map<Integer, ArrayList<String>> info = new HashMap<Integer, ArrayList<String>>();\n\n //Grab info from screen\n EditText t = (EditText) findViewById(R.id.BioField);\n ArrayList<String> bioField = new ArrayList<String>();\n bioField.add(t.getText().toString());\n\n //Put info in Map\n info.put(1, bioField);\n info.put(2, subjectList);\n\n return info;\n }", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "public static void createHashMap() {\n\t\t// create hash map\n\t\tHashMap<Integer, String> students = new HashMap<Integer, String>();\n\t\tstudents.put(1, \"John\");\n\t\tstudents.put(2, \"Ben\");\n\t\tstudents.put(3, \"Eileen\");\n\t\tstudents.put(4, \"Kelvin\");\n\t\tstudents.put(5, \"Addie\");\n\t\t// print the hash map\n\t\tfor (Map.Entry<Integer, String> e : students.entrySet()) {\n\t\t\tSystem.out.println(e.getKey() + \" \" + e.getValue());\n\t\t}\n\t}", "public static void main(String [] args){\n Map m = new HashMap();\n m.put(\"Tim\", 5);\n m.put(\"Joe\", \"x\");\n m.put(\"11\", 999);\n System.out.println(m);\n System.out.println(m.get(\"Tim\"));\n }", "public MyHashMap() {\n\n }", "public MyHashMap() {\n map = new HashMap();\n }", "MAP createMAP();", "public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }", "public Dictionary createDictionary(){\n Dictionary dict = new Dictionary(9973);\n return dict;\n }", "public HashMap getBookMap(){\n\t\treturn bookMap;\n\t}", "public ObservableHashMap()\n {\n super();\n }", "public MyHashMap() {\n\n }", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "@Test\n\tpublic void testHashMap() {\n\n\t\t/*\n\t\t * Creates an empty HashMap object with default initial capacity 16 and default\n\t\t * fill ratio \"0.75\".\n\t\t */\n\t\tHashMap hm = new HashMap();\n\t\thm.put(\"evyaan\", 700);\n\t\thm.put(\"varun\", 100);\n\t\thm.put(\"dolly\", 300);\n\t\thm.put(\"vaishu\", 400);\n\t\thm.put(\"vaishu\", 300);\n\t\thm.put(null, 500);\n\t\thm.put(null, 600);\n\t\t// System.out.println(hm);\n\n\t\tCollection values = hm.values();\n//\t\tSystem.out.println(values);\n\n\t\tSet entrySet = hm.entrySet();\n\t\t// System.out.println(entrySet);\n\n\t\tIterator iterator = entrySet.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n\t\t\t// System.out.println(entry.getKey()+\":\"+entry.getValue());\n\t\t}\n\n\t}", "public IDictionary getDictionary(){\n \treturn dict;\n }", "public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }", "java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();", "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "public MyHashMap() {\n hashMap = new ArrayList<>();\n }", "public static void main(String[] args) {\n HashMap<Integer, String> Hm = new HashMap<Integer, String>();\n Hm.put(0, \"USA\");\n Hm.put(1, \"UK\");\n Hm.put(2, \"India\");\n Hm.put(3, \"Maldives\");\n \n Set sn=Hm.entrySet();\n Iterator i= sn.iterator(); \n while(i.hasNext()) {\n Map.Entry mp=(Map.Entry)i.next();\n System.out.println(mp.getKey());\n System.out.println(mp.getValue());\n }\n \n\t}", "Map<String, String> asMap();", "public HashMap<Integer, ArrayList<String>> getInfo() {\n\t\treturn infoList;\n\t}", "public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }", "public void mo9224a(HashMap<String, String> hashMap) {\n }", "HashMap<String, Object[]> getUbicaciones();", "public HashMap<String, Object> DetailEntry(HashMap<String, Object> param) {\n\t\treturn sqlSession.selectOne(\"main.DetailEntry\",param);\r\n\t}", "private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():java.util.Map\");\n }", "private void setUpHashMap(int number)\n {\n switch (number)\n {\n case 1:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n break;\n }\n case 2:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }\n case 3:\n {\n this.hourly.put(\"Today\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Day After Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }default:\n break;\n }\n }", "public static void main(String[] args) {\n\tMap map=new HashMap();\n\tmap.put(100,\"java\");\n\tSystem.out.println(map);\n\t\n\tArrayList<String> arr=new ArrayList<>();\n\tarr.add(\"java\");\n\tarr.add(\"Santosh\");\n\tString s=arr.get(1);\n\tSystem.out.println(s);\n\t\n\t\n}", "public HashMap<String, Item> getItemCollection(){\n \tHashMap<String, Item> result = new HashMap<String, Item>(itemCollection);\r\n \treturn result;\r\n }", "public static void saveInfo(HashMap<String, String> hm) {\n\t\t\n\t\t\n\t\tScanner scan =new Scanner(System.in);\n\t\t\n\t\tString ssn =\"\";\n\t\t\n\t\t\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter SSN\");\n\t\t\tSystem.out.println(\"To Exit or Stop Press 'Q'\");\n\t\t\tssn=scan.next();\n\t\t\t\n\t\t\tif(ssn.equalsIgnoreCase(\"Q\")) {\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\twhile (hm.keySet().contains(ssn)) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(ssn+\" exists in the map. Use another SSN\");\n\t\t\t\tssn= scan.next();\n\t\t\t}\n\t\t\t}\n\t\t\t// if you need to use nextLine() after next(), please use empty nextLine();\n\t\t\tscan.nextLine();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter Your Full name\");\n\t\t\tString name = scan.nextLine();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter Your Address\");\n\t\t\tString address= scan.nextLine();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter Phone number(10 digitis)\");\n\t\t\tString phone = scan.nextLine();\n\t\t\t\n\t\t\tString personInfo = \"\\nName: \"+name+\"\\nAddress: \"+address+\"\\nPhone: \"+phone;\n\t\t\t\n\t\t\thm.put(ssn, personInfo);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}while(true);\n\t\t\n\t\tSystem.out.println(\"Your info \" +hm);\n\t\t\n\t\t\n\t\t\n\t}", "public HashMap getDatos() {\r\n return datos;\r\n }", "public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "public int sizeOfMap(){return size;}", "public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}", "public static void main(String[] args) {\n System.out.println(\"HW1\");\n Map<String, Integer> map = new HashMap<>();\n map.put(\"Ivan\",19);\n map.put(\"Dm\",20);\n map.put(\"Petr\",19);\n\n\n }", "public static Map getStudentMap() {\r\n\t\tMap<Integer,Student> stds = new HashMap();\r\n\t\tList<Student> list= new ArrayList<>();\r\n\t\tStudent akash =new Student(\"Akash\",123);\r\n\t\tStudent kalpana =new Student(\"kalpana\",345);\r\n\t\tStudent sasha =new Student(\"sasha\",876);\r\n\t\tStudent prakash =new Student(\"prakasg\",567);\r\n\t\t\r\n\t\tlist.add(prakash);\r\n\t\tlist.add(akash);\r\n\t\tlist.add(sasha);\r\n\t\tlist.add(kalpana);\r\n\t\tIterator<Student> its =list.iterator();\r\n\t\twhile (its.hasNext()) {\r\n\t\t\tStudent st = its.next();// student object from the \"list\" is passed in to st. \r\n\t\t\tstds.put(st.getRoll(),st);// st.getRoll() sends the roll number and st sends the object of the student.\r\n\t\t}\r\n\t\t\r\n\t\treturn stds;\r\n\t}", "public Room(String description) \n {\n this.description = description;\n exits = new HashMap<>();\n }", "Information createInformation();", "protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "HashMap<String, String> getAdditionalDescriptions();", "@Override\n\tpublic void getStat(Map<String, String> map) {\n\t\t\n\t}", "public static Map<Integer,Employee1> getEmployeeList(){\r\n\t return employees;\r\n\t \r\n }", "public static void main(String[] args) {\n HashMap<String, String> capitalCities = new HashMap<String, String>();\n\n // Add keys and values (Country, City)\n capitalCities.put(\"England\", \"London\");\n capitalCities.put(\"Germany\", \"Berlin\");\n capitalCities.put(\"Norway\", \"Oslo\");\n capitalCities.put(\"USA\", \"WashingtonDC\");\n\n System.out.println(capitalCities);\n\n //Access an Item\n capitalCities.get(\"England\");\n System.out.println(capitalCities.get(\"England\"));\n\n //Remove an Item\n capitalCities.remove(\"England\");\n System.out.println(capitalCities);\n\n //To remove all items, use the clear() method:\n //capitalCities.clear();\n //System.out.println(capitalCities);\n\n //HashMap Size\n capitalCities.size();\n System.out.println(capitalCities.size());\n\n //Loop Through a HashMap\n // Print keys\n for (String i : capitalCities.keySet()) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n // Print values\n for (String i : capitalCities.values()) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n\n // Create a HashMap object called people\n Map<String, Integer> people = new LinkedHashMap<String, Integer>();\n\n // Add keys and values (Name, Age)\n people.put(\"John\", 32);\n people.put(\"Steve\", 30);\n people.put(\"Angie\", 33);\n\n for (String i : people.keySet()) {\n System.out.println(\"key: \" + i + \" value: \" + people.get(i));\n }\n\n\n\n\n }", "@Override\n\tpublic Map<String, Object> getInfo(String id) {\n\t\treturn null;\n\t}", "public HashMap<String,SupplyNode> getMap(){\n return t;\n }", "public Map<Employee,String> getPerformancemap(){\r\n\t\treturn performance;\r\n\t}", "public SharedMemory infos();", "@Test\n public void test1(){\n Map map = us.selectAll(1, 1);\n System.out.println(map);\n }", "public abstract void createMap();", "public Map() {\n\t\t//intially empty\n\t}", "public Map getProperties();", "public TimeMap() {\n timeMap = new HashMap<>();\n }", "public void setMetaData(HashMap pMetaData) ;", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "public void showRestaurantDetail(Map<String, Object> objectMap);", "public abstract void addDetails();", "private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }", "public DrillInfo(ArrayList<Move> moves, HashMap<Integer, Integer> tempoHashMap, HashMap<Integer, Integer> countsHashMap){\n\t\tthis.moves = moves;\n\t\tthis.tempoHashMap = tempoHashMap;\n\t\tthis.countsHashMap = countsHashMap;\n\t}", "Map<String, Object> getStats();", "@Test\n\tpublic void testIdentityHashMap() {\n\t\tInteger i1 = new Integer(10);\n\t\tInteger i2 = new Integer(10);\n\n\t\tHashMap m = new HashMap();\n\t\tm.put(i1, \"evyaan\");\n\t\tm.put(i2, \"varun\");\n\n\t\tassertEquals(\"{10=varun}\", m.toString());\n\n\t\tIdentityHashMap im = new IdentityHashMap();\n\t\tim.put(i1, \"evyaan\");\n\t\tim.put(i2, \"varun\");\n\n\t\t// System.out.println(im);\n\n\t}", "Map<String, Object> properties();", "public Map<String, Counter> getMap(){\n\t\treturn map;\n\t}", "@RequestMapping(value = \"/detail\", method = RequestMethod.POST)\n public RetResult<Map> detail(@RequestBody Map<String,String> map) throws IOException {\n String id = String.valueOf(map.get(\"id\"));\n AffiliationsMysqlBean affiliationsMysqlBean = affiliationsMapper.getDataById(id);\n\n Map<String, Object> affiliationsEsBean = mySqlBeanToEsBean(affiliationsMysqlBean);\n //retResult.setCode(20000).setMsg(\"SUCCESS\").setData(affiliationsMysqlBean);\n return RetResponse.makeOKRsp(affiliationsEsBean);\n }", "Map<Integer, String> getMetaLocal();", "public boolean isHashMap();", "public HashMap<String, String> getUpsoDetails() {\n HashMap<String, String> upso = new HashMap<String, String>();\n String selectQuery = \"SELECT * FROM \" + TABLE_UPSO;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n // Move to first row\n cursor.moveToFirst();\n if (cursor.getCount() > 0) {\n upso.put(\"id\", cursor.getString(1));\n upso.put(\"crtfc_upso_mgt_sno\", cursor.getString(2));\n upso.put(\"upso_sno\", cursor.getString(3));\n upso.put(\"upso_nm\", cursor.getString(4));\n upso.put(\"cgg_code\", cursor.getString(5));\n upso.put(\"cgg_code_nm\", cursor.getString(6));\n upso.put(\"cob_code_nm\", cursor.getString(7));\n upso.put(\"bizcnd_code_nm\", cursor.getString(8));\n upso.put(\"owner_nm\", cursor.getString(9));\n upso.put(\"crtfc_gbn\", cursor.getString(10));\n upso.put(\"crtfc_gbn_nm\", cursor.getString(11));\n upso.put(\"crtfc_chr_nm\", cursor.getString(12));\n upso.put(\"crtfc_chr_id\", cursor.getString(13));\n upso.put(\"map_indict_yn\", cursor.getString(14));\n upso.put(\"crtfc_class\", cursor.getString(15));\n upso.put(\"y_dnts\", cursor.getString(16));\n upso.put(\"x_cnts\", cursor.getString(17));\n upso.put(\"tel_no\", cursor.getString(18));\n upso.put(\"rdn_detail_addr\", cursor.getString(19));\n upso.put(\"rdn_addr_code\", cursor.getString(20));\n upso.put(\"rdn_code_nm\", cursor.getString(21));\n upso.put(\"bizcnd_code\", cursor.getString(22));\n upso.put(\"cob_code\", cursor.getString(23));\n upso.put(\"crtfc_sno\", cursor.getString(24));\n upso.put(\"crt_time\", cursor.getString(25));\n upso.put(\"upd_time\", cursor.getString(26));\n upso.put(\"food_menu\", cursor.getString(27));\n upso.put(\"gnt_no\", cursor.getString(28));\n upso.put(\"crtfc_yn\", cursor.getString(29));\n }\n cursor.close();\n db.close();\n // return upso\n Log.d(TAG, \"Fetching upso from Sqlite: \" + upso.toString());\n\n return upso;\n }", "private HashMap name2() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"SIMA\");\n\t hm.put(\"middleName\", \"MISHRA\");\n\t hm.put(\"lastName\", \"ARADHANA\");\n\t hm.put(\"firstYearInOffice\", \"1981\");\n\t hm.put(\"lastYearInOffice\", \"1989\");\n\t return hm;\n\n\t }", "public static void main(String[] args) {\n\n\t LinkedHashMap<Integer, String> hm = new LinkedHashMap<Integer, String>(); \n\t \n // Inserting the Elements \n hm.put(3, \"Geeks\"); \n hm.put(2, \"For\"); \n hm.put(1, \"Geeks\"); \n \n for (Map.Entry<Integer, String> mapElement : hm.entrySet()) { \n \n Integer key = mapElement.getKey(); \n \n // Finding the value \n String value = mapElement.getValue(); \n \n // print the key : value pair \n System.out.println(key + \" : \" + value); \n\t}\n\n}", "Map getSPEXDataMap();", "Information getInfo();", "@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }", "public void setDatos(HashMap datos) {\r\n this.datos = datos;\r\n }", "HashMap<String, Instrument> getInstruments();", "public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }", "public HashMap<String, T> getStorage();", "Map getIDPEXDataMap();", "public Map<String,Card> getCard(){\n return null;\n }", "public static void main(String[] args) {\n\t\tHashMapCreation cr = new HashMapCreation();\n\t\tHashMap<Integer , String> hp = new HashMap<Integer , String>();\n\t\thp = cr.createMap(hp, 34,\"Rahul\");\n\t\thp = cr.createMap(hp, 22,\"John\");\n\t\thp = cr.createMap(hp, 86,\"Sam\");\n\t\thp = cr.createMap(hp, 65,\"Nancy\");\n\t\thp = cr.createMap(hp, 66,\"April\");\n\t\t//cr.removeKey(hp, 22);\n\t\tString srr = cr.getValue(hp, 34);\n\t\tSystem.out.println(\"The value for key 34 is: \" + srr);\n\t\t// Display content\n\t\tfor(int key : hp.keySet())\n\t\t\tSystem.out.println(\"key and Value : \" + key +\" \" + hp.get(key));\n\t}", "public TimeMap2() {\n map = new HashMap<>();\n }", "void setMap(Map aMap);", "public q677() {\n hm = new HashMap<>();\n words = new HashMap<>();\n }", "public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }", "public HashMap<String, String> getUserDetails()\n {\n HashMap<String, String> user = new HashMap<>();\n\n user.put(KEY_NAME, pref.getString(KEY_NAME, null));\n user.put(KEY_EMAIL, pref.getString(KEY_EMAIL, null));\n user.put(KEY_PHONE, pref.getString(KEY_PHONE, null));\n\n return user;\n }", "private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}" ]
[ "0.76722217", "0.7615511", "0.68414307", "0.6731298", "0.66675246", "0.6418329", "0.64107907", "0.6347876", "0.6306505", "0.6288042", "0.62820727", "0.6257298", "0.61785674", "0.6138743", "0.6072193", "0.6020299", "0.59885675", "0.5987102", "0.5964132", "0.59283286", "0.5844978", "0.5808112", "0.58079433", "0.5798522", "0.57940525", "0.5774271", "0.57696164", "0.57562786", "0.572787", "0.5707949", "0.56985056", "0.569498", "0.56653076", "0.5655532", "0.5641546", "0.5634945", "0.56292313", "0.56264305", "0.56146365", "0.5594615", "0.55561584", "0.55545944", "0.5549147", "0.55488694", "0.55409795", "0.5537782", "0.553347", "0.5530447", "0.5527708", "0.55272245", "0.5524845", "0.5521905", "0.55112886", "0.550474", "0.55043525", "0.55027455", "0.5502462", "0.5493149", "0.5482467", "0.54814243", "0.5477552", "0.54752666", "0.5474246", "0.5473428", "0.5463532", "0.54596967", "0.5457555", "0.5454299", "0.54515594", "0.54509455", "0.5439624", "0.5433303", "0.54288805", "0.5422121", "0.54204834", "0.5413781", "0.5412442", "0.54090345", "0.54065657", "0.5405643", "0.54036564", "0.54031664", "0.5398046", "0.53959155", "0.5391717", "0.53740764", "0.5370259", "0.5366383", "0.5364722", "0.53623754", "0.53554", "0.53520674", "0.5344138", "0.5340818", "0.5338455", "0.53356284", "0.5333254", "0.5326224", "0.5319577", "0.5313081", "0.5312336" ]
0.0
-1
Noargument constructor: should not be instantiated outside package
JDKSort() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "Reproducible newInstance();", "defaultConstructor(){}", "private Instantiation(){}", "void DefaultConstructor(){}", "private NaturePackage() {}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "MyEncodeableWithoutPublicNoArgConstructor() {}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private SingleObject()\r\n {\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private Ex() {\n }", "protected abstract void construct();", "private SingleObject(){}", "private MApi() {}", "public no() {}", "private SolutionsPackage() {}", "private VarietyPackage() {}", "private Rekenhulp()\n\t{\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "public Method() {\n }", "public Clade() {}", "public Constructor(){\n\t\t\n\t}", "private ObjectFactory() { }", "private Helper() {\r\n // do nothing\r\n }", "private Ognl() {\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public lo() {}", "private SingleObject(){\n }", "private Utility() {\n\t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private XmlFactory() {\r\n /* no-op */\r\n }", "private Log()\n {\n //Hides implicit constructor.\n }", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private Ognl(){\n }", "private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }", "private Service() {}", "public Component() {\n }", "O() { super(null); }", "private CommandLine() {\n\t}", "private SerializerFactory() {\n // do nothing\n }", "private Driver() {\n\n }", "public CyanSus() {\n\n }", "public Basic() {}", "public God() {}", "@Test\n @Order(2)\n void testNoArgsClass() {\n final RuntimeConstructable r =\n noArgsRegistry.getConstructor(ConstructableExample.CLASS_ID).get();\n assertTrue(r instanceof ConstructableExample);\n\n // checks the objects class ID\n assertEquals(ConstructableExample.CLASS_ID, r.getClassId());\n }", "public Implementor(){}", "public SgaexpedbultoImpl()\n {\n }", "private DarthSidious(){\n }", "public Fun_yet_extremely_useless()\n {\n\n }", "private ClassUtil() {}", "private Driver(){\n }", "private void __sep__Constructors__() {}", "public TestUser() {//NOPMD\n }", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "private Helper() {\r\n // empty\r\n }", "private XMLUtils()\r\n\t{\r\n\t}", "private NullSafe()\n {\n super();\n }", "private GeoUtil()\n\t{\n\t}", "private ObjectRepository() {\n\t}", "public Pitonyak_09_02() {\r\n }", "private CLUtil()\n {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "public ObjectFactory() {\n\t}", "private ContentUtil() {\n // do nothing\n }", "private CommonMethods() {\n }", "private ModuleUtil()\n {\n }", "public ObjectFactory() {\r\n\t}", "public MethodEx2() {\n \n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "private LOCFacade() {\r\n\r\n\t}", "private FileUtility() {\r\n\t}", "private Source() {\n throw new AssertionError(\"This class should not be instantiated.\");\n }", "private XMLUtil() {\n\t}", "private Validate(){\n //private empty constructor to prevent object initiation\n }", "private SIModule(){}", "private Solution() {\n //constructor\n }", "private Tuples() {\n // prevent instantiation.\n }", "private SourcecodePackage() {}", "private Default()\n {}", "public Orbiter() {\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "DefaultConstructor(int a){}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "public Pasien() {\r\n }", "public Member() {}", "public ObjectUtils() {\n super();\n }", "private R() {\n\n }" ]
[ "0.79625124", "0.7610281", "0.74685013", "0.743081", "0.73016113", "0.7233642", "0.7185272", "0.7139294", "0.70701736", "0.70507133", "0.69745964", "0.69702214", "0.69441646", "0.6933297", "0.693223", "0.6929257", "0.69228506", "0.69084805", "0.68989193", "0.6887183", "0.686492", "0.6859613", "0.68161225", "0.6793747", "0.6792396", "0.67724645", "0.67574006", "0.6750501", "0.67502356", "0.6734559", "0.6732474", "0.6728062", "0.6712772", "0.6697076", "0.6691047", "0.6684747", "0.66735554", "0.666156", "0.66421914", "0.66201895", "0.66170716", "0.6616223", "0.66154337", "0.66120636", "0.6604596", "0.66026443", "0.66003937", "0.65996057", "0.659702", "0.6596426", "0.65937614", "0.65910685", "0.65897715", "0.6585375", "0.65788066", "0.6574272", "0.6574013", "0.656799", "0.65605456", "0.6559525", "0.65328276", "0.65324396", "0.65255725", "0.65248644", "0.6522405", "0.65207744", "0.6518478", "0.65134007", "0.65134007", "0.6512824", "0.6511718", "0.65066123", "0.6503342", "0.6493291", "0.6488519", "0.6486279", "0.6479299", "0.64746386", "0.6472568", "0.6469235", "0.6464478", "0.64571035", "0.6456718", "0.6447411", "0.6446683", "0.6446677", "0.6446417", "0.644613", "0.6444228", "0.64419305", "0.64419305", "0.64419305", "0.64419305", "0.6432077", "0.6432077", "0.6432077", "0.643073", "0.6428928", "0.64274806", "0.6425998", "0.6421467" ]
0.0
-1
fill me in with good code
@Override public void sortIt(final Comparable a[]) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void smell() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void mo9848a() {\n }", "public void mo21785J() {\n }", "public static void generateCode()\n {\n \n }", "public void mo12930a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo4359a() {\n }", "private static void cajas() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo97908d() {\n }", "protected void mo6255a() {\n }", "private void kk12() {\n\n\t}", "public void mo12628c() {\n }", "public void mo3749d() {\n }", "public void mo21791P() {\n }", "public void mo21782G() {\n }", "public void method_4270() {}", "public final void mo91715d() {\n }", "public void mo21793R() {\n }", "public void mo21779D() {\n }", "public void mo23813b() {\n }", "public void mo56167c() {\n }", "public void mo21794S() {\n }", "@Override\n\tpublic void Coding() {\n\t\tBefore();\n\t\tcoder.Coding();\n\t\tEnd();\n\t}", "abstract protected void pre(int code);", "public void mo3376r() {\n }", "public void mo21789N() {\n }", "public void mo21787L() {\n }", "private void strin() {\n\n\t}", "CD withCode();", "public void mo21792Q() {\n }", "public void mo44053a() {\n }", "public void mo68520e() {\n super.mo68520e();\n C26780aa.m87959a(this.itemView, mo75290r(), this.f77546j);\n C24942al.m81837c(mo75261ab(), this.f89221bo);\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"otherclick\").mo65283e(\"video\").mo65270a(mo75261ab());\n }", "public void mo9233aH() {\n }", "public void mo6944a() {\n }", "public void mo21781F() {\n }", "public void mo21780E() {\n }", "public void mo97906c() {\n }", "public void mo21795T() {\n }", "static void feladat9() {\n\t}", "public void mo115190b() {\n }", "public void mo2740a() {\n }", "private stendhal() {\n\t}", "public void mo115188a() {\n }", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "public void mo6081a() {\n }", "public void mo21825b() {\n }", "public void mo21783H() {\n }", "public void mo5248a() {\n }", "public void mo21786K() {\n }", "void mo57278c();", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "void mo67924c();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo5099c() {\n }", "void mo80457c();", "public void mo21877s() {\n }", "public final void mo11687c() {\n }", "@Override\n public void perish() {\n \n }", "public void furyo ()\t{\n }", "void mo41086b();", "public void mo1531a() {\n }", "public void mo9137b() {\n }", "static void feladat4() {\n\t}", "public void mo21784I() {\n }", "static void feladat7() {\n\t}", "public void mo5382o() {\n }", "private void m50366E() {\n }", "public void gored() {\n\t\t\n\t}", "public void skystonePos4() {\n }", "void mo57277b();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public String editar()\r\n/* 441: */ {\r\n/* 442:445 */ return null;\r\n/* 443: */ }", "public void mo9241ay() {\n }", "public final void mo75263ad() {\n String str;\n super.mo75263ad();\n if (C25352e.m83313X(this.f77546j)) {\n if (C6399b.m19944t()) {\n if (!C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) && C25371n.m83443a(mo75261ab())) {\n C25371n.m83471b(mo75261ab(), C25352e.m83305P(this.f77546j));\n }\n } else if (!DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f77546j);\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n Long adId = awemeRawAd.getAdId();\n C7573i.m23582a((Object) adId, \"mAweme.awemeRawAd!!.adId\");\n long longValue = adId.longValue();\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75512a(\"result_ad\", aweme2.getAwemeRawAd(), false);\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n a.mo51670a(x, longValue, 2, a2, C22942a.m75508a(awemeRawAd2));\n }\n }\n m110463ax();\n if (!C25352e.m83313X(this.f77546j) || C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) || DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"click\");\n if (C25352e.m83313X(this.f77546j)) {\n str = \"download_button\";\n } else {\n str = \"more_button\";\n }\n b.mo65283e(str).mo65270a(mo75261ab());\n }\n }", "public void method_191() {}", "public void mo21878t() {\n }", "void mo80455b();", "public void skystonePos5() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void skystonePos6() {\n }", "public void m23075a() {\n }", "public void mo2471e() {\n }", "public void mo8738a() {\n }", "public void bad(){\n\t\tSystem.out.println(\"you mom's a beautiful woman\");\r\n\t}", "private final void i() {\n }", "private void searchCode() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "static void feladat5() {\n\t}", "private void smell() {\n try {\n this.console.println(MapControl.checkSmell(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void mo21788M() {\n }" ]
[ "0.6703637", "0.63586324", "0.63545066", "0.6252273", "0.6166299", "0.6151235", "0.6140729", "0.6136442", "0.6136442", "0.6136442", "0.6136442", "0.6136442", "0.6136442", "0.6136442", "0.6136332", "0.6127894", "0.6096016", "0.6095593", "0.6093045", "0.60784227", "0.6077278", "0.60707766", "0.60332584", "0.6028082", "0.6019823", "0.6013093", "0.6007271", "0.60002637", "0.59963024", "0.5990906", "0.5990143", "0.5954338", "0.5951236", "0.59489834", "0.5918129", "0.5913625", "0.5911969", "0.5909756", "0.5891755", "0.5887414", "0.58804035", "0.5867448", "0.58621025", "0.58552176", "0.58546644", "0.5846782", "0.58334374", "0.58240926", "0.5823792", "0.5815201", "0.5803725", "0.5802456", "0.5795408", "0.5793416", "0.5780832", "0.5778145", "0.57753277", "0.57750493", "0.57745034", "0.5773981", "0.57691664", "0.5769064", "0.5762209", "0.5761238", "0.57592577", "0.57533383", "0.57517266", "0.5750669", "0.57489026", "0.57434016", "0.5734637", "0.57225496", "0.57122856", "0.5701359", "0.5698955", "0.5695028", "0.56873184", "0.56840384", "0.56836903", "0.5678879", "0.5678879", "0.567389", "0.5673225", "0.5670527", "0.566943", "0.566715", "0.56643957", "0.5662886", "0.56623524", "0.5662056", "0.56610686", "0.5656573", "0.5648306", "0.56474996", "0.5644917", "0.5644743", "0.5641597", "0.5636084", "0.5635753", "0.5632262", "0.5629913" ]
0.0
-1
Packageprotected to override for Unit Tests
ObservablePath createObservablePath(final Path path) { return IOC.getBeanManager().lookupBean(ObservablePath.class).getInstance().wrap(path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private Mocks() { }", "@Override\n public void test() {\n \n }", "private ProtomakEngineTestHelper() {\r\n\t}", "@Override\n public void setUp() {\n }", "@Override\n public void setUp() throws Exception {}", "public void testSetBasedata() {\n }", "@Before\n\t public void setUp() {\n\t }", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Override\n @Before\n public void setUp() throws IOException {\n }", "private stendhal() {\n\t}", "private void test() {\n\n\t}", "public void testGetBasedata() {\n }", "private test5() {\r\n\t\r\n\t}", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "private StressTestHelper() {\n // Empty constructor.\n }", "protected void setUp() {\n\t}", "@Override\n @Before\n public void before() throws Exception {\n\n super.before();\n }", "@Override\n\tpublic void test() {\n\t\t\n\t}", "protected TeststepRunner() {}", "protected void setUp() {\n\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "abstract void setUp() throws Exception;", "@Before public void setUp() { }", "protected TestBench() {}", "@Override\n\tpublic void beforeClassSetup() {\n\t\t\n\t}", "private DataClayMockObject() {\n\n\t}", "private JacobUtils() {}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void runTest() {\n }", "@Before\n\tpublic void setUp() {\n\t}", "private Util() { }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "protected Assert() {\n\t}", "public void mock(){\n\n }", "public test_SDURL() {\n super();\n }", "protected Doodler() {\n\t}", "@Before\n public void setUp () {\n }", "public void setUp() {\n\n\t}", "@Override\n protected void setup() {\n }", "@Test\r\n public void testGetApiBase() {\r\n // Not required\r\n }", "protected void setUp() throws Exception {\n \n }", "@Before\r\n\tpublic void setUp() {\n\t}", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunch() throws Throwable {\n\t}", "@Override\r\n protected void setUp()\r\n throws Exception\r\n {\r\n // Included only for Javadoc purposes--implementation adds nothing.\r\n super.setUp();\r\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@Before\r\n\t public void setUp(){\n\t }", "protected void setUp() throws Exception {\n }", "public static void dummyTest(){}", "public static void dummyTest(){}", "@Override\n protected void tearDown() {\n }", "protected void setupLocal() {}", "private HelperLocation() {}", "@Override\n public void testCreateRequestListSomeFilteredBySourceSystem(){\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunchParameters() throws Throwable {\n\t}", "private CommonMethods() {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "protected void initialize() {}", "protected void initialize() {}" ]
[ "0.6843334", "0.6580932", "0.65495", "0.6526193", "0.6343837", "0.63173944", "0.63066477", "0.6288872", "0.6278871", "0.62712777", "0.6251226", "0.624661", "0.6219932", "0.6191983", "0.61517584", "0.6149652", "0.6149652", "0.61422604", "0.6123496", "0.6111737", "0.6107036", "0.6104749", "0.6099856", "0.60969645", "0.6087763", "0.60811216", "0.60750693", "0.60729504", "0.60693324", "0.60512465", "0.60377264", "0.6020622", "0.6020622", "0.6020622", "0.6020622", "0.6020622", "0.6020622", "0.59977794", "0.5994057", "0.5988334", "0.5981197", "0.5981197", "0.5981197", "0.5981197", "0.59792006", "0.5975382", "0.5974065", "0.59730643", "0.5970981", "0.5969279", "0.5969146", "0.59589684", "0.5944622", "0.5932247", "0.59254736", "0.59254736", "0.59254736", "0.59254736", "0.59254736", "0.59054047", "0.590511", "0.59017", "0.5896928", "0.5896928", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.5885731", "0.58773535", "0.58773535", "0.58773535", "0.58773535", "0.5877025", "0.58678293", "0.5864146", "0.5864146", "0.58618534", "0.5859647", "0.58407426", "0.5836347", "0.5834573", "0.5830597", "0.582299", "0.5821031", "0.5821031", "0.58136094", "0.58136094" ]
0.0
-1
Packageprotected to override for Unit Tests
void destroyObservablePath(final ObservablePath path) { path.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private Mocks() { }", "@Override\n public void test() {\n \n }", "private ProtomakEngineTestHelper() {\r\n\t}", "@Override\n public void setUp() {\n }", "@Override\n public void setUp() throws Exception {}", "public void testSetBasedata() {\n }", "@Before\n\t public void setUp() {\n\t }", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Override\n @Before\n public void setUp() throws IOException {\n }", "private stendhal() {\n\t}", "private void test() {\n\n\t}", "public void testGetBasedata() {\n }", "private test5() {\r\n\t\r\n\t}", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "private StressTestHelper() {\n // Empty constructor.\n }", "protected void setUp() {\n\t}", "@Override\n @Before\n public void before() throws Exception {\n\n super.before();\n }", "@Override\n\tpublic void test() {\n\t\t\n\t}", "protected TeststepRunner() {}", "protected void setUp() {\n\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "abstract void setUp() throws Exception;", "@Before public void setUp() { }", "protected TestBench() {}", "@Override\n\tpublic void beforeClassSetup() {\n\t\t\n\t}", "private DataClayMockObject() {\n\n\t}", "private JacobUtils() {}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void runTest() {\n }", "@Before\n\tpublic void setUp() {\n\t}", "private Util() { }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "protected Assert() {\n\t}", "public void mock(){\n\n }", "protected Doodler() {\n\t}", "public test_SDURL() {\n super();\n }", "@Before\n public void setUp () {\n }", "@Override\n protected void setup() {\n }", "public void setUp() {\n\n\t}", "@Test\r\n public void testGetApiBase() {\r\n // Not required\r\n }", "protected void setUp() throws Exception {\n \n }", "@Before\r\n\tpublic void setUp() {\n\t}", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunch() throws Throwable {\n\t}", "@Before\n public void setUp() {\n }", "@Override\r\n protected void setUp()\r\n throws Exception\r\n {\r\n // Included only for Javadoc purposes--implementation adds nothing.\r\n super.setUp();\r\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@Before\r\n\t public void setUp(){\n\t }", "protected void setUp() throws Exception {\n }", "public static void dummyTest(){}", "public static void dummyTest(){}", "@Override\n protected void tearDown() {\n }", "protected void setupLocal() {}", "private HelperLocation() {}", "@Override\n public void testCreateRequestListSomeFilteredBySourceSystem(){\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunchParameters() throws Throwable {\n\t}", "private CommonMethods() {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "protected void initialize() {}", "protected void initialize() {}" ]
[ "0.68442065", "0.6581115", "0.6550277", "0.6526858", "0.6344418", "0.6317534", "0.6307393", "0.6289529", "0.62792903", "0.627184", "0.62508076", "0.6247757", "0.6220006", "0.6192959", "0.615241", "0.6150346", "0.6150346", "0.61427474", "0.6123835", "0.6111953", "0.6107573", "0.61058325", "0.61002", "0.6097317", "0.608742", "0.6081222", "0.60753953", "0.6073207", "0.60702175", "0.6052937", "0.6037849", "0.6022038", "0.6022038", "0.6022038", "0.6022038", "0.6022038", "0.6022038", "0.5998702", "0.5994093", "0.59897107", "0.5981494", "0.5981494", "0.5981494", "0.5981494", "0.59801215", "0.59751016", "0.5974433", "0.597373", "0.59710145", "0.5969647", "0.59695375", "0.5959609", "0.59447604", "0.59322447", "0.59255165", "0.59255165", "0.59255165", "0.59255165", "0.59255165", "0.5905427", "0.5905408", "0.59025365", "0.5897892", "0.5897892", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58859336", "0.58789116", "0.58789116", "0.58789116", "0.58789116", "0.5877598", "0.586796", "0.5864448", "0.5864448", "0.5861976", "0.5859104", "0.58417934", "0.58374286", "0.5836422", "0.58313173", "0.58249986", "0.5820823", "0.5820823", "0.58152497", "0.58152497" ]
0.0
-1
optimization to avoid reloading the complete model when a module is added.
private Callback<Project> getModuleAddedSuccessCallback() { return new Callback<Project>() { @Override public void callback(final Project _project) { history.setLastAddedModule(_project); if (_project != null) { //A new module was added. if (model.isMultiModule()) { view.showBusyIndicator(Constants.INSTANCE.Loading()); repositoryStructureService.call(new RemoteCallback<RepositoryStructureModel>() { @Override public void callback(RepositoryStructureModel _model) { view.hideBusyIndicator(); if (_model != null) { model.setPOM(_model.getPOM()); model.setPOMMetaData(_model.getPOMMetaData()); model.setModules(_model.getModules()); model.getModulesProject().put(_project.getProjectName(), _project); addToModulesList(_project); } } }, new HasBusyIndicatorDefaultErrorCallback(view)).load(projectContext.getActiveRepository(), projectContext.getActiveBranch(), false); } else { view.showBusyIndicator(Constants.INSTANCE.Loading()); pomService.call(new RemoteCallback<POM>() { @Override public void callback(POM _pom) { view.hideBusyIndicator(); model.getOrphanProjects().add(_project); model.getOrphanProjectsPOM().put(_project.getIdentifier(), _pom); addToModulesList(_project); } }, new HasBusyIndicatorDefaultErrorCallback(view)).load(_project.getPomXMLPath()); } } } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SideOnly(Side.CLIENT)\n public static void initModels() {\n }", "void updateModel() {\n updateModel(false);\n }", "protected void prepareModel() {\n model();\n }", "private void cargarModelo() {\n dlmLibros = new DefaultListModel<>();\n listaLibros.setModel(dlmLibros);\n }", "public void cargarModelo() {\n\t}", "public void onModuleLoad() {\n\t\tButton saveButton = new Button(\"Save\", new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tsaveModel();\n\t\t\t}\n\t\t});\n\n\t\tmodelText.addKeyPressHandler(new KeyPressHandler() {\n\t\t\t@Override\n\t\t\tpublic void onKeyPress(KeyPressEvent event) {\n\t\t\t\tif (event.getCharCode() == 13) { // ENTER\n\t\t\t\t\tmodelText.setFocus(false);\n\t\t\t\t\tsaveModel();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tHTML modelListTitle = new HTML(\"<h2>Models List</h2>\");\n\t\t\n\t\tRootPanel.get(\"content\").add(modelText);\n\t\tRootPanel.get(\"content\").add(saveButton);\n\t\tRootPanel.get(\"content\").add(modelListTitle);\n\t\tRootPanel.get(\"content\").add(modelList);\n\n\t\tupdateModelList();\n\t}", "@Override\n\tpublic void saveModule() throws Exception {\n\n\t}", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "private void initializeModel() {\n\t\t\n\t}", "public interface Model {\n /**\n * {@code Predicate} that always evaluate to true\n */\n Predicate<Module> PREDICATE_SHOW_ALL_MODULES = unused -> true;\n\n /**\n * Replaces user prefs data with the data in {@code userPrefs}.\n */\n void setUserPrefs(ReadOnlyUserPrefs userPrefs);\n\n /**\n * Returns the user prefs.\n */\n ReadOnlyUserPrefs getUserPrefs();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Sets the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n\n /**\n * Returns the user prefs' mod book file path.\n */\n Path getModBookFilePath();\n\n /**\n * Sets the user prefs' mod book file path.\n */\n void setModBookFilePath(Path modBookFilePath);\n\n /**\n * Replaces mod book data with the data in {@code modBook}.\n */\n void setModBook(ReadOnlyModBook modBook);\n\n /**\n * Returns the ModBook\n */\n ReadOnlyModBook getModBook();\n\n /**\n * Returns true if a module with the same identity as {@code module} exists in the mod book.\n */\n boolean hasModule(Module module);\n\n /**\n * Deletes the given module.\n * The module must exist in the mod book.\n */\n void deleteModule(Module module);\n\n /**\n * Adds the given module.\n * {@code module} must not already exist in the mod book.\n */\n void addModule(Module module);\n\n /**\n * Gets the requested module based on given modCode.\n *\n * @param modCode Used to find module.\n * @return Module.\n * @throws CommandException If module does not exist.\n */\n Module getModule(ModuleCode modCode) throws CommandException;\n\n /**\n * Deletes the Exam from the specified module's lessons list.\n */\n void deleteExam(Module module, Exam target);\n\n /**\n * Deletes the Lesson from the specified module's lessons list.\n */\n void deleteLesson(Module module, Lesson target);\n\n /**\n * Checks if a module has the lesson\n */\n boolean moduleHasLesson(Module module, Lesson lesson);\n\n /**\n * Adds a lesson to a module.\n */\n void addLessonToModule(Module module, Lesson lesson);\n\n /**\n * Checks if a module has the lesson\n */\n boolean moduleHasExam(Module module, Exam exam);\n\n /**\n * Adds a lesson to a module.\n */\n void addExamToModule(Module module, Exam exam);\n\n /**\n * Replaces the {@code target} Exam with {@code newExam} from the specified module's exams list.\n */\n void setExam(Module module, Exam target, Exam newExam);\n\n /**\n * Replaces the {@code target} Exam with {@code newLesson} from the specified module's lessons list.\n */\n void setLesson(Module module, Lesson target, Lesson newLesson);\n\n /**\n * Replaces the given module {@code target} with {@code editedModule}.\n * {@code target} must exist in the mod book.\n * The module identity of {@code editedModule} must not be the same as another existing module in the mod book.\n */\n void setModule(Module target, Module editedModule);\n\n /**\n * Returns an unmodifiable view of the filtered module list\n */\n ObservableList<Module> getFilteredModuleList();\n\n /**\n * Updates the filter of the filtered module list to filter by the given {@code predicate}.\n *\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredModuleList(Predicate<Module> predicate);\n}", "@Override\n public void onModuleLoad() {\n }", "@Override\n\tpublic void load(ModelInfo info) {\n\t}", "public void registerModification (int type) {\n final boolean forceUpdate = true;\r\n\r\n ConfigFile topFileConfig = (ConfigFile)getConfigs().get(ConfigGroup.TOP_MODEL_FILE);\r\n // In case of spurious events ignore them (possible?)\r\n if (!topFileConfig.isUserSpecified())\r\n return;\r\n\r\n // Update the run directory whenever the top file is updated\r\n ConfigFile runDirConfig = (ConfigFile)getConfigs().get(ConfigGroup.RUN_DIR);\r\n if (forceUpdate/* || !runDirConfig.isUserSpecified()*/)\r\n runDirConfig.setValue(topFileConfig.getValueFile().getParent(), true);\r\n runDir.updateValue();\r\n\r\n // Update the top level model name\r\n ConfigString topNameConfig = (ConfigString)getConfigs().get(ConfigGroup.TOP_MODEL_NAME);\r\n if (forceUpdate/* || !topNameConfig.isUserSpecified()*/)\r\n {\r\n String name = topFileConfig.getValueFile().getName();\r\n name = name.indexOf('.') > 0 ? name.substring(0, name.lastIndexOf('.')):name;\r\n topNameConfig.setValue(name, true);\r\n }\r\n topName.updateValue();\r\n\r\n // Ensure that the model path contains the run directory\r\n ConfigList modelPathConfig = (ConfigList)getConfigs().get(ConfigGroup.MODEL_PATH);\r\n if (!modelPathConfig.getValue().contains(runDirConfig.getValue()))\r\n {\r\n // The contract for setValue on collections is to append\r\n modelPathConfig.addValue(Collections.singletonList(runDirConfig.getValue()), modelPathConfig.isUserSpecified());\r\n }\r\n modelPath.updateValue();\r\n\r\n // Update the model parameters\r\n ConfigMap paramsConfig = (ConfigMap)getConfigs().get(ConfigGroup.TOP_MODEL_PARAMS);\r\n if (forceUpdate/* || !paramsConfig.isUserSpecified()*/)\r\n {\r\n String[] modelPathArr = (String[])modelPathConfig.getValue().toArray(new String[0]);\r\n try {\r\n List<TopModelParamParse.ModelParameter> params = TopModelParamParse.parseModel(topNameConfig.getValue(), modelPathArr);\r\n Map map = new HashMap();\r\n for (ModelParameter mp : params)\r\n map.put(mp.getName(), mp.getValue());\r\n paramsConfig.setValue(map, false);\r\n } catch (TopModelParamParse.ModelAnalysisException exc) {\r\n Logging.dbg().severe(\"Error loading top model \" + exc);\r\n }\r\n }\r\n modelParams.updateValue();\r\n }", "void onModuleAdded(final ModularConfigurationModule<T> module) {\n for (ModularConfigurationEntry<T> newEntry : module.getAll()) {\n ModularConfigurationEntry<T> existing = entries.getIfExists(newEntry.getName());\n if (existing == null) {\n existing = removedEntries.remove(newEntry.getName());\n }\n\n // Directly store the module's entry. No change notification as there's\n // no listeners registered yet.\n if (existing == null) {\n this.entries.set(newEntry.getName(), newEntry);\n continue;\n }\n\n // Check whether the existing entry's module overrides the module that\n // we are adding to this store. If so, the entry isn't loaded.\n // Instead it's added to the \"shadow modules\" - a list modules are taken\n // from when the entry is removed from higher-priority modules.\n if (!existing.isRemoved() && !isModuleOverriding(module, existing.getModule())) {\n int index = 0;\n while (index < existing.shadowModules.size() &&\n isModuleOverriding(module, existing.shadowModules.get(index)))\n {\n index++;\n }\n existing.shadowModules.add(index, module);\n continue;\n }\n\n // Swap the entry for the existing one\n existing.loadFromModule(module);\n }\n }", "protected void initModules()\n {\n\n }", "private void updateTotal() {\r\n\t\t// We get the size of the model containing all the modules in the list.\r\n\t\tlabelTotal.setText(\"Total Modules: \" + String.valueOf(helperInstMod.model.size()));\r\n\t}", "protected void updateDynamic()\n {\n // Nothing at this level.\n }", "public HeatingModuleModel(){\n\t}", "public void buildModel() {\n }", "private MainModel() {\n jsonManager = new JsonManager(this);\n }", "private void loadModules() {\n\n ModuleTiers moduleTiers = new ModuleTiers();\n moduleTiers.setSource(.5);\n moduleTiers.setNumTiers(5);\n String tiersKey = \"module tiers\";\n addDemoPanelWithModule(moduleTiers, tiersKey, null);\n demoPanels.get(tiersKey).removeGUI();\n\n ModuleCellular moduleCellular = new ModuleCellular();\n moduleCellular.setCoefficients(9, .5, 3, 7);\n String cellularKey = \"module cellular\";\n addDemoPanelWithModule(moduleCellular, cellularKey, null);\n demoPanels.get(cellularKey).removeGUI();\n\n /*\n * ground_gradient\n */\n // ground_gradient\n ModuleGradient groundGradient = new ModuleGradient();\n groundGradient.setGradient(0, 0, 0, 1, 0, 0);\n String gradientKey = \"Ground Gradient\";\n addDemoPanelWithModule(groundGradient, gradientKey, null);\n demoPanels.get(gradientKey).removeGUI();\n\n String mountainsKey = \"mountains before gradient\";\n TerrainNoiseSettings mountainSettings = getDemoPanelSettings(mountainsKey);\n if (mountainSettings == null) {\n mountainSettings = TerrainNoiseSettings.MountainTerrainNoiseSettings(seed, false);\n }\n Module mountainTerrainNoGradient = mountainSettings.makeTerrainModule(null);\n addDemoPanelWithModule(mountainTerrainNoGradient, mountainsKey, mountainSettings);\n\n String mountainsWithGradientKey = \"translate gradient domain with mountains\";\n TerrainNoiseSettings gradMountainSettings = getDemoPanelSettings(mountainsWithGradientKey);\n if (gradMountainSettings == null) {\n gradMountainSettings = TerrainNoiseSettings.MountainTerrainNoiseSettings(seed, false);\n }\n ModuleTranslateDomain mountainTerrain = new ModuleTranslateDomain();\n mountainTerrain.setAxisYSource(mountainTerrainNoGradient);\n mountainTerrain.setSource(groundGradient);\n\n addDemoPanelWithModule(mountainTerrain, mountainsWithGradientKey, gradMountainSettings);\n demoPanels.get(mountainsWithGradientKey).removeGUI();\n\n /*\n String highlandKey = \"highlands\";\n TerrainNoiseSettings highlandSettings = getDemoPanelSettings(highlandKey);\n if (highlandSettings == null) {\n highlandSettings = TerrainNoiseSettings.HighLandTerrainNoiseSettings(seed);\n }\n Module highlandTerrain = TerrainDataProvider.MakeTerrainNoise(groundGradient, highlandSettings );\n addDemoPanelWithModule(highlandTerrain, highlandKey, highlandSettings);\n */\n /*\n * select air or solid with mountains\n */\n String terrainSelectKey = \"terrain Select\";\n TerrainNoiseSettings terrSelectSettings = getDemoPanelSettings(terrainSelectKey);\n if (terrSelectSettings == null) {\n terrSelectSettings = TerrainNoiseSettings.TerrainSettingsWithZeroOneModuleSelect(seed, mountainTerrain);\n } else {\n terrSelectSettings.moduleSelectSettings.controlSource = mountainTerrain;\n }\n Module terrSelectModule = terrSelectSettings.moduleSelectSettings.makeSelectModule();\n addDemoPanelWithModule(terrSelectModule, terrainSelectKey, terrSelectSettings);\n\n /*\n * noise to determine which kind of solid block\n */\n String typeSelectSettingKey = \"terrain type select\";\n TerrainNoiseSettings typeSelectSettings = getDemoPanelSettings(typeSelectSettingKey);\n if (typeSelectSettings == null) {\n typeSelectSettings = TerrainNoiseSettings.TerrainTypeSelectModuleNoiseSettings(seed, false);\n }\n Module selectTypeTerr = typeSelectSettings.makeTerrainModule(null);\n //addDemoPanelWithModule(selectTypeTerr, typeSelectSettingKey, typeSelectSettings);\n\n String dirtOrStoneSelectSettingsKey = \"dirt or stone\";\n TerrainNoiseSettings dirtOrStoneSelectSettings = getDemoPanelSettings(dirtOrStoneSelectSettingsKey);\n if (dirtOrStoneSelectSettings == null) {\n dirtOrStoneSelectSettings = TerrainNoiseSettings.BlockTypeSelectModuleSettings(seed, selectTypeTerr, BlockType.DIRT, BlockType.STONE);\n } else {\n dirtOrStoneSelectSettings.moduleSelectSettings.controlSource = selectTypeTerr;\n }\n Module dirtOrStoneModule = dirtOrStoneSelectSettings.moduleSelectSettings.makeSelectModule();\n //addDemoPanelWithModule(dirtOrStoneModule, dirtOrStoneSelectSettingsKey, dirtOrStoneSelectSettings);\n\n /*\n * combine terrain select and block type select\n */\n String combineTerrainAndBlockTypeKey = \"Terrain And BlockType\";\n ModuleCombiner terrAndBlockTypeMod = new ModuleCombiner(ModuleCombiner.CombinerType.MULT);\n terrAndBlockTypeMod.setSource(0, terrSelectModule);\n terrAndBlockTypeMod.setSource(1, dirtOrStoneModule);\n TerrainNoiseSettings combineSettings = new TerrainNoiseSettings(seed); //defaults\n combineSettings.renderWithBlockColors = true;\n //addDemoPanelWithModule(terrAndBlockTypeMod, combineTerrainAndBlockTypeKey, combineSettings);\n //demoPanels.get(combineTerrainAndBlockTypeKey).removeGUI();\n\n\n\n }", "public boolean hasModel() {\n return false;\r\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void refreshModules()\n\t{\n\t\t// Scan each directory in turn to find JAR files\n\t\t// Subdirectories are not scanned\n\t\tList<File> jarFiles = new ArrayList<>();\n\n\t\tfor (File dir : moduleDirectories) {\n\t\t\tfor (File jarFile : dir.listFiles(jarFileFilter)) {\n\t\t\t\tjarFiles.add(jarFile);\n\t\t\t}\n\t\t}\n\n\t\t// Create a new class loader to ensure there are no class name clashes.\n\t\tloader = new GPIGClassLoader(jarFiles);\n\t\tfor (String className : loader.moduleVersions.keySet()) {\n\t\t\ttry {\n\t\t\t\t// Update the record of each class\n\t\t\t\tClass<? extends Interface> clz = (Class<? extends Interface>) loader.loadClass(className);\n\t\t\t\tClassRecord rec = null;\n\t\t\t\tfor (ClassRecord searchRec : modules.values()) {\n\t\t\t\t\tif (searchRec.clz.getName().equals(className)) {\n\t\t\t\t\t\trec = searchRec;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (rec != null) {\n\t\t\t\t\t// This is not an upgrade, ignore it\n\t\t\t\t\tif (rec.summary.moduleVersion >= loader.moduleVersions.get(className)) continue;\n\n\t\t\t\t\t// Otherwise update the version number stored\n\t\t\t\t\trec.summary.moduleVersion = loader.moduleVersions.get(className);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trec = new ClassRecord();\n\t\t\t\t\trec.summary = new ModuleSummary(IDGenerator.getNextID(), loader.moduleVersions.get(className),\n\t\t\t\t\t\t\tclassName);\n\t\t\t\t\tmodules.put(rec.summary.moduleID, rec);\n\t\t\t\t}\n\t\t\t\trec.clz = clz;\n\n\t\t\t\t// Update references to existing objects\n\t\t\t\tfor (StrongReference<Interface> ref : instances.values()) {\n\t\t\t\t\tif (ref.get().getClass().getName().equals(className)) {\n\t\t\t\t\t\tConstructor<? extends Interface> ctor = clz.getConstructor(Object.class);\n\t\t\t\t\t\tref.object = ctor.newInstance(ref.get());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (NoSuchMethodException e) {\n\t\t\t\t// Thrown when trying to find a suitable constructor\n\t\t\t\tSystem.err.println(\"Discovered class which has no available upgrade constructor: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t\tcatch (InstantiationException | IllegalAccessException | IllegalArgumentException\n\t\t\t\t\t| InvocationTargetException e) {\n\t\t\t\t// All thrown by the instantiate call\n\t\t\t\tSystem.err.println(\"Unable to create new instance of class: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\t// Should never occur but required to stop the compiler moaning\n\t\t\t\tSystem.err.println(\"Discovered class which has no available upgrade constructor: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public void testAddModule() {\n\t System.out.println(\"addModule\");\n\t Module module = module1;\n\t Student instance = student1;\n\t instance.addModule(module);\n\t }", "@RequestMapping(value = { \"/newModule\" }, method = RequestMethod.GET)\n\t\tpublic String newModule(ModelMap model) {\n\t\t\tModule module = new Module();\n\t\t\tmodel.addAttribute(\"module\", module);\n\t\t\tmodel.addAttribute(\"edit\", false);\n\t\t\t\n\t\t\treturn \"addNewModule\";\n\t\t}", "public void reInitializeModels () {\n this.model = new ModelManager(getTypicalAddressBook(), new UserPrefs());\n this.expectedModel = new ModelManager(model.getAddressBook(), new UserPrefs());\n }", "public void onModuleLoad() {\n\n\t\tJsonpRequestBuilder requestBuilder = new JsonpRequestBuilder();\n\t\t// requestBuilder.setTimeout(10000);\n//\t\trequestBuilder.requestObject(SERVER_URL, new Jazz10RequestCallback());\n\n\t}", "@Override\n\tpublic void prepareModule() throws Exception {\n\n\t}", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "public void preInit() {\n \tfor(int i=1;i<ItemAmmo.AMMO_TYPES.length;i++){\n \t\tif(i!=10 && i !=12){\n \t\tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmo, i, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_\"+ItemAmmo.AMMO_TYPES[i], \"inventory\"));\n \t\t}\n \t}\n \t\n \t//ModelLoader.registerItemVariants(TF2weapons.itemTF2, new ModelResourceLocation(TF2weapons.MOD_ID+\":copper_ingot\", \"inventory\"),new ModelResourceLocation(TF2weapons.MOD_ID+\":lead_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmoFire, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_fire\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemChocolate, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":chocolate\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemHorn, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":horn\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemMantreads, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":mantreads\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemScoutBoots, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":scout_shoes\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmoMedigun, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_medigun\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":copper_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 1, new ModelResourceLocation(TF2weapons.MOD_ID+\":lead_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 2, new ModelResourceLocation(TF2weapons.MOD_ID+\":australium_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 3, new ModelResourceLocation(TF2weapons.MOD_ID+\":scrap_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 4, new ModelResourceLocation(TF2weapons.MOD_ID+\":reclaimed_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 5, new ModelResourceLocation(TF2weapons.MOD_ID+\":refined_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 6, new ModelResourceLocation(TF2weapons.MOD_ID+\":australium_nugget\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 7, new ModelResourceLocation(TF2weapons.MOD_ID+\":key\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 8, new ModelResourceLocation(TF2weapons.MOD_ID+\":crate\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 9, new ModelResourceLocation(TF2weapons.MOD_ID+\":random_weapon\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 10, new ModelResourceLocation(TF2weapons.MOD_ID+\":random_hat\", \"inventory\"));\n \t\n \tRenderingRegistry.registerEntityRenderingHandler(EntityTF2Character.class, new IRenderFactory<EntityTF2Character>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityTF2Character> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderTF2Character(manager);\n\t\t\t}\n \t});\n \t/*RenderingRegistry.registerEntityRenderingHandler(EntityProjectileBase.class, new IRenderFactory<Entity>(){\n\t\t\t@Override\n\t\t\tpublic Render<Entity> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderEntity(manager);\n\t\t\t}\n \t});*/\n \tRenderingRegistry.registerEntityRenderingHandler(EntityRocket.class, new IRenderFactory<EntityRocket>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityRocket> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderRocket(manager);\n\t\t\t}\n \t});\n \t/*RenderingRegistry.registerEntityRenderingHandler(EntityFlame.class, new IRenderFactory<EntityFlame>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityFlame> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn (Render<EntityFlame>) new RenderEntity();\n\t\t\t}\n \t});*/\n \tRenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, new IRenderFactory<EntityGrenade>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityGrenade> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderGrenade(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityStickybomb.class, new IRenderFactory<EntityStickybomb>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityStickybomb> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderStickybomb(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySyringe.class, new IRenderFactory<EntitySyringe>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySyringe> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderSyringe(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityBall.class, new IRenderFactory<EntityBall>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityBall> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderBall(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityFlare.class, new IRenderFactory<EntityFlare>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityFlare> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderFlare(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityJar.class, new IRenderFactory<EntityJar>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityJar> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderJar(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySentry.class, new IRenderFactory<EntitySentry>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySentry> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderSentry(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityDispenser.class, new IRenderFactory<EntityDispenser>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityDispenser> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderDispenser(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityTeleporter.class, new IRenderFactory<EntityTeleporter>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityTeleporter> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderTeleporter(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityStatue.class, new IRenderFactory<EntityStatue>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityStatue> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderStatue(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySaxtonHale.class, new IRenderFactory<EntitySaxtonHale>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySaxtonHale> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderBiped<EntitySaxtonHale>(manager, new ModelBiped(), 0.5F, 1.0F){\n\t\t\t\t\tprivate final ResourceLocation TEXTURE=new ResourceLocation(TF2weapons.MOD_ID,\"textures/entity/tf2/SaxtonHale.png\");\n\t\t\t\t\tprotected ResourceLocation getEntityTexture(EntitySaxtonHale entity)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn TEXTURE;\n\t\t\t\t }\n\t\t\t\t};\n\t\t\t}\n \t});\n\t}", "public void loadModules() throws IOException, ClassNotFoundException {\n \tString filename = \"test.modules\";\n \tFile in = new File(System.getProperty(\"user.home\") + \"\\\\test\\\\\" + filename);\n\t\t\n FileInputStream fileIn = new FileInputStream(in);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n Object o = objectIn.readObject();\n if (o instanceof CopyOnWriteArrayList<?>) {\n \tmodules = (CopyOnWriteArrayList<ModulePanel>) o;\n \tremoveAll();\n \tfor (ModulePanel modulePanel : modules) {\n \t\tadd(modulePanel);\n\t\t\t}\n }\n objectIn.close();\n fileIn.close();\t\n \n\t\tupdateUI();\n\t\trepaint();\n\t}", "public void addModule(Module m) throws Exception {\n\t\tModule returned = _modules.put(m.getName(), m);\n\t\tif (returned != null) \n\t\t\tthrow new Exception(\"Module with this name already exists. Module: \" + m.getName() + \" in \" + this._name);\n//\t\t\tSystem.out.println(\"ERROR: overwrote a module with the same name: \" + m.getName());\n\t\tSet<Vertex> vSet = m.getVertexMap();\n\t\tfor (Vertex v : vSet)\n\t\t\tif (_vertices.contains(v))\n\t\t\t\tthis._hasOverlap = true;\n\t\tthis._vertices.addAll(vSet);\n\t}", "public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }", "@Override\r\n \tpublic void onModelConfigFromCache(OpenGLModelConfiguration model) {\n \t\tboolean hasNewer = getCurrentTarget().getLatestModelVersion() > \r\n \t\t\t\t\t\t model.getOpenGLModel().getModelVersion();\r\n \t\tthis.fireOnModelDataEvent(model, hasNewer);\r\n \t}", "private void loadOutputModules() {\n\t\tthis.outputModules = new ModuleLoader<IOutput>(\"/Output_Modules\", IOutput.class).loadClasses();\n\t}", "private void loadAggregationModules() {\n\t\tthis.aggregationModules = new ModuleLoader<IAggregate>(\"/Aggregation_Modules\", IAggregate.class).loadClasses();\n\t}", "@Transactional(readOnly=true)\r\n\tprotected void addModuleInstructionIfNecessary(ModuleTransferObject currModule, \r\n\t\t\tList<ModuleTransferObject> existingModuledtos) {\r\n\t\t\r\n\t\tfor (ModuleTransferObject moduledto : existingModuledtos) {\r\n\t\t\t//These are the previously marked as \"matched\" in isExistingModule\r\n\t\t\tif (MARK_TO_KEEP_IN_UPDATE == moduledto.getDisplayOrder())\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\tif (currModule.getLongName().equalsIgnoreCase(moduledto.getLongName())) {\r\n\t\t\t\t//get the newly added module's public id and version\r\n\t\t\t\tModuleTransferObject mod = moduleV2Dao.getModulePublicIdVersionBySeqid(currModule.getIdseq());\r\n\t\t\t\t\r\n\t\t\t\tString instr = \"New Module with public id \" + mod.getPublicId() + \" and version \" + mod.getVersion() + \r\n\t\t\t\t\t\t\" was created by Form Loader because the XML module public id value of \" +\r\n\t\t\t\t\t\tcurrModule.getPublicId() + \" and version \" + currModule.getVersion() + \" did not match an existing module. \" +\r\n\t\t\t\t\t\t\"Please review modules and delete any unnecessary module, this module may have been intended to \" +\r\n\t\t\t\t\t\t\"replace an existing module.\";\r\n\t\t\t\t\r\n\t\t\t\tInstructionTransferObject instdto = createInstructionDto(currModule, instr);\r\n\t\t\t\tmoduleInstructionV2Dao.createInstruction(instdto, currModule.getIdseq());\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t}\r\n\t}", "public XmlSerializableModuleList() {\n modules = new ArrayList<>();\n }", "private ConfigurationModel() {\r\n\tloadConfiguration();\r\n }", "private void onModuleUpdate() {\n if (mTime == -1L) {\n mTime = System.currentTimeMillis();\n }\n\n //!\n //! Render until the display is not active.\n //!\n onModuleRender(System.currentTimeMillis());\n\n //!\n //! Request to render again.\n //!\n onAnimationRequest(this::onModuleUpdate);\n }", "void addToModel(Model model, int numGenerated) throws Exception {\n addToModel(model, generateEventList(numGenerated));\n }", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "private void updateChildren() {\n modulesTableModel.clear();\n repositoriesTableModel.clear();\n if (modules != null) {\n repositoriesTableModel.set(modules.xgetRepositoryArray());\n modulesTableModel.set(modules.getModuleArray());\n } else {\n repositoriesTableModel.fireTableDataChanged();\n modulesTableModel.fireTableDataChanged();\n }\n }", "public void addt1Module(Module m) {\n t1UnSel.getItems().remove(m);\n t1Sel.getItems().add(m);\n }", "private synchronized void refreshProductModel(ProductModel pm)\r\n {\r\n int idx = products_listmodel.indexOf(pm);\r\n if (idx >= 0) {\r\n DocmaSession docmaSess = mainWin.getDocmaSession();\r\n // Create new model object to force GUI update\r\n ProductModel pm_updated = new ProductModel(docmaSess, pm.getId(), false);\r\n products_listmodel.set(idx, pm_updated);\r\n boolean pending = pm_updated.isLoadPending();\r\n if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) {\r\n setListRefresh(true);\r\n if (pending) startDbConnectThread();\r\n }\r\n } else {\r\n Log.warning(\"ProductModel not contained in list: \" + pm.getId());\r\n }\r\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "private void addModuleDependencies(JavaType entity,\n ClassOrInterfaceTypeDetails relatedRepository, JavaType relatedService,\n ClassOrInterfaceTypeDetails controllerToUpdateOrCreate) {\n if (projectOperations.isMultimoduleProject()) {\n\n // Add service module dependency\n projectOperations.addModuleDependency(controllerToUpdateOrCreate.getType().getModule(),\n relatedService.getModule());\n\n // Add repository module dependency\n projectOperations.addModuleDependency(controllerToUpdateOrCreate.getType().getModule(),\n relatedRepository.getType().getModule());\n\n // Add model module dependency\n projectOperations.addModuleDependency(controllerToUpdateOrCreate.getType().getModule(),\n entity.getModule());\n }\n }", "@Override\n\tpublic boolean isLoad() {\n\t\treturn false;\n\t}", "private synchronized void updateModel(IFile modelFile) {\n MoleculeExt format = MoleculeExt.valueOf( modelFile );\n if ( format.isSupported()) {\n\n IMoleculesFromFile model;\n if (modelFile.exists()) {\n\n try {\n switch(format) {\n case SDF: model = new MoleculesFromSDF(modelFile);\n break;\n case SMI: model = new MoleculesFromSMI(modelFile);\n break;\n default: return;\n }\n\n }\n catch (Exception e) {\n return;\n }\n cachedModelMap.put(modelFile, model);\n }\n else {\n cachedModelMap.remove(modelFile);\n }\n }\n }", "private void actualizeazaModel() {\n model.clear();\n listaContacte.forEach((o) -> {\n model.addElement(o);\n });\n }", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "protected void refreshFromRepository() {\n\t\t\r\n\t\tObject[] elements = new Object[]{};\r\n\t\tmodelObject.eContainer();\r\n\t\t\r\n\t\tif (fFilteredList != null) {\r\n\t\t\t\r\n\t\t\tfFilteredList.setAllowDuplicates(showDuplicates);\r\n\t\t\tfFilteredList.setElements(elements);\r\n\t\t\tfFilteredList.setEnabled(true);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (fTreeViewer != null) {\r\n\t\t\tfTreeViewer.setInput(null);\r\n\t\t}\t\t\r\n\t}", "@Override\n protected void initModel() {\n bannerModel = new BannerModel();\n// homeSousuoModel = new Home\n\n// bannerModel = new BannerModel();\n// homeSousuoModel = new HomeSousuoModel();\n// izxListModelBack = new\n }", "public boolean buildModel() {\n \treturn buildModel(false, false);\n }", "private ModelCheckpoints loadFromTransientModule(SModelName originalModelName) {\n // XXX getCheckpointModelsFor iterates models of the module, hence needs a model read\n // OTOH, just a wrap with model read doesn't make sense here (models could get disposed right after the call),\n // so likely we shall populate myCheckpoints in constructor/dedicated method. Still, what about checkpoint model disposed *after*\n // I've collected all the relevant state for this class?\n // Not sure whether read shall be local to this class or external on constructor/initialization method\n // It seems to be an implementation detail that we traverse model and use its nodes to persist mapping label information (that's what we need RA for).\n return new ModelAccessHelper(myTransientModelProvider.getRepository()).runReadAction(() -> {\n String nameNoStereotype = originalModelName.getLongName();\n ArrayList<CheckpointState> cpModels = new ArrayList<>(4);\n for (SModel m : myModule.getModels()) {\n if (!nameNoStereotype.equals(m.getName().getLongName()) || false == m instanceof ModelWithAttributes) {\n continue;\n }\n // we keep CP (both origin and actual) as model properties to facilitate scenario when CP models are not persisted.\n // Otherwise, we could have use values written into CheckpointVault's registry file. As long as there's no registry for workspace models,\n // we have to use this dubious mechanism (not necessarily bad, just a bit confusing as we duplicate actual CP value as model attribute and\n // in the CheckpointVault's registry).\n CheckpointIdentity modelCheckpoint = readIdentityAttributes((ModelWithAttributes) m, GENERATION_PLAN, CHECKPOINT);\n if (modelCheckpoint == null) {\n continue;\n }\n CheckpointIdentity prevCheckpoint = readIdentityAttributes((ModelWithAttributes) m, PREV_GENERATION_PLAN, PREV_CHECKPOINT);\n cpModels.add(new CheckpointState(m, prevCheckpoint, modelCheckpoint));\n }\n return cpModels.isEmpty() ? null : new ModelCheckpoints(cpModels);\n });\n }", "@Override\n\tprotected void lazyLoad() {\n\t}", "public void onModuleLoad() {\n\t\tMaps.loadMapsApi(\"notsupplied\", \"2\", false, new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tbuildUi();\n\t\t\t}\n\t\t});\n\t}", "@ModelAttribute\r\n\tpublic void loadDataEveryTime(Model model)\r\n\t{\r\n\t\tmodel.addAttribute(\"brands\",mobservice.getAllBrandNames());\r\n\t\tmodel.addAttribute(\"ram\",mobservice.getRamSize());\r\n\t\tmodel.addAttribute(\"rating\",mobservice.getRating());\r\n\t}", "synchronized List<Module> getModules()\n {\n return m_modules;\n }", "public void loadModel(){\n remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();\n FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)\n .addOnCompleteListener(new OnCompleteListener<File>() {\n @Override\n public void onComplete(@NonNull Task<File> task) {\n File modelFile = task.getResult();\n if (modelFile != null) {\n interpreter = new Interpreter(modelFile);\n // Toast.makeText(MainActivity2.this, \"Hosted Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n runningInterpreter();\n }\n else{\n try {\n InputStream inputStream = getAssets().open(dis+\".tflite\");\n byte[] model = new byte[inputStream.available()];\n inputStream.read(model);\n ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)\n .order(ByteOrder.nativeOrder());\n buffer.put(model);\n //Toast.makeText(MainActivity2.this, dis+\"Bundled Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n interpreter = new Interpreter(buffer);\n runningInterpreter();\n } catch (IOException e) {\n // File not found?\n Toast.makeText(MainActivity2.this, \"No hosted or bundled model\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n }", "public void addModule(Module m) {\n feed.getModules().add(m);\n }", "protected List<Object> getModules() {\n return new ArrayList<>();\n }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "private UnloadTestModelLoader() {\n registerProject(\"a\");\n registerProject(\"e\");\n registerProject(\"b\", \"e\");\n registerProject(\"c\");\n registerProject(\"d\");\n registerProject(\"f\");\n registerProject(\"p1\", \"a\", \"b\");\n registerProject(\"p2\", \"b\", \"c\");\n registerProject(\"p3\", \"b\", \"d\");\n registerProject(\"p4\", \"d\");\n }", "public void onModuleLoad() {\n\t\tbentoService = (BentoServiceAsync)GWT.create(BentoService.class);\n\t\tRegistry.register(\"bentoService\", bentoService);\n\n\t\tHistory.addHistoryListener(this);\n\t\tHistory.fireCurrentHistoryState();\n\t}", "public static void whenRequiredByAssembler(AssemblerGroup ag) {\n loaded = true;\n }", "private void loading(){\n mDbHelper = new DbHelper(getActivity());\n if(!(mDbHelper.getPlanCount() == 0)){\n plan_list.addAll(mDbHelper.getAllPlan());\n }\n refreshList();\n }", "public void remDefinedInModule(){\n ((MvwDefinitionDMO) core).remDefinedInModule();\n }", "@Override\n public void startup(Model model) {\n model.updateModelRep(stateID);\n }", "Build_Model() {\n\n }", "private void setexistingmodules() {\r\n\t\tmodulecombo.getItems().clear();\r\n\t\tmodulecombo.getItems().add(\"QA Modules\");\r\n\t\tmodulecombo.getSelectionModel().select(0);\r\n\t\tmoduleslist = new DAO().getModuleDetails(\"modules\", \"all\", Loggedinuserdetails.defaultproject);\r\n\t\tif (moduleslist != null && moduleslist.size() > 0) {\r\n\t\t\tfor (int i = 0; i < moduleslist.size(); i++) {\r\n\t\t\t\tmodulecombo.getItems().add(moduleslist.get(i).getModulename());\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodulecombo.setStyle(\"-fx-text-fill: black; -fx-font-weight:bold;\");\r\n\t}", "private static String newModel(Request req) {\n\n if( req.params(\"Version\").equals(\"Updated\") ) {\n\n // make new model, make gson object, convert model to json using gson\n BattleshipModelUpdated game = new BattleshipModelUpdated();\n Gson gson = new Gson();\n return gson.toJson( game );\n\n }else{\n\n // make new model, make gson object, convert model to json using gson\n BattleshipModelNormal game = new BattleshipModelNormal();\n Gson gson = new Gson();\n return gson.toJson( game );\n\n }\n }", "public synchronized void informModuleEndLoading(Module module) {\n\t\tModuleStat stat = getModuleStat(module);\n\t\tstat.waitLoading = false;\n\t}", "public void flushModules(String name) {\n String n = name;\n\n if (n == null) {\n n = BwModule.defaultModuleName;\n }\n\n ArrayList<String> mnames = new ArrayList<>(modules.keySet());\n\n for (String s: mnames) {\n if (s.equals(n)) {\n continue;\n }\n\n modules.remove(s);\n }\n }", "public BQTestClassFactory autoLoadModules() {\n this.autoLoadModules = true;\n return this;\n }", "private void setupTitanoboaModelXLarge() {\n\t\t/*\n\t\t * This is less nasty than the last version, but I still don't like it. The problem is there's no good way to\n\t\t * dynamically generate the part after R.id. - there's a findViewByName but its efficiency apparently sucks.\n\t\t * Most of the improvement from the last version is from having made the model automatically set up its modules\n\t\t * which in turn set up their vertebrae, and from eliminating the actuator objects.\n\t\t */\n\n\t\ttitanoboaModel = new TitanoboaModel();\n\n\t\tModule module1 = titanoboaModel.getModules().get(0);\n\n\t\tmodule1.setBatteryLevelView((TextView) findViewById(R.id.m1_battery_level));\n\t\tmodule1.setMotorSpeedView((TextView) findViewById(R.id.m1_motor_speed));\n module1.setPressureSensorView((TextView) findViewById(R.id.m1_pressure));\n\n List<List<TextView>> module1VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module1Vertebra0Views = new ArrayList<TextView>(); \n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_setpoint_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_current_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_sensor_calibration_high));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_sensor_calibration_low));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_setpoint_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_current_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_sensor_calibration_high));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra0Views);\n\n List<TextView> module1Vertebra1Views = new ArrayList<TextView>();\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_setpoint_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_current_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_sensor_calibration_high));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_sensor_calibration_low));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_setpoint_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_current_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_sensor_calibration_high));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra1Views);\n\n List<TextView> module1Vertebra2Views = new ArrayList<TextView>();\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_setpoint_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_current_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_sensor_calibration_high));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_sensor_calibration_low));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_setpoint_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_current_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_sensor_calibration_high));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra2Views);\n\n List<TextView> module1Vertebra3Views = new ArrayList<TextView>();\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_setpoint_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_current_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_sensor_calibration_high));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_sensor_calibration_low));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_setpoint_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_current_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_sensor_calibration_high));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra3Views);\n\n List<TextView> module1Vertebra4Views = new ArrayList<TextView>();\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_setpoint_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_current_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_sensor_calibration_high));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_sensor_calibration_low));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_setpoint_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_current_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_sensor_calibration_high));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra4Views);\n\n module1.setVertebraeViews(module1VertebraeViews);\n\n Module module2 = titanoboaModel.getModules().get(1);\n\n module2.setBatteryLevelView((TextView) findViewById(R.id.m2_battery_level));\n module2.setMotorSpeedView((TextView) findViewById(R.id.m2_motor_speed));\n module2.setPressureSensorView((TextView) findViewById(R.id.m2_pressure));\n\n List<List<TextView>> module2VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module2Vertebra0Views = new ArrayList<TextView>();\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_setpoint_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_current_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_sensor_calibration_high));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_sensor_calibration_low));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_setpoint_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_current_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_sensor_calibration_high));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra0Views);\n\n List<TextView> module2Vertebra1Views = new ArrayList<TextView>();\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_setpoint_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_current_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_sensor_calibration_high));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_sensor_calibration_low));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_setpoint_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_current_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_sensor_calibration_high));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra1Views);\n\n List<TextView> module2Vertebra2Views = new ArrayList<TextView>();\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_setpoint_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_current_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_sensor_calibration_high));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_sensor_calibration_low));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_setpoint_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_current_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_sensor_calibration_high));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra2Views);\n\n List<TextView> module2Vertebra3Views = new ArrayList<TextView>();\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_setpoint_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_current_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_sensor_calibration_high));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_sensor_calibration_low));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_setpoint_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_current_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_sensor_calibration_high));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra3Views);\n\n List<TextView> module2Vertebra4Views = new ArrayList<TextView>();\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_setpoint_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_current_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_sensor_calibration_high));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_sensor_calibration_low));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_setpoint_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_current_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_sensor_calibration_high));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra4Views);\n\n module2.setVertebraeViews(module2VertebraeViews);\n\n Module module3 = titanoboaModel.getModules().get(2);\n\n module3.setBatteryLevelView((TextView) findViewById(R.id.m3_battery_level));\n module3.setMotorSpeedView((TextView) findViewById(R.id.m3_motor_speed));\n module3.setPressureSensorView((TextView) findViewById(R.id.m3_pressure));\n\n List<List<TextView>> module3VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module3Vertebra0Views = new ArrayList<TextView>();\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_setpoint_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_current_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_sensor_calibration_high));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_sensor_calibration_low));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_setpoint_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_current_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_sensor_calibration_high));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra0Views);\n\n List<TextView> module3Vertebra1Views = new ArrayList<TextView>();\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_setpoint_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_current_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_sensor_calibration_high));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_sensor_calibration_low));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_setpoint_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_current_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_sensor_calibration_high));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra1Views);\n\n List<TextView> module3Vertebra2Views = new ArrayList<TextView>();\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_setpoint_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_current_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_sensor_calibration_high));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_sensor_calibration_low));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_setpoint_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_current_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_sensor_calibration_high));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra2Views);\n\n List<TextView> module3Vertebra3Views = new ArrayList<TextView>();\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_setpoint_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_current_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_sensor_calibration_high));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_sensor_calibration_low));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_setpoint_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_current_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_sensor_calibration_high));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra3Views);\n\n List<TextView> module3Vertebra4Views = new ArrayList<TextView>();\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_setpoint_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_current_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_sensor_calibration_high));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_sensor_calibration_low));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_setpoint_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_current_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_sensor_calibration_high));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra4Views);\n\n module3.setVertebraeViews(module3VertebraeViews);\n\n Module module4 = titanoboaModel.getModules().get(3);\n\n module4.setBatteryLevelView((TextView) findViewById(R.id.m4_battery_level));\n module4.setMotorSpeedView((TextView) findViewById(R.id.m4_motor_speed));\n module4.setPressureSensorView((TextView) findViewById(R.id.m4_pressure));\n\n List<List<TextView>> module4VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module4Vertebra0Views = new ArrayList<TextView>();\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_setpoint_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_current_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_sensor_calibration_high));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_sensor_calibration_low));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_setpoint_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_current_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_sensor_calibration_high));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra0Views);\n\n List<TextView> module4Vertebra1Views = new ArrayList<TextView>();\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_setpoint_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_current_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_sensor_calibration_high));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_sensor_calibration_low));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_setpoint_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_current_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_sensor_calibration_high));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra1Views);\n\n List<TextView> module4Vertebra2Views = new ArrayList<TextView>();\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_setpoint_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_current_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_sensor_calibration_high));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_sensor_calibration_low));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_setpoint_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_current_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_sensor_calibration_high));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra2Views);\n\n List<TextView> module4Vertebra3Views = new ArrayList<TextView>();\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_setpoint_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_current_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_sensor_calibration_high));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_sensor_calibration_low));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_setpoint_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_current_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_sensor_calibration_high));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra3Views);\n\n List<TextView> module4Vertebra4Views = new ArrayList<TextView>();\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_setpoint_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_current_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_sensor_calibration_high));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_sensor_calibration_low));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_setpoint_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_current_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_sensor_calibration_high));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra4Views);\n\n module4.setVertebraeViews(module4VertebraeViews);\n\t}", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "@Override\r\n\tpublic void load() {\n\r\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "public void initModules() {\n\t\tthis.loadAggregationModules();\n\t\tthis.loadOutputModules();\n\t\tthis.gui.setModules(aggregationModules, outputModules);\n\t}", "private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "private void populateGlobalLibraryMap(@NotNull BuildController controller) {\n for (VariantOnlyModuleModel moduleModel : myModuleModelsById.values()) {\n File buildId = moduleModel.getBuildId();\n if (!myLibraryMapsByBuildId.containsKey(buildId)) {\n GlobalLibraryMap map = controller.findModel(moduleModel.getGradleProject(), GlobalLibraryMap.class);\n if (map != null) {\n myLibraryMapsByBuildId.put(buildId, map);\n }\n }\n }\n }", "private ModuleDef doLoadModule(TreeLogger logger, String moduleName)\n throws UnableToCompleteException {\n if (!ModuleDef.isValidModuleName(moduleName)) {\n logger.log(TreeLogger.ERROR, \"Invalid module name: '\" + moduleName + \"'\",\n null);\n throw new UnableToCompleteException();\n }\n\n ModuleDef moduleDef = new ModuleDef(moduleName);\n strategy.load(logger, moduleName, moduleDef);\n\n // Do any final setup.\n //\n moduleDef.normalize(logger);\n // XXX <Instantiations: ensure resources while loading module because this is the only time \n // when our project class-loader is set as the current thread class-loader\n moduleDef.getResourcesOracle();\n {\n \t// Add the \"physical\" module name: com.google.Module\n \taddCachedLoadedModule(moduleName, moduleDef);\n \t// Add the module's effective name: some.other.Module\n \taddCachedLoadedModule(moduleDef.getName(), moduleDef);\n }\n // XXX >Instantiations\n // Add a mapping from the module's effective name to its physical name\n moduleEffectiveNameToPhysicalName.put(moduleDef.getName(), moduleName);\n return moduleDef;\n }", "@Override\r\n\tpublic void load() {\n\t}", "private void putInCacheDirty(Module module) throws NoStorageForModuleException, StorageFailureException{\n\t\tputInCache(module);\n\t\tIModuleStorage storage = storages.get(module.getId());\n\t\tif (storage==null){\n\t\t\tLOGGER.warn(\"No storage for \" + module.getId() + \", \" + module + \" is not persistent!\");\n\t\t\tthrow new NoStorageForModuleException(module.getId());\n\t\t}\n\t\tstorage.saveModule(module);\n\t}", "public static void setupModules(){\n\t\tStart.setupModules();\n\t\t//add\n\t\t//e.g.: special custom scripts, workers, etc.\n\t}", "@SubscribeEvent\n public static void registerModels(ModelRegistryEvent event)\n {\n for (TreeFamily tree : ModTrees.tfcTrees)\n {\n ModelHelperTFC.regModel(tree.getDynamicBranch());//Register Branch itemBlock\n ModelHelperTFC.regModel(tree);//Register custom state mapper for branch\n }\n\n ModelLoader.setCustomStateMapper(ModBlocks.blockRootyDirt, new StateMap.Builder().ignore(BlockRooty.LIFE).build());\n\n ModTrees.tfcSpecies.values().stream().filter(s -> s.getSeed() != Seed.NULLSEED).forEach(s -> ModelHelperTFC.regModel(s.getSeed()));//Register Seed Item Models\n }", "public void refreshModules() {\n\t\tremoveAll();\n\t\tboxes.removeAll(boxes);\n\t\t\n//\t\tfor (ModulePanel panel : App.data.getModulePanels()) {\n//\t\t\t// Add the actual panel to the surface\n//\t\t\tadd(panel);\n//\t\t\t// Add the connectable panels to the list\n//\t\t\tboxes.addAll(panel.getConnectablePanels());\n//\t\t\tpanel.refresh();\n//\t\t}\n\t\t\n\t\tupdateUI();\n\t\trepaint();\n\t}", "public void addModule(Module module, String name) {\n module.parentMobile = this;\n modules.put(name, module);\n if(module instanceof LightSource)\n Scene.addLightSource((LightSource) module);\n }", "protected void augmentTemporaryModel(Project tmpModel) {\n }", "private void registerModule(Module module) {\n \t\tif (module.register()) {\n \t\t\t_availableModules.add(module);\n \t\t}\n \t}", "private void collectDependencies() throws Exception {\n backupModAnsSumFiles();\n CommandResults goGraphResult = goDriver.modGraph(true);\n String cachePath = getCachePath();\n String[] dependenciesGraph = goGraphResult.getRes().split(\"\\\\r?\\\\n\");\n for (String entry : dependenciesGraph) {\n String moduleToAdd = entry.split(\" \")[1];\n addModuleDependencies(moduleToAdd, cachePath);\n }\n restoreModAnsSumFiles();\n }", "@Override\n\tpublic void columnStateChanged(ColumnModel model) {\n\t\tvarManager.reloadIfRequired();\n\t}", "private void doBeforeUpdateModel(final PhaseEvent arg0) {\n\t}", "private void initModel() {\t\n \t\t// build default tree structure\n \t\tif(treeMode == MODE_DEPENDENCY) {\n \t\t\t// don't re-init anything\n \t\t\tif(rootDependency == null) {\n \t\t\t\trootDependency = new DefaultMutableTreeNode();\n \t\t\t\tdepNode = new DefaultMutableTreeNode(); // dependent objects\n \t\t\t\tindNode = new DefaultMutableTreeNode();\n \t\t\t\tauxiliaryNode = new DefaultMutableTreeNode();\n \t\t\t\t\n \t\t\t\t// independent objects \n \t\t\t\trootDependency.add(indNode);\n \t\t\t\trootDependency.add(depNode);\n \t\t\t}\n \t\t\t\n \t\t\t// set the root\n \t\t\tmodel.setRoot(rootDependency);\n \n \t\t\t// add auxiliary node if neccessary\n \t\t\tif(showAuxiliaryObjects) {\n \t\t\t\tif(!auxiliaryNode.isNodeChild(rootDependency)) {\n \t\t\t\t\tmodel.insertNodeInto(auxiliaryNode, rootDependency, rootDependency.getChildCount());\n \t\t\t\t}\n \t\t\t}\n \t\t} else {\n \t\t\t// don't re-init anything\n \t\t\tif(rootType == null) {\n \t\t\t\trootType = new DefaultMutableTreeNode();\n \t\t\t\ttypeNodesMap = new HashMap<String, DefaultMutableTreeNode>(5);\n \t\t\t}\n \t\t\t\n \t\t\t// always try to remove the auxiliary node\n \t\t\tif(showAuxiliaryObjects && auxiliaryNode != null) {\n \t\t\t\tmodel.removeNodeFromParent(auxiliaryNode);\n \t\t\t}\n \n \t\t\t// set the root\n \t\t\tmodel.setRoot(rootType);\n \t\t}\n \t}", "public Module module() {\n ////\n return module;\n }", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}" ]
[ "0.5709444", "0.56777656", "0.56719613", "0.56699586", "0.56473017", "0.5647178", "0.5619988", "0.560347", "0.55119276", "0.5506872", "0.55025154", "0.5468189", "0.54651195", "0.5433157", "0.5426994", "0.5426035", "0.5419013", "0.5392619", "0.5376026", "0.5372996", "0.5350437", "0.5346664", "0.5339408", "0.5290597", "0.5288357", "0.52523535", "0.5246093", "0.5245301", "0.52449536", "0.5240648", "0.5239957", "0.5224478", "0.5199409", "0.51974696", "0.51912344", "0.5183635", "0.5181841", "0.5181203", "0.51523453", "0.5146424", "0.51414245", "0.5139865", "0.5132353", "0.51294345", "0.5124331", "0.51239455", "0.5110209", "0.50990796", "0.5098741", "0.509304", "0.509208", "0.5089364", "0.508821", "0.50877994", "0.5081793", "0.50816715", "0.5078749", "0.50733036", "0.50587416", "0.5058085", "0.5057009", "0.50480276", "0.50450605", "0.5037365", "0.50297475", "0.5021334", "0.5020403", "0.50198084", "0.50148445", "0.50082594", "0.5005962", "0.49995735", "0.4997147", "0.49954686", "0.4988958", "0.4982827", "0.49800912", "0.49786443", "0.49761868", "0.4974709", "0.49699306", "0.49699306", "0.49620855", "0.4960586", "0.49598795", "0.49572277", "0.49571034", "0.49514225", "0.49510977", "0.49483526", "0.49410754", "0.4940538", "0.49343365", "0.49316955", "0.49304786", "0.49254653", "0.4925046", "0.4922726", "0.49222434", "0.4921305", "0.4921305" ]
0.0
-1
optimization to avoid reloading the complete model when a module is added.
private RemoteCallback<Void> getModuleDeletedSuccessCallback(final Project _project) { return new RemoteCallback<Void>() { @Override public void callback(Void response) { if (_project != null) { //A project was deleted if (model.isMultiModule()) { view.showBusyIndicator(Constants.INSTANCE.Loading()); repositoryStructureService.call(new RemoteCallback<RepositoryStructureModel>() { @Override public void callback(RepositoryStructureModel _model) { view.hideBusyIndicator(); if (_model != null) { model.setPOM(_model.getPOM()); model.setPOMMetaData(_model.getPOMMetaData()); model.setModules(_model.getModules()); model.getModulesProject().remove(_project.getProjectName()); removeFromModulesList(_project.getProjectName()); } } }, new HasBusyIndicatorDefaultErrorCallback(view)).load(projectContext.getActiveRepository(), projectContext.getActiveBranch(), false); } else { model.getOrphanProjects().remove(_project); model.getOrphanProjectsPOM().remove(_project.getIdentifier()); removeFromModulesList(_project.getProjectName()); } } } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SideOnly(Side.CLIENT)\n public static void initModels() {\n }", "void updateModel() {\n updateModel(false);\n }", "protected void prepareModel() {\n model();\n }", "private void cargarModelo() {\n dlmLibros = new DefaultListModel<>();\n listaLibros.setModel(dlmLibros);\n }", "public void cargarModelo() {\n\t}", "public void onModuleLoad() {\n\t\tButton saveButton = new Button(\"Save\", new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tsaveModel();\n\t\t\t}\n\t\t});\n\n\t\tmodelText.addKeyPressHandler(new KeyPressHandler() {\n\t\t\t@Override\n\t\t\tpublic void onKeyPress(KeyPressEvent event) {\n\t\t\t\tif (event.getCharCode() == 13) { // ENTER\n\t\t\t\t\tmodelText.setFocus(false);\n\t\t\t\t\tsaveModel();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tHTML modelListTitle = new HTML(\"<h2>Models List</h2>\");\n\t\t\n\t\tRootPanel.get(\"content\").add(modelText);\n\t\tRootPanel.get(\"content\").add(saveButton);\n\t\tRootPanel.get(\"content\").add(modelListTitle);\n\t\tRootPanel.get(\"content\").add(modelList);\n\n\t\tupdateModelList();\n\t}", "@Override\n\tpublic void saveModule() throws Exception {\n\n\t}", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "private void initializeModel() {\n\t\t\n\t}", "public interface Model {\n /**\n * {@code Predicate} that always evaluate to true\n */\n Predicate<Module> PREDICATE_SHOW_ALL_MODULES = unused -> true;\n\n /**\n * Replaces user prefs data with the data in {@code userPrefs}.\n */\n void setUserPrefs(ReadOnlyUserPrefs userPrefs);\n\n /**\n * Returns the user prefs.\n */\n ReadOnlyUserPrefs getUserPrefs();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Sets the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n\n /**\n * Returns the user prefs' mod book file path.\n */\n Path getModBookFilePath();\n\n /**\n * Sets the user prefs' mod book file path.\n */\n void setModBookFilePath(Path modBookFilePath);\n\n /**\n * Replaces mod book data with the data in {@code modBook}.\n */\n void setModBook(ReadOnlyModBook modBook);\n\n /**\n * Returns the ModBook\n */\n ReadOnlyModBook getModBook();\n\n /**\n * Returns true if a module with the same identity as {@code module} exists in the mod book.\n */\n boolean hasModule(Module module);\n\n /**\n * Deletes the given module.\n * The module must exist in the mod book.\n */\n void deleteModule(Module module);\n\n /**\n * Adds the given module.\n * {@code module} must not already exist in the mod book.\n */\n void addModule(Module module);\n\n /**\n * Gets the requested module based on given modCode.\n *\n * @param modCode Used to find module.\n * @return Module.\n * @throws CommandException If module does not exist.\n */\n Module getModule(ModuleCode modCode) throws CommandException;\n\n /**\n * Deletes the Exam from the specified module's lessons list.\n */\n void deleteExam(Module module, Exam target);\n\n /**\n * Deletes the Lesson from the specified module's lessons list.\n */\n void deleteLesson(Module module, Lesson target);\n\n /**\n * Checks if a module has the lesson\n */\n boolean moduleHasLesson(Module module, Lesson lesson);\n\n /**\n * Adds a lesson to a module.\n */\n void addLessonToModule(Module module, Lesson lesson);\n\n /**\n * Checks if a module has the lesson\n */\n boolean moduleHasExam(Module module, Exam exam);\n\n /**\n * Adds a lesson to a module.\n */\n void addExamToModule(Module module, Exam exam);\n\n /**\n * Replaces the {@code target} Exam with {@code newExam} from the specified module's exams list.\n */\n void setExam(Module module, Exam target, Exam newExam);\n\n /**\n * Replaces the {@code target} Exam with {@code newLesson} from the specified module's lessons list.\n */\n void setLesson(Module module, Lesson target, Lesson newLesson);\n\n /**\n * Replaces the given module {@code target} with {@code editedModule}.\n * {@code target} must exist in the mod book.\n * The module identity of {@code editedModule} must not be the same as another existing module in the mod book.\n */\n void setModule(Module target, Module editedModule);\n\n /**\n * Returns an unmodifiable view of the filtered module list\n */\n ObservableList<Module> getFilteredModuleList();\n\n /**\n * Updates the filter of the filtered module list to filter by the given {@code predicate}.\n *\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredModuleList(Predicate<Module> predicate);\n}", "@Override\n public void onModuleLoad() {\n }", "@Override\n\tpublic void load(ModelInfo info) {\n\t}", "public void registerModification (int type) {\n final boolean forceUpdate = true;\r\n\r\n ConfigFile topFileConfig = (ConfigFile)getConfigs().get(ConfigGroup.TOP_MODEL_FILE);\r\n // In case of spurious events ignore them (possible?)\r\n if (!topFileConfig.isUserSpecified())\r\n return;\r\n\r\n // Update the run directory whenever the top file is updated\r\n ConfigFile runDirConfig = (ConfigFile)getConfigs().get(ConfigGroup.RUN_DIR);\r\n if (forceUpdate/* || !runDirConfig.isUserSpecified()*/)\r\n runDirConfig.setValue(topFileConfig.getValueFile().getParent(), true);\r\n runDir.updateValue();\r\n\r\n // Update the top level model name\r\n ConfigString topNameConfig = (ConfigString)getConfigs().get(ConfigGroup.TOP_MODEL_NAME);\r\n if (forceUpdate/* || !topNameConfig.isUserSpecified()*/)\r\n {\r\n String name = topFileConfig.getValueFile().getName();\r\n name = name.indexOf('.') > 0 ? name.substring(0, name.lastIndexOf('.')):name;\r\n topNameConfig.setValue(name, true);\r\n }\r\n topName.updateValue();\r\n\r\n // Ensure that the model path contains the run directory\r\n ConfigList modelPathConfig = (ConfigList)getConfigs().get(ConfigGroup.MODEL_PATH);\r\n if (!modelPathConfig.getValue().contains(runDirConfig.getValue()))\r\n {\r\n // The contract for setValue on collections is to append\r\n modelPathConfig.addValue(Collections.singletonList(runDirConfig.getValue()), modelPathConfig.isUserSpecified());\r\n }\r\n modelPath.updateValue();\r\n\r\n // Update the model parameters\r\n ConfigMap paramsConfig = (ConfigMap)getConfigs().get(ConfigGroup.TOP_MODEL_PARAMS);\r\n if (forceUpdate/* || !paramsConfig.isUserSpecified()*/)\r\n {\r\n String[] modelPathArr = (String[])modelPathConfig.getValue().toArray(new String[0]);\r\n try {\r\n List<TopModelParamParse.ModelParameter> params = TopModelParamParse.parseModel(topNameConfig.getValue(), modelPathArr);\r\n Map map = new HashMap();\r\n for (ModelParameter mp : params)\r\n map.put(mp.getName(), mp.getValue());\r\n paramsConfig.setValue(map, false);\r\n } catch (TopModelParamParse.ModelAnalysisException exc) {\r\n Logging.dbg().severe(\"Error loading top model \" + exc);\r\n }\r\n }\r\n modelParams.updateValue();\r\n }", "void onModuleAdded(final ModularConfigurationModule<T> module) {\n for (ModularConfigurationEntry<T> newEntry : module.getAll()) {\n ModularConfigurationEntry<T> existing = entries.getIfExists(newEntry.getName());\n if (existing == null) {\n existing = removedEntries.remove(newEntry.getName());\n }\n\n // Directly store the module's entry. No change notification as there's\n // no listeners registered yet.\n if (existing == null) {\n this.entries.set(newEntry.getName(), newEntry);\n continue;\n }\n\n // Check whether the existing entry's module overrides the module that\n // we are adding to this store. If so, the entry isn't loaded.\n // Instead it's added to the \"shadow modules\" - a list modules are taken\n // from when the entry is removed from higher-priority modules.\n if (!existing.isRemoved() && !isModuleOverriding(module, existing.getModule())) {\n int index = 0;\n while (index < existing.shadowModules.size() &&\n isModuleOverriding(module, existing.shadowModules.get(index)))\n {\n index++;\n }\n existing.shadowModules.add(index, module);\n continue;\n }\n\n // Swap the entry for the existing one\n existing.loadFromModule(module);\n }\n }", "protected void initModules()\n {\n\n }", "private void updateTotal() {\r\n\t\t// We get the size of the model containing all the modules in the list.\r\n\t\tlabelTotal.setText(\"Total Modules: \" + String.valueOf(helperInstMod.model.size()));\r\n\t}", "protected void updateDynamic()\n {\n // Nothing at this level.\n }", "public HeatingModuleModel(){\n\t}", "public void buildModel() {\n }", "private MainModel() {\n jsonManager = new JsonManager(this);\n }", "private void loadModules() {\n\n ModuleTiers moduleTiers = new ModuleTiers();\n moduleTiers.setSource(.5);\n moduleTiers.setNumTiers(5);\n String tiersKey = \"module tiers\";\n addDemoPanelWithModule(moduleTiers, tiersKey, null);\n demoPanels.get(tiersKey).removeGUI();\n\n ModuleCellular moduleCellular = new ModuleCellular();\n moduleCellular.setCoefficients(9, .5, 3, 7);\n String cellularKey = \"module cellular\";\n addDemoPanelWithModule(moduleCellular, cellularKey, null);\n demoPanels.get(cellularKey).removeGUI();\n\n /*\n * ground_gradient\n */\n // ground_gradient\n ModuleGradient groundGradient = new ModuleGradient();\n groundGradient.setGradient(0, 0, 0, 1, 0, 0);\n String gradientKey = \"Ground Gradient\";\n addDemoPanelWithModule(groundGradient, gradientKey, null);\n demoPanels.get(gradientKey).removeGUI();\n\n String mountainsKey = \"mountains before gradient\";\n TerrainNoiseSettings mountainSettings = getDemoPanelSettings(mountainsKey);\n if (mountainSettings == null) {\n mountainSettings = TerrainNoiseSettings.MountainTerrainNoiseSettings(seed, false);\n }\n Module mountainTerrainNoGradient = mountainSettings.makeTerrainModule(null);\n addDemoPanelWithModule(mountainTerrainNoGradient, mountainsKey, mountainSettings);\n\n String mountainsWithGradientKey = \"translate gradient domain with mountains\";\n TerrainNoiseSettings gradMountainSettings = getDemoPanelSettings(mountainsWithGradientKey);\n if (gradMountainSettings == null) {\n gradMountainSettings = TerrainNoiseSettings.MountainTerrainNoiseSettings(seed, false);\n }\n ModuleTranslateDomain mountainTerrain = new ModuleTranslateDomain();\n mountainTerrain.setAxisYSource(mountainTerrainNoGradient);\n mountainTerrain.setSource(groundGradient);\n\n addDemoPanelWithModule(mountainTerrain, mountainsWithGradientKey, gradMountainSettings);\n demoPanels.get(mountainsWithGradientKey).removeGUI();\n\n /*\n String highlandKey = \"highlands\";\n TerrainNoiseSettings highlandSettings = getDemoPanelSettings(highlandKey);\n if (highlandSettings == null) {\n highlandSettings = TerrainNoiseSettings.HighLandTerrainNoiseSettings(seed);\n }\n Module highlandTerrain = TerrainDataProvider.MakeTerrainNoise(groundGradient, highlandSettings );\n addDemoPanelWithModule(highlandTerrain, highlandKey, highlandSettings);\n */\n /*\n * select air or solid with mountains\n */\n String terrainSelectKey = \"terrain Select\";\n TerrainNoiseSettings terrSelectSettings = getDemoPanelSettings(terrainSelectKey);\n if (terrSelectSettings == null) {\n terrSelectSettings = TerrainNoiseSettings.TerrainSettingsWithZeroOneModuleSelect(seed, mountainTerrain);\n } else {\n terrSelectSettings.moduleSelectSettings.controlSource = mountainTerrain;\n }\n Module terrSelectModule = terrSelectSettings.moduleSelectSettings.makeSelectModule();\n addDemoPanelWithModule(terrSelectModule, terrainSelectKey, terrSelectSettings);\n\n /*\n * noise to determine which kind of solid block\n */\n String typeSelectSettingKey = \"terrain type select\";\n TerrainNoiseSettings typeSelectSettings = getDemoPanelSettings(typeSelectSettingKey);\n if (typeSelectSettings == null) {\n typeSelectSettings = TerrainNoiseSettings.TerrainTypeSelectModuleNoiseSettings(seed, false);\n }\n Module selectTypeTerr = typeSelectSettings.makeTerrainModule(null);\n //addDemoPanelWithModule(selectTypeTerr, typeSelectSettingKey, typeSelectSettings);\n\n String dirtOrStoneSelectSettingsKey = \"dirt or stone\";\n TerrainNoiseSettings dirtOrStoneSelectSettings = getDemoPanelSettings(dirtOrStoneSelectSettingsKey);\n if (dirtOrStoneSelectSettings == null) {\n dirtOrStoneSelectSettings = TerrainNoiseSettings.BlockTypeSelectModuleSettings(seed, selectTypeTerr, BlockType.DIRT, BlockType.STONE);\n } else {\n dirtOrStoneSelectSettings.moduleSelectSettings.controlSource = selectTypeTerr;\n }\n Module dirtOrStoneModule = dirtOrStoneSelectSettings.moduleSelectSettings.makeSelectModule();\n //addDemoPanelWithModule(dirtOrStoneModule, dirtOrStoneSelectSettingsKey, dirtOrStoneSelectSettings);\n\n /*\n * combine terrain select and block type select\n */\n String combineTerrainAndBlockTypeKey = \"Terrain And BlockType\";\n ModuleCombiner terrAndBlockTypeMod = new ModuleCombiner(ModuleCombiner.CombinerType.MULT);\n terrAndBlockTypeMod.setSource(0, terrSelectModule);\n terrAndBlockTypeMod.setSource(1, dirtOrStoneModule);\n TerrainNoiseSettings combineSettings = new TerrainNoiseSettings(seed); //defaults\n combineSettings.renderWithBlockColors = true;\n //addDemoPanelWithModule(terrAndBlockTypeMod, combineTerrainAndBlockTypeKey, combineSettings);\n //demoPanels.get(combineTerrainAndBlockTypeKey).removeGUI();\n\n\n\n }", "public boolean hasModel() {\n return false;\r\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void refreshModules()\n\t{\n\t\t// Scan each directory in turn to find JAR files\n\t\t// Subdirectories are not scanned\n\t\tList<File> jarFiles = new ArrayList<>();\n\n\t\tfor (File dir : moduleDirectories) {\n\t\t\tfor (File jarFile : dir.listFiles(jarFileFilter)) {\n\t\t\t\tjarFiles.add(jarFile);\n\t\t\t}\n\t\t}\n\n\t\t// Create a new class loader to ensure there are no class name clashes.\n\t\tloader = new GPIGClassLoader(jarFiles);\n\t\tfor (String className : loader.moduleVersions.keySet()) {\n\t\t\ttry {\n\t\t\t\t// Update the record of each class\n\t\t\t\tClass<? extends Interface> clz = (Class<? extends Interface>) loader.loadClass(className);\n\t\t\t\tClassRecord rec = null;\n\t\t\t\tfor (ClassRecord searchRec : modules.values()) {\n\t\t\t\t\tif (searchRec.clz.getName().equals(className)) {\n\t\t\t\t\t\trec = searchRec;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (rec != null) {\n\t\t\t\t\t// This is not an upgrade, ignore it\n\t\t\t\t\tif (rec.summary.moduleVersion >= loader.moduleVersions.get(className)) continue;\n\n\t\t\t\t\t// Otherwise update the version number stored\n\t\t\t\t\trec.summary.moduleVersion = loader.moduleVersions.get(className);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trec = new ClassRecord();\n\t\t\t\t\trec.summary = new ModuleSummary(IDGenerator.getNextID(), loader.moduleVersions.get(className),\n\t\t\t\t\t\t\tclassName);\n\t\t\t\t\tmodules.put(rec.summary.moduleID, rec);\n\t\t\t\t}\n\t\t\t\trec.clz = clz;\n\n\t\t\t\t// Update references to existing objects\n\t\t\t\tfor (StrongReference<Interface> ref : instances.values()) {\n\t\t\t\t\tif (ref.get().getClass().getName().equals(className)) {\n\t\t\t\t\t\tConstructor<? extends Interface> ctor = clz.getConstructor(Object.class);\n\t\t\t\t\t\tref.object = ctor.newInstance(ref.get());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (NoSuchMethodException e) {\n\t\t\t\t// Thrown when trying to find a suitable constructor\n\t\t\t\tSystem.err.println(\"Discovered class which has no available upgrade constructor: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t\tcatch (InstantiationException | IllegalAccessException | IllegalArgumentException\n\t\t\t\t\t| InvocationTargetException e) {\n\t\t\t\t// All thrown by the instantiate call\n\t\t\t\tSystem.err.println(\"Unable to create new instance of class: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\t// Should never occur but required to stop the compiler moaning\n\t\t\t\tSystem.err.println(\"Discovered class which has no available upgrade constructor: \" + className + \"\\n\\t\"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public void testAddModule() {\n\t System.out.println(\"addModule\");\n\t Module module = module1;\n\t Student instance = student1;\n\t instance.addModule(module);\n\t }", "public void reInitializeModels () {\n this.model = new ModelManager(getTypicalAddressBook(), new UserPrefs());\n this.expectedModel = new ModelManager(model.getAddressBook(), new UserPrefs());\n }", "@RequestMapping(value = { \"/newModule\" }, method = RequestMethod.GET)\n\t\tpublic String newModule(ModelMap model) {\n\t\t\tModule module = new Module();\n\t\t\tmodel.addAttribute(\"module\", module);\n\t\t\tmodel.addAttribute(\"edit\", false);\n\t\t\t\n\t\t\treturn \"addNewModule\";\n\t\t}", "public void onModuleLoad() {\n\n\t\tJsonpRequestBuilder requestBuilder = new JsonpRequestBuilder();\n\t\t// requestBuilder.setTimeout(10000);\n//\t\trequestBuilder.requestObject(SERVER_URL, new Jazz10RequestCallback());\n\n\t}", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "@Override\n\tpublic void prepareModule() throws Exception {\n\n\t}", "public void preInit() {\n \tfor(int i=1;i<ItemAmmo.AMMO_TYPES.length;i++){\n \t\tif(i!=10 && i !=12){\n \t\tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmo, i, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_\"+ItemAmmo.AMMO_TYPES[i], \"inventory\"));\n \t\t}\n \t}\n \t\n \t//ModelLoader.registerItemVariants(TF2weapons.itemTF2, new ModelResourceLocation(TF2weapons.MOD_ID+\":copper_ingot\", \"inventory\"),new ModelResourceLocation(TF2weapons.MOD_ID+\":lead_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmoFire, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_fire\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemChocolate, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":chocolate\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemHorn, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":horn\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemMantreads, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":mantreads\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemScoutBoots, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":scout_shoes\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemAmmoMedigun, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":ammo_medigun\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 0, new ModelResourceLocation(TF2weapons.MOD_ID+\":copper_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 1, new ModelResourceLocation(TF2weapons.MOD_ID+\":lead_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 2, new ModelResourceLocation(TF2weapons.MOD_ID+\":australium_ingot\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 3, new ModelResourceLocation(TF2weapons.MOD_ID+\":scrap_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 4, new ModelResourceLocation(TF2weapons.MOD_ID+\":reclaimed_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 5, new ModelResourceLocation(TF2weapons.MOD_ID+\":refined_metal\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 6, new ModelResourceLocation(TF2weapons.MOD_ID+\":australium_nugget\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 7, new ModelResourceLocation(TF2weapons.MOD_ID+\":key\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 8, new ModelResourceLocation(TF2weapons.MOD_ID+\":crate\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 9, new ModelResourceLocation(TF2weapons.MOD_ID+\":random_weapon\", \"inventory\"));\n \tModelLoader.setCustomModelResourceLocation(TF2weapons.itemTF2, 10, new ModelResourceLocation(TF2weapons.MOD_ID+\":random_hat\", \"inventory\"));\n \t\n \tRenderingRegistry.registerEntityRenderingHandler(EntityTF2Character.class, new IRenderFactory<EntityTF2Character>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityTF2Character> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderTF2Character(manager);\n\t\t\t}\n \t});\n \t/*RenderingRegistry.registerEntityRenderingHandler(EntityProjectileBase.class, new IRenderFactory<Entity>(){\n\t\t\t@Override\n\t\t\tpublic Render<Entity> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderEntity(manager);\n\t\t\t}\n \t});*/\n \tRenderingRegistry.registerEntityRenderingHandler(EntityRocket.class, new IRenderFactory<EntityRocket>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityRocket> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderRocket(manager);\n\t\t\t}\n \t});\n \t/*RenderingRegistry.registerEntityRenderingHandler(EntityFlame.class, new IRenderFactory<EntityFlame>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityFlame> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn (Render<EntityFlame>) new RenderEntity();\n\t\t\t}\n \t});*/\n \tRenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, new IRenderFactory<EntityGrenade>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityGrenade> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderGrenade(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityStickybomb.class, new IRenderFactory<EntityStickybomb>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityStickybomb> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderStickybomb(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySyringe.class, new IRenderFactory<EntitySyringe>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySyringe> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderSyringe(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityBall.class, new IRenderFactory<EntityBall>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityBall> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderBall(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityFlare.class, new IRenderFactory<EntityFlare>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityFlare> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderFlare(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityJar.class, new IRenderFactory<EntityJar>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityJar> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderJar(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySentry.class, new IRenderFactory<EntitySentry>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySentry> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderSentry(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityDispenser.class, new IRenderFactory<EntityDispenser>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityDispenser> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderDispenser(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityTeleporter.class, new IRenderFactory<EntityTeleporter>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityTeleporter> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderTeleporter(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntityStatue.class, new IRenderFactory<EntityStatue>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntityStatue> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderStatue(manager);\n\t\t\t}\n \t});\n \tRenderingRegistry.registerEntityRenderingHandler(EntitySaxtonHale.class, new IRenderFactory<EntitySaxtonHale>(){\n\t\t\t@Override\n\t\t\tpublic Render<EntitySaxtonHale> createRenderFor(RenderManager manager) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new RenderBiped<EntitySaxtonHale>(manager, new ModelBiped(), 0.5F, 1.0F){\n\t\t\t\t\tprivate final ResourceLocation TEXTURE=new ResourceLocation(TF2weapons.MOD_ID,\"textures/entity/tf2/SaxtonHale.png\");\n\t\t\t\t\tprotected ResourceLocation getEntityTexture(EntitySaxtonHale entity)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn TEXTURE;\n\t\t\t\t }\n\t\t\t\t};\n\t\t\t}\n \t});\n\t}", "public void loadModules() throws IOException, ClassNotFoundException {\n \tString filename = \"test.modules\";\n \tFile in = new File(System.getProperty(\"user.home\") + \"\\\\test\\\\\" + filename);\n\t\t\n FileInputStream fileIn = new FileInputStream(in);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n Object o = objectIn.readObject();\n if (o instanceof CopyOnWriteArrayList<?>) {\n \tmodules = (CopyOnWriteArrayList<ModulePanel>) o;\n \tremoveAll();\n \tfor (ModulePanel modulePanel : modules) {\n \t\tadd(modulePanel);\n\t\t\t}\n }\n objectIn.close();\n fileIn.close();\t\n \n\t\tupdateUI();\n\t\trepaint();\n\t}", "public void addModule(Module m) throws Exception {\n\t\tModule returned = _modules.put(m.getName(), m);\n\t\tif (returned != null) \n\t\t\tthrow new Exception(\"Module with this name already exists. Module: \" + m.getName() + \" in \" + this._name);\n//\t\t\tSystem.out.println(\"ERROR: overwrote a module with the same name: \" + m.getName());\n\t\tSet<Vertex> vSet = m.getVertexMap();\n\t\tfor (Vertex v : vSet)\n\t\t\tif (_vertices.contains(v))\n\t\t\t\tthis._hasOverlap = true;\n\t\tthis._vertices.addAll(vSet);\n\t}", "public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }", "@Override\r\n \tpublic void onModelConfigFromCache(OpenGLModelConfiguration model) {\n \t\tboolean hasNewer = getCurrentTarget().getLatestModelVersion() > \r\n \t\t\t\t\t\t model.getOpenGLModel().getModelVersion();\r\n \t\tthis.fireOnModelDataEvent(model, hasNewer);\r\n \t}", "private void loadOutputModules() {\n\t\tthis.outputModules = new ModuleLoader<IOutput>(\"/Output_Modules\", IOutput.class).loadClasses();\n\t}", "private void loadAggregationModules() {\n\t\tthis.aggregationModules = new ModuleLoader<IAggregate>(\"/Aggregation_Modules\", IAggregate.class).loadClasses();\n\t}", "@Transactional(readOnly=true)\r\n\tprotected void addModuleInstructionIfNecessary(ModuleTransferObject currModule, \r\n\t\t\tList<ModuleTransferObject> existingModuledtos) {\r\n\t\t\r\n\t\tfor (ModuleTransferObject moduledto : existingModuledtos) {\r\n\t\t\t//These are the previously marked as \"matched\" in isExistingModule\r\n\t\t\tif (MARK_TO_KEEP_IN_UPDATE == moduledto.getDisplayOrder())\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\tif (currModule.getLongName().equalsIgnoreCase(moduledto.getLongName())) {\r\n\t\t\t\t//get the newly added module's public id and version\r\n\t\t\t\tModuleTransferObject mod = moduleV2Dao.getModulePublicIdVersionBySeqid(currModule.getIdseq());\r\n\t\t\t\t\r\n\t\t\t\tString instr = \"New Module with public id \" + mod.getPublicId() + \" and version \" + mod.getVersion() + \r\n\t\t\t\t\t\t\" was created by Form Loader because the XML module public id value of \" +\r\n\t\t\t\t\t\tcurrModule.getPublicId() + \" and version \" + currModule.getVersion() + \" did not match an existing module. \" +\r\n\t\t\t\t\t\t\"Please review modules and delete any unnecessary module, this module may have been intended to \" +\r\n\t\t\t\t\t\t\"replace an existing module.\";\r\n\t\t\t\t\r\n\t\t\t\tInstructionTransferObject instdto = createInstructionDto(currModule, instr);\r\n\t\t\t\tmoduleInstructionV2Dao.createInstruction(instdto, currModule.getIdseq());\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t}\r\n\t}", "public XmlSerializableModuleList() {\n modules = new ArrayList<>();\n }", "private ConfigurationModel() {\r\n\tloadConfiguration();\r\n }", "private void onModuleUpdate() {\n if (mTime == -1L) {\n mTime = System.currentTimeMillis();\n }\n\n //!\n //! Render until the display is not active.\n //!\n onModuleRender(System.currentTimeMillis());\n\n //!\n //! Request to render again.\n //!\n onAnimationRequest(this::onModuleUpdate);\n }", "void addToModel(Model model, int numGenerated) throws Exception {\n addToModel(model, generateEventList(numGenerated));\n }", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "private void updateChildren() {\n modulesTableModel.clear();\n repositoriesTableModel.clear();\n if (modules != null) {\n repositoriesTableModel.set(modules.xgetRepositoryArray());\n modulesTableModel.set(modules.getModuleArray());\n } else {\n repositoriesTableModel.fireTableDataChanged();\n modulesTableModel.fireTableDataChanged();\n }\n }", "public void addt1Module(Module m) {\n t1UnSel.getItems().remove(m);\n t1Sel.getItems().add(m);\n }", "private synchronized void refreshProductModel(ProductModel pm)\r\n {\r\n int idx = products_listmodel.indexOf(pm);\r\n if (idx >= 0) {\r\n DocmaSession docmaSess = mainWin.getDocmaSession();\r\n // Create new model object to force GUI update\r\n ProductModel pm_updated = new ProductModel(docmaSess, pm.getId(), false);\r\n products_listmodel.set(idx, pm_updated);\r\n boolean pending = pm_updated.isLoadPending();\r\n if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) {\r\n setListRefresh(true);\r\n if (pending) startDbConnectThread();\r\n }\r\n } else {\r\n Log.warning(\"ProductModel not contained in list: \" + pm.getId());\r\n }\r\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "private void addModuleDependencies(JavaType entity,\n ClassOrInterfaceTypeDetails relatedRepository, JavaType relatedService,\n ClassOrInterfaceTypeDetails controllerToUpdateOrCreate) {\n if (projectOperations.isMultimoduleProject()) {\n\n // Add service module dependency\n projectOperations.addModuleDependency(controllerToUpdateOrCreate.getType().getModule(),\n relatedService.getModule());\n\n // Add repository module dependency\n projectOperations.addModuleDependency(controllerToUpdateOrCreate.getType().getModule(),\n relatedRepository.getType().getModule());\n\n // Add model module dependency\n projectOperations.addModuleDependency(controllerToUpdateOrCreate.getType().getModule(),\n entity.getModule());\n }\n }", "@Override\n\tpublic boolean isLoad() {\n\t\treturn false;\n\t}", "private synchronized void updateModel(IFile modelFile) {\n MoleculeExt format = MoleculeExt.valueOf( modelFile );\n if ( format.isSupported()) {\n\n IMoleculesFromFile model;\n if (modelFile.exists()) {\n\n try {\n switch(format) {\n case SDF: model = new MoleculesFromSDF(modelFile);\n break;\n case SMI: model = new MoleculesFromSMI(modelFile);\n break;\n default: return;\n }\n\n }\n catch (Exception e) {\n return;\n }\n cachedModelMap.put(modelFile, model);\n }\n else {\n cachedModelMap.remove(modelFile);\n }\n }\n }", "protected void refreshFromRepository() {\n\t\t\r\n\t\tObject[] elements = new Object[]{};\r\n\t\tmodelObject.eContainer();\r\n\t\t\r\n\t\tif (fFilteredList != null) {\r\n\t\t\t\r\n\t\t\tfFilteredList.setAllowDuplicates(showDuplicates);\r\n\t\t\tfFilteredList.setElements(elements);\r\n\t\t\tfFilteredList.setEnabled(true);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (fTreeViewer != null) {\r\n\t\t\tfTreeViewer.setInput(null);\r\n\t\t}\t\t\r\n\t}", "private void actualizeazaModel() {\n model.clear();\n listaContacte.forEach((o) -> {\n model.addElement(o);\n });\n }", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "@Override\n protected void initModel() {\n bannerModel = new BannerModel();\n// homeSousuoModel = new Home\n\n// bannerModel = new BannerModel();\n// homeSousuoModel = new HomeSousuoModel();\n// izxListModelBack = new\n }", "public boolean buildModel() {\n \treturn buildModel(false, false);\n }", "private ModelCheckpoints loadFromTransientModule(SModelName originalModelName) {\n // XXX getCheckpointModelsFor iterates models of the module, hence needs a model read\n // OTOH, just a wrap with model read doesn't make sense here (models could get disposed right after the call),\n // so likely we shall populate myCheckpoints in constructor/dedicated method. Still, what about checkpoint model disposed *after*\n // I've collected all the relevant state for this class?\n // Not sure whether read shall be local to this class or external on constructor/initialization method\n // It seems to be an implementation detail that we traverse model and use its nodes to persist mapping label information (that's what we need RA for).\n return new ModelAccessHelper(myTransientModelProvider.getRepository()).runReadAction(() -> {\n String nameNoStereotype = originalModelName.getLongName();\n ArrayList<CheckpointState> cpModels = new ArrayList<>(4);\n for (SModel m : myModule.getModels()) {\n if (!nameNoStereotype.equals(m.getName().getLongName()) || false == m instanceof ModelWithAttributes) {\n continue;\n }\n // we keep CP (both origin and actual) as model properties to facilitate scenario when CP models are not persisted.\n // Otherwise, we could have use values written into CheckpointVault's registry file. As long as there's no registry for workspace models,\n // we have to use this dubious mechanism (not necessarily bad, just a bit confusing as we duplicate actual CP value as model attribute and\n // in the CheckpointVault's registry).\n CheckpointIdentity modelCheckpoint = readIdentityAttributes((ModelWithAttributes) m, GENERATION_PLAN, CHECKPOINT);\n if (modelCheckpoint == null) {\n continue;\n }\n CheckpointIdentity prevCheckpoint = readIdentityAttributes((ModelWithAttributes) m, PREV_GENERATION_PLAN, PREV_CHECKPOINT);\n cpModels.add(new CheckpointState(m, prevCheckpoint, modelCheckpoint));\n }\n return cpModels.isEmpty() ? null : new ModelCheckpoints(cpModels);\n });\n }", "@Override\n\tprotected void lazyLoad() {\n\t}", "public void onModuleLoad() {\n\t\tMaps.loadMapsApi(\"notsupplied\", \"2\", false, new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tbuildUi();\n\t\t\t}\n\t\t});\n\t}", "@ModelAttribute\r\n\tpublic void loadDataEveryTime(Model model)\r\n\t{\r\n\t\tmodel.addAttribute(\"brands\",mobservice.getAllBrandNames());\r\n\t\tmodel.addAttribute(\"ram\",mobservice.getRamSize());\r\n\t\tmodel.addAttribute(\"rating\",mobservice.getRating());\r\n\t}", "synchronized List<Module> getModules()\n {\n return m_modules;\n }", "public void loadModel(){\n remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();\n FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)\n .addOnCompleteListener(new OnCompleteListener<File>() {\n @Override\n public void onComplete(@NonNull Task<File> task) {\n File modelFile = task.getResult();\n if (modelFile != null) {\n interpreter = new Interpreter(modelFile);\n // Toast.makeText(MainActivity2.this, \"Hosted Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n runningInterpreter();\n }\n else{\n try {\n InputStream inputStream = getAssets().open(dis+\".tflite\");\n byte[] model = new byte[inputStream.available()];\n inputStream.read(model);\n ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)\n .order(ByteOrder.nativeOrder());\n buffer.put(model);\n //Toast.makeText(MainActivity2.this, dis+\"Bundled Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n interpreter = new Interpreter(buffer);\n runningInterpreter();\n } catch (IOException e) {\n // File not found?\n Toast.makeText(MainActivity2.this, \"No hosted or bundled model\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n }", "public void addModule(Module m) {\n feed.getModules().add(m);\n }", "protected List<Object> getModules() {\n return new ArrayList<>();\n }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "private UnloadTestModelLoader() {\n registerProject(\"a\");\n registerProject(\"e\");\n registerProject(\"b\", \"e\");\n registerProject(\"c\");\n registerProject(\"d\");\n registerProject(\"f\");\n registerProject(\"p1\", \"a\", \"b\");\n registerProject(\"p2\", \"b\", \"c\");\n registerProject(\"p3\", \"b\", \"d\");\n registerProject(\"p4\", \"d\");\n }", "public void onModuleLoad() {\n\t\tbentoService = (BentoServiceAsync)GWT.create(BentoService.class);\n\t\tRegistry.register(\"bentoService\", bentoService);\n\n\t\tHistory.addHistoryListener(this);\n\t\tHistory.fireCurrentHistoryState();\n\t}", "public static void whenRequiredByAssembler(AssemblerGroup ag) {\n loaded = true;\n }", "private void loading(){\n mDbHelper = new DbHelper(getActivity());\n if(!(mDbHelper.getPlanCount() == 0)){\n plan_list.addAll(mDbHelper.getAllPlan());\n }\n refreshList();\n }", "public void remDefinedInModule(){\n ((MvwDefinitionDMO) core).remDefinedInModule();\n }", "@Override\n public void startup(Model model) {\n model.updateModelRep(stateID);\n }", "Build_Model() {\n\n }", "private void setexistingmodules() {\r\n\t\tmodulecombo.getItems().clear();\r\n\t\tmodulecombo.getItems().add(\"QA Modules\");\r\n\t\tmodulecombo.getSelectionModel().select(0);\r\n\t\tmoduleslist = new DAO().getModuleDetails(\"modules\", \"all\", Loggedinuserdetails.defaultproject);\r\n\t\tif (moduleslist != null && moduleslist.size() > 0) {\r\n\t\t\tfor (int i = 0; i < moduleslist.size(); i++) {\r\n\t\t\t\tmodulecombo.getItems().add(moduleslist.get(i).getModulename());\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodulecombo.setStyle(\"-fx-text-fill: black; -fx-font-weight:bold;\");\r\n\t}", "private static String newModel(Request req) {\n\n if( req.params(\"Version\").equals(\"Updated\") ) {\n\n // make new model, make gson object, convert model to json using gson\n BattleshipModelUpdated game = new BattleshipModelUpdated();\n Gson gson = new Gson();\n return gson.toJson( game );\n\n }else{\n\n // make new model, make gson object, convert model to json using gson\n BattleshipModelNormal game = new BattleshipModelNormal();\n Gson gson = new Gson();\n return gson.toJson( game );\n\n }\n }", "public synchronized void informModuleEndLoading(Module module) {\n\t\tModuleStat stat = getModuleStat(module);\n\t\tstat.waitLoading = false;\n\t}", "public void flushModules(String name) {\n String n = name;\n\n if (n == null) {\n n = BwModule.defaultModuleName;\n }\n\n ArrayList<String> mnames = new ArrayList<>(modules.keySet());\n\n for (String s: mnames) {\n if (s.equals(n)) {\n continue;\n }\n\n modules.remove(s);\n }\n }", "public BQTestClassFactory autoLoadModules() {\n this.autoLoadModules = true;\n return this;\n }", "private void setupTitanoboaModelXLarge() {\n\t\t/*\n\t\t * This is less nasty than the last version, but I still don't like it. The problem is there's no good way to\n\t\t * dynamically generate the part after R.id. - there's a findViewByName but its efficiency apparently sucks.\n\t\t * Most of the improvement from the last version is from having made the model automatically set up its modules\n\t\t * which in turn set up their vertebrae, and from eliminating the actuator objects.\n\t\t */\n\n\t\ttitanoboaModel = new TitanoboaModel();\n\n\t\tModule module1 = titanoboaModel.getModules().get(0);\n\n\t\tmodule1.setBatteryLevelView((TextView) findViewById(R.id.m1_battery_level));\n\t\tmodule1.setMotorSpeedView((TextView) findViewById(R.id.m1_motor_speed));\n module1.setPressureSensorView((TextView) findViewById(R.id.m1_pressure));\n\n List<List<TextView>> module1VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module1Vertebra0Views = new ArrayList<TextView>(); \n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_setpoint_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_current_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_sensor_calibration_high));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_h_sensor_calibration_low));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_setpoint_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_current_angle));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_sensor_calibration_high));\n module1Vertebra0Views.add((TextView) findViewById(R.id.m1_v0_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra0Views);\n\n List<TextView> module1Vertebra1Views = new ArrayList<TextView>();\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_setpoint_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_current_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_sensor_calibration_high));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_h_sensor_calibration_low));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_setpoint_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_current_angle));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_sensor_calibration_high));\n module1Vertebra1Views.add((TextView) findViewById(R.id.m1_v1_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra1Views);\n\n List<TextView> module1Vertebra2Views = new ArrayList<TextView>();\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_setpoint_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_current_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_sensor_calibration_high));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_h_sensor_calibration_low));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_setpoint_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_current_angle));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_sensor_calibration_high));\n module1Vertebra2Views.add((TextView) findViewById(R.id.m1_v2_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra2Views);\n\n List<TextView> module1Vertebra3Views = new ArrayList<TextView>();\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_setpoint_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_current_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_sensor_calibration_high));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_h_sensor_calibration_low));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_setpoint_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_current_angle));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_sensor_calibration_high));\n module1Vertebra3Views.add((TextView) findViewById(R.id.m1_v3_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra3Views);\n\n List<TextView> module1Vertebra4Views = new ArrayList<TextView>();\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_setpoint_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_current_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_sensor_calibration_high));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_h_sensor_calibration_low));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_setpoint_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_current_angle));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_sensor_calibration_high));\n module1Vertebra4Views.add((TextView) findViewById(R.id.m1_v4_v_sensor_calibration_low));\n module1VertebraeViews.add(module1Vertebra4Views);\n\n module1.setVertebraeViews(module1VertebraeViews);\n\n Module module2 = titanoboaModel.getModules().get(1);\n\n module2.setBatteryLevelView((TextView) findViewById(R.id.m2_battery_level));\n module2.setMotorSpeedView((TextView) findViewById(R.id.m2_motor_speed));\n module2.setPressureSensorView((TextView) findViewById(R.id.m2_pressure));\n\n List<List<TextView>> module2VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module2Vertebra0Views = new ArrayList<TextView>();\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_setpoint_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_current_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_sensor_calibration_high));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_h_sensor_calibration_low));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_setpoint_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_current_angle));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_sensor_calibration_high));\n module2Vertebra0Views.add((TextView) findViewById(R.id.m2_v0_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra0Views);\n\n List<TextView> module2Vertebra1Views = new ArrayList<TextView>();\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_setpoint_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_current_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_sensor_calibration_high));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_h_sensor_calibration_low));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_setpoint_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_current_angle));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_sensor_calibration_high));\n module2Vertebra1Views.add((TextView) findViewById(R.id.m2_v1_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra1Views);\n\n List<TextView> module2Vertebra2Views = new ArrayList<TextView>();\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_setpoint_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_current_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_sensor_calibration_high));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_h_sensor_calibration_low));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_setpoint_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_current_angle));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_sensor_calibration_high));\n module2Vertebra2Views.add((TextView) findViewById(R.id.m2_v2_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra2Views);\n\n List<TextView> module2Vertebra3Views = new ArrayList<TextView>();\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_setpoint_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_current_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_sensor_calibration_high));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_h_sensor_calibration_low));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_setpoint_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_current_angle));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_sensor_calibration_high));\n module2Vertebra3Views.add((TextView) findViewById(R.id.m2_v3_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra3Views);\n\n List<TextView> module2Vertebra4Views = new ArrayList<TextView>();\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_setpoint_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_current_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_sensor_calibration_high));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_h_sensor_calibration_low));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_setpoint_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_current_angle));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_sensor_calibration_high));\n module2Vertebra4Views.add((TextView) findViewById(R.id.m2_v4_v_sensor_calibration_low));\n module2VertebraeViews.add(module2Vertebra4Views);\n\n module2.setVertebraeViews(module2VertebraeViews);\n\n Module module3 = titanoboaModel.getModules().get(2);\n\n module3.setBatteryLevelView((TextView) findViewById(R.id.m3_battery_level));\n module3.setMotorSpeedView((TextView) findViewById(R.id.m3_motor_speed));\n module3.setPressureSensorView((TextView) findViewById(R.id.m3_pressure));\n\n List<List<TextView>> module3VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module3Vertebra0Views = new ArrayList<TextView>();\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_setpoint_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_current_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_sensor_calibration_high));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_h_sensor_calibration_low));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_setpoint_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_current_angle));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_sensor_calibration_high));\n module3Vertebra0Views.add((TextView) findViewById(R.id.m3_v0_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra0Views);\n\n List<TextView> module3Vertebra1Views = new ArrayList<TextView>();\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_setpoint_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_current_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_sensor_calibration_high));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_h_sensor_calibration_low));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_setpoint_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_current_angle));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_sensor_calibration_high));\n module3Vertebra1Views.add((TextView) findViewById(R.id.m3_v1_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra1Views);\n\n List<TextView> module3Vertebra2Views = new ArrayList<TextView>();\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_setpoint_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_current_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_sensor_calibration_high));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_h_sensor_calibration_low));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_setpoint_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_current_angle));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_sensor_calibration_high));\n module3Vertebra2Views.add((TextView) findViewById(R.id.m3_v2_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra2Views);\n\n List<TextView> module3Vertebra3Views = new ArrayList<TextView>();\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_setpoint_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_current_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_sensor_calibration_high));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_h_sensor_calibration_low));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_setpoint_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_current_angle));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_sensor_calibration_high));\n module3Vertebra3Views.add((TextView) findViewById(R.id.m3_v3_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra3Views);\n\n List<TextView> module3Vertebra4Views = new ArrayList<TextView>();\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_setpoint_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_current_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_sensor_calibration_high));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_h_sensor_calibration_low));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_setpoint_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_current_angle));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_sensor_calibration_high));\n module3Vertebra4Views.add((TextView) findViewById(R.id.m3_v4_v_sensor_calibration_low));\n module3VertebraeViews.add(module3Vertebra4Views);\n\n module3.setVertebraeViews(module3VertebraeViews);\n\n Module module4 = titanoboaModel.getModules().get(3);\n\n module4.setBatteryLevelView((TextView) findViewById(R.id.m4_battery_level));\n module4.setMotorSpeedView((TextView) findViewById(R.id.m4_motor_speed));\n module4.setPressureSensorView((TextView) findViewById(R.id.m4_pressure));\n\n List<List<TextView>> module4VertebraeViews = new ArrayList<List<TextView>>();\n\n List<TextView> module4Vertebra0Views = new ArrayList<TextView>();\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_setpoint_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_current_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_sensor_calibration_high));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_h_sensor_calibration_low));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_setpoint_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_current_angle));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_sensor_calibration_high));\n module4Vertebra0Views.add((TextView) findViewById(R.id.m4_v0_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra0Views);\n\n List<TextView> module4Vertebra1Views = new ArrayList<TextView>();\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_setpoint_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_current_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_sensor_calibration_high));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_h_sensor_calibration_low));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_setpoint_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_current_angle));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_sensor_calibration_high));\n module4Vertebra1Views.add((TextView) findViewById(R.id.m4_v1_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra1Views);\n\n List<TextView> module4Vertebra2Views = new ArrayList<TextView>();\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_setpoint_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_current_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_sensor_calibration_high));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_h_sensor_calibration_low));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_setpoint_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_current_angle));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_sensor_calibration_high));\n module4Vertebra2Views.add((TextView) findViewById(R.id.m4_v2_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra2Views);\n\n List<TextView> module4Vertebra3Views = new ArrayList<TextView>();\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_setpoint_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_current_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_sensor_calibration_high));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_h_sensor_calibration_low));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_setpoint_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_current_angle));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_sensor_calibration_high));\n module4Vertebra3Views.add((TextView) findViewById(R.id.m4_v3_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra3Views);\n\n List<TextView> module4Vertebra4Views = new ArrayList<TextView>();\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_setpoint_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_current_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_sensor_calibration_high));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_h_sensor_calibration_low));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_setpoint_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_current_angle));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_sensor_calibration_high));\n module4Vertebra4Views.add((TextView) findViewById(R.id.m4_v4_v_sensor_calibration_low));\n module4VertebraeViews.add(module4Vertebra4Views);\n\n module4.setVertebraeViews(module4VertebraeViews);\n\t}", "@Override\r\n\tpublic void load() {\n\r\n\t}", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "public void initModules() {\n\t\tthis.loadAggregationModules();\n\t\tthis.loadOutputModules();\n\t\tthis.gui.setModules(aggregationModules, outputModules);\n\t}", "private void populateGlobalLibraryMap(@NotNull BuildController controller) {\n for (VariantOnlyModuleModel moduleModel : myModuleModelsById.values()) {\n File buildId = moduleModel.getBuildId();\n if (!myLibraryMapsByBuildId.containsKey(buildId)) {\n GlobalLibraryMap map = controller.findModel(moduleModel.getGradleProject(), GlobalLibraryMap.class);\n if (map != null) {\n myLibraryMapsByBuildId.put(buildId, map);\n }\n }\n }\n }", "private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "@Override\r\n\tpublic void load() {\n\t}", "private ModuleDef doLoadModule(TreeLogger logger, String moduleName)\n throws UnableToCompleteException {\n if (!ModuleDef.isValidModuleName(moduleName)) {\n logger.log(TreeLogger.ERROR, \"Invalid module name: '\" + moduleName + \"'\",\n null);\n throw new UnableToCompleteException();\n }\n\n ModuleDef moduleDef = new ModuleDef(moduleName);\n strategy.load(logger, moduleName, moduleDef);\n\n // Do any final setup.\n //\n moduleDef.normalize(logger);\n // XXX <Instantiations: ensure resources while loading module because this is the only time \n // when our project class-loader is set as the current thread class-loader\n moduleDef.getResourcesOracle();\n {\n \t// Add the \"physical\" module name: com.google.Module\n \taddCachedLoadedModule(moduleName, moduleDef);\n \t// Add the module's effective name: some.other.Module\n \taddCachedLoadedModule(moduleDef.getName(), moduleDef);\n }\n // XXX >Instantiations\n // Add a mapping from the module's effective name to its physical name\n moduleEffectiveNameToPhysicalName.put(moduleDef.getName(), moduleName);\n return moduleDef;\n }", "private void putInCacheDirty(Module module) throws NoStorageForModuleException, StorageFailureException{\n\t\tputInCache(module);\n\t\tIModuleStorage storage = storages.get(module.getId());\n\t\tif (storage==null){\n\t\t\tLOGGER.warn(\"No storage for \" + module.getId() + \", \" + module + \" is not persistent!\");\n\t\t\tthrow new NoStorageForModuleException(module.getId());\n\t\t}\n\t\tstorage.saveModule(module);\n\t}", "public static void setupModules(){\n\t\tStart.setupModules();\n\t\t//add\n\t\t//e.g.: special custom scripts, workers, etc.\n\t}", "@SubscribeEvent\n public static void registerModels(ModelRegistryEvent event)\n {\n for (TreeFamily tree : ModTrees.tfcTrees)\n {\n ModelHelperTFC.regModel(tree.getDynamicBranch());//Register Branch itemBlock\n ModelHelperTFC.regModel(tree);//Register custom state mapper for branch\n }\n\n ModelLoader.setCustomStateMapper(ModBlocks.blockRootyDirt, new StateMap.Builder().ignore(BlockRooty.LIFE).build());\n\n ModTrees.tfcSpecies.values().stream().filter(s -> s.getSeed() != Seed.NULLSEED).forEach(s -> ModelHelperTFC.regModel(s.getSeed()));//Register Seed Item Models\n }", "public void refreshModules() {\n\t\tremoveAll();\n\t\tboxes.removeAll(boxes);\n\t\t\n//\t\tfor (ModulePanel panel : App.data.getModulePanels()) {\n//\t\t\t// Add the actual panel to the surface\n//\t\t\tadd(panel);\n//\t\t\t// Add the connectable panels to the list\n//\t\t\tboxes.addAll(panel.getConnectablePanels());\n//\t\t\tpanel.refresh();\n//\t\t}\n\t\t\n\t\tupdateUI();\n\t\trepaint();\n\t}", "public void addModule(Module module, String name) {\n module.parentMobile = this;\n modules.put(name, module);\n if(module instanceof LightSource)\n Scene.addLightSource((LightSource) module);\n }", "protected void augmentTemporaryModel(Project tmpModel) {\n }", "private void registerModule(Module module) {\n \t\tif (module.register()) {\n \t\t\t_availableModules.add(module);\n \t\t}\n \t}", "private void collectDependencies() throws Exception {\n backupModAnsSumFiles();\n CommandResults goGraphResult = goDriver.modGraph(true);\n String cachePath = getCachePath();\n String[] dependenciesGraph = goGraphResult.getRes().split(\"\\\\r?\\\\n\");\n for (String entry : dependenciesGraph) {\n String moduleToAdd = entry.split(\" \")[1];\n addModuleDependencies(moduleToAdd, cachePath);\n }\n restoreModAnsSumFiles();\n }", "@Override\n\tpublic void columnStateChanged(ColumnModel model) {\n\t\tvarManager.reloadIfRequired();\n\t}", "private void doBeforeUpdateModel(final PhaseEvent arg0) {\n\t}", "private void initModel() {\t\n \t\t// build default tree structure\n \t\tif(treeMode == MODE_DEPENDENCY) {\n \t\t\t// don't re-init anything\n \t\t\tif(rootDependency == null) {\n \t\t\t\trootDependency = new DefaultMutableTreeNode();\n \t\t\t\tdepNode = new DefaultMutableTreeNode(); // dependent objects\n \t\t\t\tindNode = new DefaultMutableTreeNode();\n \t\t\t\tauxiliaryNode = new DefaultMutableTreeNode();\n \t\t\t\t\n \t\t\t\t// independent objects \n \t\t\t\trootDependency.add(indNode);\n \t\t\t\trootDependency.add(depNode);\n \t\t\t}\n \t\t\t\n \t\t\t// set the root\n \t\t\tmodel.setRoot(rootDependency);\n \n \t\t\t// add auxiliary node if neccessary\n \t\t\tif(showAuxiliaryObjects) {\n \t\t\t\tif(!auxiliaryNode.isNodeChild(rootDependency)) {\n \t\t\t\t\tmodel.insertNodeInto(auxiliaryNode, rootDependency, rootDependency.getChildCount());\n \t\t\t\t}\n \t\t\t}\n \t\t} else {\n \t\t\t// don't re-init anything\n \t\t\tif(rootType == null) {\n \t\t\t\trootType = new DefaultMutableTreeNode();\n \t\t\t\ttypeNodesMap = new HashMap<String, DefaultMutableTreeNode>(5);\n \t\t\t}\n \t\t\t\n \t\t\t// always try to remove the auxiliary node\n \t\t\tif(showAuxiliaryObjects && auxiliaryNode != null) {\n \t\t\t\tmodel.removeNodeFromParent(auxiliaryNode);\n \t\t\t}\n \n \t\t\t// set the root\n \t\t\tmodel.setRoot(rootType);\n \t\t}\n \t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}" ]
[ "0.57089573", "0.56778234", "0.5672009", "0.56687003", "0.56467783", "0.5645635", "0.5618479", "0.5604204", "0.55122155", "0.55047643", "0.5502352", "0.5468292", "0.546492", "0.5433857", "0.54265976", "0.5426017", "0.5419295", "0.5392612", "0.53762263", "0.5373472", "0.53499454", "0.5345297", "0.5339853", "0.52909094", "0.52872485", "0.52514535", "0.52460974", "0.52454966", "0.5245218", "0.5241703", "0.5239651", "0.52238446", "0.51981527", "0.51964563", "0.51907927", "0.51842445", "0.5181134", "0.5181021", "0.51513636", "0.5146038", "0.51422614", "0.5140203", "0.51312375", "0.5130488", "0.5125116", "0.5123794", "0.5110846", "0.5100108", "0.5096674", "0.50929475", "0.5092134", "0.5089857", "0.5089713", "0.5089131", "0.50818795", "0.50812644", "0.5079075", "0.5074345", "0.5058976", "0.5057727", "0.5056307", "0.5048369", "0.50435984", "0.503689", "0.5030178", "0.50218797", "0.50203556", "0.50187093", "0.50148344", "0.5010002", "0.5006633", "0.49994728", "0.49960512", "0.4996027", "0.49889973", "0.4982418", "0.49789453", "0.49775156", "0.4975621", "0.49744263", "0.49709392", "0.49709392", "0.49614435", "0.49604952", "0.49598432", "0.49580413", "0.49564502", "0.4951307", "0.49491987", "0.49481103", "0.4942838", "0.49394715", "0.49334344", "0.49308652", "0.4929911", "0.49262765", "0.49250862", "0.49234992", "0.49224153", "0.49224153", "0.49224153" ]
0.0
-1
TODO add parameters validation
@Override public void onInitRepositoryStructure() { if (model != null) { if (model.isMultiModule()) { doRepositoryStructureInitialization(DeploymentMode.VALIDATED); } else if (model.isSingleProject()) { repositoryManagedStatusUpdater.initSingleProject(projectContext.getActiveRepository(), projectContext.getActiveBranch()); } else if (!model.isManaged()) { repositoryManagedStatusUpdater.updateNonManaged(projectContext.getActiveRepository(), projectContext.getActiveBranch()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "protected void setupParameters() {\n \n \n\n }", "private void validateInputParameters(){\n\n }", "public void getParameters(Parameters parameters) {\n\n }", "@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }", "private Params()\n {\n }", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noofconflicts);\n String checkconflicts = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"checkconflicts\", checkconflicts);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=0;m<noofstudent;m++){\n params.put(\"sid[\"+m+\"]\",sid[m]);\n }\n\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "@Override \n\t\tprotected int getNumParam() {\n\t\t\treturn 1;\n\t\t}", "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }", "public Parameters getParameters();", "public void getParameters(Parameters parameters) {\n\n\t}", "void setParameters() {\n\t\t\n\t}", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"resortName\", resortName);\n params.put(\"latitude\", String.valueOf(lat));\n params.put(\"longitude\", String.valueOf(lon));\n\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n // Adding All values to Params.\n // The firs argument should be same sa your MySQL database table columns.\n params.put(\"claim_intimationid\", cino);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n// params.put(\"ead_tokan\", AppConfig.EAD_TOKEN);\n// params.put(\"ead_email\", email);\n params.put(\"npl_token\", \"a\");\n params.put(\"npl_aid\", mediaId);\n params.put(\"npl_id\", userId);\n return params;\n }", "ParameterList getParameters();", "@Override\n protected String getName() {return _parms.name;}", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsubmittedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n return params;\n }", "public void checkParameters() {\n }", "java.lang.String getParameterValue();", "@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Brand_Id\", Brand_Id);\n params.put(\"Brand_Name\", Brand_Name);\n params.put(\"description\", description);\n params.put(\"brand_status\",brand_status);\n params.put(\"reason\", reason);\n params.put(\"Creation_Date\", Creation_Date);\n params.put(\"Updated_Date\", Updated_Date);\n params.put(\"Admin_Id\", Admin_Id);\n\n return params;\n }", "@Implementation\n protected String getParameters(String keys) {\n return null;\n }", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsavedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"sname[\"+k+\"]\", sname[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Eid\", id + \"\");\n\n\n return params;\n }", "public void readParameters()\n {\n readParameters(getData());\n }", "public Map getParameters();", "@Override\n\tprotected void setParameterValues() {\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Dname\", DegreeName);\n params.put(\"iName\", InsName);\n params.put(\"UserId\", uId);\n\n return params;\n }", "private String buildParams(){\n HashMap<String,String> items = new HashMap<>();\n if(paramValid(param1name,param1value))\n items.put(param1name,param1value);\n if(paramValid(param2name,param2value))\n items.put(param2name,param2value);\n if(paramValid(param3name,param3value))\n items.put(param3name,param3value);\n return JsonOutput.toJson(items);\n }", "@Override\r\n protected Map<String, String> getParams() {\n\r\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"name\", name);\r\n params.put(\"product\", product);\r\n params.put(\"email\", email);\r\n params.put(\"phone\", phone);\r\n params.put(\"quantity\", quantity);\r\n params.put(\"price\", price);\r\n params.put(\"address\", address);\r\n\r\n return params;\r\n }", "@Override\n\tprotected Map getParameters() throws Exception {\n\t\tInteger caseFileId =(Integer) getView().getValue(\"caseFileId\");\n\t\tString sql = \"SELECT cf FROM CaseFile cf WHERE caseFileId = :caseFileId\";\n\t\tQuery query = XPersistence.getManager().createQuery(sql);\n\t\tquery.setParameter(\"caseFileId\", caseFileId);\n\t\tCaseFile caseFile = (CaseFile) query.getSingleResult();\n\t \n\t\tCourtCaseFile cCF = caseFile.getCourtCaseFile();\n\t\tString cName = \"\";\n\t\tString cdate = \"\";\n\t\tString cfile = \"\";\n\t\tString dfile = \"\";\n\t\tString csubject = \"\";\n\t\tString ctot = \"\";\n\n\t\tif (cCF!=null) {\n\t\t\tTypeOfTrial tot=\tcCF.getTypeOfTrial();\n\t\t\tif (tot!=null)\n\t\t\t\tctot = tot.getName();\n\t\t\tCourt court = cCF.getCourt();\n\t\t\tif (court!=null)\n\t\t\t\tcName = court.getName(); \n\t\t\tString courtDate = cCF.getCourtdate();\n\t\t\tif (courtDate!=null) {\n\t\t\t\tcdate = courtDate;\n\t\t\t}\n\n\t\t\tcfile = cCF.getCourtFile();\n\t\t\tdfile = cCF.getDescriptionFile();\n\t\t\tSubject subject = cCF.getSubject();\n\t\t\tif (subject!=null)\n\t\t\t\tcsubject = subject.getName(); \n\t\t}\n\t\t\n\n\t\t\t\n\t\tMap parameters = new HashMap();\t\n\t\tparameters.put(\"descriptionFile\",dfile);\n\t\tparameters.put(\"file\",cfile);\n\t\tparameters.put(\"typeoftrail\", ctot);\n\t\tparameters.put(\"courtday\" ,cdate);\n\t\tparameters.put(\"subject\", csubject);\n\t\tparameters.put(\"court\",cName);\n\t\t\n\t\tAgendaRequest agendaRequest = caseFile.getAgendaRequest();\n\t\t//AgendaRequest agendaRequest = XPersistence.getManager().findByFolderName(AgendaRequest.class, id); \n\t\tGroupLawCenter glc = agendaRequest.getGroupLawCenter();\n\n\t\tConsultantPerson person = agendaRequest.getPerson();\n\t\tString personName = \"\";\n\t\tpersonName = personName.concat(person.getName());\n\t\tpersonName = personName.concat(\" \");\n\t\tpersonName = personName.concat(person.getLastName());\n\n\t\t\t\n\t\tparameters.put(\"agendaRequestId\",agendaRequest.getFolderNumber());\n\t\tparameters.put(\"personName\", personName);\n\t\tString glcName = (String)glc.getName();\n\t\tif (glcName == null)\n\t\t\tglcName = \"\";\n\t\tparameters.put(\"group\", glcName);\n\t\t\n\t\tString glcPlace = (String)glc.getPlace();\n\t\tif (glcPlace == null)\n\t\t\tglcPlace = \"\";\n\t\tparameters.put(\"place\", glcPlace);\n\n\t\t\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tString date = dateFormat.format(agendaRequest.getDate());\n\t\n\t\tparameters.put(\"day\", date);\n\t\t\n\t\tString hourst = glc.getStartTime();\n\t\thourst = hourst.concat(\" a \");\n\t\thourst = hourst.concat(glc.getEndTime());\n\t\t\n\t\t\n\t\tparameters.put(\"hourst\", hourst);\n\t\tSex sex = person.getSex(); \n\t\tString s;\n\t\tif (sex == null)\n\t\t \ts = \"\";\n\t\telse {\n\t\t\ts = person.getSex().toString() ;\n\t\t\tif (s== \"MALE\")\n\t\t\ts = \"Masculino\" ;\n\t\t\telse\n\t\t\t\ts=\"Femenino\";\n\t\t}\n\t\t\n\t\tparameters.put(\"sex\", s);\n\t\tparameters.put(\"age\", person.getAge());\n\t\t\n\t\tAddress address = person.getAddress();\n\t\tString a = \"\"; \n\t\tString sa = \"\";\n\t\t\n\n\t\tif (address != null) {\n\t\t\tsa = address.getStreet();\n\t\t\tDepartment dep = address.getDepartment();\n\t\t\tNeighborhood nbh =address.getNeighborhood();\n\t\t\tif (nbh != null)\n\t\t\t\ta= a.concat(address.getNeighborhood().getName()).concat(\", \");\n\t\t\t\n\t\t\tif (dep != null)\n\t\t\t\ta= a.concat(address.getDepartment().getName());\n\t\t}\t\n\t\tparameters.put(\"address\", sa);\n\t\tparameters.put(\"addressB\", a);\n\t\tparameters.put(\"salary\", person.getSalary());\n\t\t\n\t\tparameters.put(\"address\", sa);\n\t\tparameters.put(\"addressB\", a);\n\t\tparameters.put(\"salary\", person.getSalary());\n\t\t\n\t\tDocumentType dt = person.getDocumentType();\n\t\tString d = \"\";\n\t\tif (dt != null)\n\t\t\t d= person.getDocumentType().getName();\n\t\td = d.concat(\" \");\n\t\td = d.concat(person.getDocumentId());\n\t\tparameters.put(\"document\", d);\n\t\tparameters.put(\"phone\", person.getPhone());\n\t\tparameters.put(\"mobile\", person.getMobile());\n\t\tparameters.put(\"motive\", agendaRequest.getVisitReason().getReason());\n\t\tparameters.put(\"email\", person.getEmail());\n\t\tparameters.put(\"problem\", (agendaRequest.getProblem()!=null)?agendaRequest.getProblem():\"\");\n\n\t\treturn parameters;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", id);\n\n\n\n\n return params;\n }", "private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }", "@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}", "@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}", "String [] getParameters();", "public abstract String toFORMParam();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"email\", leaderboardEntry.getEmail());\n params.put(\"level_num\", String.valueOf(leaderboardEntry.getLevel_num()));\n params.put(\"score\", String.valueOf(leaderboardEntry.getScore()));\n params.put(\"moves\", String.valueOf(leaderboardEntry.getMoves()));\n params.put(\"time\", leaderboardEntry.getTime());\n return params;\n }", "private FunctionParametersValidator() {}", "@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fullname\", fullName);\n\n\n\n\n return params;\n }", "public BaseParameters(){\r\n\t}", "@Override\n\tprotected void prepare() {\n\t\tfor(ProcessInfoParameter parameter :getParameter()){\n\t\t\tString name = parameter.getParameterName();\n\t\t\tif(parameter.getParameter() == null){\n\t\t\t\t;\n\t\t\t}else if(name.equals(\"XX_TipoRetencion\")){\n\t\t\t\tp_TypeRetention = (String) parameter.getParameter();\n\t\t\t}\n\t\t\telse if(name.equals(\"C_Invoice_From_ID\"))\n\t\t\t\tp_Invoice_From = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"C_Invoice_To_ID\"))\n\t\t\t\tp_Invoice_To = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"DateDoc\"))\n\t\t\t\tp_DateDoc = (Timestamp) parameter.getParameter();\t\t\n\t\t}\n\t}", "public abstract String paramsToString();", "final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> params=new HashMap<String, String>() ;\n params.put(\"name\",n);\n params.put(\"rollno\",r);\n params.put(\"admno\",a);\n params.put(\"branch\",b);\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String image = getStringImage(bmpChange);\n\n\n //Creating parameters\n Map<String,String> params = new Hashtable<String, String>();\n\n //Adding parameters\n params.put(\"image\", image);\n\n //returning parameters\n return params;\n }", "@Override\n protected Map<String,String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\",user.getFullname());\n params.put(\"phone\",user.getPhone());\n params.put(\"ktp\", user.getKtp());\n if(bitmap != null)\n {\n params.put(\"imgURL\",imageToString(bitmap));\n }\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"huruf\", huruf);\n params.put(\"derajat_lengan_x\", drajatX);\n params.put(\"derajat lengan_y\", drajatY);\n params.put(\"gambar\", gambar);\n\n return params;\n }", "private LocalParameters() {\n\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", _phoneNo);\n params.put(\"token\", token);\n params.put(\"role\", String.valueOf(pref.getResposibility()));\n return params;\n }", "private Map<String, Object> buildResourcesParameters() {\n Map<String, Object> parameters = new HashMap<String, Object>();\n \n parameters.put(\"portalSiteSelectedNodes\", getSelectedResources(StagingService.SITES_PORTAL_PATH));\n parameters.put(\"groupSiteSelectedNodes\", getSelectedResources(StagingService.SITES_GROUP_PATH));\n parameters.put(\"userSiteSelectedNodes\", getSelectedResources(StagingService.SITES_USER_PATH));\n parameters.put(\"siteContentSelectedNodes\", getSelectedResources(StagingService.CONTENT_SITES_PATH));\n parameters.put(\"applicationCLVTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_CLV_PATH));\n parameters.put(\"applicationSearchTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_SEARCH_PATH));\n parameters.put(\"documentTypeTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_DOCUMENT_TYPE_PATH));\n parameters.put(\"metadataTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_METADATA_PATH));\n parameters.put(\"taxonomySelectedNodes\", getSelectedResources(StagingService.ECM_TAXONOMY_PATH));\n parameters.put(\"querySelectedNodes\", getSelectedResources(StagingService.ECM_QUERY_PATH));\n parameters.put(\"driveSelectedNodes\", getSelectedResources(StagingService.ECM_DRIVE_PATH));\n parameters.put(\"scriptSelectedNodes\", getSelectedResources(StagingService.ECM_SCRIPT_PATH));\n parameters.put(\"actionNodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_ACTION_PATH));\n parameters.put(\"nodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_NODETYPE_PATH));\n parameters.put(\"registrySelectedNodes\", getSelectedResources(StagingService.REGISTRY_PATH));\n parameters.put(\"viewTemplateSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_TEMPLATES_PATH));\n parameters.put(\"viewConfigurationSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_CONFIGURATION_PATH));\n parameters.put(\"userSelectedNodes\", getSelectedResources(StagingService.USERS_PATH));\n parameters.put(\"groupSelectedNodes\", getSelectedResources(StagingService.GROUPS_PATH));\n parameters.put(\"roleSelectedNodes\", getSelectedResources(StagingService.ROLE_PATH));\n \n parameters.put(\"selectedResources\", selectedResources);\n parameters.put(\"selectedOptions\", selectedOptions);\n \n return parameters;\n }", "@Override\n public String getParameters() {\n return parameters;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"ViewList\");\n params.put(\"created_by\", created_by);\n params.put(\"created_for\",created_for);\n\n\n return params;\n }", "public void setParameters(String parameters){\n this.parameters=parameters;\n }", "@Override\n protected Map<String,String> getParams(){\n return postParameters;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"gender\", gender);\n params.put(\"category\", category);\n params.put(\"subcategory\", subcategory);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"complex_id\",complex_id);\n Log.d(TAG, \"complex_id: \"+params);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"nosambungan\", nosambungan);\n return params;\n }", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"complex_id\", complex_id);\n params.put(\"block\", block_name);\n params.put(\"type\", user_type);\n\n // Log.d(TAG, \"city_id: \"+params);\n\n return params;\n }", "public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"todo\");\n params.put(\"task\", task);\n params.put(\"startTime\", startTime);\n params.put(\"endTime\", endTime);\n params.put(\"created_for\", created_for);\n params.put(\"created_by\",created_by);\n\n\n return params;\n }", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "@Override\n\t\t\t\tprotected Map<String, String> getParams()\n\t\t\t\t\t\tthrows AuthFailureError {\n\t\t\t\t\treturn super.getParams();\n\t\t\t\t}", "String extractParameters ();", "Map<String, String> getParameters();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"id\", id);\n params.put(\"type\", type);\n\n Log.d(TAG, \"getParams: \"+params);\n\n\n\n return params;\n }", "datawave.webservice.query.QueryMessages.QueryImpl.Parameter getParameters(int index);", "@Override\n\tpublic ParameterSet requiredParameters()\n\t{\n\t\t// Parameter p0 = new\n\t\t// Parameter(\"Dummy Parameter\",\"Lets user know that the function has been selected.\",FormLine.DROPDOWN,new\n\t\t// String[] {\"true\"},0);\n\t\tParameter p0 = getNumThreadsParameter(10, 4);\n\t\tParameter p1 = new Parameter(\"Old Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p2 = new Parameter(\"Old Max\", \"Image Intensity Value\", \"4095.0\");\n\t\tParameter p3 = new Parameter(\"New Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p4 = new Parameter(\"New Max\", \"Image Intensity Value\", \"65535.0\");\n\t\tParameter p5 = new Parameter(\"Gamma\", \"0.1-5.0, value of 1 results in no change\", \"1.0\");\n\t\tParameter p6 = new Parameter(\"Output Bit Depth\", \"Depth of the outputted image\", Parameter.DROPDOWN, new String[] { \"8\", \"16\", \"32\" }, 1);\n\t\t\n\t\t// Make an array of the parameters and return it\n\t\tParameterSet parameterArray = new ParameterSet();\n\t\tparameterArray.addParameter(p0);\n\t\tparameterArray.addParameter(p1);\n\t\tparameterArray.addParameter(p2);\n\t\tparameterArray.addParameter(p3);\n\t\tparameterArray.addParameter(p4);\n\t\tparameterArray.addParameter(p5);\n\t\tparameterArray.addParameter(p6);\n\t\treturn parameterArray;\n\t}", "protected abstract List<Object> getParamValues(SqlKeyWord sqlKeyWord, Object dbEntity, TableInfo tableInfo, Map<String, Object> params) throws Exception;", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"preemail\",preemail);\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"mobile\", mobile);\n return params;\n }", "public ListParameter()\r\n\t{\r\n\t}", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String image = getStringImage(bitmap);\n\n //Creating parameters\n Map<String,String> params = new Hashtable<String, String>();\n\n //Adding parameters\n params.put(\"image\", image);\n params.put(\"userid\",userID);\n params.put(\"jodiUploadImg\",\"\");\n\n //returning parameters\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"latitude\", latitude_file);\n params.put(\"longitude\", longitude_file);\n params.put(\"link\", link);\n\n return params;\n }", "public Final_parametre() {\r\n\t}", "public void testgetParameter() throws Exception {\n\r\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"oid\", oid);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n /*params.put(\"userIdPelayan\",new SessionManager(getContext()).getIdUser());\n params.put(\"stats\",\"0\");*/\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n /*params.put(\"userIdPelayan\",new SessionManager(getContext()).getIdUser());\n params.put(\"stats\",\"0\");*/\n return params;\n }", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "@Override\n\t\tpublic Object[] getParameters() {\n\t\t\treturn null;\n\t\t}", "public Parameters() {\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fecha\", fecha);\n params.put(\"hInicio\", inicio);\n params.put(\"hFin\", fin);\n params.put(\"cantCompas\", cantidad);\n params.put(\"id\", id);\n params.put(\"correo\", correo);\n params.put(\"min\",m);\n return params;\n }", "@Override\n public Parameters getParams() {\n return parameters;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"idCliente\", idCliente);\n\n\n\n return params;\n }", "private void countParams() {\n if( paramCount >= 0 ) {\n return;\n }\n Iterator<AnyType> parser = name.getSignature( types );\n paramCount = needThisParameter ? 1 : 0;\n while( parser.next() != null ) {\n paramCount++;\n }\n valueType = parser.next();\n while( parser.hasNext() ) {\n valueType = parser.next();\n paramCount--;\n }\n }", "gen.grpc.hospital.examinations.Parameter getParameter(int index);", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"ubaid\", globalVar.getUbaid());\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"buslabel\", sShareBusLable);\n params.put(\"direction\", sShareDirection);\n params.put(\"ss\", sSharestopSerial);\n params = CGlobals_lib_ss.getInstance().getBasicMobileParamsShort(params,\n Constants_bus.SHARE_BUS_LOCATION_URL, mActivity);\n String delim = \"\";\n StringBuilder getParams = new StringBuilder();\n for (Map.Entry<String, String> entry : params.entrySet()) {\n getParams.append(delim + entry.getKey() + \"=\"\n + entry.getValue());\n delim = \"&\";\n }\n String url1 = Constants_bus.SHARE_BUS_LOCATION_URL;\n try {\n String url = url1 + \"?\" + getParams.toString()\n + \"&verbose=Y\";\n System.out.println(\"url \" + url);\n\n } catch (Exception e) {\n SSLog_SS.e(TAG + \" callBusTrip\", e.getMessage());\n }\n return CGlobals_BA.getInstance().checkParams(params);\n }", "protected void parametersInstantiation_EM() {\n }", "@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"action\", \"feed\");\n // Log.e(\"ttt for id>>\", UserId);\n params.put(\"id\", UserId);\n // Log.e(\"ttt for gid >>\", gid);\n params.put(\"gid\", gid);\n params.put(\"after\",lastId);\n return params;\n }", "Parameter createParameter();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", name);\n\n\n Log.e(TAG, \"Posting params: \" + params.toString());\n\n return params;\n }" ]
[ "0.6536352", "0.6319192", "0.62480277", "0.6188858", "0.6166877", "0.61023015", "0.5964763", "0.59450746", "0.59262633", "0.5900514", "0.58943325", "0.5869513", "0.58669204", "0.584803", "0.58260393", "0.5813422", "0.5812689", "0.5806369", "0.5804029", "0.57963353", "0.5793616", "0.5793609", "0.5783167", "0.5769067", "0.5753741", "0.57456845", "0.5732724", "0.57282484", "0.5722457", "0.57201314", "0.5715759", "0.57154995", "0.5694051", "0.56908554", "0.5679798", "0.5672325", "0.567099", "0.5654274", "0.5643708", "0.5642447", "0.5628529", "0.5616753", "0.5615397", "0.56115955", "0.56075776", "0.560454", "0.5596013", "0.5585013", "0.5584652", "0.5581122", "0.5577958", "0.55745935", "0.5572341", "0.5558857", "0.5557451", "0.55504143", "0.55496055", "0.55422306", "0.55372757", "0.5529088", "0.55220884", "0.5509732", "0.55075943", "0.55048823", "0.5500822", "0.5488017", "0.5487705", "0.548521", "0.5478991", "0.5478991", "0.5478279", "0.54736644", "0.54719937", "0.5470791", "0.54696214", "0.5454065", "0.54448235", "0.5441241", "0.54368454", "0.54317296", "0.54300016", "0.5426281", "0.5424709", "0.54167783", "0.5413764", "0.5413764", "0.54128075", "0.5409701", "0.5402938", "0.54023546", "0.5395668", "0.53939605", "0.53927964", "0.5385767", "0.5385616", "0.53811", "0.5380097", "0.53799456", "0.5379241", "0.53789735", "0.5374621" ]
0.0
-1
The real Throwable is wrapped in an InvocationTargetException when ran as a Unit Test and invoked with Reflection.
@Override public boolean error(final Message message, final Throwable throwable) { final Throwable _throwable = (throwable.getCause() == null ? throwable : throwable.getCause()); if (_throwable instanceof GAVAlreadyExistsException) { final GAVAlreadyExistsException gae = (GAVAlreadyExistsException) _throwable; conflictingRepositoriesPopup.setContent(gae.getGAV(), gae.getRepositories(), new Command() { @Override public void execute() { conflictingRepositoriesPopup.hide(); doRepositoryStructureInitialization(DeploymentMode.FORCED); } }); conflictingRepositoriesPopup.show(); return true; } else { return super.error(message, _throwable); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testUnwrapInvocationTargetExceptionWithCause() {\n RuntimeException rte = new RuntimeException();\n InvocationTargetException iteWithCause = new InvocationTargetException(rte);\n assertTrue(rte == ExceptionUtil.unwrapInvocationTargetException(iteWithCause));\n }", "public CannotInvokeException(InvocationTargetException e) {\n super(\"by \" + e.getTargetException().toString());\n err = e.getTargetException();\n }", "@Test\n public void testUnwrapInvocationTargetExceptionWithOtherException() {\n RuntimeException rte = new RuntimeException();\n assertTrue(rte == ExceptionUtil.unwrapInvocationTargetException(rte));\n }", "@Test\n public void testUnwrapInvocationTargetExceptionWithoutCause() {\n InvocationTargetException iteWithoutCause = new InvocationTargetException(null);\n assertTrue(iteWithoutCause == ExceptionUtil.unwrapInvocationTargetException(iteWithoutCause));\n }", "Throwable cause();", "public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }", "public RuntimeException getTargetException() {\n/* 76 */ return this.runtimeException;\n/* */ }", "public ProgramInvocationException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "public MethodInvocationException(PropertyChangeEvent propertyChangeEvent, Throwable ex) {\r\n\t\tsuper(propertyChangeEvent, String.format(\"Property '%s' threw exception\", propertyChangeEvent.getPropertyName()), ex);\r\n\t}", "public void testThrowableThrowable() {\n Throwable th1 = new Throwable(\"aaa\");\n Throwable th = new Throwable(th1);\n assertEquals(\"incorrect message\", \n \"java.lang.Throwable: aaa\", th.getMessage());\n assertSame(\"incorrect cause\", th1, th.getCause());\n assertTrue(\"empty stack trace\", th.getStackTrace().length > 0);\n }", "public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }", "public static void handleReflectionException(Exception ex) {\n if (ex instanceof NoSuchMethodException) {\n throw new IllegalStateException(\"Method not found: \" + ex.getMessage());\n }\n if (ex instanceof IllegalAccessException) {\n throw new IllegalStateException(\"Can not access method: \" + ex.getMessage());\n }\n if (ex instanceof InvocationTargetException) {\n handleInvocationTargetException((InvocationTargetException) ex);\n }\n if (ex instanceof RuntimeException) {\n throw (RuntimeException) ex;\n }\n throw new UndeclaredThrowableException(ex);\n }", "public InvalidInvocationException(Throwable throwable)\n {\n super(DEFAULT_MESSAGE, throwable);\n }", "public Throwable getCause() {\n/* 85 */ return this.runtimeException;\n/* */ }", "static void m34964c(Throwable th) {\n Thread currentThread = Thread.currentThread();\n currentThread.getUncaughtExceptionHandler().uncaughtException(currentThread, th);\n }", "public PlatformException(Throwable cause) {\r\n\t\tsuper(cause);\r\n\t}", "public static void handleInvocationTargetException(InvocationTargetException ex) {\n rethrowRuntimeException(ex);\n }", "public InvalidInvocationException(String detailMessage, Throwable throwable)\n {\n super(detailMessage, throwable);\n }", "public abstract void mo33865a(Throwable th, Throwable th2);", "void mo1031a(Throwable th);", "protected void runTest() throws Throwable {\n\t\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t\t}", "public CannotInvokeException(IllegalAccessException e) {\n super(\"by \" + e.toString());\n err = e;\n }", "public TechnicalException(Throwable cause) {\r\n super(cause);\r\n }", "public TDLProException(Throwable cause)\n {\n super(cause);\n }", "public WrappedRuntimeException(Exception e)\n {\n\n super(e.getMessage());\n\n m_exception = e;\n }", "public final void mo6481a(Throwable th) {\n }", "@Override\n public Throwable getCause() {\n return ex;\n }", "public Throwable getCause()\r\n/* 17: */ {\r\n/* 18:18 */ return this.a.b();\r\n/* 19: */ }", "public WrappedException(Exception e) {\n super(e);\n }", "public OperationException(Throwable cause) {\n super(cause);\n }", "public abstract void mo13751b(Throwable th, Throwable th2);", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public FaultException raise(Throwable e);", "public OLMSException(Throwable cause) {\r\n super(cause);\r\n }", "public DAOException(Throwable cause)\r\n {\r\n super(cause);\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic T extractException(Throwable e) {\n\t\tT exception = null;\n\t\tif (depthFirst) {\n\t\t\tif (e instanceof InvocationTargetException) {\n\t\t\t\texception = extractException(((InvocationTargetException) e).getTargetException());\n\t\t\t} else if (e.getCause() != null) {\n\t\t\t\texception = extractException(e.getCause());\n\t\t\t} else if (klass.isInstance(e)) {\n\t\t\t\texception = (T) e;\n\t\t\t}\n\t\t} else {\n\t\t\tif (e != null) {\n\t\t\t\tif (klass.isInstance(e)) {\n\t\t\t\t\texception = (T) e;\n\t\t\t\t} else if (e instanceof InvocationTargetException) {\n\t\t\t\t\texception = extractException(((InvocationTargetException) e).getTargetException());//whereas wrapped exceptions can generally be retrieved via ex.getCause(), InvocationTargetException stores the exception as a targetException, so you need to retrieve it with getTargetException()\n\t\t\t\t} else {\n\t\t\t\t\t//wrapped exception hell\n\t\t\t\t\texception = extractException(e.getCause());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn exception;\n\t}", "private void handleThrowable(Throwable e, CommandSender sender) {\n\t\tif (e instanceof InvocationTargetException){\n\t\t\te = e.getCause();\n\t\t}\n\t\t\n\t\tif (e instanceof NoConsoleException){\n\t\t\tplugin.msg(sender, plugin.getMessage(\"mustbeconsole\"));\n\t\t} else if (e instanceof NotIngameException){\n\t\t\tplugin.msg(sender, plugin.getMessage(\"mustbeingame\"));\n\t\t} else if (e instanceof NoPermissionsException){\n\t\t\tplugin.msg(sender, plugin.getMessage(\"nopermission\").replace(\"<perm>\", e.getCause().getMessage()));\n\t\t} else {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public DAOException(Throwable cause) {\r\n super(cause);\r\n }", "public void mo1031a(Throwable th) {\n }", "public void mo21818a(Throwable th) {\n th.printStackTrace();\n }", "public DynamicDeckDynamoException(Throwable throwable) {\n super(throwable);\n }", "public CannotInvokeException(ClassNotFoundException e) {\n super(\"by \" + e.toString());\n err = e;\n }", "public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }", "public AlfrescoServiceException(final Throwable cause) {\n super(cause);\n }", "public ProgramInvocationException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}", "public CannotInvokeException(String reason) {\n super(reason);\n }", "public void testThrowableStringThrowable() {\n Throwable th1 = new Throwable();\n Throwable th = new Throwable(\"aaa\", th1);\n assertEquals(\"incorrect message\", \"aaa\", th.getMessage());\n assertSame(\"incorrect cause\", th1, th.getCause());\n assertTrue(\"empty stack trace\", th.getStackTrace().length > 0);\n }", "public EmailException(Throwable rootCause)\n {\n super(rootCause);\n }", "private void rethrowIfFailed()\r\n/* 198: */ {\r\n/* 199:232 */ Throwable cause = cause();\r\n/* 200:233 */ if (cause == null) {\r\n/* 201:234 */ return;\r\n/* 202: */ }\r\n/* 203:237 */ PlatformDependent.throwException(cause);\r\n/* 204: */ }", "public PropertyNotDefinedException(Throwable cause) {\n super(cause);\n }", "public void testGetCause() {\n Throwable th = new Throwable();\n Throwable th1 = new Throwable();\n assertNull(\"cause should be null\", th.getCause());\n th = new Throwable(th1);\n assertSame(\"incorrect cause\", th1, th.getCause());\n }", "public ExcelImportException(Throwable cause) {\r\n\t\tsuper(cause);\r\n\t}", "public AuraUnhandledException(String message, Throwable e) {\n super(message, e);\n }", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "public DataAccessLayerException(final Throwable cause) {\n super(cause);\n }", "void exceptionCaught(Throwable cause) throws Exception;", "void exceptionCaught(Throwable cause) throws Exception;", "public void unwrap() throws Exception {\n throw getCause();\n }", "public InvalidInvocationException(String detailMessage)\n {\n super(detailMessage);\n }", "public DaoException(Throwable arg0) {\r\n\t\tsuper(arg0);\r\n\t}", "public ContextElementFinderException(Throwable th)\r\n {\r\n super(th);\r\n }", "public Throwable cause()\r\n/* 88: */ {\r\n/* 89:124 */ Object result = this.result;\r\n/* 90:125 */ if ((result instanceof CauseHolder)) {\r\n/* 91:126 */ return ((CauseHolder)result).cause;\r\n/* 92: */ }\r\n/* 93:128 */ return null;\r\n/* 94: */ }", "String getCauseException();", "public FaultException raise(Throwable e, Object argument);", "public SyscallException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "public InvalidInvocationException()\n {\n super(DEFAULT_MESSAGE);\n }", "public InvalidEventHandlerException(Throwable cause) {\n super(cause);\n }", "static Error unchecked (Throwable e) {\n if (e instanceof Error) {\n throw (Error) e;\n }\n if (e instanceof RuntimeException) {\n throw (RuntimeException) e;\n }\n throw new RuntimeException(e);\n }", "public Exception(Throwable cause) {\n\t\t\tsuper(cause);\n\t\t}", "public MissingMethodArgumentException(Exception e) {\n super(e);\n }", "public IORuntimeException(Throwable cause) {\n this(cause.getMessage(), cause);\n }", "public PreparationException(final Throwable cause) {\n\t\tsuper(cause);\n\t}", "public TechnicalException(Throwable cause) {\n this(EXPRESSION_PROCESS_ERROR, null, cause);\n }", "public void testUnknownExceptionFails() throws Exception {\n RemotingTestObject object = new RemotingTestObject();\n object.foreignJarPath = MavenTestSupport.getBaseDirectory() + File.separator + \"testing-resources\" + File.separator\n + \"foreign.jar\";\n\n MeshContainer container = meshKeeper.launcher().launchMeshContainer(getAgent());\n\n RemotingTestObject proxy = (RemotingTestObject) container.host(\"RemotingTestObject\", object);\n\n try {\n proxy.triggerForeignException();\n } catch (RemotingTestException rte) {\n throw rte;\n } catch (Exception e) {\n System.out.println(\"Testing expected exception: \");\n e.printStackTrace();\n \n Throwable cause = e;\n while (cause != null) {\n if (cause instanceof ClassNotFoundException) {\n break;\n }\n cause = cause.getCause();\n }\n\n if (cause == null) {\n throw new RemotingTestException(\"Caught exception doesn't have ClassNotFoundException as a cause\", e);\n }\n }\n }", "public OAuthorizationException(Throwable throwable){\n super(throwable);\n }", "public VelocityEmailException(Throwable nested)\n {\n super(nested);\n }", "public MyCustomException( Throwable cause )\n {\n\n\t// Why are we doing this??\n super( cause );\n }", "public ScriptThrownException(Exception e, Object value) {\n super(e);\n this.value = value;\n }", "public CompilationException(Throwable t) {\n\t\tsuper(t);\n\t}", "@Override\n public Exception getCause()\n {\n return this.cause;\n }", "public CIMException(String pReason, Throwable pThrowable) {\n\t\tsuper(pReason);\n\t\tiCause = pThrowable;\n\t\tthis.iReason = pReason;\n\t\tthis.iExtendedReason = null;\n\t}", "public CanyonException( Throwable t )\r\n {\r\n super( t.getMessage() );\r\n m_cause = t;\r\n }", "public LogException(Throwable throwable) {\r\n super(throwable);\r\n }", "public TrafficspacesAPIException(Throwable cause, String reason) {\n super(reason);\n rootCause = cause;\n }", "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }", "@Test\n public void test15() throws Throwable {\n // Undeclared exception!\n try { \n UnivariateRealSolverUtils.solve((UnivariateRealFunction) null, 0.0, 0.0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // function is null\n //\n assertThrownBy(\"org.apache.commons.math.MathRuntimeException\", e);\n }\n }", "public void testThrowableString() {\n Throwable th = new Throwable(\"aaa\");\n assertEquals(\"incorrect message\", \"aaa\", th.getMessage());\n assertNull(\"cause should be null\", th.getCause());\n assertTrue(\"empty stack trace\", th.getStackTrace().length > 0);\n }", "public PublishException(Throwable throwable) {\n\t\tsuper(throwable);\n\t}", "public JiraServiceException(Throwable cause) {\r\n super(cause);\r\n }", "private static void handleRuntimeExceptionOrError(Throwable e)\n {\n // is already of throwable type\n if (e instanceof RuntimeOperationsException)\n throw (RuntimeOperationsException)e;\n if (e instanceof RuntimeErrorException)\n throw (RuntimeErrorException)e;\n if (e instanceof RuntimeMBeanException)\n throw (RuntimeMBeanException)e;\n\n // wrap java core runtime exceptions\n if (e instanceof IllegalArgumentException)\n throw new RuntimeOperationsException((IllegalArgumentException)e);\n if (e instanceof IndexOutOfBoundsException)\n throw new RuntimeOperationsException((IndexOutOfBoundsException)e);\n if (e instanceof NullPointerException)\n throw new RuntimeOperationsException((NullPointerException)e);\n\n // wrap any error\n if (e instanceof Error)\n throw new RuntimeErrorException((Error)e);\n\n // wrap any runtime exception\n if (e instanceof RuntimeException)\n throw new RuntimeMBeanException((RuntimeException)e);\n }", "public void testActivityObjectCloneExceptionStringThrowable() {\n test = new ActivityObjectCloneException(\"test\", new IllegalArgumentException());\n assertNotNull(\"Fails to create exception.\", test);\n assertEquals(\"Wrong message.\", \"test\", test.getMessage().substring(0, 4));\n assertEquals(\"Wrong cause.\", IllegalArgumentException.class, test.getCause().getClass());\n }", "public InstrumenterException(Throwable throwable) {\r\n this(throwable, false);\r\n }", "public QueryException(Throwable cause) {\n super(cause);\n }", "private CauseHolder(Throwable cause)\r\n/* 730: */ {\r\n/* 731:798 */ this.cause = cause;\r\n/* 732: */ }", "public ArithmeticaException (Throwable exception) {\n super(exception);\n }", "public EntidadNoBorradaException(final Throwable arg0) {\n super(arg0);\n }", "@Override\n\tpublic synchronized Throwable getCause() {\n\t\treturn super.getCause();\n\t}", "public WebAppException(Throwable nestedException) {\r\n\t\tthis.nestedException_ = nestedException;\r\n\t\tstackTraceString_ = generateStackTraceString(nestedException);\r\n\t\textractProperties(nestedException);\r\n\t}", "private static void rethrowRunTimeException( RuntimeException e, String msg )\n \t\t\tthrows OdaException\n \t{\n \t\tOdaException odaException = new OdaException( msg );\n \t\todaException.initCause( e );\n \t\tlogger.logp( java.util.logging.Level.FINE,\n \t\t\t\tStatement.class.getName( ),\n \t\t\t\t\"rethrowRunTimeException\",\n \t\t\t\tmsg,\n \t\t\t\todaException );\n \t\tthrow odaException;\n \t}", "private static void checkError(Class<?> expectedErrorClass, Throwable thrown,\n boolean in_invocation_exc) {\n if (expectedErrorClass != null && thrown == null) {\n fail(\"Expected error of type \" + expectedErrorClass);\n } else if (expectedErrorClass == null && thrown != null) {\n fail(\"Unexpected error \" + thrown);\n } else if (expectedErrorClass != null && thrown != null) {\n if (in_invocation_exc) {\n if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) {\n fail(\"Expected invocation target exception, but got \" + thrown);\n }\n thrown = thrown.getCause();\n }\n if (!expectedErrorClass.equals(thrown.getClass())) {\n thrown.printStackTrace(System.err);\n fail(\"Expected error of type \" + expectedErrorClass + \", but got \" +\n thrown.getClass());\n }\n }\n }" ]
[ "0.74080646", "0.7395079", "0.6862788", "0.6721242", "0.66056275", "0.6508437", "0.6453906", "0.6418921", "0.6411949", "0.63813865", "0.6361606", "0.6255283", "0.6228584", "0.61445886", "0.6073753", "0.6073594", "0.6071403", "0.60226375", "0.600493", "0.59678024", "0.5949167", "0.5938433", "0.5929908", "0.59282386", "0.59106535", "0.5903886", "0.5895471", "0.5894095", "0.58798534", "0.5873959", "0.58695203", "0.58676594", "0.5861697", "0.5845325", "0.5831727", "0.5826355", "0.582356", "0.58107626", "0.57995194", "0.57925355", "0.57685304", "0.57559824", "0.5753394", "0.574153", "0.5736054", "0.5729857", "0.5729683", "0.57250816", "0.5724726", "0.57158977", "0.57130474", "0.5712832", "0.5710336", "0.56998944", "0.56998944", "0.5693188", "0.56905967", "0.56905967", "0.56837624", "0.56730413", "0.5672775", "0.56543905", "0.56379604", "0.56342936", "0.5618045", "0.56072897", "0.55997825", "0.5598096", "0.55977994", "0.5590789", "0.5587334", "0.5578149", "0.55762935", "0.55677533", "0.556749", "0.5565828", "0.5555325", "0.554427", "0.5542795", "0.5540488", "0.5539759", "0.5533694", "0.5531084", "0.5528564", "0.55264664", "0.55256444", "0.55214435", "0.55168957", "0.5513071", "0.5512395", "0.5509919", "0.5499401", "0.54986423", "0.54986185", "0.5495773", "0.5491024", "0.54797953", "0.54755956", "0.5467651", "0.54630387", "0.54539806" ]
0.0
-1
filtra y ordena los articulos
List<ArticleDTO> getFilteredByTwo(ArticlesFilterDTO filterDTO) throws ApiException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void editarArtista() {\n\t\tArrayList<String> listString = new ArrayList<>();\r\n\t\tArrayList<ArtistaMdl> listArtista = new ArrayList<>();\r\n\t\tString[] possibilities = pAController.getArtista();\r\n\t\tfor (String s : possibilities) {\r\n\t\t\tString text = s.replaceAll(\".*:\", \"\");\r\n\t\t\tlistString.add(text);\r\n\t\t\tif (s.contains(\"---\")) {\r\n\t\t\t\tArtistaMdl artista = new ArtistaMdl();\r\n\t\t\t\tartista.setNome(listString.get(1));\r\n\t\t\t\tlistArtista.add(artista);\r\n\t\t\t\tlistString.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] possibilities2 = new String[listArtista.size()];\r\n\t\tfor (int i = 0; i < listArtista.size(); i++) {\r\n\t\t\tpossibilities2[i] = listArtista.get(i).getNome();\r\n\t\t}\r\n\t}", "private void leituraTexto() {\n try {\n Context context = getApplicationContext();\n\n InputStream arquivo = context.getResources().openRawResource(R.raw.catalogo_restaurantes);\n InputStreamReader isr = new InputStreamReader(arquivo);\n\n BufferedReader br = new BufferedReader(isr);\n\n String linha = \"\";\n restaurantes = new ArrayList<>();\n\n while ((linha = br.readLine()) != null) {\n restaurante = new Restaurante(linha);\n String id = Biblioteca.parserNome(restaurante.getId());\n String nome = Biblioteca.parserNome(restaurante.getNome());\n String descricao = Biblioteca.parserNome(restaurante.getDescricao());\n// Log.i(\"NOME\", nome);\n String rank = Biblioteca.parserNome(restaurante.getRank());\n int imagem = context.getResources().getIdentifier(nome, \"mipmap\", context.getPackageName());\n restaurante.setLogo(imagem);\n\n int imgrank = context.getResources().getIdentifier(rank, \"drawable\", context.getPackageName());\n restaurante.setRank(String.valueOf(imgrank));\n\n restaurantes.add(restaurante);\n }\n carregarListView();\n br.close();\n isr.close();\n arquivo.close();\n// Log.i(\"Quantidade\", \"\" + produtos.size());\n } catch (Exception erro) {\n Log.e(\"FRUTARIA Erro\", erro.getMessage());\n }\n\n }", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public void addArticulo() {\n articulosFactura.setFacturaIdfactura(factura);\n articulosFacturas.add(articulosFactura);\n factura.setArticulosFacturaList(articulosFacturas);\n total = total + (articulosFactura.getCantidad() * articulosFactura.getArticuloIdarticulo().getPrecioVenta());\n articulosFactura = new ArticulosFactura();\n }", "private ArrayList<MeubleModele> initMeubleModeleCatalogue(){\n ArrayList<MeubleModele> catalogue = new ArrayList<>();\n // Création meubles\n MeubleModele Table1 = new MeubleModele(\"Table acier noir\", \"MaCuisine.com\", MeubleModele.Type.Tables,29,110,67);\n MeubleModele Table2 = new MeubleModele(\"Petite table ronde\", \"MaCuisine.com\", MeubleModele.Type.Tables,100,60,60);\n MeubleModele Table3 = new MeubleModele(\"Table 4pers. blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,499,160,95);\n MeubleModele Table4 = new MeubleModele(\"Table 8pers. noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,599,240,105);\n MeubleModele Table5 = new MeubleModele(\"Table murale blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,39,74,60);\n MeubleModele Table6 = new MeubleModele(\"Table murale noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,49,90,50);\n MeubleModele Meuble = new MeubleModele(\"Grandes étagères\", \"MaCuisine.com\", MeubleModele.Type.Meubles,99,147,147);\n MeubleModele Chaise = new MeubleModele(\"Chaise blanche cuir\", \"MaCuisine.com\", MeubleModele.Type.Chaises,59,30,30);\n //MeubleModele Machine_A_Laver = new MeubleModele(\"Machine à laver Bosch\", \"Bosch\", MeubleModele.Type.Petits_electromenagers,499,100,100);\n //MeubleModele Plan_de_travail = new MeubleModele(\"Plan de travail avec évier\", \"MaCuisine.com\", MeubleModele.Type.Gros_electromenagers,130,200,60);\n // Images meubles\n //Image i = new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\"));\n //if (i == null) {\n // System.out.println(\"Erreur\");\n //}\n Table1.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\")));\n Table2.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table2.png\")));\n Table3.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table3.png\")));\n Table4.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table4.png\")));\n Table5.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table5.png\")));\n Table6.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table6.png\")));\n Meuble.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/meuble.png\")));\n Chaise.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/chaise.png\")));\n // add catalogue\n catalogue.add(Table1);\n catalogue.add(Table2);\n catalogue.add(Table3);\n catalogue.add(Table4);\n catalogue.add(Table5);\n catalogue.add(Table6);\n catalogue.add(Meuble);\n catalogue.add(Chaise);\n //catalogue.add(Machine_A_Laver);\n //catalogue.add(Plan_de_travail);\n return catalogue;\n }", "public void art() {\n arJ();\n }", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<EntidadeDominio> VisualizarInativos(EntidadeDominio entidade) {\n\t\tPreparedStatement pst = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM livros WHERE Status=?\");\n\t\ttry {\n\t\t\topenConnection();\t\n\t\n\t\tpst = connection.prepareStatement(sql.toString());\n\t\tpst.setString(1, \"INATIVADO\");\n\t\tResultSet rs = pst.executeQuery();\n\t\tList<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();\n\t\t//SEGUNDA PARTE PUXAR CATEGORIAS\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tStringBuilder sql2 = new StringBuilder();\n\t\t\t\t\t sql2.append(\"SELECT * FROM livCat JOIN Categoria ON livCat.id_categoria = Categoria.id_categoria WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql2.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs2 = pst.executeQuery();\n\t\t\t\t\tList<Categoria> cat = new ArrayList<Categoria>();\n\t\t\t\t\tCategoria c = new Categoria();\n\t\t\t\t\twhile(rs2.next()) {\n\t\t\t\t\t\tc.setNome(rs2.getString(\"CategoriaNome\"));\n\t\t\t\t\t\tc.setId(rs2.getInt(\"idCategoria\"));\n\t\t\t\t\t\tcat.add(c);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//TERCEIRA PARTE PUXAR AUTOR\n\t\t\t\t\tStringBuilder sql3 = new StringBuilder();\n\t\t\t\t\t sql3.append(\"SELECT * FROM livro JOIN Autor ON livro.IdAutor = Autor.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql3.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs3 = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t//QUARTA PARTE PUXANDO A EDITORA\n\t\t\t\t\tStringBuilder sql4 = new StringBuilder();\n\t\t\t\t\t sql4.append(\"SELECT * FROM livro JOIN Editora ON livro.IdEditora = Editora.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql4.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs4 = pst.executeQuery();\n\t\t\t\t//QUINTA PARTE PUXANDO A PRECIFICACAO\n\t\t\t\t\t StringBuilder sql5 = new StringBuilder();\n\t\t\t\t\t sql5.append(\"SELECT * FROM livro JOIN Precificacao ON livro.IdPrecificacao = Precificacao.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql5.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs5 = pst.executeQuery();\t\n\t\t\t\t//SEXTA PARTE MONTANDO O RETORNO\n\t\t\t\t\t\tLivro liv = new Livro();\n\t\t\t\t\t\tEditora edit = new Editora();\n\t\t\t\t\t\tAutor autor = new Autor();\n\t\t\t\t\t\tPrecificacao preci = new Precificacao();\n\t\t\t\t\t\tedit.setId(rs4.getInt(\"IdEditora\"));\n\t\t\t\t\t\tedit.setNome(rs3.getString(\"AutorNome\"));\n\t\t\t\t\t\tliv.setId(rs3.getInt(\"IdAutor\"));\n\t\t\t\t\t\tliv.setEditora(edit);\n\t\t\t\t\t\tliv.setAutor(autor);\n\t\t\t\t\t\tliv.setTitulo(rs.getString(\"Titulo\"));\n\t\t\t\t\t\tliv.setSinopse(rs.getString(\"Sinopse\"));\n\t\t\t\t\t\tliv.dimensoes.setAltura(rs.getDouble(\"Altura\"));\n\t\t\t\t\t\tliv.dimensoes.setLargura(rs.getDouble(\"Largura\"));\n\t\t\t\t\t\tliv.dimensoes.setPeso(rs.getDouble(\"Peso\"));\n\t\t\t\t\t\tliv.dimensoes.setProfundidade(rs.getDouble(\"Profundidade\"));\n\t\t\t\t\t\tliv.setISBN(rs.getString(\"ISBN\"));\n\t\t\t\t\t\tliv.setIdcategoria(cat);\n\t\t\t\t\t\tliv.setNumeroPaginas(rs.getInt(\"NumeroDePaginas\"));\n\t\t\t\t\t\tpreci.setClassificacao(rs5.getString(\"PrecificacaoNome\"));\n\t\t\t\t\t\tpreci.setTipo(rs5.getInt(\"IdPrecificacao\"));\n\t\t\t\t\t\tliv.setPrecificacao(preci);\n\t\t\t\t\t\tliv.setEdicao(rs.getInt(\"Edicao\"));\n\t\t\t\t\t\tliv.setStatus(rs.getString(\"Status\"));\n\t\t\t\t\t\tint VerificarDuplicatas = 0;\n\t\t\t\t\t\tfor(EntidadeDominio teste : livros) // Verificar se o livro que será armazenado no resultado ja está na array\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(teste.getId() == liv.getId())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tVerificarDuplicatas = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(VerificarDuplicatas == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tlivros.add(liv);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//java.sql.Date dtCadastroEmLong = rs.getDate(\"dt_cadastro\");\n\t\t\t//Date dtCadastro = new Date(dtCadastroEmLong.getTime());\t\t\t\t\n\t\t\t//p.setDtCadastro(dtCadastro);\n\t\t\t//produtos.add(p);\n\t\t}\n\t\treturn livros;\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\treturn null;\n\t}", "public void llenDic(){\r\n ArrayList<String> wor= new ArrayList<String>();\r\n ArrayList<Association<String,String> >asociaciones= new ArrayList<Association<String,String>>();\r\n \r\n try {\r\n \r\n arch = new File (\"diccionario.txt\");\r\n fr = new FileReader (arch);\r\n br = new BufferedReader(fr);\r\n\r\n \r\n String lin;\r\n \r\n while((lin=br.readLine())!=null){\r\n wor.add(lin);\r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n \r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n \r\n //Ciclo para separar y obtener la palabra en ingles y español\r\n for(int i=0; i<wor.size()-1;i++){\r\n int lugar=wor.get(i).indexOf(',');\r\n String ing=wor.get(i).substring(0,lugar);\r\n String esp=wor.get(i).substring(lugar+1,wor.get(i).length());\r\n asociaciones.add(new Association(ing, esp));\r\n }\r\n \r\n rz.setValue(asociaciones.get(0));\r\n for (int i=1; i<asociaciones.size(); i++){\r\n insertarNodo(rz, asociaciones.get(i));\r\n }\r\n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }", "public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}", "public List<Articulos> listarArticulos(){\n\t\treturn iArticulos.findAll();\n\t}", "public void liste()\n {\n Collections.sort(listOrder, new Comparator<Order>() {\n @Override\n public int compare(Order o1, Order o2) {\n return o1.getStart() - o2.getStart(); // use your logic, Luke\n }\n });\n System.out.println(\"LISTE DES ORDRES\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"ID\", \"DEBUT\", \"DUREE\", \"PRIX\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n for(int i = 0; i< listOrder.size(); i++) {\n Order order = listOrder.get(i);\n afficherOrdre(order);\n }\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n }", "public void cadastrarOfertasQuad1(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q1.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(1);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas1LazyModel = null;\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }", "public void darCoordenadasIniciales() \r\n\t{\t\r\n\t\tint coordenadasX = 0;\r\n\t\tint coordenadasY = 1;\r\n\t\tint orientacion = 2;\r\n\t\t\r\n\t\tfor (int x = 0; x<palabras.size();x++) \r\n\t\t{\r\n\t\t\tpalabras.get(x).get(0).setX(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasX)));\r\n\t\t\tpalabras.get(x).get(0).setY(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasY)));\r\n\t\t\tpalabras.get(x).get(0).setOrientacion(manejadorArchivos.getPalabras().get(orientacion));\r\n\t\t\t\r\n\t\t\t coordenadasX = coordenadasX +4;\r\n\t\t\t coordenadasY = coordenadasY + 4;\r\n\t\t\t orientacion = orientacion + 4;\r\n\t\t}\r\n\t}", "private void actualizarEnemigosItems() {\n if(estadoMapa== EstadoMapa.RURAL || estadoMapa== EstadoMapa.RURALURBANO ){\n moverCamionetas();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.URBANO || estadoMapa == EstadoMapa.URBANOUNIVERSIDAD){\n moverCarroLujo();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.UNIVERSIDAD){\n moverCarritoGolf();\n moverAves();\n }\n if (estadoMapa == EstadoMapa.SALONES){\n moverLamparas();\n moverSillas();\n }\n actualizaPuntuacion();\n moverTareas();\n moverItemCorazon();\n verificarColisiones();\n verificarMuerte();\n moverItemRayo();\n /*\n IMPLEMENTAR\n\n //moverPajaro();\n //etc\n */\n }", "public void cadastrarOfertasQuad2(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q2.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine(); \n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(2);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas2LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "public ArticulosAdd() {\n initComponents();\n Sistema.lblNotificacion.setText(\"Ingreso Artítuclos\");\n this.setLocationRelativeTo(null);\n\n Date date = new Date();\n\n dtDesde.setDate(date);\n dtHasta.setDate(date);\n\n articulos.searchArticulo(cboArticulos, \"\", 0, 1000, 0);\n }", "public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }", "private void moverCamionetas() {\n for (Camioneta cam : arrEnemigosCamioneta) {\n cam.render(batch);\n\n cam.moverIzquierda();\n }\n }", "private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }", "@Test\n\tpublic void testRicercaArticolo2() {\n\t\tArticolo l1 = new Libro(\"Titolo1\", \"Autore\", \"Genere\", \n\t\t\t\t\"Collocazione\", b1, 012345 , \"Casa Editrice\", 150);\n\t\tb1.getPossiede().add(l1);\n\t\tString ricerca = \"NO\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve essere vuota\", trovati.isEmpty());\n\t}", "public Vector<Artista> findAllArtisti();", "private void actualizarEnConsola() {\n\t\tfor(int i=0; i<elementos.size();i++){\n\t\t\tElemento e = elementos.get(i);\n\t\t\tSystem.out.println(e.getClass().getName()+\"- Posicion: , X: \"+e.getPosicion().getX()+\", Y: \"+ e.getPosicion().getY());\n\t\t}\n\t\t\n\t}", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }", "@Test\n\tpublic void testRicercaArticolo3() {\n\t\tArticolo l1 = new Libro(\"Titolo1\", \"Autore\", \"Genere\", \n\t\t\t\t\"Collocazione\", b1, 012345 , \"Casa Editrice\", 150);\n\t\tb1.getPossiede().add(l1);\n\t\tString ricerca = \"Titolo1\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve contenere l1\", trovati.contains(l1));\n\t}", "public void cadastrarOfertasQuad3(){\n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q3.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(3);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas3LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }", "public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }", "public void inicializarSugeridos() {\n\t\tarticulosSugeridos = new ArrayList<>();\n\t\tfor(Articulo articulo : this.getMain().getArticulosEnStock()) {\n\t\t\tarticulosSugeridos.add(articulo.getNombre().get() + \" - \" + articulo.getTalle().get());\n\t\t}\n\t\tasignarSugeridos();\n\t\tinicializarTxtArticuloVendido();\n\t}", "private intFrmArticulos() {\r\n initComponents();\r\n lista2 = p.listarArticulos2();\r\n artList.addAll(lista2);\r\n ArticulosTableFormat tblArt = new ArticulosTableFormat();\r\n EventTableModel<Articulos> artTableModel = new EventTableModel(artList, tblArt);\r\n jTable1.setModel(artTableModel);\r\n \r\n\r\n }", "private void Show (int inicio, int fin){\n int start = inicio;\n int end = fin; \n for(int i = start; i<=end; i++){\n areaT.append(this.letrasTexto[i]);\n } \n areaT.append(this.tipo.getDescripcion()+\"\\n\");\n }", "public void generarCuestionario() {\n setLayout(null);\n \n setTitle(\"Cuestionario de Fin de Curso\"); \n \n //Con el modelo construido debemos representar uestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n \n Opcion op1 = new Opcion();\n op1.setTitulo(\"Londres\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"Roma\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Paris\");\n op3.setCorrecta(true);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Oslo\");\n op4.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Cual es la capital de Francia\");\n p1.setOpciones(opciones);\n \n //Opiciones de la pregumta Numero 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Atlantico\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Indico\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Artico\");\n op23.setCorrecta(false);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Pacifico\");\n op24.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Cual es el oceano más grande del mundo?\");\n p2.setOpciones(opciones2);\n \n //Opiciones de la pregumta Numero 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"Cristobal Colon\");\n op31.setCorrecta(true);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Cristobal Nodal\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Cuahutemoc blanco\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Cuahutemoc\");\n op34.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien descubrio América?\");\n p3.setOpciones(opciones3);\n \n //Opiciones de la pregumta Numero 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"Fernanflo\");\n op41.setCorrecta(false);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Polinesios\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"Eh vegeta\");\n op43.setCorrecta(true);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Willyrex\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Quien es el mejor youtuber?\");\n p4.setOpciones(opciones4);\n \n //Opiciones de la pregumta Numero 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Amarillo patito\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Verde Sherec\");\n op52.setCorrecta(false);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Rojo me faltas tú\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Azul\");\n op54.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5 = {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿De que color es el cielo?\");\n p5.setOpciones(opciones5);\n \n //Opiciones de la pregumta Numero 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"200\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"100\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"45\");\n op63.setCorrecta(true);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"13\");\n op64.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿De cuantas localidades se compone una memoria de 8x5?\");\n p6.setOpciones(opciones6);\n \n //Opiciones de la pregumta Numero 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Try - Catch\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"IF\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Switch - Case\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"For anidado\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que estructura condicional se recomienda usar menos en una interfaz de usuario?\");\n p7.setOpciones(opciones7);\n \n //Opiciones de la pregumta Numero 8\n Opcion op81 = new Opcion();\n op81.setTitulo(\"Access\");\n op81.setCorrecta(false);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Oracle\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"MySQL\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Mongo DB\");\n op84.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Es una base de datos no relacional de uso moderno?\");\n p8.setOpciones(opciones8);\n \n //Opiciones de la pregumta Numero 9\n Opcion op91 = new Opcion();\n op91.setTitulo(\"GitHub\");\n op91.setCorrecta(true);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"MIcrosoft teams\");\n op22.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Zoom\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"Collaborate\");\n op94.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿Es una plataforma para trabajo en línea?\");\n p9.setOpciones(opciones9);\n\n //Opiciones de la pregumta Numero 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Prog. a nivel maquina\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Prog. orientada a objetos\");\n op102.setCorrecta(true);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"MySQL\");\n op103.setCorrecta(false);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"C++\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que aprendi en este curso?\");\n p10.setOpciones(opciones10);\n\n\n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n\n //Se agrega a este list la unica prgunta que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n c.setPreguntas(preguntas);\n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la preunta\n mostrarPregunta(preguntaActual);\n \n Salir.setVisible(false);\n siguiente.setEnabled(false);\n \n }", "public List<ArticLine> getArticLines() {\n\n if (articLines == null) {\n articLines = new ArrayList<ArticLine>();\n\n List<Element> paragraphs = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"para\", omniPageXMLDocument.getDocumentElement());\n\n Integer lineCounter = 0;\n Boolean foundIntroOrAbstract = false;\n String previousAlignment = null;\n Element previousElement = null;\n if (paragraphs != null && !paragraphs.isEmpty()) {\n\n for (Element paragraphElement : paragraphs) {\n\n String alignment = getAlignment(paragraphElement);\n\n String paragraph = \"new\";\n\n List<Element> linesOfParagraph = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"ln\", paragraphElement);\n\n if (linesOfParagraph != null && !linesOfParagraph.isEmpty()) {\n for (Element lineElement : linesOfParagraph) {\n ArticLine articLine = new ArticLine(lineCounter, lineElement, previousElement,\n averagePageFontSize, alignment, previousAlignment, topBucketSize, leftBucketSize);\n articLines.add(articLine);\n\n String textContent = articLine.getOriginalText();\n\n if (textContent != null && Pattern.compile(\"intro|abstract\", Pattern.CASE_INSENSITIVE).\n matcher(textContent).find()) {\n foundIntroOrAbstract = true;\n }\n\n if (!foundIntroOrAbstract) { //special case for headers\n articLine.setParagraph(\"header\");\n } else {\n articLine.setParagraph(paragraph);\n }\n\n paragraph = \"same\";\n previousElement = lineElement;\n previousAlignment = alignment;\n lineCounter++;\n }\n }\n }\n }\n }\n\n return articLines;\n }", "public static void main(String[] args) \n\t{\n\t\tArticulo primero=new Articulo(1,\"primer articulo\");\n\t\tArticulo segundo=new Articulo(2,\"segundo articulo\");\n\t\tArticulo tercero=new Articulo(3,\"tercer articulo\");\n\t\t\n\t\t//almacenar estos objetos de tipo articulo en una coleccion TreeSet e imprimirlos para ver en que\n\t\t//orden lo imprimen\n\t\tSet<Articulo> ordenaArticulos=new TreeSet<Articulo>();\n\t\t\n\t\t//agregamos elemntos creadosde tipo articulos a esta coleccion es lo mismo en el orden que lo \n\t\t//agreguemos ya que con el metodo compareTo que implementa la clase articulo los ordena por \n\t\t//numero de articulo que le pasemos por parametro\n\t\tordenaArticulos.add(primero);\n\t\tordenaArticulos.add(tercero);\n\t\tordenaArticulos.add(segundo);\n\t\t\n\t\tfor(Articulo e:ordenaArticulos) \n\t\t{\n\t\t\tSystem.out.println(e.getDescripcion());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public void UnDia()\n {\n int i = 0;\n for (i = 0; i < 6; i++) {\n for (int j = animales.get(i).size() - 1; j >= 0; j--) {\n\n if (!procesoComer(i, j)) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n } else {\n if (animales.get(i).size() > 0 && j < animales.get(i).size()) {\n\n if (animales.get(i).get(j).reproducirse()) {\n ProcesoReproducirse(i, j);\n }\n if (j < animales.get(i).size()) {\n if (animales.get(i).get(j).morir()) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n }\n }\n }\n }\n\n }\n }\n if (krill == 0) {\n Utilidades.MostrarExtincion(0, dia);\n }\n modificarKrill();\n modificarTemperatura();\n ejecutarDesastres();\n for (i = 1; i < animales.size(); i++) {\n if (animales.get(i).size() == 0 && !extintos.get(i)) {\n extintos.set(i, true);\n Utilidades.MostrarExtincion(i, dia);\n }\n }\n dia++;\n System.out.println(dia + \":\" + krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "public Artista(String nombreArtista) {\n this.nombreArtista = nombreArtista;\n }", "public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }", "public void rellena_jcombobox_articulos()\r\n\t{\r\n\t\tresultset1 = base_datos.obtener_objetos(\"SELECT descripcionArticulo FROM articulos ORDER BY 1;\");\t\r\n\r\n\t\ttry //USAMOS UN WHILE PARA RELLENAR EL JCOMBOX CON LOS RESULTADOS DEL RESULSET\r\n\t\t{\r\n\t\t\twhile(resultset1.next())\r\n\t\t\t{\r\n\t\t\t\tcomboArticulo.addItem(resultset1.getString(\"descripcionArticulo\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void moverCarritoGolf() {\n for (AutoGolf carrito : arrEnemigosCarritoGolf) {\n carrito.render(batch);\n\n carrito.moverIzquierda();\n }\n }", "private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }", "public TrazoLibre() {\n this.linea = new ArrayList();\n }", "private void ordenarItems(Criterio criOrd) {\r\n // Ordenación > Desactivación Filtro\r\n desactivarFiltro(false);\r\n\r\n // Registra Criterio Ordenación\r\n this.criOrd = criOrd;\r\n\r\n // Ordenación Colección\r\n Collections.sort(CARRITO, new ComparadorItem(criOrd));\r\n\r\n // Mensaje\r\n System.out.printf(\"Items ordenados por %s%n\", criOrd.getNombre());\r\n\r\n // Pausa\r\n UtilesEntrada.hacerPausa();\r\n }", "protected void ucitajSortiranoPoBrojRez() {\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:alSort) {\r\n\t\t\t\r\n\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\tdtm.addRow(redovi);\r\n\t\t}\r\n\t}", "public void atacar() {\n texture = new Texture(Gdx.files.internal(\"recursos/ataques.png\"));\n rectangle=new Rectangle(x,y,texture.getWidth(),texture.getHeight());\n tmp = TextureRegion.split(texture, texture.getWidth() / 4, texture.getHeight() / 4);\n switch (jugadorVista) {\n case \"Derecha\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Izquierda\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Abajo\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Arriba\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n }\n }", "public ArrayList<Articulo> dameArticulo(){\n\t\t\n\t\t\n\t\treturn null;\n\t}", "public void popular(){\n DAO dao = new DAO();\n modelo.setNumRows(0);\n\n for(Manuais m: dao.selecTudoManuaisVenda()){\n modelo.addRow(new Object[]{m.getId(),m.getNome(),m.getClasse(),m.getEditora(),m.getPreco()+\".00 MZN\"});\n \n }\n }", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "public Artista findArtista(int codiceArtista) throws RecordNonPresenteException;", "public void llenarOpciones(ArrayList<String> mezcales,ArrayList<String> porcentajes,ArrayList<String> tipos){\n for (String p : porcentajes) {\n alcohol.addItem(p + \"%\");\n }\n for (String t : tipos) {\n tipo.addItem(t);\n }\n String nombreMezcales[] = new String[mezcales.size()];\n for (int i = 0; i < mezcales.size(); i++) {\n nombreMezcales[i] = mezcales.get(i);\n }\n eleccion.setTextos(nombreMezcales);\n revalidate();\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void afegirABultoSortida(Number iddoc, Number idlin, String idart, Number cantot, Number pes, boolean absolut)\n {\n Object [] obj = {getIdexped(), getIdbulto(), iddoc, idlin};\n Key key = new Key(obj);\n Row [] rows = getSgaexpedlbulto().findByKey(key, 1);\n if (rows != null && rows.length > 0)\n {\n SgaexpedlbultoImpl lbulto = (SgaexpedlbultoImpl)((ViewRowImpl)rows[0]).getEntity(0); \n if (!absolut)\n {\n // cantidades parciales\n lbulto.setCantot(lbulto.getCantot().add(cantot)); \n lbulto.setPeso(lbulto.getPeso().add(pes));\n }\n else\n {\n // cantidades totales\n lbulto.setCantot(cantot); \n lbulto.setPeso(pes);\n\n }\n // Retrieve cantot, may be needed below\n cantot = lbulto.getCantot();\n\n }\n else\n {\n SgaexpedlbultoImpl noulbulto = (SgaexpedlbultoImpl)getSgaexpedlbulto().createRow();\n noulbulto.setIdexped(getIdexped());\n noulbulto.setIddoc(iddoc);\n noulbulto.setIdlin(idlin);\n noulbulto.setCantot(cantot);\n noulbulto.setPeso(pes);\n \n \n getSgaexpedlbulto().insertRow(noulbulto);\n \n // Michael: Ja no correspond amb el bulto original\n setIdbultoOri(null);\n \n \n }\n // Veure si podem trobar tipus d'embalum, dimensions, i pes per comanda d'export,\n// SgacdocImpl cdoc = getSgacdoc();\n// if (cdoc.isExport()) \n// {\n// AppModuleImpl appModule = (AppModuleImpl)getDBTransaction().getRootApplicationModule();\n// \n// SgatipobultoParamViewRowImpl row = appModule.getSgatipobultoRow(idart, cantot);\n// if (row != null) \n// {\n// setAlto(row.getAlto());\n// setAncho(row.getAncho());\n// setLargo(row.getLargo());\n// setPesocont(row.getPeso());\n// setIdtipobulto(row.getIdtip());\n// }\n// \n// }\n\n }", "private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }", "private void dibujarPuntos() {\r\n for (int x = 0; x < 6; x++) {\r\n for (int y = 0; y < 6; y++) {\r\n panelTablero[x][y].add(obtenerIcono(partida.getTablero()\r\n .getTablero()[x][y].getColor()));\r\n }\r\n }\r\n }", "public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\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\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "public List<Artigo> getArtigos(String idRevista){\n List<Artigo> artigos = new ArrayList<>();\n Artigo a;\n String id, revistaID, titulo, corpo, nrConsultas,categoria;\n LocalDate data;\n\n try{\n connection = con.connect();\n PreparedStatement\n stm = connection.prepareStatement(\"SELECT * FROM Artigo \" +\n \"INNER JOIN Revista ON Artigo.Revista_ID = Revista.ID \" +\n \"WHERE Artigo.Revista_ID = \" + idRevista);\n ResultSet rs = stm.executeQuery();\n while(rs.next()){\n id = rs.getString(\"ID\");\n revistaID = rs.getString(\"Revista_ID\");\n data = rs.getDate(\"Data\").toLocalDate();\n titulo = rs.getString(\"Titulo\");\n corpo = rs.getString(\"Corpo\");\n nrConsultas = rs.getString(\"NrConsultas\");\n categoria = rs.getString(\"Categoria\");\n a = new Artigo(id,revistaID,data,titulo,corpo,nrConsultas, categoria);\n artigos.add(a);\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n con.close(connection);\n }\n return artigos;\n }", "@Override\n\tpublic void organizarTabla() {\n\t\tif (isEditingMode) {\n\t\t\tisEditingMode = false;\n\t\t}\n\t\telse {\n\t\t\tisEditingMode = true;\n\t\t}\n\t\tarrayGaleriaAux = new Vector<WS_ImagenVO>(imagenAdapter.getListAdapter());\n\t\timagenAdapter.setEditar(isEditingMode);\n\t\timagenAdapter.notifyDataSetChanged();\n\t\tacomodarBotones(ButtonStyleShow.ButtonStyleShowSave);\n\t}", "public static void main(String[] args) {\n//\t\tcrearNodos(cantNodos);\n//\t\tlista.extractFront();\n//\t\tlista.extractLast();\n//\t\tlista.insertLast(33);\n//\t\tlista.imprimir();\n//\t\t//System.out.print(lista.get(0));\n//\t\t\n//\t\tIterator<Integer> it1 = lista.iterator();\n//\t\t\twhile(it1.hasNext()) {\n//\t\t\t\tint valor = it1.next();\n//\t\t\t\tSystem.out.println(valor);\n//\t\t\t}\n//\t\tMyIterator<Integer> it2 = lista.iteratorReverse();\n//\t\t\twhile(it2.hasNext()) {\n//\t\t\t\tint valor = it2.back();\n//\t\t\t\tSystem.out.println(valor);\n//\t\t\t}\n\n\t\tlistaDeso1.insertFront(4);\n\t\tlistaDeso1.insertFront(2);\n\t\tlistaDeso1.insertFront(13);\n\t\tlistaDeso1.insertFront(7);\n\t\tlistaDeso1.insertFront(6);\n\n\t\tlistaDeso2.insertFront(9);\n\t\tlistaDeso2.insertFront(4);\n\t\tlistaDeso2.insertFront(6);\n\t\tlistaDeso2.insertFront(5);\n\t\tlistaDeso2.insertFront(13);\n\n//\t\tlistaOrde1.insertFront(2);\n//\t\tlistaOrde1.insertFront(4);\n//\t\tlistaOrde1.insertFront(6);\n//\t\tlistaOrde1.insertFront(8);\n//\t\tlistaOrde1.insertFront(11);\n//\t\t\n//\t\tlistaOrde2.insertFront(1);\n//\t\tlistaOrde2.insertFront(4);\n//\t\tlistaOrde2.insertFront(9);\n//\t\tlistaOrde2.insertFront(11);\n//\t\tlistaOrde2.insertFront(15);\n\t\t\n\t\tEje6<Integer> ord = new Eje6<Integer>();\n\t\t\n\t\tlista=ord.ambasDeso(listaDeso1, listaDeso2);\n\t}", "public void pesquisarArtista() {\n\t\t\r\n\t\tpAController = new ArtistaCtrl();\r\n\t\tObject[] possibilities = pAController.getArtista();\r\n\t\tString s = (String) JOptionPane.showInputDialog(frmAcervo, \"Escolha o artista:\\n\", \"Pesquisar o Artista\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE, null, possibilities, possibilities[0]);\r\n\t\tif (s != null && s.length() > 0) {\r\n\t\t\tnomeArtista.setText(s);\r\n\t\t\tartistaNome = s;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "private void mostrarRota() {\n int cont = 1;\n int contMelhorRota = 1;\n int recompensa = 0;\n int distanciaTotal = 0;\n List<Rota> calculaMR;\n\n System.out.println(\"\\n=================== =================== ========== #Entregas do dia# ========== =================== ===================\");\n for (RotasEntrega re : rotas) {\n Rota r = re.getRotaMenor();\n\n System.out\n .print(\"\\n\\n=================== =================== A \" + cont + \"º possível rota a ser realizada é de 'A' até '\" + r.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (r.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA possivel rota é: \" + printRoute(r));\n System.out.println(\n \"Com a chegada estimada de \" + r.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + r.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n r.getRecompensa() + \" real\" : r.getRecompensa() + \" reais\") + \".\");\n\n\n distanciaTotal += r.getDistancia();\n cont++;\n }\n\n calculaMR = calculaMelhorEntraga(distanciaTotal);\n System.out.println(\"\\n#############################################################################################################################\");\n\n for(Rota reS : calculaMR)\n {\n System.out\n .print(\"\\n\\n=================== =================== A \" + contMelhorRota + \"º rota a ser realizada é de 'A' até '\" + reS.getDestino() + \"' =================== ===================\");\n\n\n boolean isTrue = false;\n if (reS.getRecompensa() == 1) {\n isTrue = true;\n }\n\n System.out.println(\"\\n\\nA melhor rota é: \" + printRoute(reS));\n System.out.println(\n \"Com a chegada estimada de \" + reS.getDistancia() + \" unidades de tempo no destino \" + \"'\"\n + reS.getDestino() + \"'\" + \" e o valor para esta entrega será de \" + (isTrue ?\n reS.getRecompensa() + \" real\" : reS.getRecompensa() + \" reais\") + \".\");\n\n recompensa += reS.getRecompensa();\n contMelhorRota ++;\n }\n\n System.out.println(\"\\n\\nO lucro total do dia: \" + recompensa + \".\");\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\talunos.remove(indice);\n\t\t\t\t\n//LIMPAR OS CAMPOS\n\t\t\t\ttxtNome.setText(\"\");\n\t\t\t\ttxtNota1.setText(\"\");\n\t\t\t\ttxtNota2.setText(\"\");\n\t\t\t\t\n//CURSOR NO CAMPO NOME\n\t\t\t\ttxtNome.requestFocus();\n\t\t\t\t\n//ATUALIZAR DEFAULT TABLE MODEL\n\t\t\t\tdtm.setRowCount(0);\n\t\t\t\tfor (int i=0; i<alunos.size(); i++) {\n\t\t\t\t\tdtm.addRow(new Object[] {\n\t\t\t\t\t\talunos.get(i).getNome(),\n\t\t\t\t\t\talunos.get(i).getNota1(),\n\t\t\t\t\t\talunos.get(i).getNota2(),\n\t\t\t\t\t\talunos.get(i).getMedia(),\n\t\t\t\t\t\talunos.get(i).getSituacao()\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void cargarOfertas() {\r\n\t\tcoi.clearOfertas();\r\n\t\tController c = gui.getController();\r\n\t\tList<Integer> ofertas = c.ofertanteGetMisOfertas();\r\n\t\tfor (Integer id : ofertas) {\r\n\t\t\tString estado = c.ofertaGetEstado(id);\r\n\t\t\tif (estado.equals(GuiConstants.ESTADO_ACEPTADA) || estado.equals(GuiConstants.ESTADO_CONTRATADA)\r\n\t\t\t\t\t|| estado.equals(GuiConstants.ESTADO_RESERVADA)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOferta(gui, id);\r\n\t\t\t\tcoi.addActiva(oferta);\r\n\t\t\t} else if (estado.equals(GuiConstants.ESTADO_PENDIENTE) || estado.equals(GuiConstants.ESTADO_PENDIENTE)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOfertaEditable(gui, id);\r\n\t\t\t\tcoi.addPendiente(oferta);\r\n\t\t\t} else if (estado.equals(GuiConstants.ESTADO_RETIRADA)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOferta(gui, id);\r\n\t\t\t\tcoi.addRechazada(oferta);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcoi.repaint();\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tscrollPane.getHorizontalScrollBar().setValue(0);\r\n\t\t\t\tscrollPane.getVerticalScrollBar().setValue(0);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "protected void exibirMedicos(){\n System.out.println(\"--- MEDICOS CADASTRADOS ----\");\r\n String comando = \"select * from medico order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nome\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }", "public void mostrarSocios()\n\t{\n\t\t//titulo libro, autor\n\t\tIterator<Socio> it=socios.iterator();\n\t\t\n\t\tSystem.out.println(\"***********SOCIOS***********\");\n\t\tSystem.out.printf(\"\\n%-40s%-40s\", \"NOMBRE\" , \"APELLIDO\");\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tSocio socio=(Socio)it.next();\n\t\t\tSystem.out.printf(\"\\n%-40s%-40s\\n\",socio.getNombre(),socio.getApellidos());\n\t\t}\n\t}", "public void showMandje(){\r\n \r\n // Laat \r\n System.out.println(\"Winkelmand bevat de volgende items\");\r\n \r\n // Print alle artikelen die de in zijn winkelmandje heeft\r\n for(Artikel item : artikelen)\r\n {\r\n System.out.println(\"Naam:\" + item.getNaam() + \" prijs:\"+ item.getPrijs());\r\n }\r\n }", "public void retournerLesPilesParcelles() {\n int compteur = 0;\n //pour chacune des 4 piles , retourner la parcelle au sommet de la pile\n for (JLabel jLabel : pileParcellesGUI) {\n JLabel thumb = jLabel;\n retournerParcelles(thumb, compteur);\n compteur++;\n }\n }", "private void showArtistas(Artist c) {\n\t\tif (c != null) {\n\t\t\tArtist r = ArtistDAO.List_Artist_By_Name(c.getName());\n\t\t\tNombreArtista.setText(r.getName());\n\t\t\tNacionalidadArtista.setText(r.getNationality());\n\t\t\tFotoArtista.setText(r.getPhoto());\n\t\t\tBorrarArtista.setDisable(false);\n\t\t\ttry {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(r.getPhoto()));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t} catch (Exception e) {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(\"error.jpg\"));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tBorrarArtista.setDisable(true);\n\t\t\tNombreArtista.setText(\"\");\n\t\t\tNacionalidadArtista.setText(\"\");\n\t\t\tFotoArtista.setText(\"\");\n\t\t}\n\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tDimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint x = (int) ((dimension.getWidth() - frame.getWidth()) / 2);\r\n\t\tint y = (int) ((dimension.getHeight() - frame.getHeight()) / 2);\r\n\t\tframe.setLocation(x, y);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Barkod artikla:\");\r\n\t\tlblNewLabel.setBounds(76, 36, 93, 14);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(162, 34, 135, 17);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\t\r\n\t\tJButton btnPretrazi = new JButton(\"Pretrazi\");\r\n\t\tbtnPretrazi.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tObject[] redovi = new Object[4];\r\n\t\t\t\tString s=new String();\r\n\t\t\t\tint rowCount = dtm.getRowCount();\r\n\t\t\t\tfor (int i = rowCount - 1; i >= 0; i--) {\r\n\t\t\t\t\t dtm.removeRow(i);\r\n\t\t\t\t}\r\n\t\t\t\tArtikalKontroler ac = new ArtikalKontroler();\r\n\t\t\t\ts=ac.vratiArtikleZaBrisanje(textField.getText());\r\n\t\t\t\tString[] rijec = ac.vratiRazdovojeno(s);\t\t\t\r\n\t\t\t\tredovi[0] = rijec[0];\r\n\t\t\t\tredovi[1] = rijec[1];\r\n\t\t\t\tredovi[2] = rijec[2];\r\n\t\t\t\tredovi[3] = rijec[3];\r\n\t\t\t\tid=rijec[4];\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPretrazi.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\r\n\t\tbtnPretrazi.setBounds(322, 32, 89, 23);\r\n\t\tframe.getContentPane().add(btnPretrazi);\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(43, 83, 368, 43);\r\n\t\tframe.getContentPane().add(scrollPane);\r\n\t\t\r\n\t\ttable = new JTable();\r\n\t\ttable.setModel(new DefaultTableModel(\r\n\t\t\tnew Object[][] {\r\n\t\t\t\t{null, null, null, null},\r\n\t\t\t},\r\n\t\t\tnew String[] {\r\n\t\t\t\t\"Naziv artikla\", \"Cijena\", \"Kolicina\", \"Barkod\"\r\n\t\t\t}\r\n\t\t));\r\n\t\tscrollPane.setViewportView(table);\r\n\t\t\r\n\t\tdtm.setColumnIdentifiers(kolone);\r\n\t\ttable.setModel(dtm);\r\n\t\t\r\n\t\tJButton btnObrisi = new JButton(\"Obrisi artikal\");\r\n\t\tbtnObrisi.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (table.getSelectedRow() != -1) {\t \r\n\t\t dtm.removeRow(table.getSelectedRow());\r\n\t\t ArtikalKontroler ac = new ArtikalKontroler();\r\n\t\t ac.obrisiArtikal(Long.parseLong(id));\r\n\t\t \r\n\t\t \r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnObrisi.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\r\n\t\tbtnObrisi.setBounds(175, 194, 113, 23);\r\n\t\tframe.getContentPane().add(btnObrisi);\r\n\t}", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "void addArt(Art art);", "public static void llenarWalmart(){\r\n \r\n \r\n Producto café = new Producto(\"cafe\", \"nescafe\", 77, 2);\r\n Nodo<Producto> nTemp = new Nodo(café);\r\n listaWalmart.agregarNodo(nTemp);\r\n \r\n Producto panblancobimbo = new Producto(\"pan blanco bimbo\", \"bimbo\", 30, 2);\r\n Nodo<Producto> nTemp2 = new Nodo(panblancobimbo);\r\n listaWalmart.agregarNodo(nTemp2);\r\n \r\n Producto lecheentera = new Producto(\"leche\", \"Lala\", 17, 2);\r\n Nodo<Producto> nTemp3 = new Nodo(lecheentera);\r\n listaWalmart.agregarNodo(nTemp3);\r\n \r\n Producto mantequilla = new Producto(\"mantequilla\", \"sin sal lala\", 11.50, 2);\r\n Nodo<Producto> nTemp4 = new Nodo(mantequilla);\r\n listaWalmart.agregarNodo(nTemp4);\r\n \r\n Producto huevoblanco= new Producto(\"huevo\", \"san juan\",50.50, 2);\r\n Nodo<Producto> nTemp5 = new Nodo(huevoblanco);\r\n listaWalmart.agregarNodo(nTemp5);\r\n \r\n Producto crema= new Producto(\"crema\", \"lala\", 46, 2);\r\n Nodo<Producto> nTemp6 = new Nodo(crema);\r\n listaWalmart.agregarNodo(nTemp6);\r\n \r\n Producto naranja= new Producto(\"naranja\", \"valencia\", 15.90, 0);\r\n Nodo<Producto> nTemp7 = new Nodo(naranja);\r\n listaWalmart.agregarNodo(nTemp7);\r\n \r\n Producto limon= new Producto(\"limon\", \"limon agrio\", 25.90, 0);\r\n Nodo<Producto> nTemp8 = new Nodo(limon);\r\n listaWalmart.agregarNodo(nTemp8);\r\n \r\n Producto manzana= new Producto(\"manzana\", \"red delicious\", 39.90, 0);\r\n Nodo<Producto> nTemp9 = new Nodo(manzana);\r\n listaWalmart.agregarNodo(nTemp9);\r\n \r\n Producto plátano = new Producto(\"platano\", \"chiapas\", 13.90, 0);\r\n Nodo<Producto> nTemp10 = new Nodo(plátano);\r\n listaWalmart.agregarNodo(nTemp10);\r\n \r\n Producto papaya= new Producto(\"papaya\", \"maradol\",27.90, 0);\r\n Nodo<Producto> nTemp11 = new Nodo(papaya);\r\n listaWalmart.agregarNodo(nTemp11);\r\n \r\n Producto uva= new Producto(\"uva\", \"roja sin semilla\", 59, 0);\r\n Nodo<Producto> nTemp12 = new Nodo(uva);\r\n listaWalmart.agregarNodo(nTemp12);\r\n \r\n Producto chiledelarbol= new Producto(\"chile del arbol\", \"verde valle\", 20, 2);\r\n Nodo<Producto> nTemp13 = new Nodo(chiledelarbol);\r\n listaWalmart.agregarNodo(nTemp13);\r\n \r\n Producto piernaymuslodepollo = new Producto(\"pierna y muslo de pollo\", \"bachoco\", 34, 1);\r\n Nodo<Producto> nTemp14 = new Nodo(piernaymuslodepollo);\r\n listaWalmart.agregarNodo(nTemp14);\r\n \r\n Producto pechugadepollo= new Producto(\"pechuga de pollo\", \"bachoco\", 114, 1);\r\n Nodo<Producto> nTemp15 = new Nodo(pechugadepollo);\r\n listaWalmart.agregarNodo(nTemp15);\r\n \r\n Producto costilladecerdo= new Producto(\"costilla de cerdo\", \"pork loin\", 114, 1);\r\n Nodo<Producto> nTemp16 = new Nodo(costilladecerdo);\r\n listaWalmart.agregarNodo(nTemp16);\r\n \r\n Producto carnemolida= new Producto(\"carne molida\", \"premium\", 152, 1);\r\n Nodo<Producto> nTemp17 = new Nodo(carnemolida);\r\n listaWalmart.agregarNodo(nTemp17);\r\n \r\n Producto chuletadecostilla= new Producto(\"chuleta de costilla\", \"premium\", 219, 1);\r\n Nodo<Producto> nTemp18 = new Nodo(chuletadecostilla);\r\n listaWalmart.agregarNodo(nTemp18);\r\n \r\n Producto pescado= new Producto(\"pescado\", \"sierra del golfo\", 89, 1);\r\n Nodo<Producto> nTemp19 = new Nodo(pescado);\r\n listaWalmart.agregarNodo(nTemp19);\r\n \r\n Producto atun= new Producto(\"atun\", \"herdez\", 18.50, 2);\r\n Nodo<Producto> nTemp20 = new Nodo(atun);\r\n listaWalmart.agregarNodo(nTemp20);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"verde valle super extra\", 22.50, 2);\r\n Nodo<Producto> nTemp21 = new Nodo(arroz);\r\n listaWalmart.agregarNodo(nTemp21);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"verde valle\", 30, 2);\r\n Nodo<Producto> nTemp22 = new Nodo(frijol);\r\n listaWalmart.agregarNodo(nTemp22);\r\n \r\n \r\n Producto azucar= new Producto(\"azucar\", \"zulka\", 54, 2);\r\n Nodo<Producto> nTemp23 = new Nodo(azucar);\r\n listaWalmart.agregarNodo(nTemp23);\r\n \r\n Producto consome= new Producto(\"consome\", \"knorr\", 7, 2);\r\n Nodo<Producto> nTemp24 = new Nodo(consome);\r\n listaWalmart.agregarNodo(nTemp24);\r\n \r\n Producto galletassaladas= new Producto(\"galletas saladas\", \"saladitas\", 40, 2);\r\n Nodo<Producto> nTemp25 = new Nodo(galletassaladas);\r\n listaWalmart.agregarNodo(nTemp25);\r\n \r\n Producto sal= new Producto(\"sal\", \"la fina\", 8.90, 2);\r\n Nodo<Producto> nTemp26 = new Nodo(sal);\r\n listaWalmart.agregarNodo(nTemp26);\r\n \r\n Producto pimienta= new Producto(\"pimienta\", \"mccormick\", 47.50, 2);\r\n Nodo<Producto> nTemp27= new Nodo(pimienta);\r\n listaWalmart.agregarNodo(nTemp27);\r\n \r\n Producto comino= new Producto(\"comino\", \"mccormick\", 30, 2);\r\n Nodo<Producto> nTemp28 = new Nodo(comino);\r\n listaWalmart.agregarNodo(nTemp28);\r\n \r\n Producto canela= new Producto(\"canela\", \"el cuernito\", 4.50, 2);\r\n Nodo<Producto> nTemp29 = new Nodo(canela);\r\n listaWalmart.agregarNodo(nTemp29);\r\n \r\n Producto cebolla= new Producto(\"cebolla\", \"blanca\", 31.90, 2);\r\n Nodo<Producto> nTemp30 = new Nodo(cebolla);\r\n listaWalmart.agregarNodo(nTemp30);\r\n \r\n Producto zanahoria= new Producto(\"zanahoria\", \"simple\", 19.50, 2);\r\n Nodo<Producto> nTemp31 = new Nodo(zanahoria);\r\n listaWalmart.agregarNodo(nTemp31);\r\n \r\n Producto polvoparaprepararbebida= new Producto(\"polvo para preparar bebida\", \"zuko\", 3.80, 2);\r\n Nodo<Producto> nTemp32 = new Nodo(polvoparaprepararbebida);\r\n listaWalmart.agregarNodo(nTemp32);\r\n \r\n Producto cereal= new Producto(\"cereal\", \"nestle\", 39.90, 2);\r\n Nodo<Producto> nTemp33 = new Nodo(cereal);\r\n listaWalmart.agregarNodo(nTemp33);\r\n \r\n Producto sopa= new Producto(\"sopa\", \"aurrera \", 3.10, 2);\r\n Nodo<Producto> nTemp34 = new Nodo(sopa);\r\n listaWalmart.agregarNodo(nTemp34);\r\n \r\n \r\n Producto espagueti= new Producto(\"espagueti\", \"moderna\", 5.20, 2);\r\n Nodo<Producto> nTem35 = new Nodo(espagueti);\r\n listaWalmart.agregarNodo(nTem35);\r\n \r\n Producto maquinaparaafeitar= new Producto(\"maquina para afeitar\", \"gillette prestobarba\", 20, 3);\r\n Nodo<Producto> nTemp35 = new Nodo(maquinaparaafeitar);\r\n listaWalmart.agregarNodo(nTemp35);\r\n \r\n Producto shampoo= new Producto(\"shampoo\", \"ego black\", 63.50, 3);\r\n Nodo<Producto> nTemp36 = new Nodo(shampoo);\r\n listaWalmart.agregarNodo(nTemp36);\r\n \r\n \r\n Producto pastadental= new Producto(\"pasta dental\", \"colgate\", 43.50, 3);\r\n Nodo<Producto> nTemp37 = new Nodo(pastadental);\r\n listaWalmart.agregarNodo(nTemp37);\r\n \r\n Producto papelhigienico= new Producto(\"papel higienico\", \"elite\", 17.50, 3);\r\n Nodo<Producto> nTemp38 = new Nodo(papelhigienico);\r\n listaWalmart.agregarNodo(nTemp38);\r\n \r\n Producto pañuelos = new Producto(\"pañuelos\", \"kleenex\", 14.50, 3);\r\n Nodo<Producto> nTemp39 = new Nodo(pañuelos);\r\n listaWalmart.agregarNodo(nTemp39);\r\n \r\n Producto cremad = new Producto(\"crema\", \"pond´s\", 56, 2);\r\n Nodo<Producto> nTemp40 = new Nodo(cremad);\r\n listaWalmart.agregarNodo(nTemp40);\r\n \r\n Producto desodorantemasculino= new Producto(\"desodorante masculino\", \"stefano\", 41.50, 3);\r\n Nodo<Producto> nTemp41 = new Nodo(desodorantemasculino);\r\n listaWalmart.agregarNodo(nTemp41);\r\n \r\n Producto desodorantefemenino= new Producto(\"desodorante femenino\", \"lady speed stick\", 23, 3);\r\n Nodo<Producto> nTemp42 = new Nodo(desodorantefemenino);\r\n listaWalmart.agregarNodo(nTemp42);\r\n \r\n Producto cloro= new Producto(\"cloro\", \"cloralex\", 21, 3);\r\n Nodo<Producto> nTemp43 = new Nodo(cloro);\r\n listaWalmart.agregarNodo(nTemp43);\r\n \r\n Producto pinol= new Producto(\"pinol\", \"pinol\", 29.90, 3);\r\n Nodo<Producto> nTemp44 = new Nodo(pinol);\r\n listaWalmart.agregarNodo(nTemp44);\r\n \r\n Producto lavatrastes= new Producto(\"lavatrastes\", \"axion\", 36.90, 3);\r\n Nodo<Producto> nTemp45 = new Nodo(lavatrastes);\r\n listaWalmart.agregarNodo(nTemp45);\r\n \r\n Producto deterjente= new Producto(\"deterjente\", \"finish\", 99, 3);\r\n Nodo<Producto> nTemp46 = new Nodo(deterjente);\r\n listaWalmart.agregarNodo(nTemp46);\r\n \r\n Producto queso= new Producto(\"queso\", \"chichuahua\", 125, 1);\r\n Nodo<Producto> nTemp47 = new Nodo(queso);\r\n listaWalmart.agregarNodo(nTemp47);\r\n \r\n Producto lentejas= new Producto(\"lentejas\", \"verde valle\", 25.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo(lentejas);\r\n listaWalmart.agregarNodo(nTemp48);\r\n \r\n Producto papitas= new Producto(\"papitas\", \"sabritas\", 36, 2);\r\n Nodo<Producto> nTemp49 = new Nodo(papitas);\r\n listaWalmart.agregarNodo(nTemp49);\r\n \r\n Producto mole= new Producto(\"mole\", \"doña maria \", 33, 2);\r\n Nodo<Producto> nTemp50 = new Nodo(mole);\r\n listaWalmart.agregarNodo(nTemp50);\r\n }", "public List<Escritor> getEscritores (String idArtigo) {\n List<Escritor> esc = new ArrayList<>();\n Escritor e = null;\n try {\n connection = con.connect();\n PreparedStatement stm = connection.prepareStatement(\"SELECT Escritor.* FROM Escritor \" +\n \"INNER JOIN EscritorArtigo \" +\n \"ON Escritor.ID = EscritorArtigo.Escritor_ID \" +\n \"WHERE EscritorArtigo.Artigo_ID = \" + idArtigo);\n ResultSet rs = stm.executeQuery();\n while(rs.next()){\n e = new Escritor(rs.getString(\"ID\"), rs.getString(\"Nome\"));\n esc.add(e);\n }\n\n }\n catch (SQLException e1) {\n e1.printStackTrace();\n }\n finally {\n con.close(connection);\n }\n return esc;\n }", "public boolean agregaArticulo(String id, String descripcion , byte[] imagen,double PV ,double PM, double PA,int articulosTotales) {\n\t\t\n\t\t// Regla de negocio: RN-01 no puede haber dos libros con el mismo nombre\n\t\tif(dao.recupera(id) != null) \n\t\t\treturn false;\n\t\t\n\t\tArticulo articulo=new Articulo(id, descripcion, imagen,PV,PM,PA, articulosTotales);\n\t\tdao.crea(articulo);\n\t\treturn true;\n\t\t\n\t}", "public Nodo espaciosJustos(Nodo nodo){\n System.out.println(\"----------------inicio heuristica espaciosJustos--------------\");\n Operadores operadores = new Operadores();\n //variables de matriz\n int numFilas,numColumnas,numColores;\n \n numColumnas = nodo.getnColumnas();\n numFilas = nodo.getnFilas();\n numColores = nodo.getnColores();\n \n String [][] matriz = new String [numFilas][numColumnas];\n matriz = operadores.clonarMatriz(nodo.getMatriz());\n //-------------------\n \n //variables de filas y columnas\n ArrayList<ArrayListColumna> columnas = new ArrayList<ArrayListColumna>();\n columnas = (ArrayList<ArrayListColumna>)nodo.getColumnas();\n \n ArrayList<ArrayListFila> filas = new ArrayList<ArrayListFila>();\n filas = (ArrayList<ArrayListFila>)nodo.getFilas();\n //---------------------------\n \n ArrayListFila auxListFila = new ArrayListFila();\n ArrayListColumna auxListColumna = new ArrayListColumna();\n \n int cambio=1;\n int changue=0;\n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i=0;i<numFilas;i++){\n auxListFila = (ArrayListFila)filas.get(i);\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n\n if(auxColor.getNumero() > 0){\n int contador=0;\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n contador++;\n }\n }\n }\n }\n \n if(auxColor.getNumero() == contador){\n changue=1;\n cambio=1;\n auxColor.setNumero(0);\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n \n auxColor1.setNumero(auxColor1.getNumero()-1);\n\n matriz = operadores.pintarPosicion(matriz, i, c, auxColor.getColor());\n\n nodo.setMatriz(matriz);\n }\n }\n }\n }\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n \n \n }\n }\n }\n }\n \n }\n if(changue==1) nodo.setCambio(1);\n System.out.println(\"----------------fin heuristica espaciosJustos-------------- \");\n return (Nodo)nodo;\n }", "public Artigo getM_artigo() {\r\n return m_artigo;\r\n }", "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "public void imprimir_etiquetas() {\n\n\t\tLinkedList l = new LinkedList();\n\t\tString q=\"select id,isnull(idarticulo,''),isnull(descripcion,''),isnull(cantidad,0),isnull(especial,0),isnull(especial_width,0),isnull(especial_height,0),isnull(quitarprefijo,0) from b_etiquetas where isnull(impresa,0)=0 order by id \";\n\t\tList<String> ids=new ArrayList<String>();\t\n\t\tObject[][] results=data.getResults(q);\n\t\tif (results!=null){\n\t\t\tif (results.length>0){\n\t\t\t\tif (_debug>0) System.out.println(\"Etiquetas para imprimir=\"+results.length);\n\t\t\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\t\t\tString idarticulo = \"\";\n\t\t\t\t\tString id = \"\";\n\t\t\t\t\tString descripcion = \"\";\n\t\t\t\t\tString cant = \"\";\n\t\t\t\t\tString width = \"\";\n\t\t\t\t\tString height = \"\";\n\t\t\t\t\tString prefijo = \"\";\n\t\t\t\t\tint _width=40;\n\t\t\t\t\tint _height=40;\n\t\t\t\t\tdouble _cant = 0.0;\n\t\t\t\t\tboolean especial=false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tid = (String) results[i][0];\n\t\t\t\t\t\tidarticulo = (String) results[i][1];\n\t\t\t\t\t\tdescripcion = (String) results[i][2];\n\t\t\t\t\t\tcant = (String) results[i][3];\n\t\t\t\t\t\tespecial = ((String) results[i][4]).compareTo(\"1\")==0;\n\t\t\t\t\t\twidth = (String) results[i][5];\n\t\t\t\t\t\theight = (String) results[i][6];\n\t\t\t\t\t\tprefijo = (String) results[i][7];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t_width=new Integer(width);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t_height=new Integer(height);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_cant = new Double(cant);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tids.add(id);\n\t\t\t\t\tif (_cant >= 1) {\n\t\t\t\t\t\tif (idarticulo.compareTo(\"\")!=0){\n\t\t\t\t\t\t\tif (descripcion.compareTo(\"\")!=0){\n\t\t\t\t\t\t\t\tdescripcion.replaceAll(\"'\", \"\");\n\t\t\t\t\t\t\t\tStrEtiqueta str_etiqueta = new StrEtiqueta();\n\t\t\t\t\t\t\t\tstr_etiqueta.setCodigo(idarticulo);\n\t\t\t\t\t\t\t\tstr_etiqueta.setDescripcion(descripcion);\n\t\t\t\t\t\t\t\tstr_etiqueta.setCantidad(new Double(_cant).intValue());\n\t\t\t\t\t\t\t\tstr_etiqueta.setEspecial(especial);\n\t\t\t\t\t\t\t\tstr_etiqueta.setWidth(_width);\n\t\t\t\t\t\t\t\tstr_etiqueta.setHeight(_height);\n\t\t\t\t\t\t\t\tstr_etiqueta.setQuitar_prefijo(prefijo.compareTo(\"1\")==0);\n\t\t\t\t\t\t\t\tl.add(str_etiqueta);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (l.size() > 0) {\n\n\t\t\t\t\t// ImpresionCodigoDeBarras PI=new ImpresionCodigoDeBarras();\n\n\t\t\t\t\t\tprinting pi = this.getPrintingInterface();\n\t\t\t\t\t\tpi.setPrintList(l);\n\t\t\t\t\t\tpi.setDebug(false);\n\t\t\t\t\t\tboolean ok = pi.print_job();\n\t\t\t\t\t\tif (ok){\n\t\t\t\t\t\t\tif (_printer_error>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Se Enviaron las Etiquetas Pendientes a la Impresora\");\n\t\t\t\t\t\t\t\tthis.trayIcon.displayMessage(\"Beta Servidor de Impresion\", \"Se Enviaron las Etiquetas Pendientes a la Impresora\", TrayIcon.MessageType.INFO);\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tthis.trayIcon.displayMessage(\"Beta Servidor de Impresion\", \"Se Enviaron las Etiquetas a la Impresora\", TrayIcon.MessageType.INFO);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_printer_error=0;\n\t\t\t\t\t\t\tdata.beginTransaction();\n\t\t\t\t\t\t\tdata.clearBatch();\n\t\t\t\t\t\t\t\tfor (int i=0;i<ids.size();i++){\n\t\t\t\t\t\t\t\t\tq=\"update b_etiquetas set impresa=1 where id like '\"+ids.get(i)+\"'\";\n\t\t\t\t\t\t\t\t\tdata.addBatch(q);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdata.executeBatch();\n\t\t\t\t\t\t\t\tdata.commitTransaction();\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif (_printer_error<=0){\n\t\t\t\t\t\t\t\tthis._clock_printer_error=this._clock_printer_error_reset;\n\t\t\t\t\t\t\t\tSystem.out.println(\"primer error\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_printer_error=1;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t// PI.armar_secuencia();\n\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "Set<Art> getAllArt();", "@Override\n\tpublic String toString() {\n\t\tString ret = \"\";\n\t\t\n\t\tfor(Articulo articulo: articulos) {\n\t\t\tret += articulo.toString() + '\\n';\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "private void showDiscos(Disc c) {\n\t\tObservableList<String> artistas_nombres = FXCollections.observableArrayList();\n\n\t\tif (c != null) {\n\t\t\tartistas_nombres.clear();\n\t\t\tDisc r = DiscDAO.List_Disc_By_Name(c.getName());\n\t\t\tartistas_nombres.add(r.getArtist().getName());\n\t\t\tNombreDisco.setText(r.getName());\n\t\t\tArtistaDisco.setItems(artistas_nombres);\n\t\t\tArtistaDisco.setValue(r.getArtist().getName());\n\t\t\tFechaDisco.setValue(LocalDate.parse(c.getDate().toString()));\n\t\t\tFotoDisco.setText(r.getPhoto());\n\t\t\tBorrarDisco.setDisable(false);\n\t\t\ttry {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(r.getPhoto()));\n\t\t\t\tfodisco.setImage(image);\n\t\t\t} catch (Exception e) {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(\"error.jpg\"));\n\t\t\t\tfodisco.setImage(image);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tartistas_nombres.clear();\n\t\t\tartistas_nombres.addAll(ArtistDAO.List_All_Artist_Name());\n\t\t\tBorrarDisco.setDisable(true);\n\t\t\tNombreDisco.setText(\"\");\n\t\t\tArtistaDisco.setItems(artistas_nombres);\n\t\t\tArtistaDisco.setValue(null);\n\t\t\tFechaDisco.setValue(null);\n\t\t\tFotoDisco.setText(\"\");\n\t\t}\n\n\t}", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "public void showPosicoes() {\n this.print(\"\\n\");\n for (int i = 0; i < listaJogadores.size(); i++) {\n // System.out.print(posicoes[i] + \"\\t\");\n }\n }", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "private void cargarDatos() {\r\n txtRucDni.setText(objVentas.getObjCliente().getStr_rucdni());\r\n txtCliente.setText(objVentas.getObjCliente().getStr_razonSocial());\r\n txtDocumento.setText(objVentas.getStr_numeroDocumento());\r\n txtMonto.setText(String.valueOf(Util.redondeo(objVentas.getDbTotal(), 2) ));\r\n txtPaga.requestFocus();\r\n setLocationRelativeTo(null);\r\n\r\n String arr[] = objVentas.getStr_numeroDocumento().split(\"-\");\r\n \r\n \r\n \r\n \r\n List<Ventas> listaVentaDetalle = new ArrayList<>();\r\n listaVentaDetalle = PaqueteBusinessDelegate.getFlujoCajaService().\r\n listarVenta(String.valueOf(gui.getLocal().getInt_idLocal()), Util.SINPAGO, objVentas.getStr_numeroDocumento(), 2);\r\n cargarTabla(listaVentaDetalle);\r\n \r\n int cantidadDocumentos;\r\n if (!this.gui.getListaConfig().get(0).getTipoImpresion().equals(Config.TICKETERA)){\r\n //Determinar la cantidad de productos por documentos\r\n cantidadDocumentos=(listaVentaDetalle.size()/10);\r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n\r\n if(listaVentaDetalle.size()%10!=0)\r\n cantidadDocumentos++;\r\n }else{\r\n cantidadDocumentos = 1;\r\n }\r\n \r\n \r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n \r\n// System.out.println(\"local : \"+objVentas.getObjLocal().getInt_idLocal()+\" tD :\"+arr[2].trim());\r\n txtNroDocumento.setText(PaqueteBusinessDelegate.getVentasService().\r\n consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n \r\n// System.out.println(\"consulta : \"+PaqueteBusinessDelegate.getVentasService().\r\n// consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n String documento=txtNroDocumento.getText();\r\n String statico=txtNroDocumento.getText().split(\"/\")[0];\r\n// System.out.println(\"estatico : \"+statico);\r\n statico=statico.split(\"-\")[0].concat(\"-\").concat(statico.split(\"-\")[1]).concat(\"-\");\r\n \r\n\r\n if (cantidadDocumentos>1){\r\n for (int i=1;i<cantidadDocumentos;i++){\r\n \r\n if (i<cantidadDocumentos)\r\n documento+=\";\";\r\n \r\n documento+=statico.concat(String.valueOf( Util.stringTOint(\r\n txtNroDocumento.getText().split(\"/\")[0].split(\"-\")[2])+i)).\r\n concat(\"/\").concat(txtNroDocumento.getText().split(\"/\")[1]);\r\n\r\n \r\n log.info(\"NRO: \"+documento);\r\n }\r\n txtNroDocumento.setText(documento);\r\n }\r\n \r\n \r\n \r\n \r\n }", "public Torretta1(int danno, int x, int y, ArrayList<Proiettile> proiettili) {\r\n super();\r\n velocitàAttacco = 5000;\r\n attacco = danno;\r\n this.proiettili = proiettili;\r\n this.x = x * 40;\r\n this.y = y * 40 - 40;\r\n range = new Ellipse2D.Double();\r\n range.setFrame(this.x - 40, this.y - 40, 119, 119);\r\n temposparo = 200;\r\n finestrasparo = 0;\r\n costoAcquisto = 10;\r\n tipo='a';\r\n }", "public void consultarEditorialesDAO() {\n Collection<Editorial> editoriales = em.createQuery(\"SELECT e\"\n + \" FROM Editorial e\").getResultList();\n\n //Iteramos entre autores\n for (Editorial e : editoriales) {\n\n System.out.println(e.getNombre());\n\n }\n\n }", "public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }", "public static void inicializaMedicosText() {\n \n try (BufferedWriter bw = new BufferedWriter(new FileWriter(\"medicos.txt\"))) {\n for (Medico m : medicos) {\n if(m.getPuesto()==null)\n bw.write(m.getCedula() + \",\" + m.getNombres() + \",\" + m.getApellidos() + \",\" + m.getEdad() + \",0\");\n else\n bw.write(m.getCedula() + \",\" + m.getNombres() + \",\" + m.getApellidos() + \",\" + m.getEdad() + \",\" + m.getPuesto().getId());\n bw.newLine();\n }\n }\n catch (IOException ex) {\n Logger.getLogger(StageAdmin.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }" ]
[ "0.6367039", "0.625469", "0.6223288", "0.60230273", "0.5965494", "0.59653085", "0.59562105", "0.5879843", "0.58767307", "0.5861175", "0.58558834", "0.5843095", "0.58111244", "0.57910436", "0.577678", "0.57651013", "0.57493556", "0.5747753", "0.57467383", "0.57361025", "0.57278454", "0.57257175", "0.572206", "0.571136", "0.5708031", "0.57047004", "0.56991863", "0.5690084", "0.56894475", "0.5684127", "0.568269", "0.56815326", "0.5674956", "0.5661012", "0.56576455", "0.5639421", "0.5637059", "0.56351644", "0.56342584", "0.56339467", "0.5632727", "0.56289065", "0.56277996", "0.5625733", "0.5610462", "0.56092584", "0.5608583", "0.5608002", "0.56078994", "0.56046236", "0.5602678", "0.56011105", "0.5596326", "0.55937886", "0.5589138", "0.5588554", "0.55857927", "0.5584711", "0.5581145", "0.55768275", "0.55758864", "0.55755514", "0.55721706", "0.5571269", "0.55699146", "0.5561028", "0.55609745", "0.55594003", "0.5551184", "0.55508375", "0.5550641", "0.55456674", "0.55341595", "0.5532177", "0.5521352", "0.55183756", "0.5515732", "0.5515526", "0.5508775", "0.55073476", "0.5500231", "0.54762655", "0.54759294", "0.54749143", "0.54743564", "0.5474159", "0.54727226", "0.54708695", "0.54690087", "0.54674673", "0.54611784", "0.54579794", "0.5455506", "0.54541963", "0.54525596", "0.545252", "0.5451171", "0.5449719", "0.54460555", "0.54421854", "0.544153" ]
0.0
-1
Se encarga de la creacion de la compra y de devolver una respuesta
ResponseDTO createPurchase(PurchaseOrderDTO purchaseOrderDTO) throws ApiException, IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Compuesta createCompuesta();", "Compleja createCompleja();", "private HttpResponse sendCreateComputer() {\r\n\t\tHttpResponse result = null;\r\n Log.i(TAG,\"sendCreateComputer to: \"+ m_url);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//\r\n\t\t\t// Use this client instead of default one! June 2013\r\n\t\t\t//\r\n\t\t\tHttpClient httpclient = getNewHttpClient();\r\n\t\t\tHttpPost verb = new HttpPost(m_url);\r\n\t\t\tverb.addHeader(\"User-Agent\", \"occi-client/1.0\");\r\n\t\t\tverb.addHeader(\"Content-Type\", \"text/occi\");\r\n\t\t\tverb.addHeader(\"Accept\", \"text/occi\");\r\n\t\t\t\r\n\t\t\t// TODO: Replace with input values\r\n\t\t\tString urlEncodedAccount2 = \"cGx1Z2Zlc3QyMDEzOnBsdWdmZXN0MjAxMw==\"; // plugfest2013\r\n\t\t\tverb.addHeader(\"Authorization\", \"Basic \" + urlEncodedAccount2);\r\n\t Log.e(TAG,\"Authorization: Basic \"+ urlEncodedAccount2);\r\n\r\n\t\t\t\r\n\t //\r\n\t // Note: For this demo, put OCCI message in header.\r\n\t //StringBuffer payload = new StringBuffer();\r\n\t //\r\n\t verb.addHeader(\"Category\", \"compute\");\r\n\t verb.addHeader(\"Category\", \"compute; scheme=\\\"http://schemas.ogf.org/occi/infrastructure#\\\"; class=\\\"kind\\\"\");\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.hostname=\"+m_Compute.getTitle());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.memory=\"+ m_Compute.getMemory());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.cores=\"+ m_Compute.getCores());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.state=\"+ m_Compute.getStatusAsString());\t\t\t\t\t\t\r\n\r\n\r\n\t\t\tHttpResponse httpResp = httpclient.execute(verb);\t\t\t\r\n\t\t\tint response = httpResp.getStatusLine().getStatusCode();\r\n\t\t if (response == 200 || response == 204 || response == 201) {\r\n\t\t \tresult = httpResp;\r\n\t\t } else {\r\n\t\t Log.e(TAG,\"Bad Repsonse, code: \"+ response);\r\n\t\t }\r\n\t\t} catch (Throwable t) {\r\n\t\t} \r\n\t\treturn result;\t\t\r\n\t}", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public void comprar(){\r\n\t\tSystem.out.println(\"He comprado...\");\r\n\t}", "public void enviarValoresCabecera(){\n }", "public void testCrearDispositivo() {\n\t\tString referencia = \"A0021R\";\n\t\tString nombre = \"Motorola G primera generacion\";\n\t\tString descripcion = \"1 GB de RAM\";\n\t\tint tipo = 1;\n\t\tString foto = \"url\";\n\t\tString emailAdministrador = \"[email protected]\";\n\t\ttry {\n\t\t\tdispositivoBL.crearDispositivo(referencia, nombre, descripcion, tipo, foto, emailAdministrador);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public ComprobanteContable createComprobante(\n Aerolinea a, Boleto boleto, Cliente cliente, String tipo) throws CRUDException {\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n return comprobante;\n }", "protected String cargarTempRojoBhcs(String url, String username,\n String password) throws Exception {\n try {\n getTempRojoBhcs();\n if(mTempRojoBhcs.size()>0){\n saveTempRojoBhcs(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/trojos\";\n TempRojoBhc[] envio = mTempRojoBhcs.toArray(new TempRojoBhc[mTempRojoBhcs.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<TempRojoBhc[]> requestEntity =\n new HttpEntity<TempRojoBhc[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveTempRojoBhcs(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveTempRojoBhcs(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "public void generarContrato() {\r\n\t\ttry {\r\n\t\t\tString nombre = Contrato.generarContrato(estudiante, periodo, reserva.getArrSitioPeriodo().getSitNombre());\r\n\t\t\tnombre = \"Contrato_\" + estudiante.getId().getPerDni() + \".zip\";\r\n\t\t\tthis.zip(estudiante.getId().getPerDni(), periodo.getPrdId());\r\n\t\t\tFunciones.descargarZip(url_contrato+ nombre);\r\n\t\t\t// MODIFICAR NOMBRE CONTRATO\r\n\t\t\tmngRes.agregarContratoReserva(estudiante, periodo.getPrdId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tFunciones.descargarPdf(url_contrato + \"error.pdf\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\r\n\t}", "public void crearCompraComic(CompraComicDTO compraComicDTO);", "@Override\n public ComprobanteContable createComprobante(Aerolinea a, Boleto boleto, Cliente cliente, String tipo, NotaDebito nota) throws CRUDException {\n\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n return comprobante;\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public BaseResponse criar(OperacaoRequest operacaoRequest) {\n\n\t\tBaseResponse base = new BaseResponse();\n\t\tOperacao operacao = new Operacao();\n\n\t\tConta conta = _contaRepository.findByHash(operacaoRequest.getHash());\n\t\tif (conta == null) {\n\t\t\tbase.StatusCode = 404;\n\t\t\tbase.Message = \"Conta não encontrada\";\n\t\t\treturn base;\n\t\t}\n\n\t\toperacao.setTipo(operacaoRequest.getTipo());\n\t\toperacao.setValor(operacaoRequest.getValor());\n\n\t\tswitch (operacaoRequest.getTipo()) {\n\t\tcase \"D\":\n\t\t\toperacao.setContaDestino(conta);\n\t\t\tbreak;\n\t\tcase \"S\":\n\t\t\toperacao.setContaOrigem(conta);\n\t\t\tbreak;\n\t\t}\n\n\t\t_repository.save(operacao);\n\t\tbase.Message = \"Operação Realizada\";\n\t\tbase.StatusCode = 200;\n\t\treturn base;\n\t}", "public boolean crea(Libro libro);", "protected String cargarNewVacunas(String url, String username,\n String password) throws Exception {\n try {\n getNewVacunas();\n if(mNewVacunas.size()>0){\n saveNewVacunas(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/newvacunas\";\n NewVacuna[] envio = mNewVacunas.toArray(new NewVacuna[mNewVacunas.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<NewVacuna[]> requestEntity =\n new HttpEntity<NewVacuna[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveNewVacunas(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveNewVacunas(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "OperacionColeccion createOperacionColeccion();", "@Test\r\n public void testCrear() throws Exception {\r\n System.out.println(\"crear\");\r\n String pcodigo = \"bravos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n MultiReparacion instance = new MultiReparacion();\r\n Reparacion expResult = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n Reparacion result = instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n \r\n assertEquals(expResult.getCodigo(), result.getCodigo());\r\n assertEquals(expResult.getNombre(), result.getNombre());\r\n assertEquals(expResult.getTipo(), result.getTipo());\r\n assertEquals(expResult.getPlacaVehiculo(), result.getPlacaVehiculo());\r\n assertEquals(expResult.getFechaAsignacion(), result.getFechaAsignacion());\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 }", "@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO generarExpedienteOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO generarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"generarExpedienteOrdenServicio\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try{\r\n expedienteDTO.setEstado(Constantes.ESTADO_ACTIVO);\r\n PghExpediente pghExpediente = ExpedienteGSMBuilder.toExpedienteDomain(expedienteDTO);\r\n pghExpediente.setFechaEstadoProceso(new Date());\r\n pghExpediente.setDatosAuditoria(usuarioDTO);\r\n crud.create(pghExpediente);\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(pghExpediente);\r\n \r\n //reg historicoEstado\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_EXPEDIENTE).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(pghExpediente.getIdExpediente(), null, pghExpediente.getIdEstadoProceso().getIdEstadoProceso(), pghExpediente.getIdPersonal().getIdPersonal(), pghExpediente.getIdPersonal().getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO);\r\n LOG.info(\"historicoEstado-->\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(retorno.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n //personalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null)).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n //personalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa())).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty()){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en generarExpedienteOrdenServicio\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }", "public String save() {\r\n\t\ttry {\r\n\r\n\t\t\tif (obs != null && !obs.trim().isEmpty()) {\r\n\t\t\t\tconcurso.setObservacionReserva(obs);\r\n\t\t\t\tconcursoHome.setInstance(concurso);\r\n\t\t\t\tString res = concursoHome.update();\r\n\t\t\t}\r\n\r\n\t\t\tfor (PlantaCargoDetDTO dto : listaPlantaCargoDto) {\r\n\r\n\t\t\t\tif (dto.getReservar()) {\r\n\t\t\t\t\tEstadoDet est = buscarEstado(\"en reserva\");\r\n\t\t\t\t\tif (!existeEnDetalle(dto.getPlantaCargoDet(), est)) {\r\n\t\t\t\t\t\t// buscar\r\n\r\n\t\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\t\tp.setActivo(true);\r\n\t\t\t\t\t\tp.setFechaAlta(new Date());\r\n\t\t\t\t\t\tp.setUsuAlta(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\tp.setNroOrden(2);\r\n\t\t\t\t\t\tp.setPlantaCargoDet(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\t\tif (est != null)\r\n\t\t\t\t\t\t\tp.setEstadoDet(est);\r\n\t\t\t\t\t\tp.setConcurso(concursoHome.getInstance());\r\n\t\t\t\t\t\tem.persist(p);\r\n\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(est.getEstadoCab());\r\n\t\t\t\t\t\tplanta.setEstadoDet(est);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Incidencia 1079 */\r\n\t\t\t\trefreshListaPuestoReservados();\r\n\t\t\t\t/**/\r\n\t\t\t\tEstadoCab estadoCab = obtenerEstadosCabecera(\"VACANTE\");\r\n\t\t\t\tif (esta(dto.getPlantaCargoDet())) {\r\n\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\tp = recuperarConcurso(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\tif (!dto.getReservar()) {\r\n\t\t\t\t\t\tif (p.getConcursoPuestoAgr() != null) {\r\n\t\t\t\t\t\t\tstatusMessages.clear();\r\n\t\t\t\t\t\t\tstatusMessages.add(Severity.ERROR,\r\n\t\t\t\t\t\t\t\t\t\"El puesto pertenece a un grupo\");\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * p.setActivo(true); p.setNroOrden(1);\r\n\t\t\t\t\t\t * p.setFechaMod(new Date());\r\n\t\t\t\t\t\t * p.setUsuMod(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\t * EstadoDet est = buscarEstado(\"libre\");\r\n\t\t\t\t\t\t * p.setEstadoDet(est); em.merge(p);\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(estadoCab);\r\n\t\t\t\t\t\tplanta.setEstadoDet(null);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\t\t\t\t\t\tif (!concurso\r\n\t\t\t\t\t\t\t\t.getDatosEspecificosTipoConc()\r\n\t\t\t\t\t\t\t\t.getDescripcion()\r\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\r\n\t\t\t\t\t\t\t\t\t\tCONCURSO_INTERNO_INTERINSTITUCIONAL)\r\n\t\t\t\t\t\t\t\t&& planta.getPermanente())\r\n\t\t\t\t\t\t\treponerCategoriasController.reponerCategorias(p,\r\n\t\t\t\t\t\t\t\t\t\"PUESTO\", \"CONCURSO\");\r\n\t\t\t\t\t\tem.remove(p);\r\n\t\t\t\t\t\t// listaPlantaCargoDto.remove(dto);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tobs = null;\r\n\t\t\tem.flush();\r\n\t\t\tllenarListado1();\r\n\t\t\tstatusMessages.clear();\r\n\t\t\tstatusMessages.add(Severity.INFO, SeamResourceBundle.getBundle()\r\n\t\t\t\t\t.getString(\"GENERICO_MSG\"));\r\n\t\t\treturn \"persisted\";\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic RegistroHuellasDigitalesDto registrarHuellaDigitalSistemaContribuyente(RegistroHuellasDigitalesDto pSolicitud) {\n\t\tLOG.info(\"Ingresando registrarHuellaDigitalSistemaContribuyente\"+pSolicitud.getCrc()+\" \"+pSolicitud.getArchivo()+ \" \");\n\t\tRegistroHuellasDigitalesDto vRespuesta = new RegistroHuellasDigitalesDto();\n\t\tvRespuesta.setOk(false);\n\t\ttry {\t\t\t\t\n\t\t\tValRegistroHuellaServiceImpl vValRegistroArchivo = new ValRegistroHuellaServiceImpl(mensajesDomain);\n\t\t\tvValRegistroArchivo.validarSolicitudRegistroHuellaDigital(pSolicitud);\t\n\t\t\tif (vValRegistroArchivo.isValido()) {\t\t\t\n\t\t\t\tSreArchivosTmp vResultadoArchivo = iArchivoTmpDomain.registrarArchivos(pSolicitud.getArchivo());\n\t\t\t\tSystem.out.println(\"Archivo registrado\"+vResultadoArchivo.getArchivoId());\n\t\t\t\tif (vResultadoArchivo.getArchivoId() !=null && vResultadoArchivo.getArchivoId() != null) {\n\t\t\t\t\tSreComponentesArchivosTmp vResultadoComponenteArchivo = iComponentesArchivosTmpDomain.registrarComponentesArchivos(pSolicitud.getUsuarioId(),vResultadoArchivo.getArchivoId(), pSolicitud.getMd5(),pSolicitud.getSha2(), pSolicitud.getCrc(),pSolicitud.getRutaArchivo(),pSolicitud.getNombre(),\"\");\n\t\t\t\t\tSystem.out.println(\"Datos recuperados \"+vResultadoComponenteArchivo.getComponenteArchivoTmpId());\n\t\t\t\tif (vResultadoComponenteArchivo.getComponenteArchivoTmpId() > 0 && vResultadoComponenteArchivo.getComponenteArchivoTmpId() != null) {\t\t\t\t\t\t\n\t\t\t\t\tboolean vResultadoCertificado = iComponentesCertificadosTmpDomain.registrarComponentesCertificados(pSolicitud.getTipoComponenteId(), vResultadoComponenteArchivo.getComponenteArchivoTmpId(), pSolicitud.getUsuarioId(),pSolicitud.getSistemaId());\n\t\t\t\t\tif (vResultadoCertificado) {\n\t\t\t\t\t\t\tLOG.info(\"Registro exitoso\");\n\t\t\t\t\t\t\tvRespuesta.setOk(true);\n\t\t\t\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.RECUPERACION_SOLICITUD_CERTIFICACION_EXITOSO));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLOG.info(\"Registro NO exitoso\");\n\t\t\t\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.REGISTRO_SOLICITUD_CERTIFICACION_ERROR));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.REGISTRO_SOLICITUD_CERTIFICACION_ERROR));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.REGISTRO_SOLICITUD_CERTIFICACION_ERROR));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvRespuesta.setMensajes(vValRegistroArchivo.getMensajes());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLogExcepcion.registrar(e, LOG, MethodSign.build(vRespuesta));\n\t\t\tLOG.info(\"Error al realizar el guardado de datos\");\n\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.REGISTRO_SOLICITUD_CERTIFICACION_ERROR));\n\t\t}\n\t\tLOG.info(\"Saliendo registrarHuellaDigitalSistemaContribuyente vRespuesta={}\", vRespuesta);\n\t\treturn vRespuesta;\n\t}", "public void ejecutarCargue() {\n String respuesta = null;\n try {\n loggerApp.info(\"Cargues masivos timbres - ejecutar cargue\");\n if (!validarExtension(Constantes.EXTENSIONES_ARCHIVO_EXCEL, file)) {\n abrirModal(\"SARA\", \"Error: El archivo \" + (null == file ? \" \" : file.getName()) + \" no cumple con el formato de extensión válido \" + Constantes.EXTENSIONES_ARCHIVO_EXCEL, null);\n return;\n }\n generarListaData();\n cargarTimbresMasivosObjectContext.setAtributo(\"listaTimbres\", listaData);\n this.servletHelper = new CargarTimbresMasivosServletHelper(sessionLocal, cargarTimbresMasivosObjectContext, objectContext, sessionAjustes, cuadreCifrasSessionLocal, cajeroSession);\n if (this.servletHelper != null) {\n respuesta = servletHelper.obtenerDatos();\n }\n if (respuesta != null && !respuesta.trim().isEmpty()) {\n abrirModal(\"SARA\", respuesta, null);\n }\n } catch (FileStructureException ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", ex.getMessage(), null);\n } catch (Exception ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", Constantes.MSJ_ERROR_INTERNO, null);\n }\n\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "private void ingresarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.crearReserva(getEstudiante(), getSitio(), periodo.getPrdId(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.crearReserva(getEstudiante(), getSitio(), periodo.getPrdId(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}", "protected String cargarCambiosCasas(String url, String username,\n String password) throws Exception {\n try {\n getCambiosCasas();\n if(mCambiosCasas.size()>0){\n saveCambiosCasas(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/cambioscasas\";\n CambiosCasas[] envio = mCambiosCasas.toArray(new CambiosCasas[mCambiosCasas.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<CambiosCasas[]> requestEntity =\n new HttpEntity<CambiosCasas[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveCambiosCasas(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveCambiosCasas(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "@Path(\"/Enviar\")\r\n @POST\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n @Produces(MediaType.APPLICATION_JSON) \r\n public Response SendPromotion(String query){\r\n logger.debug(\"Promociones - Enviar - query: \" + query); \r\n \r\n //obtenemos el nombre del cliente\r\n JSONObject jsonObjectRequest = new JSONObject(query); \r\n String nombre = jsonObjectRequest.get(\"nombre\").toString(); \r\n \r\n String msg = MSG_PROCESS_NOT_STARTED;\r\n int cod = -1; \r\n JSONArray result = new JSONArray();\r\n \r\n if(!nombre.equals(\"\")){\r\n //obtenemos la id del cliente a través del nombre\r\n ClienteDao clienteDao = new ClienteDao();\r\n int idCliente = clienteDao.GetId(nombre);\r\n logger.debug(\"SendPromotion - idCustomer: \"+idCliente);\r\n if(idCliente != -1){\r\n //comprobamos que el cliente tenga al menos una reserva\r\n boolean existeReserva = clienteDao.ExisteReserva(idCliente);\r\n if(existeReserva){\r\n //obtenemos las reservas del cliente\r\n ReservaDao reservaDao = new ReservaDao();\r\n ArrayList<Reserva> reservas = reservaDao.GetReservasCliente(idCliente);\r\n \r\n if(reservas.size() > 0){\r\n //obtenemos la preferencia de envío del cliente\r\n String preferencia = clienteDao.GetPreferencia(idCliente);\r\n if(!preferencia.equals(\"\")){\r\n //insertamos en el JSON el nombre del cliente y la preferencia de envío\r\n JSONObject client = new JSONObject();\r\n if (preferencia.equals(\"email\")){\r\n client.put(\"metodoenvio\",\"EMAIL\");\r\n }else{\r\n client.put(\"metodoenvio\",\"SMS\");\r\n }\r\n client.put(\"nombrecliente\",nombre);\r\n result.put(client);\r\n\r\n HotelDao hotelDao = new HotelDao();\r\n ArrayList<Promocion> hotelesPromocionables;\r\n //para todas las reservas del cliente\r\n for(Reserva reserva : reservas){\r\n //obtenemos el id del hotel a través del id de la reserva\r\n int idHotel = reserva.getIdHotel(); \r\n if(idHotel != -1){ \r\n //obtenemos la ciudad del hotel a través la id\r\n String ciudad = hotelDao.GetCiudad(idHotel);\r\n if(!ciudad.equals(\"\")){\r\n //obtenemos los hoteles que se pueden promocionar al cliente en base a la ciudad de anteriores reservas\r\n hotelesPromocionables = hotelDao.GetHotelesPromocionables(idHotel,ciudad);\r\n JSONArray hoteles = new JSONArray();\r\n\r\n if(hotelesPromocionables.size() > 0){\r\n //obtenemos el nombre del hotel a través de su id\r\n String nombreHotel = hotelDao.GetNombre(idHotel);\r\n if(!nombreHotel.equals(\"\")){\r\n //insertamos en el JSON el nombre del hotel ya reservado y la ciudad\r\n JSONObject infoHotelReservado = new JSONObject();\r\n infoHotelReservado.put(\"Hotel Ya Reservado\",nombreHotel);\r\n infoHotelReservado.put(\"Ciudad\",ciudad); \r\n hoteles.put(infoHotelReservado);\r\n\r\n JSONArray promociones = new JSONArray();\r\n //para todos los hoteles promocionales\r\n for(Promocion hp : hotelesPromocionables){\r\n //insertamos el nombre y plantilla del hotel a promocionar\r\n JSONObject p = new JSONObject();\r\n p.put(\"Nombre Hotel\", hp.getNombreHotel());\r\n p.put(\"Asunto\",hp.getAsunto());\r\n p.put(\"Cuerpo\",hp.getCuerpo());\r\n promociones.put(p); \r\n }\r\n hoteles.put(promociones);\r\n }else{\r\n cod = 10;\r\n msg = MSG_10;\r\n }\r\n }else{\r\n cod = 9;\r\n msg = MSG_9;\r\n }\r\n result.put(hoteles);\r\n }else{\r\n cod = 8;\r\n msg = MSG_8;\r\n }\r\n }else{\r\n cod = 7;\r\n msg = MSG_7;\r\n }\r\n cod = 1;\r\n msg = MSG_1;\r\n }\r\n }else{\r\n cod = 6;\r\n msg = MSG_6;\r\n }\r\n }else{\r\n cod = 5;\r\n msg = MSG_5;\r\n } \r\n }else{\r\n cod = 4;\r\n msg = MSG_4;\r\n } \r\n }else{\r\n cod = 3;\r\n msg = MSG_3;\r\n } \r\n }else{\r\n if(nombre.equals(\"\")){\r\n cod = 2;\r\n msg = MSG_2;\r\n }\r\n } \r\n \r\n JSONObject response = new JSONObject(); \r\n response.put(\"msg\",msg);\r\n response.put(\"cod\",cod);\r\n response.put(\"result\",result);\r\n return Response.status(200).entity(response.toString()).build(); \r\n }", "public void createCompte(Compte compte);", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "protected String cargarEncCasas(String url, String username,\n String password) throws Exception {\n try {\n getEncCasas();\n if(mEncuestasCasas.size()>0){\n saveEncCasas(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/encuestascasas\";\n EncuestaCasa[] envio = mEncuestasCasas.toArray(new EncuestaCasa[mEncuestasCasas.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EncuestaCasa[]> requestEntity =\n new HttpEntity<EncuestaCasa[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveEncCasas(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveEncCasas(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private static void crearPedidoGenerandoOPC() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25, 29, 33 };\n\t\tint[] cantidades = { 6, 8, 11 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 3\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\t\t\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}", "@PostMapping\n\tpublic ResponseEntity<Compra> realizaCompra(@RequestBody CompraDTO compraDTO) {\n\t\tCompra compra = compraService.realizarCompraFeign(compraDTO);\n\t\t\n\t\treturn new ResponseEntity<Compra>( compra, HttpStatus.OK);\n\t}", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "public void respaldo() {\n if (seleccionados != null && seleccionados.length > 0) {\n ZipOutputStream salidaZip; //Donde va a quedar el archivo zip\n\n File file = new File(FacesContext.getCurrentInstance()\n .getExternalContext()\n .getRealPath(\"/temporales/\") + archivoRespaldo + \".zip\");\n\n try {\n salidaZip\n = new ZipOutputStream(new FileOutputStream(file));\n ZipEntry entradaZip;\n\n for (String s : seleccionados) {\n if (s.contains(\"Paises\")) {\n\n entradaZip = new ZipEntry(\"paises.json\");\n salidaZip.putNextEntry(entradaZip);\n byte data[]\n = PaisGestion.generaJson().getBytes();\n salidaZip.write(data, 0, data.length);\n salidaZip.closeEntry();\n }\n }\n salidaZip.close();\n\n // Descargar el archivo zip\n //Se carga el zip en un arreglo de bytes...\n byte[] zip = Files.readAllBytes(file.toPath());\n\n //Generar la página de respuesta...\n HttpServletResponse respuesta\n = (HttpServletResponse) FacesContext\n .getCurrentInstance()\n .getExternalContext()\n .getResponse();\n\n ServletOutputStream salida\n = respuesta.getOutputStream();\n\n //Defino los encabezados de la página de respuesta\n respuesta.setContentType(\"application/zip\");\n respuesta.setHeader(\"Content-Disposition\",\n \"attachement; filename=\" + archivoRespaldo + \".zip\");\n\n salida.write(zip);\n salida.flush();\n\n //Todo listo\n FacesContext.getCurrentInstance().responseComplete();\n file.delete();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n }", "public void comprar(Carrito carrito){\n\t\tif(carrito.getEstadoVendido()==false){\n\t\t\tif(this.tarjeta.verificarTarjeta(carrito.getCostoCarrito())==true){\n\t\t\t\tSystem.out.println(\"Felicidades \"+this.getNombre()+\", la compra de su carrito \"+carrito.getNombreCarrito()+\" ha sido realizada con exito!\\nSe han debitado $\"+carrito.getCostoCarrito()+\" de su tarjeta.\\n\\nLos productos seran enviados a \"+this.getDireccionEnvio()+\"\\n-------------------------------------------------------\");\n\t\t\t\tcarrito.setEstadoVendido(true);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"El carrito ya fue comprado!\");\n\t}", "public ConsultaDatosImagenesMonitorRespuesta() {\n\t}", "@PostMapping(\"/J314Authorities\")\n\t@Timed\n\n\t@Transactional\n\t\n\tpublic ResultExt< J314AuthorityPoj> create(HttpServletRequest request,HttpServletResponse response, @Valid @RequestBody J314AuthorityPoj obj)\n\t{\n\t\t\n\t\tString params=UtilParams.paramsToString(\"J314AuthorityPoj\",obj);\n\n\t\tContexto ctx = Contexto.init();\n\t\tctx.put(Contexto.REQUEST,request);\n\t\tctx.put(Contexto.RESPONSE,response);\n\t\tctx.put(Contexto.CLAVE_SEGURIDAD,\"REST_ENTITY_J314AUTHORITY_CREATE\");\n\t\tctx.put(Contexto.URL_SOLICITADA,\"/J314Authorities\");\n\t\tResult< J314AuthorityPoj> res=new Result<>();\n\t\tif (log.isInfoEnabled()) log.info(\"Entrada en REST POST:create(\"+params+\")\"+params);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif(!verificaPermisos(\"REST_ENTITY_J314AUTHORITY_CREATE\"))\n\t\t\t{\n\t\t\t\tres.addError(new ErrorSinPermiso(\"REST_ENTITY_J314AUTHORITY_CREATE\",\"/J314Authorities\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparams=UtilParams.paramsToString(\"J314AuthorityPoj\",obj);\n\t\t\t\tif (log.isInfoEnabled()) log.info(\"Verificado en REST POST:create(\"+params+\")\"+params);\n\n\t\t\t\tJ314Authority obj_ = J314AuthorityPoj.getModel(obj);\n\n\t\t\t\tResult< J314Authority > res_=service.insert(obj_);\n\t\t\t\tres.setInfoEWI(res_);\n\n\t\t\t\tres.setData(res_.getData()!=null?new J314AuthorityPoj(res_.getData()):null);\n\n\t\t\t}\n\t\t\taddTiempoSesion();\n\t\t}\tcatch(Exception e)\n\t\t{\n\t\t\tres.addError(new ErrorGeneral(e));\n\t\t\tif (log.isErrorEnabled()) log.error(\"Error en REST POST:create(\"+params+\"). Excepcion:\"+UtilException.printStackTrace(e));\n\t\t}\n\t\tif (log.isInfoEnabled()) log.info(\"Salida de REST POST:create(\"+params+\"). Resultado:\"+res.toString());\n\n\t\tif (!res.isOk())\n\t\t{\n\t\t\ttry {\t\n\t\t\t\tTransactionInterceptor.currentTransactionStatus().setRollbackOnly();\n\t\t\t}catch(Throwable t)\n\t\t\t{\n\t\t\t\tres.addError(new ErrorGeneral(t));\n\t\t\t\tif (log.isErrorEnabled()) log.error(\"Error en REST POST:create(\"+params+\"). Excepcion:\"+UtilException.printStackTrace(t));\n\t\t\t}\n\t\t}\n\n\t\tResultExt< J314AuthorityPoj > resFin=new ResultExt<>(res,ctx.getAs(\"ticketStr\"));\n\t\tContexto.close();\n\t\treturn resFin;\n\t}", "public ValidaExistePersonaRespuesta() {\n\t\theader = new EncabezadoRespuesta();\n\t\t}", "public interface CompraService {\n\n @POST(\"inicializar\")\n Call<StatusResponse> inicializar(@Body Credencial credencial);\n\n @POST(\"consultarProduto\")\n Call<StatusResponse> consultarProduto(@Body ConsultaProduto consultaProduto);\n\n @POST(\"consultarFormaPagamento\")\n Call<StatusResponse> consultarFormaPagamento(@Body ConsultaFormaPagamento consultaFormaPagamento);\n\n @POST(\"pedido\")\n Call<StatusResponse> pedido(@Body Compra compra);\n}", "protected String cargarRecepcionBHCs(String url, String username,\n String password) throws Exception {\n try {\n getRecepcionBHCs();\n if(mRecepcionBHCs.size()>0){\n saveRecepcionBHCs(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/bhcs\";\n RecepcionBHC[] envio = mRecepcionBHCs.toArray(new RecepcionBHC[mRecepcionBHCs.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<RecepcionBHC[]> requestEntity =\n new HttpEntity<RecepcionBHC[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveRecepcionBHCs(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveRecepcionBHCs(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "@RequestMapping(value = \"/crearusuariosmasivo\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse createusersmassive(@RequestParam String llave_seguridad, @RequestBody NewUsersMassiveInputDTO request, HttpServletRequest requestTransaction)\n {\n CommonsResponse response = new CommonsResponse();\n Map<String, String> mapConfiguration = null;\n try\n {\n logger.debug(\"Se valida la licencia si puede consumir los procesos.\");\n mapConfiguration = GatewayBaseBean.validateLicenceToWS(llave_seguridad, webUtils.getClientIp(requestTransaction));\n\n logger.debug(\"Se valida los parametros de entrada.\");\n GatewayBaseBean.validarParametrosGenericos(request.getPassword());\n\n List<UsersMassiveOutDTO> list = userServices.createUsersMassive(mapConfiguration, request.getPassword(), request.getUsuariosYPerfil());\n response.setResponse(list);\n }\n catch (ParamsException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.error(\"Parametros de Licencia Errados WS [crearusuariosmasivo], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (LicenseException ex)\n {\n response.toLicenceWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode(), llave_seguridad);\n logger.error(\"Parametros de Licencia Errados WS [crearusuariosmasivo], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (ServiceException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.warn(\"Error de Servicio WS [crearusuariosmasivo].\", ex);\n return response;\n }\n catch (Exception ex)\n {\n logger.error(\"Error Generico en WS [crearusuariosmasivo].\", ex);\n GatewayBaseBean.matchToResponses(response);\n return response;\n }\n logger.info(\"Se retorna respuesta efectiva del WS [crearusuariosmasivo].\");\n response.toOk();\n return response;\n }", "public ReformaTributariaOutput getComporConv(boolean comportamiento, ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n int inComportamiento=0; \n int inTipoConvenio=0;\n int inEmbargo=0;\n int inPyme=0;\n String ContextoAmbienteParam = null;\n ReformaTributariaOutput reformaTributariaOut = new ReformaTributariaOutput();\n try {\n\n conn = this.getConnection();\n String beneficio = this.getBeneficio();\n \n System.out.println(\"Estoy adentro con parametro beneficio---------------------->\"+beneficio);\n \n if (beneficio.equalsIgnoreCase(\"S\")){\n\t if (reformaTributaria.getContextoAmbienteParam().endsWith(\"CNV_INTRA\")){\n\t \t ContextoAmbienteParam=\"CNV_INTRA\";\n\t }else{\n\t \t ContextoAmbienteParam=\"CNV_BENEFICIO_INTER\";\n\t }\n }else{\n \t ContextoAmbienteParam=reformaTributaria.getContextoAmbienteParam(); \n }\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n /*\n --------------------------------------------------------------\n ------- Las variables determinantes --------------------\n ------- para condiciones de convenios --------------------\n --------------------------------------------------------------\n ------- v_tipo_valor\n ------- v_tipo_convenio\n ------- v_comportamiento\n ------- v_embargo\n ------- v_canal\n --------------------------------------------------------------\n -------------------------------------------------------------- \n */\n if (comportamiento){\n \t inComportamiento=1;\n }else{\n \t inComportamiento=2;\n }\n \n //String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia()+\";\"+reformaTributaria.canal();\n String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia();\n \n //System.out.println(\"tipo reforma condonacion--->\"+reformaTributaria.getCodConvenios());\n //System.out.println(\"***************************estoy en comportamiento****************************************\");\n //System.out.println(\"reformaTributaria.garantia()--->\"+reformaTributaria.garantia());\n //System.out.println(\"param getComporConv---> \"+parametros);\n //call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?)}\");\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?,?,?)}\");\n call.setLong(1,inComportamiento);/*tipo comporamiento � condonaci�n */\n call.setString(2,parametros);/*tipo convenio */\n call.registerOutParameter(3, OracleTypes.INTEGER);/*max_cuotas*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*min_pie*/\n call.registerOutParameter(5, OracleTypes.INTEGER);/*por_condonacion*/ \n call.registerOutParameter(6, OracleTypes.INTEGER);/*error*/ \n /*se agrega nueva forma de servicio*/\n if (reformaTributaria.getCodConvenios()!=null){//si no es nulo quiere decir que es transitoria\n \t call.setLong(7,reformaTributaria.getCodConvenios().intValue());/*codigo condonacion si es transitoria*/\n }else{//si es null quiere decir que es convenio permanente\n \t call.setNull(7, OracleTypes.INTEGER);\n }\n //call.setString(8,reformaTributaria.getContextoAmbienteParam());/*ambiente Intranet � internet*/ \n System.out.println(\"ContextoAmbienteParam---> \"+ContextoAmbienteParam);\n call.setString(8,ContextoAmbienteParam);/*ambiente Intranet � internet*/\n call.execute();\n \n int maxCuotas = Integer.parseInt(call.getObject(3).toString());\n int minCuotaContado = Integer.parseInt(call.getObject(4).toString());\n \n\n int codError = Integer.parseInt(call.getObject(6).toString());\n \n reformaTributariaOut.setCodError(new Integer(codError));\n reformaTributariaOut.setMaxCuota(new Integer(maxCuotas));\n reformaTributariaOut.setMinCuotaContado(new Integer(minCuotaContado));\n call.close(); \n \n }catch (Exception e) {\n \te.printStackTrace();\n \t//throw new RemoteException(\"No tiene valor de comportamiento convenios:\" + e.getMessage());\n }\n finally{\n this.closeConnection();\n }\n\t\treturn reformaTributariaOut;\n }", "public String agregar(String trama) throws JsonProcessingException {\n\t\tString respuesta = \"\";\n\t\tRespuestaGeneralDto respuestaGeneral = new RespuestaGeneralDto();\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar trama entrante para agregar o actualizar producto: \" + trama);\n\t\ttry {\n\t\t\t/*\n\t\t\t * Se convierte el dato String a estructura json para ser manipulado en JAVA\n\t\t\t */\n\t\t\tJSONObject obj = new JSONObject(trama);\n\t\t\tProducto producto = new Producto();\n\t\t\t/*\n\t\t\t * use: es una bandera para identificar el tipo de solicitud a realizar:\n\t\t\t * use: 0 -> agregar un nuevo proudcto a la base de datos;\n\t\t\t * use: 1 -> actualizar un producto existente en la base de datos\n\t\t\t */\n\t\t\tString use = obj.getString(\"use\");\n\t\t\tif(use.equalsIgnoreCase(\"0\")) {\n\t\t\t\tString nombre = obj.getString(\"nombre\");\n\t\t\t\t/*\n\t\t\t\t * Se realiza una consulta por nombre a la base de datos a la tabla producto\n\t\t\t\t * para verificar que no existe un producto con el mismo nombre ingresado.\n\t\t\t\t */\n\t\t\t\tProducto productoBusqueda = productoDao.buscarPorNombre(nombre);\n\t\t\t\tif(productoBusqueda.getProductoId() == null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si no existe un producto con el mismo nombre pasa a crear el nuevo producto\n\t\t\t\t\t */\n\t\t\t\t\tproducto.setProductoNombre(nombre);\n\t\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\t\tTipoProducto tipoProducto = tipoProductoDao.consultarPorId(obj.getLong(\"tipoProducto\"));\n\t\t\t\t\tproducto.setProductoTipoProducto(tipoProducto);\n\t\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\t\tproducto.setProductoFechaRegistro(new Date());\n\t\t\t\t\tproductoDao.update(producto);\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Nuevo producto registrado con éxito.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}else {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si existe un producto con el mismo nombre, se devolvera una excepcion,\n\t\t\t\t\t * para indicarle al cliente.\n\t\t\t\t\t */\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Ya existe un producto con el nombre ingresado.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t/*\n\t\t\t\t * Se realiza una busqueda del producto registrado para actualizar\n\t\t\t\t * para implementar los datos que no van a ser reemplazados ni actualizados\n\t\t\t\t */\n\t\t\t\tProducto productoBuscar = productoDao.buscarPorId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoNombre(obj.getString(\"nombre\"));\n\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\tproducto.setProductoTipoProducto(productoBuscar.getProductoTipoProducto());\n\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\tproducto.setProductoFechaRegistro(productoBuscar.getProductoFechaRegistro());\n\t\t\t\tproductoDao.update(producto);\n\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\trespuestaGeneral.setRespuesta(\"Producto actualizado con exito.\");\n\t\t\t\t/*\n\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t */\n\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t}\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t} catch (Exception e) {\n\t\t\t/*\n\t\t\t * En caso de un error, este se mostrara en los logs\n\t\t\t * Sera enviada la respuesta correspondiente al cliente.\n\t\t\t */\n\t\t\tlogger.error(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n\t\t\t\t\t+ \"ProductoService.agregar, \"\n\t\t\t\t\t+ \", descripcion: \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\trespuestaGeneral.setRespuesta(\"Error al ingresar los datos, por favor intente mas tarde.\");\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t}\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar resultado de agregar/actualizar un producto: \" + respuesta);\n\t\treturn respuesta;\n\t}", "public void cargarPantalla() throws Exception {\n Long oidCabeceraMF = (Long)conectorParametroSesion(\"oidCabeceraMF\");\n\t\tthis.pagina(\"contenido_matriz_facturacion_consultar\");\n\n DTOOID dto = new DTOOID();\n dto.setOid(oidCabeceraMF);\n dto.setOidPais(UtilidadesSession.getPais(this));\n dto.setOidIdioma(UtilidadesSession.getIdioma(this));\n MareBusinessID id = new MareBusinessID(\"PRECargarPantallaConsultarMF\"); \n Vector parametros = new Vector();\n \t\tparametros.add(dto);\n parametros.add(id);\n \t\tDruidaConector conector = conectar(\"ConectorCargarPantallaConsultarMF\", parametros);\n if (oidCabeceraMF!=null)\n asignarAtributo(\"VAR\",\"varOidCabeceraMF\",\"valor\",oidCabeceraMF.toString());\n\t\t asignar(\"COMBO\", \"cbTiposOferta\", conector, \"dtoSalida.resultado_ROWSET\");\n\t\t///* [1]\n\n\n\n\t\ttraza(\" >>>>cargarEstrategia \");\n\t\t//this.pagina(\"contenido_catalogo_seleccion\"); \n\t\t \n\t\tComposerViewElementList cv = crearParametrosEntrada();\n\t\tConectorComposerView conectorV = new ConectorComposerView(cv, this.getRequest());\n\t\tconectorV.ejecucion();\n\t\ttraza(\" >>>Se ejecuto el conector \");\n\t\tDruidaConector resultados = conectorV.getConector();\n\t\tasignar(\"COMBO\", \"cbEstrategia\", resultados, \"PRECargarEstrategias\");\n\t\ttraza(\" >>>Se asignaron los valores \");\n\t\t// */ [1]\n\t\t\n\n }", "JobResponse create();", "public ServerResponseCreateArchive() {\n }", "public void comprar() {\n }", "private void enviarDatos() {\n try {\n if (validarDatos()) { // verificar si todos los datos obligatorios tienen informacion\n // verificar que el usuario de la pantalla presiono el boton YES\n if (obtenerMensajeDeConfirmacion() == JOptionPane.YES_OPTION) {\n llenarEntidadConLosDatosDeLosControles(); // llenar la entidad de Rol con los datos de la caja de texto del formulario\n int resultado = 0;\n switch (opcionForm) {\n case FormEscOpcion.CREAR:\n resultado = ClienteDAL.crear(clienteActual); // si la propiedad opcionForm es CREAR guardar esos datos en la base de datos\n break;\n case FormEscOpcion.MODIFICAR:\n resultado = ClienteDAL.modificar(clienteActual);// si la propiedad opcionForm es MODIFICAR actualizar esos datos en la base de datos\n break;\n case FormEscOpcion.ELIMINAR:\n // si la propiedad opcionForm es ELIMINAR entonces quitamos ese registro de la base de datos\n resultado = ClienteDAL.eliminar(clienteActual);\n break;\n default:\n break;\n }\n if (resultado != 0) {\n // notificar al usuario que \"Los datos fueron correctamente actualizados\"\n JOptionPane.showMessageDialog(this, \"Los datos fueron correctamente actualizados\");\n if (frmPadre != null) {\n // limpiar los datos de la tabla de datos del formulario FrmRolLec\n frmPadre.iniciarDatosDeLaTabla(new ArrayList());\n }\n this.cerrarFormulario(false); // Cerrar el formulario utilizando el metodo \"cerrarFormulario\"\n } else {\n // En el caso que las filas modificadas en el la base de datos sean cero \n // mostrar el siguiente mensaje al usuario \"Sucedio un error al momento de actualizar los datos\"\n JOptionPane.showMessageDialog(this, \"Sucedio un error al momento de actualizar los datos\");\n }\n }\n }\n } catch (Exception ex) {\n // En el caso que suceda un error al ejecutar la consulta en la base de datos \n // mostrar el siguiente mensaje al usuario \"Sucedio un error al momento de actualizar los datos\"\n JOptionPane.showMessageDialog(this, \"Sucedio el siguiente error: \" + ex.getMessage());\n }\n\n }", "public boolean crearNuevoTicket(Ticket ticket, Usuario usuario) {\n\n try {\n\n //Se determina el tiempo de vida del ticket según el SLA\n int tiempoDeVida = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeSolucion();\n Calendar c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeVida);\n ticket.setTiempoDeVida(c.getTime());\n //Se indica la fecha máxima de cierre\n ticket.setFechaDeCierre(c.getTime());\n //Se indica la fecha actual como fecha de creacion\n ticket.setFechaDeCreacion(new Date());\n //se ingresa la fecha de última modificación\n ticket.setFechaDeModificacion(ticket.getFechaDeCreacion());\n //Se determina el tiempo de actualizacion segun el SLA\n //int tiempoDeActualizacion = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeActualizacionDeEscalacion();\n //Información del ticket y el sla\n Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n int tiempoDeActualizacion = prioridadTicket.getValor() == 1 ? ticketSla.getTiempoRespuestaPrioridadAlta() : prioridadTicket.getValor() == 2 ? ticketSla.getTiempoRespuestaPrioridadMedia() : ticketSla.getTiempoRespuestaPrioridadBaja();\n //Se añade el tiempo de actualización para pos-validación según SLA\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeActualizacion);\n //Se hacen verificaciones por tipo de disponibilidad es decir 24x7 o 8x5\n int horaActual = c.get(Calendar.HOUR_OF_DAY);\n int diaDeLaSemana = c.get(Calendar.DAY_OF_WEEK);\n if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (diaDeLaSemana == Calendar.SATURDAY || diaDeLaSemana == Calendar.SUNDAY || (diaDeLaSemana == Calendar.FRIDAY && horaActual > 17))) {\n if (diaDeLaSemana == Calendar.FRIDAY) {\n c.add(Calendar.DAY_OF_MONTH, 3);\n } else if (diaDeLaSemana == Calendar.SATURDAY) {\n c.add(Calendar.DAY_OF_MONTH, 2);\n } else {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n } else if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (horaActual < 8 || horaActual > 17) && (diaDeLaSemana != Calendar.SATURDAY && diaDeLaSemana != Calendar.SUNDAY)) {\n if (horaActual > 17) {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n }\n ticket.setFechaDeProximaActualizacion(c.getTime());\n if (ticket.getFechaDeProximaActualizacion().compareTo(ticket.getFechaDeCierre()) > 0) {\n Calendar cierre = Calendar.getInstance();\n cierre.setTime(c.getTime());\n cierre.add(Calendar.HOUR, tiempoDeVida);\n ticket.setFechaDeCierre(cierre.getTime());\n }\n //Se indica la persona que crea el ticket\n ticket.setUsuarioidcreador(usuario);\n //Se indica el usuario propietario por defecto y el responsable (Soporte HELPDESK)\n Usuario usuarioHelpdek = this.usuarioFacade.obtenerUsuarioPorCorreoElectronico(\"[email protected]\");\n ticket.setUsuarioidpropietario(usuarioHelpdek);\n ticket.setUsuarioidresponsable(usuarioHelpdek);\n //Se indica el estado actual del ticket\n EstadoTicket estadoNuevo = this.estadoTicketFacade.find(1);\n ticket.setEstadoTicketcodigo(estadoNuevo);\n //Creamos el ticket\n this.ticketFacade.create(ticket);\n //Creamos el Notificador\n TareaTicketInfo tareaTicketInfo = new TareaTicketInfo(\"t_sla\" + ticket.getTicketNumber(), \"Notificador SLA ticket# \" + ticket.getTicketNumber(), \"LoteTareaNotificarSLA\", ticket);\n //Información del ticket y el sla\n //Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n //PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n String hora = prioridadTicket.getValor() == 1 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadAlta()) : prioridadTicket.getValor() == 2 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadMedia()) : String.valueOf(ticketSla.getTiempoRespuestaPrioridadBaja());\n //Definir la hora de inicio\n //c = Calendar.getInstance();\n //c.add(Calendar.HOUR, Integer.parseInt(hora));\n c.add(Calendar.MINUTE, -30);\n tareaTicketInfo.setStartDate(c.getTime());\n tareaTicketInfo.setEndDate(ticket.getFechaDeCierre());\n tareaTicketInfo.setSecond(String.valueOf(c.get(Calendar.SECOND)));\n tareaTicketInfo.setMinute(String.valueOf(c.get(Calendar.MINUTE)) + \"/10\");\n tareaTicketInfo.setHour(String.valueOf(c.get(Calendar.HOUR_OF_DAY)));\n tareaTicketInfo.setMonth(\"*\");\n tareaTicketInfo.setDayOfMonth(\"*\");\n tareaTicketInfo.setDayOfWeek(ticketSla.getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") ? \"Mon, Tue, Wed, Thu, Fri\" : \"*\");\n tareaTicketInfo.setYear(\"*\");\n tareaTicketInfo.setDescription(\"Tarea SLA para ticket# \" + ticket.getTicketNumber());\n this.notificadorServicio.createJob(tareaTicketInfo);\n\n //Se añade un historico del evento\n HistorialDeTicket historialDeTicket = new HistorialDeTicket();\n historialDeTicket.setEventoTicketcodigo(this.eventoTicketFacade.find(1));\n historialDeTicket.setFechaDelEvento(new Date());\n historialDeTicket.setOrden(this.historialDeTicketFacade.obtenerOrdenDeHistorialDeTicket(ticket));\n historialDeTicket.setUsuarioid(ticket.getUsuarioidcreador());\n historialDeTicket.setTicketticketNumber(ticket);\n this.historialDeTicketFacade.create(historialDeTicket);\n\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "@PostMapping(\"/contabancarias\")\n @Timed\n public ResponseEntity<ContabancariaDTO> createContabancaria(@RequestBody ContabancariaDTO contabancariaDTO) throws URISyntaxException {\n log.debug(\"REST request to save Contabancaria : {}\", contabancariaDTO);\n if (contabancariaDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new contabancaria cannot already have an ID\")).body(null);\n }\n Contabancaria contabancaria = contabancariaMapper.toEntity(contabancariaDTO);\n contabancaria = contabancariaRepository.save(contabancaria);\n ContabancariaDTO result = contabancariaMapper.toDto(contabancaria);\n return ResponseEntity.created(new URI(\"/api/contabancarias/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void criar() throws IOException {\nif (!directorio.exists()) {\n directorio.mkdir();\n System.out.println(\"Directorio criado\");\n } else {\n System.out.println(\"Directorio existe\");\n }\n if (!fileAdmin.exists()) {\n fileAdmin.createNewFile();\n System.out.println(\"file de Administrador criado com sucesso\");\n escrever(lista);\n } else {\n System.out.println(\"ficheiro existe\");\n }\n\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "protected String cargarCodigosCasas(String url, String username,\n String password) throws Exception {\n try {\n getCodigosCasas();\n if(mCodigosCasas.size()>0){\n saveCodigosCasas(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/codigoscasas\";\n CodigosCasas[] envio = mCodigosCasas.toArray(new CodigosCasas[mCodigosCasas.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<CodigosCasas[]> requestEntity =\n new HttpEntity<CodigosCasas[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveCodigosCasas(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveCodigosCasas(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private ProcesoDTO registrarProcesoCoactivo() {\n RegistraProcesoDTO registra = new RegistraProcesoDTO();\n registra.setObservacion(EnumTipoProceso.COACTIVO.name());\n registra.setTipoProceso(EnumTipoProceso.COACTIVO);\n registra.setEstado(EnumEstadoProceso.ECUADOR_COACTIVO_RADICACION);\n registra.setConsecutivo(EnumConsecutivo.NUMERO_COACTIVO_ECUADOR);\n return iRFachadaProceso.crearProceso(registra);\n }", "protected String cargarCambiosEstudio(String url, String username,\n String password) throws Exception {\n try {\n getCambiosEstudio();\n if(mCambiosEstudio.size()>0){\n saveCambiosEstudio(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/cambest\";\n CambioEstudio[] envio = mCambiosEstudio.toArray(new CambioEstudio[mCambiosEstudio.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<CambioEstudio[]> requestEntity =\n new HttpEntity<CambioEstudio[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveCambiosEstudio(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveCambiosEstudio(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "@POST\n\t@Path(\"/cliente/compraBoletas/{idCliente: \\\\d+}\")\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic Response comprarBoletas(@PathParam(\"idCliente\") Integer idCliente,InfoCompraBoleta info)\n\t{\n\t\tArrayList<Boleta> boletas = null;\n\t\t//Boleta n = new Boleta(100, 10.0, 1, 1, 1, 1, 1);\n\t\t//boletas.add(n);\n\t\tMaster mas = Master.darInstancia(getPath());\n\t\ttry \n\t\t{\n\t\t\tboletas = mas.comprarBoletas(idCliente, info);\n\t\t\tSystem.out.println(boletas);\n\t\t} catch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(boletas).build();\n\t}", "private void crearUsuarioWS(RequestParams params){\n prgDialog.show();\n AsyncHttpClient client = new AsyncHttpClient();\n client.post(ws.urlservice+\"registroCliente\", params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n prgDialog.dismiss();\n if(statusCode==201){\n //Toast.makeText(getApplicationContext(), \"Registro con Exito!\", Toast.LENGTH_SHORT).show();\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(\"Registro con Exito!\");\n builder.setMessage(\"Por favor revise su correo electrónico para verificar su cuenta.\").setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n AlertDialog alert = builder.create();\n alert.setCancelable(false);\n alert.show();\n }else{\n Toast.makeText(getApplicationContext(), \"No se pudo guardar el registro!\", Toast.LENGTH_SHORT).show();\n }\n }\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n prgDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Ocurrio un error con el servidor\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "protected String cargarObsequios(String url, String username,\n String password) throws Exception {\n try {\n getObsequios();\n if(mObsequios.size()>0){\n saveObsequios(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/obsequios\";\n Obsequio[] envio = mObsequios.toArray(new Obsequio[mObsequios.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<Obsequio[]> requestEntity =\n new HttpEntity<Obsequio[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveObsequios(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveObsequios(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "public void cargarConceptoRetencion()\r\n/* 393: */ {\r\n/* 394: */ try\r\n/* 395: */ {\r\n/* 396:387 */ this.listaConceptoRetencionSRI = this.servicioConceptoRetencionSRI.getConceptoListaRetencionPorFecha(this.facturaProveedorSRI.getFechaRegistro());\r\n/* 397: */ }\r\n/* 398: */ catch (Exception e)\r\n/* 399: */ {\r\n/* 400:390 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 401: */ }\r\n/* 402: */ }", "Long crear(Espacio espacio);", "@Override\n\tpublic void atualizar() {\n\t\t\n\t\t \n\t\t String idstring = id.getText();\n\t\t UUID idlong = UUID.fromString(idstring);\n\t\t \n\t\t PedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\tPedidoCompra.setId(idlong);\n\t\t\tPedidoCompra.setAtivo(true);\n//\t\t\tPedidoCompra.setNome(nome.getText());\n\t\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\t\tPedidoCompra.setSaldoinicial(saldoinicial.getText());\n\t\t\tPedidoCompra.setData(new Date());\n\t\t\tPedidoCompra.setIspago(false);\n\t\t\tPedidoCompra.setData_criacao(new Date());\n//\t\t\tPedidoCompra.setFornecedor(fornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\t\n\t\t\t\n\t\t\tgetservice().edit(PedidoCompra);\n\t\t\tupdateAlert(PedidoCompra);\n\t\t\tclearFields();\n\t\t\tdesligarLuz();\n\t\t\tloadEntityDetails();\n\t\t\tatualizar.setDisable(true);\n\t\t\tsalvar.setDisable(false);\n\t\t\t\n\t\t \n\t\t \n\t\tsuper.atualizar();\n\t}", "Response createResponse();", "@Path(\"resource/create\")\n @POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n// public Response createText(@FormParam(\"\") TextDTO text) {\n public Response createResource(RSComponentDTO dto) {\n Response.ResponseBuilder rb = Response.created(context.getAbsolutePath());\n\n try {\n\n Collection parentCollection = ResourceSystemComponent.load(Collection.class, dto.uriParent);\n RSCType type = DTOValueRSC.instantiate(RSCType.class).withValue(ResourceSystemAnnotationType.RESOURCE);\n RSCParent parent = DTOValueRSC.instantiate(RSCParent.class).withValue(parentCollection);\n\n ResourceSystemComponent resource = ResourceSystemComponent.of(Resource.class, dto.uri)\n .withParams(dto.name, dto.description, type, parent);\n\n resource.setResourceContent(load(dto.catalogItemUri));\n parentCollection.add(resource);\n parentCollection.save();\n\n } catch (InstantiationException ie) {\n log.error(ie.getLocalizedMessage());\n rb.entity(new ServiceResult(\"1\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ie)));\n return rb.build();\n } catch (IllegalAccessException iae) {\n log.error(iae.getLocalizedMessage());\n rb.entity(new ServiceResult(\"2\", \"Error, \" + ExceptionUtils.getRootCauseMessage(iae)));\n return rb.build();\n } catch (VirtualResourceSystemException vrse) {\n log.error(vrse.getLocalizedMessage());\n rb.entity(new ServiceResult(\"3\", \"Error, \" + ExceptionUtils.getRootCauseMessage(vrse)));\n return rb.build();\n } catch (ManagerAction.ActionException ex) {\n log.error(ex.getLocalizedMessage());\n rb.entity(new ServiceResult(\"4\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ex)));\n return rb.build();\n } catch (Annotation.Data.InvocationMethodException ime) {\n log.error(ime.getLocalizedMessage());\n rb.entity(new ServiceResult(\"5\", \"Error, \" + ExceptionUtils.getRootCauseMessage(ime)));\n return rb.build();\n }\n\n log.info(\"resource created\");\n\n return rb.entity(new ServiceResult()).build();\n }", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "@Override\n\tpublic TransferCompra finalizarCompra(TransferCompra tCompra){\n\t\t\n\t\t//Creamos la Transaccion y los datos necesarios(lista de articulos a quitar y el iterador para recorrerla)\n\t\tArrayList<Integer> articulosQuitar = new ArrayList<Integer>();\n\t\tTransactionManager.getInstance().nuevaTransaccion();\n\t\tTransactionManager.getInstance().getTransaccion().start();\n\t\t\n\t\tIterator<Entry<Integer, Integer>> it = tCompra.getLineaCompra().entrySet().iterator();\n\t\t\n\t\t//Bucle mientras haya articulos\n\t\twhile (it.hasNext()){\n\t\t\tMap.Entry<Integer, Integer> t = (Map.Entry<Integer, Integer>) it.next();\n\t\t\tTransferVideojuego tb = FactoriaDAO.getInstance().createDAOVideojuego().searchId(t.getKey());\n\t\t\t\n\t\t\tif(tb == null || !tb.getActivo()){\n\t\t\t\ttCompra.setLog(\"Articulo: \" + t.getKey() + \" no ha podido ser agregado\");\n\t\t\t\tarticulosQuitar.add(t.getKey());\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttCompra.setLog(\"Articulo: \" + t.getKey() + \" ha podido ser agregado\");\n\t\t\t\ttCompra.setCosteTotal(tCompra.getCosteTotal() + tb.getPrecio() * t.getValue());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Borramos los articulos\n\t\tfor(int i = 0; i < articulosQuitar.size(); ++i)\n\t\t\ttCompra.removeLineaCompra(articulosQuitar.get(i));\n\t\t\n\t\t//Introducimos rl resultado \n\t\tint resultado = FactoriaDAO.getInstance().createDAOCompra().add(tCompra);\n\t\t//hacemos commit\n\t\tif(resultado == 0)\n {\n TransactionManager.getInstance().getTransaccion().rollback();\n tCompra = null;\n }\n else{\n TransactionManager.getInstance().getTransaccion().commit();\n }\n\t\t//Finalmente cerramos la Transaccion\n\t\tTransactionManager.getInstance().eliminaTransaccion();\n\t\treturn tCompra;\n\t}", "protected String cargarRecepcionSeros(String url, String username,\n String password) throws Exception {\n try {\n getRecepcionSeros();\n if(mRecepcionSeros.size()>0){\n saveRecepcionSeros(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/seros\";\n RecepcionSero[] envio = mRecepcionSeros.toArray(new RecepcionSero[mRecepcionSeros.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<RecepcionSero[]> requestEntity =\n new HttpEntity<RecepcionSero[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveRecepcionSeros(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveRecepcionSeros(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "protected String cargarEncuestaSatisfaccions(String url, String username,\n String password) throws Exception {\n try {\n getEncuestaSatisfaccions();\n if(mEncuestaSatisfaccions.size()>0){\n saveEncuestaSatisfaccions(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/encuestassatisfaccion\";\n EncuestaSatisfaccion[] envio = mEncuestaSatisfaccions.toArray(new EncuestaSatisfaccion[mEncuestaSatisfaccions.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EncuestaSatisfaccion[]> requestEntity =\n new HttpEntity<EncuestaSatisfaccion[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveEncuestaSatisfaccions(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveEncuestaSatisfaccions(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private String creerOeuvre(HttpServletRequest request) throws Exception {\n\n String vueReponse;\n try {\n Oeuvre oeuvreE = new Oeuvre();\n oeuvreE.setIdOeuvre(0);\n request.setAttribute(\"oeuvreR\", oeuvreE);\n request.setAttribute(\"titre\", \"Créer une oeuvre\");\n vueReponse = \"/oeuvre.jsp\";\n return (vueReponse);\n } catch (Exception e) {\n throw e;\n }\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "protected String cargarVacunas(String url, String username,\n String password) throws Exception {\n try {\n getVacunas();\n if(mVacunas.size()>0){\n saveVacunas(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/vacunas\";\n Vacuna[] envio = mVacunas.toArray(new Vacuna[mVacunas.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<Vacuna[]> requestEntity =\n new HttpEntity<Vacuna[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveVacunas(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveVacunas(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private void generaProcesoCoactivo(List<ObligacionCoactivoDTO> obligaciones, ConfiguracionCoactivoDTO configuracion)\n throws CirculemosNegocioException {\n\n if (obligaciones != null && !obligaciones.isEmpty() && configuracion != null) {\n\n // Crea proceso coactivo\n ProcesoDTO procesoDTO = registrarProcesoCoactivo();\n\n // Crea Participantes\n PersonaDTO persona = iRFachadaAdminNegocio\n .consultarPersona(obligaciones.get(0).getCoactivo().getPersona().getId());\n registrarParticipante(persona, procesoDTO);\n\n // Se crea el coactivo\n Coactivo coactivo = registrarCoactivo(obligaciones, procesoDTO, configuracion);\n\n // Se crean las obligaciones\n registrarObligaciones(obligaciones, coactivo, procesoDTO);\n\n // Actualizacion de estado a mandamiento de pago\n TrazabilidadProcesoDTO trazabilidadMandamiento = iRFachadaProceso\n .actualizarEstadoProceso(procesoDTO.getId(), EnumEstadoProceso.ECUADOR_COACTIVO_MANDAMIENTO, false);\n try {\n em.flush();\n\n boolean financiacionIncumplida = false;\n for (ObligacionCoactivoDTO obligacionCoactivoDTO : obligaciones) {\n financiacionIncumplida = validarProcesoFianciacionIncumplido(\n obligacionCoactivoDTO.getNumeroObligacion());\n if (financiacionIncumplida) {\n financiacionIncumplida = true;\n break;\n }\n }\n\n if (financiacionIncumplida) {\n // TODO genera auto de pago especial\n } else {\n // Genera documento apertura\n if (validarDireccionPersona(persona)) {\n registrarDocumentoCoactivo(EnumTipoDocumentoGenerado.AUTO_PAGO, trazabilidadMandamiento,\n coactivo, EnumTipoDocumentoProceso.COACTIVO_AUTO_PAGO, null);\n } else {\n registrarDocumentoCoactivo(EnumTipoDocumentoGenerado.AUTO_PAGO_SIN_DIRECCION,\n trazabilidadMandamiento, coactivo,\n EnumTipoDocumentoProceso.COACTIVO_AUTO_PAGO_SIN_DIRECCION, null);\n }\n }\n\n // Genera documento posesion\n registrarDocumentoCoactivo(EnumTipoDocumentoGenerado.ACTA_DE_POSESION, trazabilidadMandamiento,\n coactivo, EnumTipoDocumentoProceso.COACTIVO_ACTA_DE_POSESION, null);\n\n } catch (CirculemosAlertaException e) {\n logger.error(\"Error en generación de documentos de mandamiento de pago\", e);\n throw new CirculemosNegocioException(ErrorCoactivo.GenerarCoactivo.COAC_002001);\n }\n\n // Verifica si se debe generar los documentos con el siguiente parametro : 225 Generar documentos de notificacion\n generarNotificacion(procesoDTO, coactivo);\n\n // Generacion de oficio de solicitud de bienes\n generarSolicitudBien(configuracion, procesoDTO, coactivo);\n\n // Valida si debe registrar el coactivo en axis\n registrarCoactivoAxis(coactivo, persona);\n\n } else {\n throw new CirculemosNegocioException(ErrorCoactivo.GenerarCoactivo.COAC_002002);\n }\n }", "private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "protected String cargarObsequioGeneral(String url, String username,\n String password) throws Exception {\n try {\n if(mObsequiosGeneral.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/obsequiosgen\";\n ObsequioGeneral[] envio = mObsequiosGeneral.toArray(new ObsequioGeneral[mObsequiosGeneral.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<ObsequioGeneral[]> requestEntity =\n new HttpEntity<ObsequioGeneral[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "Operacion createOperacion();", "protected String cargarTempPbmcs(String url, String username,\n String password) throws Exception {\n try {\n getTempPbmcs();\n if(mTempPbmcs.size()>0){\n saveTempPbmcs(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/tpbmcs\";\n TempPbmc[] envio = mTempPbmcs.toArray(new TempPbmc[mTempPbmcs.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<TempPbmc[]> requestEntity =\n new HttpEntity<TempPbmc[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveTempPbmcs(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveTempPbmcs(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "public AjusteSaldoAFavorRespuesta() {\n\t}", "public EncabezadoRespuesta bajaAsistencia(AsistenciaDTO asistencia) {\n\t\t//Primero generamos el identificador unico de la transaccion\n\t\tString uid = GUIDGenerator.generateGUID(asistencia);\n\t\t//Mandamos a log el objeto de entrada\n\t\tLogHandler.debug(uid, this.getClass(), \"bajaAsistencia - Datos Entrada: \" + asistencia);\n\t\t//Variable de resultado\n\t\tEncabezadoRespuesta respuesta = new EncabezadoRespuesta();\n\t\ttry {\n\t\t\tif (asistencia.getIdEmpleado() == null) {\n \t\tthrow new ExcepcionesCuadrillas(\"Es necesario el id del empleado.\");\n \t}\n \tif (asistencia.getUsuarioBaja() == null || asistencia.getUsuarioBaja().trim().isEmpty())\n \t{\n \t\tthrow new ExcepcionesCuadrillas(\"Es necesario el usuario para la baja.\");\n \t}\n \tif (asistencia.getUsuarioUltMod() == null || asistencia.getUsuarioUltMod().trim().isEmpty())\n \t{\n \t\tthrow new ExcepcionesCuadrillas(\"Es necesario el usuario para la modificacion.\");\n \t}\n \tAsistenciaDAO dao = new AsistenciaDAO();\n \trespuesta = dao.bajaAsistencia(uid, asistencia);\n\t\t}\n\t\tcatch (ExcepcionesCuadrillas ex) {\n\t\t\tLogHandler.error(uid, this.getClass(), \"bajaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\trespuesta.setUid(uid);\n\t\t\trespuesta.setEstatus(false);\n\t\t\trespuesta.setMensajeFuncional(ex.getMessage());\n\t\t\trespuesta.setMensajeTecnico(ex.getMessage());\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tLogHandler.error(uid, this.getClass(), \"bajaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\trespuesta.setUid(uid);\n\t\t\trespuesta.setEstatus(false);\n\t\t\trespuesta.setMensajeFuncional(ex.getMessage());\n\t\t\trespuesta.setMensajeTecnico(ex.getMessage());\n\t\t}\n\t\tLogHandler.debug(uid, this.getClass(), \"bajaAsistencia - Datos Salida: \" + respuesta);\n\t\treturn respuesta;\n\t}", "@Override\n public synchronized ItfMotorDeReglas crearMotorDeReglas(AgenteCognitivo agent, InputStream reglas, String ficheroReglas){\n kbuilder = compilarReglas( agent.getIdentAgente(), reglas,ficheroReglas);\n if (kbuilder==null){\n trazas.aceptaNuevaTraza(new InfoTraza(agent.getIdentAgente(),\"Motor de reglas Drools: ERROR en la compilacion de las reglas al crear el agente \" ,InfoTraza.NivelTraza.error));\n return null;\n }\n MotorDeReglasDroolsImp5 motorDrools = new MotorDeReglasDroolsImp5(agent,this);\n motorDrools.crearSesionConConfiguracionStandard(kbuilder);\n // KbuildersObtenidos.add(kbuilder); \n return motorDrools;\n }", "protected String cargarMuestras(String url, String username,\n String password) throws Exception {\n try {\n getMuestras();\n if(mMuestras.size()>0){\n saveMuestras(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/muestrasMA\";\n Muestra[] envio = mMuestras.toArray(new Muestra[mMuestras.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<Muestra[]> requestEntity =\n new HttpEntity<Muestra[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveMuestras(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveMuestras(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private void cargardatos() {\n String link = \"http://192.168.43.30:8080/appLavanderia/subidadatos.php?\";\n\n //Toast.makeText(getApplicationContext(), \"1\", Toast.LENGTH_SHORT).show();\n respuesta = new StringRequest(Request.Method.POST, link, new Response.Listener<String>() {\n\n @Override //En caso que si se pudo hacer la conexion\n public void onResponse(String response) {\n if (response.equalsIgnoreCase(\"registra\")){\n Toast.makeText(getApplicationContext(), \"Registro Exitoso\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(getApplicationContext(), \"errorr\", Toast.LENGTH_SHORT).show();\n }\n //Toast.makeText(getApplicationContext(), \"2\", Toast.LENGTH_SHORT).show();\n\n }//En dado caso que no se pueda guardar\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), \"No \"+error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }){\n @Override //Contiene la informacion para enviar\n protected Map<String, String> getParams() throws AuthFailureError {\n\n String nombre = nombreimagen.getText().toString();\n String descripcion = descricpion.getText().toString();\n String fecha = fechaexp.getText().toString();\n String Foto = ConvertImagenTexto(imagenpro);\n\n //enviar los datos al servidor\n Map<String, String> datosparaenviar = new HashMap<>();\n datosparaenviar.put(\"Nombre\",nombre);\n datosparaenviar.put(\"DescripcionPromo\",descripcion);\n datosparaenviar.put(\"FechaPromo\",fecha);\n datosparaenviar.put(\"ImagenPromo\",Foto);\n return datosparaenviar;\n }\n };\n envio.add(respuesta);\n }", "void onOTPSendSuccess(ConformationRes data);", "private void creacion(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 83 */ String _operacion = comms.request.getParameter(\"_operacion\");\n/* 84 */ String elUsuario = \"\" + comms.session.getUser().getName();\n/* 85 */ int idRecurso = 0;\n/* */ try {\n/* 87 */ idRecurso = Integer.parseInt(comms.request.getParameter(\"idRecurso\"));\n/* */ }\n/* 89 */ catch (Exception e) {\n/* 90 */ throw new ClientPageRedirectException(comms.request.getAppFileURIPath(\"Mensaje.po?codigo=ValorNoValido&p1=idRecurso\"));\n/* */ } \n/* */ \n/* 93 */ RespuestaBD rta = new RespuestaBD();\n/* 94 */ if (_operacion.equals(\"E\")) {\n/* 95 */ PrcRecursoDAO ob = new PrcRecursoDAO();\n/* 96 */ rta = ob.eliminarRegistro(idRecurso);\n/* 97 */ if (!rta.isRta()) {\n/* 98 */ throw new ClientPageRedirectException(comms.request.getAppFileURIPath(\"Mensaje.po?codigo=ErrorPrcRecurso&p1=\" + rta.getMensaje()));\n/* */ }\n/* 100 */ String sPagina = \"PrcRecurso.po?_operacion=X\";\n/* 101 */ throw new ClientPageRedirectException(comms.request.getAppFileURIPath(sPagina));\n/* */ } \n/* 103 */ String idTipoRecurso = comms.request.getParameter(\"idTipoRecurso\");\n/* 104 */ String descripcionRecurso = comms.request.getParameter(\"descripcionRecurso\");\n/* 105 */ int idProcedimiento = 0;\n/* */ try {\n/* 107 */ idProcedimiento = Integer.parseInt(comms.request.getParameter(\"idProcedimiento\"));\n/* */ }\n/* 109 */ catch (Exception e) {}\n/* */ \n/* */ \n/* 112 */ String estado = comms.request.getParameter(\"estado\");\n/* 113 */ PrcRecursoDAO ob = new PrcRecursoDAO();\n/* 114 */ if (_operacion.equals(\"C\")) {\n/* 115 */ rta = ob.crearRegistro(idRecurso, idTipoRecurso, descripcionRecurso, idProcedimiento, estado, elUsuario);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ idRecurso = rta.getSecuencia();\n/* */ } else {\n/* */ \n/* 125 */ rta = ob.modificarRegistro(idRecurso, idTipoRecurso, descripcionRecurso, idProcedimiento, estado, elUsuario);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 133 */ if (!rta.isRta()) {\n/* 134 */ throw new ClientPageRedirectException(comms.request.getAppFileURIPath(\"Mensaje.po?codigo=ErrorPrcRecurso&p1=\" + rta.getMensaje()));\n/* */ }\n/* */ \n/* 137 */ String sPagina = \"PrcRecurso.po?_operacion=P&idRecurso=\" + idRecurso + \"\";\n/* 138 */ throw new ClientPageRedirectException(comms.request.getAppFileURIPath(sPagina));\n/* */ }", "public void nuevo(Restricciones cd) {\n Map<String, List<String>> params = null;\n List<String> p = null;\n if (cd != null) {\n params = new HashMap<>();\n p = new ArrayList<>();\n p.add(cd.getCodigoRestriccion().toString());\n params.put(\"idRestriccion\", p);\n if (ver) {\n p = new ArrayList<>();\n p.add(ver.toString());\n params.put(\"ver\", p);\n ver = false;\n }\n } else {\n\n }\n Utils.openDialog(\"/restricciones/restriccion\", params, \"350\", \"55\");\n }", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "public void creation(){\n\t for(int i=0; i<N;i++) {\r\n\t\t for(int j=0; j<N;j++) {\r\n\t\t\t tab[i][j]=0;\r\n\t\t }\r\n\t }\r\n\t resDiagonale(); \r\n \r\n\t //On remplit le reste \r\n\t conclusionRes(0, nCarre); \r\n \t\t\r\n\t \r\n\t isDone=true;\r\n }", "private void newResposta(int respostaUtilizador, int idQuestao, String mailUtilizador) {\n\t\tdbconn.newResposta(respostaUtilizador, idQuestao, mailUtilizador);\r\n\t}", "public void actualizarDatosComprador(Integer idUsuarioAratek) {\n\n ServicioBDD servicioBDD = new ServicioBDD(this);\n servicioBDD.abrirBD();\n EmpleadoVO empleadoVO = servicioBDD.obtenerNombreUsuario( idUsuarioAratek.toString() );\n servicioBDD.cerrarBD();\n\n if( empleadoVO==null ){\n\n StringBuilder mensaje = new StringBuilder();\n mensaje.append(\"No se encuentra registrado el usuario con id aratek: \")\n .append( idUsuarioAratek );\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage( mensaje.toString() );\n builder.setTitle(R.string.mns_titulo)\n .setPositiveButton(R.string.mns_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n //Intent intent = new Intent(context, MenuActivity.class);\n //startActivity(intent);\n //finish();\n return;\n\n }\n })\n .setCancelable(false)\n .show();\n\n }else{\n\n mCedulaIdentidad.setText( empleadoVO.getNumeroDocumento() );\n mNombrePersona.setText( empleadoVO.getNombresCompletos() );\n\n }\n\n //logger.addRecordToLog(\"observaciones : \" + observaciones);\n\n /*Intent intent = new Intent(this, ConfirmarCompraActivity.class);\n Bundle bundle = new Bundle();\n bundle.putString(Constantes.NUMERO_CEDULA , empleadoVO.getNumeroDocumento());\n bundle.putString(Constantes.VALOR_COMPRA, this.valorCompra);\n bundle.putString(Constantes.OBSERVACIONES, observaciones);\n bundle.putInt(Constantes.ID_USUARIO_ARATEK, idUsuarioAratek);\n bundle.putString(Constantes.NOMBRE_USUARIO, empleadoVO.getNombresCompletos());\n\n intent.putExtras(bundle);\n\n startActivity(intent);\n //finish();*/\n //aqui\n\n\n /*AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"XXXYYYYY confirma la compra por xxxx !!!?\");\n builder.setTitle(R.string.mns_titulo)\n .setPositiveButton(R.string.mns_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n //Intent intent = new Intent(context, MenuActivity.class);\n //startActivity(intent);\n //finish();\n\n\n confirmarCompra();\n\n Toast.makeText(UnicaCompraActivity.this, \"Compra confirmada\" , Toast.LENGTH_LONG).show();\n }\n })\n .setNegativeButton(R.string.mns_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n //Intent intent = new Intent(context, MenuActivity.class);\n //startActivity(intent);\n //finish();\n\n\n cancelarCompra();\n\n Toast.makeText(UnicaCompraActivity.this, \"Compra confirmada\" , Toast.LENGTH_LONG).show();\n }\n })\n .setCancelable(false)\n .show();\n */\n }", "public void crearManoObra(ActionEvent actionEvent) {\r\n manoobraDao manobraDao = new manoobraDaoImpl();\r\n String msg;\r\n this.manoobra.setNombreManob(this.manoobra.getNombreManob());\r\n this.manoobra.setCostojrhManob(this.manoobra.getCostojrhManob());\r\n \r\n if (manobraDao.crearManoObra(this.manoobra)) {\r\n msg = \"Mano de Obra creada correctamente\";\r\n FacesMessage message1 = new FacesMessage(FacesMessage.SEVERITY_INFO,msg , null);\r\n FacesContext.getCurrentInstance().addMessage(null, message1);\r\n } else {\r\n msg = \"No se creo la Mano de Obra\";\r\n FacesMessage message2 = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, null);\r\n FacesContext.getCurrentInstance().addMessage(null, message2);\r\n }\r\n \r\n }", "public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}", "public void modificarCompraComic();", "private Retorno( )\r\n {\r\n val = null;\r\n izq = null;\r\n der = null;\r\n\r\n }", "public boolean procesarOrdenCompra(OrdenCompra oc) {\n boolean resultado = false;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.agregarOrden(oc);\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n } finally {\n return resultado;\n }\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public String createProductAccount(Accnowbs obj) {\n String str = null;\r\n\r\n try {\r\n BASE_URI = getURI();\r\n com.sun.jersey.api.client.config.ClientConfig config = new com.sun.jersey.api.client.config.DefaultClientConfig();\r\n client = Client.create(config);\r\n getRoleparameters();\r\n client.addFilter(new HTTPBasicAuthFilter(dname, dpwd));\r\n webResource = client.resource(BASE_URI).path(\"glwsprdacno\");\r\n\r\n ClientResponse response = webResource.accept(\"application/xml\").post(ClientResponse.class, obj);\r\n System.out.println(\"Server response : \\n\" + response.getStatus());\r\n\r\n if (response.getStatus() != 201) {\r\n throw new RuntimeException(\"Failed : HTTP error code : \"\r\n + response.getStatus() + \". Operation failed\");\r\n }\r\n\r\n String output = response.getEntity(String.class);\r\n System.out.println(\"Server response : \\n\");\r\n System.out.println(output);\r\n str = output;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return str;\r\n }", "protected byte[] buildResponse() {\n final Object[] fields = {\n messageType(),\n request,\n errorDescription\n };\n\n final byte[] resposta = new byte[1];\n final byte[] codigo = new byte[1];\n final byte[] numeroDeBytes = new byte[1];\n final byte[] dados = new byte[numeroDeBytes[0]];\n\n\n return resposta;\n }", "@Override\n\tpublic void cargarInformacion_paciente() {\n\t\tinfoPacientes.cargarInformacion(admision, this,\n\t\t\t\tnew InformacionPacienteIMG() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void ejecutarProceso() {\n\t\t\t\t\t\tif (tbxAccion.getValue().equalsIgnoreCase(\"registrar\")) {\n\n\t\t\t\t\t\t\t// Map<String, Object> parametros = new\n\t\t\t\t\t\t\t// HashMap<String, Object>();\n\t\t\t\t\t\t\t// parametros.put(\"codigo_empresa\", codigo_empresa);\n\t\t\t\t\t\t\t// parametros.put(\"codigo_sucursal\",\n\t\t\t\t\t\t\t// codigo_sucursal);\n\t\t\t\t\t\t\t// parametros.put(\"identificacion\",\n\t\t\t\t\t\t\t// admision.getNro_identificacion());\n\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t\t\t\t\t.setLabel(\"Creando historia de Urgencia Odontologica\");\n\t\t\t\t\t\t\tadmision.setPrimera_vez(\"S\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }", "public void registrarPagoFacturaCredito(){\n if(facturaCredito != null){\n try{\n //NUEVA TRANSACCION\n Transaccion transac = new Transaccion();\n transac.setFechaTransac(new funciones().getTime());\n transac.setHoraTransac(new funciones().getTime());\n transac.setResponsableTransac(new JsfUtil().getEmpleado());\n transac.setTipoTransac(4); //REGISTRO DE PAGO\n transac.setIdtransac(ejbFacadeTransac.getNextIdTransac());\n ejbFacadeTransac.create(transac);\n //REGISTRAR PAGO\n PagoCompra pagoCompra = new PagoCompra();\n pagoCompra.setFacturaIngreso(facturaCredito);\n pagoCompra.setIdtransac(transac);\n pagoCompra.setInteresPagoCompra(new BigDecimal(intereses));\n pagoCompra.setMoraPagoCompra(new BigDecimal(mora));\n pagoCompra.setAbonoPagoCompra(new BigDecimal(pago));\n BigDecimal total = pagoCompra.getAbonoPagoCompra().add(pagoCompra.getInteresPagoCompra()).add(pagoCompra.getMoraPagoCompra());\n pagoCompra.setTotalPagoCompra(new BigDecimal(new funciones().redondearMas(total.floatValue(), 2)));\n pagoCompra.setIdpagoCompra(ejbFacadePagoCompra.getNextIdPagoCompra());\n ejbFacadePagoCompra.create(pagoCompra); // Registrar Pago en la BD\n //Actualizar Factura\n facturaCredito.getPagoCompraCollection().add(pagoCompra); //Actualizar Contexto\n BigDecimal saldo = facturaCredito.getSaldoCreditoCompra().subtract(pagoCompra.getAbonoPagoCompra());\n facturaCredito.setSaldoCreditoCompra(new BigDecimal(new funciones().redondearMas(saldo.floatValue(), 2)));\n if(facturaCredito.getSaldoCreditoCompra().compareTo(BigDecimal.ZERO)==0){\n facturaCredito.setEstadoCreditoCompra(\"CANCELADO\");\n facturaCredito.setFechaCancelado(transac.getFechaTransac());\n }\n facturaCredito.setUltimopagoCreditoCompra(transac.getFechaTransac());\n ejbFacadeFacturaIngreso.edit(facturaCredito);\n new funciones().setMsj(1, \"PAGO REGISTRADO CORRECTAMENTE\");\n if(facturaCredito.getEstadoCreditoCompra().equals(\"CANCELADO\")){\n RequestContext context = RequestContext.getCurrentInstance(); \n context.execute(\"alert('FACTURA CANCELADA POR COMPLETO');\");\n }\n prepararPago();\n }catch(Exception e){\n new funciones().setMsj(3, \"ERROR AL REGISTRAR PAGO\");\n }\n }\n }", "private String enviarSolicitud(VSolicitudesDTO regSol, int idNav, File anexo, int helpDesk, String elUsuario) {\n/* 224 */ if (regSol == null) {\n/* 225 */ return \"ErrorInterno\";\n/* */ }\n/* */ \n/* 228 */ ServiciosDAO serf = new ServiciosDAO();\n/* 229 */ ServiciosDTO servicio = serf.cargarRegistro(regSol.getCodigoServicio());\n/* 230 */ serf.close();\n/* */ \n/* 232 */ SisUsuariosDAO pers = new SisUsuariosDAO();\n/* 233 */ SisUsuariosDTO persona = pers.cargarRegistro(regSol.getEmpleadoProveedor());\n/* */ \n/* 235 */ if (!persona.getEstado().equals(\"A\")) {\n/* 236 */ return \"ProveedorInactivo\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 242 */ CaracteristicasDAO rsCaracteristica = new CaracteristicasDAO();\n/* 243 */ int faltantes = rsCaracteristica.pendientes(regSol.getNumero(), servicio.getCodigo(), \"C\");\n/* 244 */ CaracteristicasDTO car = rsCaracteristica.cargarValorTiempo(regSol.getNumero(), servicio.getCodigo());\n/* 245 */ rsCaracteristica.close();\n/* */ \n/* 247 */ if (faltantes > 0) {\n/* 248 */ return \"CamposObligatorios\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 253 */ if (car != null) {\n/* 254 */ regSol.setDuracion(car.getDuracion());\n/* 255 */ regSol.setUnidadMedida(car.getUnidadMedida());\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 261 */ String fechaVigencia = Utilidades2.fechaVigencia(regSol.getUnidadMedida());\n/* */ \n/* */ \n/* 264 */ String fechaterminacion = Utilidades2.fechaTerminacion(fechaVigencia, regSol.getDuracion(), regSol.getUnidadMedida());\n/* */ \n/* */ \n/* */ \n/* 268 */ String observacion = \"\";\n/* */ \n/* 270 */ EstadoDAO efa = new EstadoDAO();\n/* 271 */ efa.cargarTodosTipo(\"PRV\");\n/* 272 */ EstadoDTO esta = efa.next();\n/* 273 */ efa.close();\n/* */ \n/* 275 */ boolean enviarMensaje = (helpDesk == 0);\n/* */ \n/* */ \n/* 278 */ Varios oVarios = new Varios();\n/* 279 */ if (anexo == null) {\n/* 280 */ oVarios.enviarSolicitud(idNav, regSol.getCodigoEstado(), esta.getCodigo(), observacion, regSol, enviarMensaje, fechaVigencia, fechaterminacion, 0, regSol.getDuracion(), regSol.getUnidadMedida(), elUsuario);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 295 */ oVarios.enviarSolicitud(idNav, regSol.getCodigoEstado(), esta.getCodigo(), observacion, anexo, regSol, enviarMensaje, fechaVigencia, fechaterminacion, 0, regSol.getDuracion(), regSol.getUnidadMedida(), elUsuario);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 313 */ VSolicitudesDAO sf = new VSolicitudesDAO();\n/* */ \n/* 315 */ regSol = sf.getSolicitud(regSol.getNumero());\n/* 316 */ while (regSol.getSolicitudPadre() != -1) {\n/* 317 */ VSolicitudesDTO regSolPadre = sf.getSolicitud(regSol.getSolicitudPadre());\n/* */ \n/* */ \n/* 320 */ int diasServicio = Utilidades2.diasDelServicio(regSolPadre.getDuracion(), regSolPadre.getUnidadMedida());\n/* */ \n/* 322 */ long diferencia = -1L * Utilidades2.diferenciaEnDias(regSol.getFechaVigencia(), regSolPadre.getFechaVigencia());\n/* */ \n/* 324 */ String nuevaFecha = Utilidades2.fechaMasDias(regSol.getFechaEstimadaTerminacion(), (int)(diasServicio - diferencia));\n/* */ \n/* 326 */ if (Utilidades2.compararFechas(regSolPadre.getFechaEstimadaTerminacion(), nuevaFecha) < 0) {\n/* 327 */ String s = \"fecha_estimada_terminacion=\" + Utilidades.formatoFecha2(Utilidades.darFormatoFecha(nuevaFecha)) + \",\";\n/* 328 */ s = s + \"fecha_base_escalamientos=\" + Utilidades.formatoFecha2(nuevaFecha) + \",\";\n/* 329 */ s = s + \"fecha_modificacion=\" + Utilidades.formatoFecha(Utilidades.ahora()) + \",\";\n/* 330 */ s = s + \"usuario_modificacion='\" + elUsuario + \"'\";\n/* 331 */ sf.actualizarCampos(regSolPadre.getNumero(), s);\n/* */ } \n/* 333 */ regSol = sf.getSolicitud(regSolPadre.getNumero());\n/* */ } \n/* */ \n/* 336 */ sf.close();\n/* */ \n/* 338 */ return null;\n/* */ }", "@PostMapping(\"/receta\")\n\t@ResponseStatus(HttpStatus.CREATED) // Retorna 201\n\tpublic ResponseEntity<?> create(@Valid @RequestBody Receta receta,BindingResult result){\n\t\tthis.response = new HashMap<>();\n\t\tReceta recetaNuevo = null;\n\t\t//En el caso de que tenga errores a la hora de postear, mandara un listado con dichos errores\n\t\tif(result.hasErrors()) {\n\t\t\tList<String>errors=result.getFieldErrors()\n\t\t\t\t\t.stream().map(error -> {return \"El campo '\"+error.getField()+\"' \"+error.getDefaultMessage();})\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tthis.response.put(\"errors\",errors);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\trecetaNuevo=this.recetaService.save(receta);\n\t\t}catch(DataAccessException dataEx) {\n\t\t\tthis.response.put(\"mensaje\",\"Error al insertar la receta en la base de datos\");\n\t\t\tthis.response.put(\"error\", dataEx.getMessage().concat(\" \").concat(dataEx.getMostSpecificCause().getMessage()));\n\t\t\treturn new ResponseEntity<Map<String,Object>>(this.response,HttpStatus.INTERNAL_SERVER_ERROR); // Retorna 500\n\t\t}\n\t\t\n\t\tthis.response.put(\"mensaje\",\"La receta ha sido insertado en la base de datos\");\n\t\tthis.response.put(\"coche\",recetaNuevo);\n\t\treturn new ResponseEntity<Map<String,Object>>(this.response,HttpStatus.CREATED);\n\t}", "protected String cargarEnfermedadCronica(String url, String username,\n String password) throws Exception {\n try {\n if(mEnfermedades.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/enfermedadescro\";\n EnfermedadCronica[] envio = mEnfermedades.toArray(new EnfermedadCronica[mEnfermedades.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EnfermedadCronica[]> requestEntity =\n new HttpEntity<EnfermedadCronica[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }" ]
[ "0.69342476", "0.6678233", "0.6279691", "0.6262241", "0.6217238", "0.60467345", "0.59169865", "0.59164286", "0.59046805", "0.5872757", "0.58463", "0.5838733", "0.5823837", "0.58078986", "0.58074534", "0.57983845", "0.57820183", "0.57803494", "0.5772777", "0.57385194", "0.57276803", "0.5682001", "0.5678253", "0.5674937", "0.56572336", "0.5655984", "0.5638064", "0.5637291", "0.56341875", "0.56339604", "0.5618461", "0.56055856", "0.5594199", "0.5579952", "0.5579871", "0.5577599", "0.55754155", "0.5571316", "0.5566099", "0.55648714", "0.5563753", "0.5561226", "0.555569", "0.5553016", "0.55514115", "0.55487454", "0.55487096", "0.55471313", "0.553864", "0.55304503", "0.55205953", "0.551665", "0.55128247", "0.5504102", "0.55028456", "0.54960334", "0.5491092", "0.5487505", "0.54810286", "0.54800785", "0.54740125", "0.5472322", "0.5471301", "0.54690486", "0.546381", "0.5463566", "0.5457203", "0.5450962", "0.54504305", "0.54502624", "0.5448008", "0.5447067", "0.5446962", "0.54462564", "0.5441834", "0.54413724", "0.5438266", "0.54354745", "0.5420493", "0.5419553", "0.54177994", "0.54173404", "0.5414587", "0.5413182", "0.5413168", "0.5411249", "0.5407154", "0.53970164", "0.5396798", "0.5395208", "0.5392643", "0.53888947", "0.5385756", "0.5376713", "0.53693455", "0.5367795", "0.53675395", "0.5364867", "0.53628045", "0.5359301", "0.53532535" ]
0.0
-1
Created by oleg on 11.03.16.
public interface OrderedProductService extends Service<OrderedProduct> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "private stendhal() {\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "private void kk12() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "private void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo4359a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n public void init() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public abstract void mo70713b();", "public void skystonePos4() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private void init() {\n\n\n\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {}", "@Override\n void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "static void feladat9() {\n\t}", "static void feladat4() {\n\t}", "public void mo6081a() {\n }", "public abstract void mo56925d();", "public void skystonePos6() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public int retroceder() {\n return 0;\n }" ]
[ "0.5720126", "0.568", "0.56737405", "0.5606774", "0.5572662", "0.5569758", "0.55654114", "0.5555568", "0.5522972", "0.5521064", "0.5521064", "0.5513627", "0.5491377", "0.54827666", "0.54575366", "0.54548293", "0.5451591", "0.5446719", "0.54252887", "0.54178476", "0.5415786", "0.5414959", "0.5413472", "0.5413472", "0.5413472", "0.5413472", "0.5413472", "0.5412205", "0.5394023", "0.53928137", "0.53869176", "0.53844744", "0.5365704", "0.53620327", "0.5342286", "0.5337368", "0.5333509", "0.533331", "0.5328275", "0.5301247", "0.5276545", "0.5273339", "0.52557886", "0.52557886", "0.52498233", "0.524067", "0.5238751", "0.5237415", "0.5237415", "0.5237415", "0.5224827", "0.52219844", "0.52219844", "0.52219844", "0.5219255", "0.5203741", "0.5195653", "0.5195338", "0.5195338", "0.5195338", "0.5192086", "0.5187045", "0.5186931", "0.5180119", "0.5179606", "0.5179606", "0.5176659", "0.5175849", "0.5175647", "0.5166415", "0.5166415", "0.5166415", "0.5166415", "0.5166415", "0.5166415", "0.5166415", "0.5166204", "0.5164395", "0.51631016", "0.51602596", "0.51530504", "0.5150452", "0.5141565", "0.51390135", "0.5131271", "0.5131271", "0.5130094", "0.5125095", "0.51240444", "0.51203406", "0.5119228", "0.5113196", "0.51051444", "0.51051444", "0.51051444", "0.51051444", "0.51051444", "0.51051444", "0.5104297", "0.50929093", "0.5090195" ]
0.0
-1
Use the Builder class for convenient dialog construction
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); LayoutInflater inflater = getActivity().getLayoutInflater(); try { itemsJSONArray = new JSONArray(getArguments().getString("order")); } catch (JSONException e) { e.printStackTrace(); } builder.setView(inflater.inflate(R.layout.user_details, null)).setTitle("User details"); builder.setPositiveButton("Order", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { name = (EditText) getDialog().findViewById(R.id.nameET); phone = (EditText) getDialog().findViewById(R.id.phoneET); year = (Spinner) getDialog().findViewById(R.id.spinnerYear); branch = (Spinner) getDialog().findViewById(R.id.spinnerBranch); // FIRE ZE MISSILES! if(name.getText().toString().isEmpty() || phone.getText().toString().isEmpty()){ Toast.makeText(((OrderItem)getTargetFragment()).getActivity(), "Fill all fields", Toast.LENGTH_SHORT).show(); OrderDialogFragment frag = new OrderDialogFragment(); frag.setTargetFragment(getTargetFragment(),0); frag.setArguments(getArguments()); frag.show(getFragmentManager(), "Order dialog"); } else{ try { orderJSON.put("name",name.getText().toString()); orderJSON.put("phone",phone.getText().toString()); orderJSON.put("year",year.getSelectedItem().toString()); orderJSON.put("branch",branch.getSelectedItem().toString()); Log.e("Tag",branch.getSelectedItem().toString()); orderJSON.put("order",itemsJSONArray); ringProgressDialog = ProgressDialog.show(getActivity(), "Please wait ...", "Order is being placed ...", true, true, new DialogInterface.OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { ringProgressDialog.hide(); } }); AndroidNetworking.post(URL+"/order") .addJSONObjectBody(orderJSON) // posting json .setTag("test") .setPriority(Priority.MEDIUM) .build() .getAsJSONObject(new JSONObjectRequestListener() { @Override public void onResponse(JSONObject response) { // do anything with response ringProgressDialog.hide(); ((OrderItem)getTargetFragment()).onOrderPlaced(true,orderJSON); } @Override public void onError(ANError error) { // handle error //Toast.makeText(c,"Error , Order not placed",Toast.LENGTH_LONG).show(); ringProgressDialog.hide(); ((OrderItem)getTargetFragment()).onOrderPlaced(false,orderJSON); } }); } catch (JSONException e) { e.printStackTrace(); } } } }) .setNegativeButton("Cancel", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User cancelled the dialog } }); // Create the AlertDialog object and return it return builder.create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dialog() {\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "public StandardDialog() {\n super();\n init();\n }", "public FiltroGirosDialog() {\n \n }", "private Dialogs () {\r\n\t}", "public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }", "protected abstract JDialog createDialog();", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "public Builder(){\n }", "public static Builder builder(){ return new Builder(); }", "static Builder builder() {\n return new Builder();\n }", "protected void alertBuilder(){\n SettingsDialogFragment settingsDialogFragment = new SettingsDialogFragment();\n settingsDialogFragment.show(getSupportFragmentManager(), \"Settings\");\n }", "private void initDialog() {\n }", "private AlertDialog cargando() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater inflater = getLayoutInflater();\n\n @SuppressLint(\"InflateParams\") View v = inflater.inflate(R.layout.loading, null);\n\n\n builder.setView(v);\n builder.setCancelable(false);\n\n return builder.create();\n\n }", "private Builder() {}", "private Builder() {\n\t\t}", "private Builder() {\n }", "private Builder() {\n }", "public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void doDialogMsgBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.OverAge))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }", "public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }", "private Builder()\n {\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "@Override\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "private AlertDialog alertBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Missing Arduino Unit, go to Settings?\").\n setCancelable(false).setPositiveButton(\n \"Yes\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n //call qr scan intent\n Intent prefScreen = new Intent(TempMeasure.this, Preferences.class);\n startActivityForResult(prefScreen, 0);\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = builder.create();\n return alert;\n }", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public abstract void initDialog();", "public Builder() {\n }", "public Builder() { }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private AlertDialog createAboutDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this).setTitle(R.string.license_title)\n .setMessage(R.string.license).setIcon(R.drawable.about)\n .setNeutralButton(R.string.about_button, null);\n AlertDialog alert = builder.create();\n return alert;\n }", "private Form(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public interface DialogFactory {\n MessageDialog createMessageDialog();\n ListDialog createListDialog();\n SingleChoiceDialog createSingleChoiceDialog();\n MultiChoiceDialog createMultiChoiceDialog();\n}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public static JDialog createDialog(JFrame owner) {\n PlatformInfoPanel panel = new PlatformInfoPanel();\n JDialog dialog = new JDialog(owner, ResourceManager.getResource(PlatformInfoPanel.class, \"Dialog_title\"));\n dialog.getContentPane().add(panel);\n dialog.setSize(panel.getWidth() + 10, panel.getHeight() + 30);\n return dialog;\n}", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public PacManUiBuilder() {\n this.defaultButtons = false;\n this.buttons = new LinkedHashMap<>();\n this.keyMappings = new HashMap<>();\n }", "public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }", "public Dialog(String text) {\n initComponents( text);\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "Dialog createDialog(int id) {\n // First we treat the color picker\n if (id >= DIALOG_MASK_COLORS) {\n int icp = id - DIALOG_MASK_COLORS;\n String title = getResources().getStringArray(R.array.items_colors)[icp];\n ColoredPart cp = ColoredPart.values()[icp];\n\n // We can embed our nice color picker view into a regular dialog.\n // For that we use the provided factory method.\n return ColorPickerView.createDialog(this, title, cp.color, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n cp.color = which;\n bmView.invalidate();\n }\n });\n }\n\n // Now we treat all the cases which can easily be built as an AlertDialog.\n // For readability throughout the many cases we don't use chaining.\n AlertDialog.Builder b = new AlertDialog.Builder(this);\n\n switch (id) {\n case DIALOG_LEVEL:\n b.setTitle(R.string.menu_level);\n b.setSingleChoiceItems(R.array.items_level, bmView.level - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.newGame(which + 1);\n }\n });\n break;\n\n case DIALOG_SIZE:\n b.setTitle(R.string.menu_size);\n b.setSingleChoiceItems(R.array.items_size, bmView.size - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.initField(which + 1);\n bmView.newGame(0);\n }\n });\n break;\n\n case DIALOG_LIVES:\n b.setTitle(R.string.menu_lives);\n // We use an array adapter in order to be able to relate the selected\n // value to its list position. NOTE: For unclear reasons, passing this\n // adapter even with an additional text view layout id to the builder\n // does not give the same layout as passing the resource id directly.\n // So, we do use the resource id again for that purpose in the call\n // to setSingleChoiceItems.\n final ArrayAdapter<CharSequence> a =\n ArrayAdapter.createFromResource(this, R.array.items_lives, android.R.layout.select_dialog_singlechoice);\n int liv = bmView.getLives();\n int pos = (liv == 0) ? a.getCount() - 1 : a.getPosition(Integer.toString(liv));\n b.setSingleChoiceItems(R.array.items_lives, pos, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n // First check for infinity choice, then for all other possible choices\n if (which == a.getCount() - 1)\n bmView.setLives(0);\n else\n try {\n bmView.setLives(Integer.parseInt(String.valueOf(a.getItem(which))));\n } catch (Exception e) {\n // Do nothing\n Log.e(LOG_TAG, e.getLocalizedMessage(), e);\n }\n }\n });\n break;\n\n case DIALOG_COLORS:\n b.setTitle(R.string.menu_colors);\n b.setItems(R.array.items_colors, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n if (which == ColoredPart.values().length) {\n // Reset colors\n ColoredPart.resetAll();\n bmView.invalidate();\n } else {\n // Call color picker dialog\n doDialog(which + DIALOG_MASK_COLORS);\n }\n }\n });\n break;\n\n case DIALOG_BACKGROUND:\n b.setTitle(R.string.menu_background);\n b.setSingleChoiceItems(R.array.items_background, bmView.background, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.background = which;\n bmView.invalidate();\n }\n });\n break;\n\n case DIALOG_SOUND:\n b.setTitle(R.string.menu_sound);\n // Special treatment for eventually using only a subset of the menu items\n String[] menuIts = new String[NUM_ITEMS_SOUND];\n boolean[] menuSts = new boolean[NUM_ITEMS_SOUND];\n System.arraycopy(\n getResources().getStringArray(R.array.items_settings),\n 0, menuIts, 0, NUM_ITEMS_SOUND);\n System.arraycopy(\n new boolean[]{bmView.isHapticFeedbackEnabled(), bmView.isSoundEffectsEnabled(), musicPlayer.isMusicEnabled},\n 0, menuSts, 0, NUM_ITEMS_SOUND);\n b.setMultiChoiceItems(menuIts, menuSts, (dialog, which, isChecked) -> {\n switch (which) {\n case 0:\n bmView.setHapticFeedbackEnabled(isChecked);\n break;\n\n case 1:\n bmView.setSoundEffectsEnabled(isChecked);\n setVolumeControlStream();\n break;\n\n case 2:\n musicPlayer.toggle(isChecked);\n setVolumeControlStream();\n break;\n\n default:\n dialog.dismiss();\n }\n });\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_CENTER:\n b.setTitle(R.string.menu_center);\n b.setSingleChoiceItems(R.array.items_center, centerDialogs ? 0 : 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n centerDialogs = (which == 0);\n }\n });\n break;\n\n case DIALOG_MIDI:\n b.setTitle(R.string.title_midi);\n b.setMessage(R.string.text_midi);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_ABOUT:\n b.setTitle(R.string.menu_about);\n b.setMessage(R.string.text_about);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_HELP:\n default:\n b.setTitle(R.string.menu_help);\n b.setMessage(R.string.text_help);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n }\n\n return b.create();\n }", "private Construct(Builder builder) {\n super(builder);\n }", "public Builder() {\n\t\t}", "public Builder() {\n }", "public Builder() {\n }", "private CreateOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "public void buildAndShow(String p_Message, String p_Title, String p_PositiveButton, String p_NegativeButton){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getParameter());\r\n builder.setMessage(p_Message)\r\n .setTitle(p_Title);\r\n builder.setPositiveButton(p_PositiveButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickPositive();\r\n }\r\n });\r\n builder.setNegativeButton(p_NegativeButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickNegative();\r\n }\r\n });\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }", "public DialogManager() {\n }", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "private Builder(Context context){ this.context=context;}", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.app_help_title);\n builder.setMessage(R.string.app_help_message)\n .setPositiveButton(R.string.app_help_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n return builder.create();\n }", "public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n\r\n }\r\n });\r\n\r\n\r\n builder.show();\r\n\r\n }", "private AlertDialog buildDialog(String deviceName) {\n Builder builder = new Builder(this);\n CharSequence[] items = {\n getString(R.string.bluetooth_pbap_server_authorize_alwaysallowed)\n };\n boolean[] checked = {\n false\n };\n\n String msg = getString(R.string.bluetooth_pbap_server_authorize_message, deviceName);\n\n Log.d(TAG, \"buildDialog : items=\" + items[0]);\n\n builder.setIcon(android.R.drawable.ic_dialog_info).setTitle(R.string.bluetooth_pbap_server_authorize_title).setView(\n createView(msg))\n // .setMessage(msg)\n /*\n * .setMultiChoiceItems (items, checked, new DialogInterface.OnMultiChoiceClickListener(){ public void\n * onClick (DialogInterface dialog, int which, boolean isChecked){ if(which == 0) { mAlwaysAllowedValue =\n * isChecked; }else{ Log.w(TAG, \"index of always allowed is not correct : \"+which); } } } )\n */\n .setPositiveButton(R.string.bluetooth_pbap_server_authorize_allow, this).setNegativeButton(\n R.string.bluetooth_pbap_server_authorize_decline, this);\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Règle du jeu\");\n builder.setMessage(\"Je sais que tu as toujours voulu être un pêcheur ! Voici ta chance. Ton objectif est de pêcher 5 poissons.\\n\\n Comment pêcher :\\n\\n1- Place ton téléphone à l'horizontal, ton écran vers la gauche.\\n\\n2- Attend le poisson.\\n\\n3- Quand ton téléphone vibre, un poisson a mordu à l'hammeçon ! Passe rapidement ton téléphone à la verticale avec ton écran toujours sur la gauche.\\n\\n4-Recommence jusqu'à devenir le roi de la pêche !\\n\\nTips : On ne devient pas pêcheur en jouant à un jeu de pêche.\" );\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // rien à faire\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }", "private void openDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.allmark));\n\t\tfinal List<ReaderTags> listData = ReaderDataBase\n\t\t\t\t.getReaderDataBase(this);\n\t\tif (listData.size() > 0) {\n\t\t\tListView list = new ListView(this);\n\t\t\tfinal MTagAdapter myAdapter = new MTagAdapter(this, listData);\n\t\t\tlist.setAdapter(myAdapter);\n\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tJump(arg2, listData, myAdapter);\n\t\t\t\t}\n\t\t\t});\n\t\t\tlist.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tdeleteOneDialog(arg2, listData, myAdapter);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuilder.setView(list);\n\t\t} else {\n\t\t\tTextView txt = new TextView(this);\n\t\t\ttxt.setText(getString(R.string.nomark));\n\t\t\ttxt.setPadding(10, 5, 0, 5);\n\t\t\ttxt.setTextSize(16f);\n\t\t\tbuilder.setView(txt);\n\t\t}\n\t\tbuilder.setNegativeButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //attempt to extract number\n number = ((TelephonyManager)((getActivity()).getSystemService(\n Context.TELEPHONY_SERVICE))).getLine1Number();\n\n //create edit text view\n input = new EditText(getActivity());\n input.setHint(R.string.phone_number_hint);\n input.setInputType(InputType.TYPE_CLASS_PHONE);\n input.addTextChangedListener(\n new PhoneNumberFormattingTextWatcher());\n //show edit text if phone number is unavailable\n input.setVisibility(((number == null) || \"\".equals(number))\n ? View.VISIBLE : View.GONE);\n\n builder.setView(input);\n builder.setTitle(R.string.generate_title);\n builder.setPositiveButton(R.string.generate_button, this);\n\n return builder.create();\n }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "private Win(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public ReorganizeDialog() { }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}", "@Override\n\n public Dialog onCreateDialog (Bundle savedInstanceState){\n Bundle messages = getArguments();\n Context context = getActivity();\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n builder.setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n if(messages != null) {\n //Add the arguments. Supply a default in case the wrong key was used, or only one was set.\n builder.setTitle(messages.getString(TITLE_ID, \"Error\"));\n builder.setMessage(messages.getString(MESSAGE_ID, \"There was an error.\"));\n }\n else {\n //Supply default text if no arguments were set.\n builder.setTitle(\"Error\");\n builder.setMessage(\"There was an error.\");\n }\n\n AlertDialog dialog = builder.create();\n return dialog;\n }", "private Contacts(final Builder builder){\n this.mUsername = builder.mUsername;\n this.checked = builder.checked;\n\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }", "private Dialog buildLoadingDialog() {\n ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n dialog.setMessage(getText(R.string.dialog_loading));\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n return dialog;\n }", "@Override\n public Dialog onCreateDialog (Bundle SaveInstanceState) {\n\n /* Get context from current activity.*/\n Context context = getActivity();\n\n /* Create new dialog, and set message. */\n AlertDialog.Builder ackAlert = new AlertDialog.Builder(context);\n String message = getString(R.string.msg_about_us);\n ackAlert.setMessage(message);\n\n /* Create button in dialog. */\n ackAlert.setNeutralButton(R.string.btn_got_it, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n /* Set title and show dialog. */\n ackAlert.setTitle(\"About us\");\n ackAlert.create();\n\n return ackAlert.create();\n }", "private ListSelectionDialogFactory() {\n }", "private static AlertDialog createDialog(\n Context context, MenuDialogListenerHandler listenerHandler) {\n Resources resources = context.getResources();\n String[] menuDialogItems = resources.getStringArray(R.array.menu_dialog_items);\n String appName = resources.getString(R.string.app_name);\n for (int i = 0; i < menuDialogItems.length; ++i) {\n menuDialogItems[i] = String.format(menuDialogItems[i], appName);\n }\n\n AlertDialog dialog = new AlertDialog.Builder(context)\n .setTitle(R.string.menu_dialog_title)\n .setAdapter(new MenuDialogAdapter(context, menuDialogItems), listenerHandler)\n .create();\n dialog.setOnDismissListener(listenerHandler);\n return dialog;\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }" ]
[ "0.7058409", "0.69739115", "0.69248044", "0.69188714", "0.6861694", "0.67276263", "0.66768533", "0.6675558", "0.66329443", "0.66153866", "0.6558171", "0.6547412", "0.6532059", "0.65145797", "0.64638484", "0.6462401", "0.64596057", "0.64340484", "0.6427146", "0.6427146", "0.63671786", "0.63584685", "0.6346535", "0.6336716", "0.63285464", "0.632285", "0.62867564", "0.62728256", "0.6251373", "0.62443966", "0.62301606", "0.62301606", "0.62301606", "0.62274766", "0.6226556", "0.62215114", "0.6210666", "0.62004477", "0.61957246", "0.61634195", "0.6162111", "0.6162111", "0.6162111", "0.6162111", "0.61555433", "0.614796", "0.6146734", "0.6133277", "0.6133277", "0.6133277", "0.61082226", "0.61082226", "0.61082226", "0.61082226", "0.61082226", "0.61082226", "0.61082226", "0.61082226", "0.61082226", "0.61082226", "0.61082226", "0.61061615", "0.61058974", "0.6103514", "0.60984945", "0.6092744", "0.6091342", "0.609042", "0.608381", "0.608381", "0.6081957", "0.6080163", "0.6076318", "0.60632366", "0.60556626", "0.60439426", "0.6039384", "0.6031951", "0.603076", "0.60295403", "0.60294425", "0.602351", "0.6019097", "0.6018468", "0.60165864", "0.6009933", "0.59978664", "0.5995616", "0.5987632", "0.59854734", "0.5978441", "0.5977425", "0.59744924", "0.5968144", "0.5967446", "0.59585786", "0.5954247", "0.59478563", "0.59420526", "0.5940808", "0.59379184" ]
0.0
-1
do anything with response
@Override public void onResponse(JSONObject response) { ringProgressDialog.hide(); ((OrderItem)getTargetFragment()).onOrderPlaced(true,orderJSON); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void faild_response();", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "void execute(final T response);", "@Override\n public void processResult(HttpResponseMessage response) {\n }", "public void parseResponse();", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "public void onResponse(Response response) throws Exception;", "@Override\r\n\tpublic void service(Request request,Response response) {\n\t\tresponse.print(\"lalaa\");\r\n\r\n\t\t\r\n\t}", "@Override\n public void onResponse(Response response) throws IOException {\n }", "@Override\n\t\t\tpublic void handle(Response response) throws Exception\n\t\t\t{\n\t\t\t\tif(response ==null){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(response.getStatusCode()==200){\n\t\t\t\t\tSystem.out.println(\"push seccuess\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public abstract String getResponse();", "protected void handleSuccessMessage(Response response) {\n\t\tonRequestResponse(response);\n\t}", "protected abstract void handleOk();", "@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onResponse(HttpResponse resp) {\n\t\t\t\t\t\tLog.i(\"HttpPost\", \"Success\");\r\n\r\n\t\t\t\t\t}", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n//\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "protected abstract void askResponse();", "public abstract void actionReal(HttpResponseCallback callback);", "@Override\n public void onResponse(String response) {\n\n if (response.equals(update_success)) {\n return;\n }\n if (response.equals(update_fail)) {\n return;\n }\n if (response.equals(non_value)) {\n return;\n }\n if (response.equals(wrong_query)) {\n return;\n }\n if (response.equals(non_post)) {\n\n }\n }", "@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onResponse(JSONObject response) {\n processResponse(response);\n }", "@Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }", "@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}", "public abstract HTTPResponse finish();", "@Override\n public void onResponse(String response, int id) {\n processData(response);\n\n }", "@Override\n public void onResponse(String response) {\n Utils.logApiResponseTime(calendar, tag + \" \" + url);\n mHandleSuccessResponse(tag, response);\n\n }", "void sendResponseMessage(HttpResponse response) throws IOException;", "private void getResponse() {\n response = new Response();\n\n getResponseCode();\n getResponseMessage();\n getResponseBody();\n\n LOG.info(\"--- RESPONSE ---\");\n LOG.info(\"Code: \" + response.getResponseCode());\n LOG.info(\"Message: \" + response.getResponseMessage());\n LOG.info(\"Body: \" + response.getResponseBody());\n LOG.info(\"*************************************\");\n }", "@Override\n public void onResponse(Object response) {\n activity.gotHelper(\"Succes!\");\n }", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n public void sendResponse(final Response response) {\n\n }", "@Override\n public void onResponse(String response) {\n }", "void responseReady(String response);", "@Override\n public void onResponseSuccess(final String resp) {\n }", "@Override\n\t\t\t\t\tpublic void onResponse(String s) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public Object handleCommandResponse(Object response) throws RayoProtocolException;", "@Override\n public void onResponse(String response) {\n }", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "@Override\n\tpublic void sendResponse() {\n\t\t\n\t}", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "public Response callback() throws Exception;", "@Override\n public void onResponse(String response) {\n }", "@Override\n\t\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\t\tparseRespense(response);\n\t\t\t\t\t\t}", "@Override\n public void onResponse(String response) {\n Log.i(\"Checking\", response + \" \");\n if(new ServerReply(response).getStatus())\n {\n Toast.makeText(context,new ServerReply(response).getReason(),Toast.LENGTH_LONG).show();\n }\n\n }", "static void processResponse(CTPResponse response)\n {\n \tfor(int i=0;i<response.GetNumResponses();i++)\n \t{\n \t\tint type = response.getReponseType(i);\n \t\tswitch (type) {\n\t \t\tcase CTPResponse.ERROR_RSP:{\n\t \t\t\tif(response.getStatus(i)== -1)\n\t \t\t\tSystem.out.println(\"ERROR_RSP Invalid client request\");\t\n\t \t\t\telse\n\t \t\t\tSystem.out.println(\"ERROR_RSP \"+response.getErrorText(i));\t\n\t \t\t\tbreak;\n\t \t\t}\n\t \t\tcase CTPResponse.ACKCONNECT_RSP:{\n\t \t\t\tSystem.out.println(\"ACKCONNECT_RSP received\");\t\n\t \t\t\tbreak;\n\t \t\t}\n\t\t\t\tcase CTPResponse.ACKOPEN_RSP:{\n\t\t\t\t\tSystem.out.println(\"ACKOPEN_RSP received\");\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CTPResponse.ACKLOCK_RSP:{\n\t\t\t\t\tSystem.out.println(\"ACKLOCK_RSP received\");\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CTPResponse.ACKEDIT_RSP:{\n\t\t\t\t\tSystem.out.println(\"ACKEDIT_RSP received\");\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CTPResponse.SERVRELEASE_RSP:{\n\t\t\t\t\tSystem.out.println(\"SERVRELEASE_RSP received\");\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CTPResponse.CONTENTS_RSP:{\n\t\t\t\t\tSystem.out.println(\"CONTENTS_RSP received\");\t\n\t\t\t\t\tSystem.out.println(\"Position in file = \"+response.getPosInfile(i));\n\t\t\t\t\tSystem.out.println(\"file data = \"+response.getFilData(i));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CTPResponse.MOVE_RSP:{\n\t\t\t\t\tSystem.out.println(\"MOVE_RSP received\");\t\n\t\t\t\t\tSystem.out.println(\"Cursor position in file= \"+response.getPosInfile(i));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CTPResponse.STATUS_RSP:{\n\t\t\t\t\tSystem.out.println(\"STATUS_RSP received\");\t\n\t\t\t\t\tSystem.out.println(\"Checksum = \"+response.getChecksum(i));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase CTPResponse.EDIT_RSP:{\n\t\t\t\t\tSystem.out.println(\"EDIT_RSP received\");\t\n\t\t\t\t\tSystem.out.println(\"action = \"+response.getEditAction(i));\n\t\t\t\t\tSystem.out.println(\"Position in file = \"+response.getPosInfile(i));\n\t\t\t\t\tSystem.out.println(\"file data = \"+response.getFilData(i));\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcase CTPResponse.CLOSE_RSP:{\n\t\t\t\t\tSystem.out.println(\"CLOSE_RSP received\");\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault: \n\t\t\t\t\tSystem.out.println(\"Invalid Response type received\");\t\n \t\t}//end switch\n \t}//end for loop\n }", "private static Response process(Object result) {\n if (result == null) return Response.serverError().build();\n if (result instanceof Response.Status) return Response.status((Response.Status) result).build();\n return Response.ok(result).build();\n }", "@Override\n public void onResponse(String response) {\n finalData(response);\n }", "private CallResponse() {\n initFields();\n }", "@Override\n public void onResponse(String response)\n {\n\n }", "@Override\n\t\t\tprotected void deliverResponse(String response) {\n\n\t\t\t}", "public void sendResponse(ResponseNetObject response){\r\n\r\n sendObject(response);\r\n\r\n }", "public void handleResponseInternal(long connection, Object obj) {\n JResponse response = (JResponse) obj;\n Logger.m1416d(TAG, \"Action - handleResponse - connection:\" + connection + \", response:\" + response.toString());\n if (connection != NetworkingClient.sConnection.get()) {\n Logger.m1432w(TAG, \"Response connection is out-dated. \");\n }\n Long rid = response.getHead().getRid();\n Requesting origin = dequeSentQueue(rid);\n if (origin == null) {\n Logger.m1432w(TAG, \"Not found the request in SentQueue when response.\");\n } else {\n rid = origin.request.getHead().getRid();\n endSentTimeout(rid);\n }\n Requesting requesting = (Requesting) this.mRequestingCache.get(rid);\n if (requesting != null) {\n endRequestTimeout(requesting);\n } else {\n Logger.m1432w(TAG, \"Not found requesting in RequestingCache when response.\");\n }\n }", "@Override\n public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) {\n }", "@Override\n\tpublic void sendResponse() {\n\n\t}", "public void run() {\n req.response().end(\"0\"); // Default response = 0\n }", "void receiveResponse(String invocationId, HttpResponse response);", "void xhrOk();", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putInt(HANDLER_DATA_APK_INDEX, this.getApkIndex());\r\n\t\t\t\tMessage msg =new Message();\r\n\t\t\t\tmsg.setData(bundle);\r\n\t\t\t\tmsg.what = HANDLER_MSG_APK_UPLOAD;\r\n\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "public void startResponse()\n\t\t\t{\n\t\t\t\tsend(\"<response>\", false);\n\t\t\t}", "@Override\n\t\t\t\tpublic void finished(Response response) {\n\t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\tSystem.out.println(arg0);\n\t\t\t\t\t\n\t\t\t\t}", "public abstract void handle(Request request, Response response) throws Exception;", "public void get(HttpRequest request, HttpResponse response) {\n\t\tresponse.setStatus(HttpStatus.SERVER_ERROR_NOT_IMPLEMENTED);\n\t\tresponse.write(\" \");\n\t}", "void execute(HttpServletRequest request, HttpServletResponse response)\n throws Exception;", "@Override\n\t\t\t\t\tpublic void onResponse(BaseBean arg0) {\n\t\t\t\t\t\tif (arg0 != null) {\n\t\t\t\t\t\t\tif (\"1\".equals(arg0.getCode())) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSharePerfUtil.saveLinkMan(edt_name.getText().toString());\n//\t\t\t\t\t\t\t\tSharePerfUtil.savePersonHead(url)\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this,\n\t\t\t\t\t\t\t\t\t\targ0.getMsg(), 1000).show();\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this,\n\t\t\t\t\t\t\t\t\t\targ0.getMsg(), 1000).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this, \"暂无数据!\",\n\t\t\t\t\t\t\t\t\t1000).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putInt(HANDLER_DATA_APK_INDEX, this.getApkIndex());\r\n\t\t\t\tMessage msg =new Message();\r\n\t\t\t\tmsg.setData(bundle);\r\n\t\t\t\tmsg.what = HANDLER_MSG_APK_ADD;\r\n\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "@Override\n public void onResponse(JSONObject response) {\n procesarRespuesta(response);\n Log.i(TAG, \"processanddo respuesta...\" + response);\n }", "private void observeResponse(final JSONObject response) {\n if (response.length() > 0) {\n if (response.has(\"code\")) {\n System.out.println(\"Failed to add contact\");\n }\n } else {\n Log.d(\"JSON Response\", \"No Response\");\n }\n }", "public String handleResponse(final HttpResponse response) throws IOException{\n int status = response.getStatusLine().getStatusCode();\n if (status >= 200 && status < 300) {\n HttpEntity entity = response.getEntity();\n if(entity == null) {\n return \"\";\n } else {\n return EntityUtils.toString(entity);\n }\n } else {\n return \"\"+status;\n }\n }", "void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data);", "ResponseEntity execute();", "@Override\n public void onResponse(String response) {\n opprettListe(response);\n }", "@Override\r\n\tpublic void onOk(HttpRequest paramHttpRequest, Object paramObject) {\n\r\n\t}", "public void onRequestResponse(Response response) { }", "void responseReceived(byte[] response);", "@SuppressLint(\"CallbackMethodName\")\n void reply(@NonNull byte[] response);", "protected abstract void output(DavServletResponse response)\n throws IOException;", "java.lang.String getResponse();", "public void selectResponse(String response , Player player);", "@Override\n\tpublic void processRequest(HttpRequest request, HttpResponse response) throws Exception {\n\t\tresponse.setHeaderField( \"Server-Name\", \"Las2peer 0.1\" );\n\t\tresponse.setContentType( \"text/xml\" );\n\t\t\n\t\t\n\t\t\n\t\tif(authenticate(request,response))\n\t\t\tif(invoke(request,response));\n\t\t\t\t//logout(_currentUserId);\n\t \n\t\n\t\t//connector.logMessage(request.toString());\n\t\t\n\t\t\n\t}", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "private void handleRequestResponse(JSONObject answer) {\n\t\tJSONArray events = answer.optJSONArray(\"events\");\n\t\tif (events!=null) {\n\t\t\tlong time = System.currentTimeMillis();\n\t\t\tint length = events.length();\n\t\t\tfor (int i=0; i<length; i++) {\n\t\t\t\tLogEvent event = LogEvent.fromJSON(events.getJSONObject(i));\n\t\t\t\tevent.time = time;\n\t\t\t\tevent.ignore = true; // don't send back to logging server\n\t\t\t\tthis.plugin.postEvent(event);\n\t\t\t}\n\t\t}\n\t\tJSONObject plugins = answer.optJSONObject(\"plugins\");\n\t\tif (plugins!=null && !plugin.bukkitMode) {\n\t\t\tthis.plugin.updater.setAvailablePlugins(plugins);\n\t\t}\n\t}", "@Override\n public void onResponse(String response) {\n System.out.println(\"Response is: \"+ response);\n\n try {\n JSONObject jsonObj = new JSONObject(response);\n String responseResult = jsonObj.getString(\"result\");\n String err = jsonObj.getString(\"err\");\n if (responseResult.equals(\"success\")) {\n continueAfterSuccessfulResponse(jsonObj, requestCode);\n }\n else\n {\n AlertDialog alertDialog = new AlertDialog.Builder(ViewInventoryActivity.this).create();\n alertDialog.setTitle(\"Error\");\n alertDialog.setMessage(err);\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif (WebApi.isRespSuccess(response)){\r\n\t\t\t\tString str = WebApi.getRespMsg(response);\r\n\t\t\t\tif (str != WebApi.API_RESP_MSG_NULL){\r\n\t\t\t\t\tupdateApkState(str);\r\n\t\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_UPDATED);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "@Override\n public void onResponse(String response) {\n if(null != listener){\n listener.onComplete(mRespHandler.parse(response));\n }\n }", "private synchronized void processHttpRequest\n\t\t(HttpRequest request,\n\t\t HttpResponse response)\n\t\tthrows IOException\n\t\t{\n\t\tlong now = System.currentTimeMillis();\n\n\t\t// Reject an invalid HTTP request.\n\t\tif (! request.isValid())\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_400_BAD_REQUEST);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"400 Bad Request\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Reject all methods except GET.\n\t\telse if (! request.getMethod().equals (HttpRequest.GET_METHOD))\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_501_NOT_IMPLEMENTED);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"501 Not Implemented\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Print the status document.\n\t\telse if (request.getUri().equals (\"/\") ||\n\t\t\t\t\trequest.getUri().equals (\"/?\"))\n\t\t\t{\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tprintStatusHtmlBody (out, now);\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Print the debug document.\n\t\telse if (request.getUri().equals (\"/debug\"))\n\t\t\t{\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintDebugHtmlStart (out, now);\n\t\t\tprintDebugHtmlBody (out);\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Reject all other URIs.\n\t\telse\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_404_NOT_FOUND);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"404 Not Found\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Send the response.\n\t\tresponse.close();\n\t\t}", "@Override\r\n\tprotected void processOk() {\n\t\tboolean isExito = consultarSustentoProxy.isExito();\r\n\t\tif (isExito) {\r\n\t\t\tint status = consultarSustentoProxy.getResponse().getStatus();\r\n\t\t\tif (status == 0) {\r\n\t\t\t\tList<SustentoTO> sustento = consultarSustentoProxy.getResponse().getListaSustento();\r\n\t\t\t\tadap = new EfficientAdapter(this, sustento);\r\n\t\t\t\tsetListAdapter(adap);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tshowToast(consultarSustentoProxy.getResponse().getDescripcion());\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tprocessError();\r\n\t\t}\r\n\t\tsuper.processOk();\r\n\t}", "private void sendResponse(HttpServletResponse response, String text) {\n try (PrintWriter pw = response.getWriter()) {\n pw.println(text);\n } catch (IOException e) {\n log.error(e);\n }\n }" ]
[ "0.79426897", "0.7364535", "0.71089447", "0.70610934", "0.70000875", "0.68810135", "0.68329155", "0.68329155", "0.6785315", "0.6778337", "0.6710226", "0.6655047", "0.6629885", "0.6625666", "0.6625453", "0.66068256", "0.6597449", "0.65902555", "0.65775585", "0.6571541", "0.65661114", "0.6559522", "0.655917", "0.6545614", "0.6543499", "0.6536462", "0.65363604", "0.65299976", "0.6529219", "0.65281236", "0.6519262", "0.6508152", "0.6508152", "0.65072846", "0.65041333", "0.65010303", "0.6495106", "0.6481705", "0.64793384", "0.64725024", "0.6469683", "0.6466405", "0.6461402", "0.6461402", "0.6461402", "0.64574325", "0.64512837", "0.6447542", "0.6439091", "0.64384854", "0.6435841", "0.64322287", "0.6431553", "0.64308614", "0.6416812", "0.64097846", "0.63963574", "0.6392554", "0.6390115", "0.63870066", "0.6385327", "0.6376511", "0.63679457", "0.63561076", "0.63539296", "0.6349841", "0.6349221", "0.63448846", "0.6328012", "0.6314121", "0.63077563", "0.6306675", "0.6304545", "0.63038015", "0.6302937", "0.6293386", "0.6291892", "0.6286244", "0.62855864", "0.62620544", "0.626176", "0.6255878", "0.62497544", "0.62330693", "0.6221165", "0.6217259", "0.6217259", "0.6217259", "0.6217259", "0.6217259", "0.6217259", "0.6217259", "0.6217259", "0.6217259", "0.6212928", "0.62108654", "0.6208633", "0.6203652", "0.61905044", "0.61864394", "0.6185796" ]
0.0
-1
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "public void onCancelClicked() {\n close();\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void dialogCancelled(int dialogId) {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "private void cancel() {\n\t\tfinish();\n\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }", "@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "public boolean cancel();", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "public void onCancelButtonClick() {\n close();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "public void onDialogCancelled(DialogActivity dialog)\n {\n cancel();\n }", "void onCancelClicked();", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t dialog.cancel();\n\t\t\t }", "public void onClick(DialogInterface dialog, int arg1) {\n dialog.cancel();\n }", "@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }", "protected void closeDialogCancel() {\n dispose();\n }", "@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }", "public void cancel()\n\t{\n\t}", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "public void cancel(){\n cancelled = true;\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n\n }", "public void cancel() {\n if (alert != null) {\n alert.cancel();\n isShowing = false;\n } else\n TLog.e(TAG + \" cancel\", \"alert is null\");\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onCancel();", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\t\n\t\t}" ]
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.7785849", "0.7781991", "0.7781991", "0.7781991", "0.7775402", "0.7774749", "0.7774749", "0.77683115", "0.77681756", "0.77668333", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7759365", "0.7731582", "0.7724297", "0.7720925", "0.7720103", "0.76955104", "0.7678485", "0.7654357", "0.7654357", "0.764555", "0.76443124", "0.7634409", "0.7633464", "0.7621916", "0.7621163", "0.7603697", "0.7603203", "0.7600248", "0.7598492", "0.7591874", "0.7591874", "0.7591339", "0.7590508", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7588744", "0.75886345", "0.7560806", "0.7550736", "0.7540379", "0.7539729", "0.7539729", "0.7534361", "0.7531358", "0.75296545", "0.7524118", "0.7523424", "0.75232726", "0.752038", "0.75199866", "0.7512266", "0.75083005", "0.7500499", "0.7497863", "0.7495073", "0.7493796", "0.7492944", "0.74797153", "0.74698204", "0.7465173", "0.74630636", "0.7460028", "0.7460028", "0.7458466", "0.7455514", "0.74514836", "0.7442903", "0.74414104", "0.7436282", "0.7436282", "0.74358857", "0.74198526" ]
0.0
-1
Loads the Settings.xml file into memory from the file system
public static void GetApplicationSettingsFile() { // Get the current path where the application (.jar) was launched from String path = ""; try { path = Main.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath(); } catch (URISyntaxException e) { e.printStackTrace(); } // Handle result if (path.length() > 0) { // Handle leading "/" if (path.startsWith("/")) { path = path.substring(1); } // Check for settings file Boolean exists = new File(path + "settings.xml").exists(); // Handle existence if (exists) { // Load the file into memory applicationSettingsFile = Utilities.LoadDocumentFromFilePath(path + "settings.xml"); } else { // Create the file applicationSettingsFile = Utilities.CreateDocument(); // Create the root element node org.w3c.dom.Element root = applicationSettingsFile.createElement("root"); applicationSettingsFile.appendChild(root); // Write the document to disk Utilities.writeDocumentToFile(applicationSettingsFile, new File(path + "settings.xml")); } // Store a reference to the file path applicationSettingsFilePath = path + "settings.xml"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadSettings() {\r\n \tString fname = baseDir + \"/\" + configFile;\r\n\t\tString line = null;\r\n\r\n\t\t// Load the settings hash with defaults\r\n\t\tsettings.put(\"db_url\", \"\");\r\n\t\tsettings.put(\"db_user\", \"\");\r\n\t\tsettings.put(\"db_pass\", \"\");\r\n\t\tsettings.put(\"db_min\", \"2\");\r\n\t\tsettings.put(\"db_max\", \"10\");\r\n\t\tsettings.put(\"db_query\", \"UPDATE members SET is_activated=1 WHERE memberName=? AND is_activated=3\");\r\n\t\t// Read the current file (if it exists)\r\n\t\ttry {\r\n \t\tBufferedReader input = new BufferedReader(new FileReader(fname));\r\n \t\twhile (( line = input.readLine()) != null) {\r\n \t\t\tline = line.trim();\r\n \t\t\tif (!line.startsWith(\"#\") && line.contains(\"=\")) {\r\n \t\t\t\tString[] pair = line.split(\"=\", 2);\r\n \t\t\t\tsettings.put(pair[0], pair[1]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tcatch (FileNotFoundException e) {\r\n\t\t\tlogger.warning( \"[SMF] Error reading \" + e.getLocalizedMessage() + \", using defaults\" );\r\n \t}\r\n \tcatch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n }", "public void load() throws IOException\n {\n try\n {\n settings.load(new FileInputStream(FILE));\n }\n catch (FileNotFoundException e)\n {\n save();\n }\n }", "public LocalSettings() {\n // Check if a previous settings file exists\n if (settingsFile.exists()) {\n \n // Read the data from the file\n StringBuilder contentBuilder = new StringBuilder();\n try (BufferedReader br = new BufferedReader(new FileReader(settingsFile))){\n \n // Go through all lines\n String line;\n while ((line = br.readLine()) != null){\n addSetting(line);\n }\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n }", "private static void loadSettings() {\n try {\n File settings = new File(\"settings.txt\");\n //Options\n BufferedReader reader = new BufferedReader(new FileReader(settings));\n defaultSliderPosition = Double.parseDouble(reader.readLine());\n isVerticalSplitterPane = Boolean.parseBoolean(reader.readLine());\n verboseCompiling = Boolean.parseBoolean(reader.readLine());\n warningsEnabled = Boolean.parseBoolean(reader.readLine());\n clearOnMethod = Boolean.parseBoolean(reader.readLine());\n compileOptions = reader.readLine();\n runOptions = reader.readLine();\n //Colors\n for(int i = 0; i < colorScheme.length; i++) \n colorScheme[i] = new Color(Integer.parseInt(reader.readLine()));\n\n for(int i = 0; i < attributeScheme.length; i++) {\n attributeScheme[i] = new SimpleAttributeSet();\n attributeScheme[i].addAttribute(StyleConstants.Foreground, colorScheme[i]);\n }\n\n theme = reader.readLine();\n\n reader.close(); \n } catch (FileNotFoundException f) {\n println(\"Couldn't find the settings. How the hell.\", progErr);\n } catch (IOException i) {\n println(\"General IO exception when loading settings.\", progErr);\n } catch (Exception e) {\n println(\"Catastrophic failure when loading settings.\", progErr);\n println(\"Don't mess with the settings file, man!\", progErr);\n }\n }", "public static void load()\n throws IOException, ClassNotFoundException {\n FileInputStream f_in = new\n FileInputStream (settingsFile);\n ObjectInputStream o_in = new\n ObjectInputStream(f_in);\n SettingsSaver loaded = (SettingsSaver) o_in.readObject();\n advModeUnlocked = loaded.set[0];\n LIM_NOTESPERLINE = loaded.set[1];\n LIM_96_MEASURES = loaded.set[2];\n LIM_VOLUME_LINE = loaded.set[3];\n LIM_LOWA = loaded.set[4];\n LIM_HIGHD = loaded.set[5];\n LOW_A_ON = loaded.set[6];\n NEG_TEMPO_FUN = loaded.set[7];\n LIM_TEMPO_GAPS = loaded.set[8];\n RESIZE_WIN = loaded.set[9];\n ADV_MODE = loaded.set[10];\n o_in.close();\n f_in.close();\n }", "private void initFiles() {\r\n\t\ttry {\r\n\t\t\tFile file = getConfigFile();\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tXmlFile.write(file, new SystemSettings());\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(\"Failed to initialize settings file\", ex);\r\n\t\t}\r\n\t}", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "private void loadSettings() {\n//\t\tSharedPreferences prefs = this.getSharedPreferences(Defs.PREFS_NAME, 0);\n//\t\t\n//\t\tString fileData = prefs.getString(Defs.PREFS_KEY_PREV_RATES_FILE, \"\");\n//\t\tLog.d(TAG, \"Loaded last \" + fileData);\n//\t\tif ( fileData.length() > 0 ) {\n//\t\t\tByteArrayInputStream bias = new ByteArrayInputStream(fileData.getBytes());\n//\t\t\t_oldRates = new ExchangeRate();\n//\t\t\tparseRates(bias, _oldRates);\n//\t\t}\n\t}", "public static void readXmlSettings() throws SAXException, IOException,\r\n\tParserConfigurationException {\n\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory\r\n\t\t\t\t.newInstance();\r\n\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n\t\tDocument xmlBaseSettings = docBuilder.parse(new File(\"config.xml\"));\r\n\t}", "public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}", "private static void readConfigFile() {\n\n BufferedReader input = null;\n try {\n input = new BufferedReader(new FileReader(getConfigFile()));\n String sLine = null;\n while ((sLine = input.readLine()) != null) {\n final String[] sTokens = sLine.split(\"=\");\n if (sTokens.length == 2) {\n m_Settings.put(sTokens[0], sTokens[1]);\n }\n }\n }\n catch (final FileNotFoundException e) {\n }\n catch (final IOException e) {\n }\n finally {\n try {\n if (input != null) {\n input.close();\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n\n }", "public void load() throws IOException {\r\n File file = new File(this.filename);\r\n //if file exist.\r\n if (file.exists() && !file.isDirectory()) {\r\n ObjectInputStream is = null;\r\n try {\r\n //opening and reaind the source file\r\n is = new ObjectInputStream(new FileInputStream(this.filename));\r\n SettingsFile temp = (SettingsFile) is.readObject();\r\n //import the loaded file data to the current core.SettingsFile\r\n this.boardSize = temp.getBoardSize();\r\n this.firstPlayer = temp.getFirstPlayer();\r\n this.secondPlayer = temp.getSecondPlayer();\r\n this.player1Color = temp.getPlayer1Color();\r\n this.player2Color = temp.getPlayer2Color();\r\n } catch (IOException e) {\r\n System.out.println(\"Error while loading\");\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(\"Problem with class\");\r\n } finally {\r\n if (is != null) {\r\n is.close();\r\n }\r\n }\r\n }\r\n //if no file, set default settings.\r\n else {\r\n save(SIZE, FIRST_PLAYER, SECOND_PLAYER, PLAYER1COLOR, PLAYER2COLOR);\r\n }\r\n }", "void loadConfig() {\r\n\t\tFile file = new File(\"open-ig-mapeditor-config.xml\");\r\n\t\tif (file.canRead()) {\r\n\t\t\ttry {\r\n\t\t\t\tElement root = XML.openXML(file);\r\n\t\t\t\t\r\n\t\t\t\t// reposition the window\r\n\t\t\t\tElement eWindow = XML.childElement(root, \"window\");\r\n\t\t\t\tif (eWindow != null) {\r\n\t\t\t\t\tsetBounds(\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"x\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"y\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"width\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"height\"))\r\n\t\t\t\t\t);\r\n\t\t\t\t\tsetExtendedState(Integer.parseInt(eWindow.getAttribute(\"state\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eLanguage = XML.childElement(root, \"language\");\r\n\t\t\t\tif (eLanguage != null) {\r\n\t\t\t\t\tString langId = eLanguage.getAttribute(\"id\");\r\n\t\t\t\t\tif (\"hu\".equals(langId)) {\r\n\t\t\t\t\t\tui.languageHu.setSelected(true);\r\n\t\t\t\t\t\tui.languageHu.doClick();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tui.languageEn.setSelected(true);\r\n\t\t\t\t\t\tui.languageEn.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSplitters = XML.childElement(root, \"splitters\");\r\n\t\t\t\tif (eSplitters != null) {\r\n\t\t\t\t\tsplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"main\")));\r\n\t\t\t\t\ttoolSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"preview\")));\r\n\t\t\t\t\tfeaturesSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"surfaces\")));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tElement eTabs = XML.childElement(root, \"tabs\");\r\n\t\t\t\tif (eTabs != null) {\r\n\t\t\t\t\tpropertyTab.setSelectedIndex(Integer.parseInt(eTabs.getAttribute(\"selected\")));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eLights = XML.childElement(root, \"lights\");\r\n\t\t\t\tif (eLights != null) {\r\n\t\t\t\t\talphaSlider.setValue(Integer.parseInt(eLights.getAttribute(\"preview\")));\r\n\t\t\t\t\talpha = Float.parseFloat(eLights.getAttribute(\"map\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eMode = XML.childElement(root, \"editmode\");\r\n\t\t\t\tif (eMode != null) {\r\n\t\t\t\t\tif (\"true\".equals(eMode.getAttribute(\"type\"))) {\r\n\t\t\t\t\t\tui.buildButton.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eView = XML.childElement(root, \"view\");\r\n\t\t\t\tif (eView != null) {\r\n\t\t\t\t\tui.viewShowBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"buildings\"))) {\r\n\t\t\t\t\t\tui.viewShowBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewSymbolicBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"minimap\"))) {\r\n\t\t\t\t\t\tui.viewSymbolicBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\trenderer.scale = Double.parseDouble(eView.getAttribute(\"zoom\"));\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewStandardFonts.setSelected(\"true\".equals(eView.getAttribute(\"standard-fonts\")));\r\n\t\t\t\t\tui.viewPlacementHints.setSelected(!\"true\".equals(eView.getAttribute(\"placement-hints\")));\r\n\t\t\t\t\tui.viewPlacementHints.doClick();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSurfaces = XML.childElement(root, \"custom-surface-names\");\r\n\t\t\t\tif (eSurfaces != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eSurfaces, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomSurfaceNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eBuildigns = XML.childElement(root, \"custom-building-names\");\r\n\t\t\t\tif (eBuildigns != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eBuildigns, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomBuildingNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tElement eFilter = XML.childElement(root, \"filter\");\r\n\t\t\t\tif (eFilter != null) {\r\n\t\t\t\t\tfilterSurface.setText(eFilter.getAttribute(\"surface\"));\r\n\t\t\t\t\tfilterBuilding.setText(eFilter.getAttribute(\"building\"));\r\n\t\t\t\t}\r\n\t\t\t\tElement eAlloc = XML.childElement(root, \"allocation\");\r\n\t\t\t\tif (eAlloc != null) {\r\n\t\t\t\t\tui.allocationPanel.availableWorkers.setText(eAlloc.getAttribute(\"worker\"));\r\n\t\t\t\t\tui.allocationPanel.strategies.setSelectedIndex(Integer.parseInt(eAlloc.getAttribute(\"strategy\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eRecent = XML.childElement(root, \"recent\");\r\n\t\t\t\tif (eRecent != null) {\r\n\t\t\t\t\tfor (Element r : XML.childrenWithName(eRecent, \"entry\")) {\r\n\t\t\t\t\t\taddRecentEntry(r.getAttribute(\"file\")); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void loadGameConfiguration() {\n File configFile = new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME);\n manageGameConfigFile(configFile);\n }", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public void readXmlFile() {\r\n try {\r\n ClassLoader classLoader = getClass().getClassLoader();\r\n File credentials = new File(classLoader.getResource(\"credentials_example.xml\").getFile());\r\n DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder Builder = Factory.newDocumentBuilder();\r\n Document doc = Builder.parse(credentials);\r\n doc.getDocumentElement().normalize();\r\n username = doc.getElementsByTagName(\"username\").item(0).getTextContent();\r\n password = doc.getElementsByTagName(\"password\").item(0).getTextContent();\r\n url = doc.getElementsByTagName(\"url\").item(0).getTextContent();\r\n setUsername(username);\r\n setPassword(password);\r\n setURL(url);\r\n } catch (Exception error) {\r\n System.out.println(\"Error in parssing the given xml file: \" + error.getMessage());\r\n }\r\n }", "public static File getSettingsfile() {\n return settingsfile;\n }", "private void loadSettings() {\n \tLog.i(\"T4Y-Settings\", \"Load mobile settings\");\n \tmobileSettings = mainApplication.getMobileSettings();\n \t\n \t//update display\n autoSynchronizationCheckBox.setChecked(mobileSettings.isAllowAutoSynchronization());\n autoScanCheckBox.setChecked(mobileSettings.isAllowAutoScan());\n autoSMSNotificationCheckBox.setChecked(mobileSettings.isAllowAutoSMSNotification());\n }", "public abstract void loadDeviceSettings(DeviceSettings deviceSettings);", "static synchronized FileExtMismatchSettings readSettings() throws FileExtMismatchSettingsException {\n File serializedFile = new File(DEFAULT_SERIALIZED_FILE_PATH);\n //Tries reading the serialized file first, as this is the prioritized settings.\n if (serializedFile.exists()) {\n return readSerializedSettings();\n }\n return readXmlSettings();\n }", "private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public static void LoadSettingsIntoArray() {\r\n\t\t// Node gameSettings = document.getElementById(\"GameSettings\");\r\n\t\tNodeList settingsNodeList = document.getElementsByTagName(\"Setting\");\r\n\r\n\t\tfor (int i = 0; i < settingsNodeList.getLength(); i++) {\r\n\t\t\tNode node = settingsNodeList.item(i);\r\n\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\r\n\t\t\t\tElement eElement = (Element) node;\r\n\t\t\t\tsettings.add(eElement);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}", "private void importSettings() {\n\t\tfinal JFileChooser chooser = new JFileChooser(currentPath);\n\t chooser.setFileFilter(new FileNameExtensionFilter(\"Text Files\", \"txt\"));\n\t int returnVal = chooser.showOpenDialog(null);\n\t \n\t if(returnVal == JFileChooser.APPROVE_OPTION) {\n\t \tcurrentPath = chooser.getCurrentDirectory().getAbsolutePath();\n\t\t\ttry (FileReader fr = new FileReader(chooser.getSelectedFile());\n\t BufferedReader br = new BufferedReader(fr)) {\n\t\t\t\tpcs.firePropertyChange(\"Import Settings\", null, br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Error: file could not be read.\");\n\t\t\t}\n\t }\n\t}", "private void loadSettings(){\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(SHARED_PREF, Context.MODE_PRIVATE);\n notificationSwtich = sharedPreferences.getBoolean(SWITCH, false);\n reminderOnOff.setChecked(notificationSwtich);\n }", "private static Settings prepareSettings() {\n final String dir = System.getProperty(JBOSS_CONFIG_DIR);\n Settings mySettings;\n\n if (dir != null) {\n final String file = dir + File.separator + PROPERTIES_FILE;\n LOG.debug(\"Reading the IWS Properties from '{}'.\", file);\n\n try (InputStream stream = new FileInputStream(file)) {\n final Properties properties = new Properties();\n properties.load(stream);\n\n mySettings = new Settings(properties);\n } catch (FileNotFoundException e) {\n LOG.warn(\"Properties file was not found, reverting to default values.\", e);\n mySettings = new Settings();\n } catch (IOException e) {\n LOG.warn(\"Properties file could not be loaded, reverting to default values.\", e);\n mySettings = new Settings();\n }\n } else {\n LOG.warn(\"Application Server Configuration Path cannot be read.\");\n mySettings = new Settings();\n }\n\n return mySettings;\n }", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "private void loadSettings() {\n\t\ttry {\n\t\t\tFile file = new File(SETTINGS_CONF);\n\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file));\n\t\t\tObject[] o = (Object[]) in.readObject();\n\n\t\t\tJob[] jobs = (Job[]) o[0];\n\t\t\tfileOne.setText((String) o[1]);\n\t\t\tsettings.getRarPath().setText((String) o[2]);\n\t\t\tsettings.getBasePath().setText((String) o[3]);\n\t\t\ttrackers.getList().setItems((String[]) o[4]);\n\n\t\t\tTreeItem root = tree.getItem(0);\n\n\t\t\tfor (Job job : jobs) {\n\t\t\t\tif (job != null) {\n\t\t\t\t\t// job.printAll();\n\t\t\t\t\tTreeItem item = new TreeItem(root, SWT.NATIVE);\n\t\t\t\t\t\n\t\t\t\t\titem.setText(job.getName());\n\t\t\t\t\titem.setData(job);\n\t\t\t\t\titem.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (job.isEnabled() ? GEAR_ICON : GEAR_DISABLED_ICON)));\n\t\t\t\t\t\n\t\t\t\t\tif(!(job.getPrefix() == null || job.getPrefix().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(job.getPrefix());\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (UNDERSCORE_ICON)));\n\t\t\t\t\t}\n\t\t\t\t\tif(!(job.getPassword() == null || job.getPassword().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(\"[with password]\");\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (PASSWORD_ICON)));\n\t\t\t\t\t}\n\t\t\t\t\tif(!(job.getFileTwo() == null || job.getFileTwo().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(job.getFileTwo());\t\t\t\t\t\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\tTreeItem iprefix = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tTreeItem ipassword = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tTreeItem ifileTwo = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tiprefix.setText(job.getPrefix() == null || job.getPrefix().isEmpty() ? \"[no prefix]\" : job.getPrefix());\n\t\t\t\t\tipassword.setText(job.getPassword() == null || job.getPassword().isEmpty() ? \"[no password]\" : \"[with password]\");\n\t\t\t\t\t\n\t\t\t\t\tipassword.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (PASSWORD_ICON)));\n\t\t\t\t\tiprefix.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\tifileTwo.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\t\n\t\t\t\t\t// ifileOne.setText(job.getFileOne() == null ||\n\t\t\t\t\t// job.getFileOne().isEmpty() ? \"[no file]\" :\n\t\t\t\t\t// job.getFileOne());\n\t\t\t\t\tifileTwo.setText(job.getFileTwo() == null || job.getFileTwo().isEmpty() ? \"[no file]\" : job.getFileTwo());\n\t\t\t\t\t*/\n\t\t\t\t}\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void readConfigXml() throws SerializationException {\n\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n lf = pm.getLocalizationFile(lc, CONFIG_FILE_NAME);\n lf.addFileUpdatedObserver(this);\n File file = lf.getFile();\n // System.out.println(\"Reading -- \" + file.getAbsolutePath());\n if (!file.exists()) {\n System.out.println(\"WARNING [FFMP] FFMPRunConfigurationManager: \"\n + file.getAbsolutePath() + \" does not exist.\");\n return;\n }\n\n FFMPRunConfigXML configXmltmp = null;\n\n configXmltmp = jaxb.unmarshalFromXmlFile(file.getAbsolutePath());\n\n configXml = configXmltmp;\n isPopulated = true;\n applySourceConfigOverrides();\n }", "private void loadPreferences() {\n\t\tXSharedPreferences prefApps = new XSharedPreferences(PACKAGE_NAME);\n\t\tprefApps.makeWorldReadable();\n\n\t\tthis.debugMode = prefApps.getBoolean(\"waze_audio_emphasis_debug\", false);\n }", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "private void setPrefs( File build_file ) {\n if ( _settings != null )\n _settings.load( build_file );\n else\n _settings = new OptionSettings( build_file );\n _prefs = _settings.getPrefs();\n }", "public void loadConfig(XMLElement xml) {\r\n\r\n }", "public void loadFromXml(File configFile) throws XMLQroxyConfigException {\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n saxParser.parse(configFile, this);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new XMLQroxyConfigException(\"Error while parsing the config file: \" + e.getMessage(), e);\n }\n }", "public static Document getXmlSettings() throws SAXException, IOException,\r\n\tParserConfigurationException {\n\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory\r\n\t\t\t\t.newInstance();\r\n\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n\t\treturn docBuilder.parse(new File(\"config.xml\"));\r\n\t}", "public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "protected static void getSettingsFromFile(){\n\t\t Properties properties = new Properties();\r\n\t\t try {\r\n\t\t\t try {\r\n\t\t\t\t FileInputStream fi = new FileInputStream(MT4jSettings.getInstance().getDefaultSettingsPath() + \"Settings.txt\");\r\n\t\t\t\t properties.load(fi);\t\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\tlogger.debug(\"Couldnt load Settings.txt from the File system. Trying to load it as a resource..\");\r\n\t\t\t\tInputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"Settings.txt\");\r\n\t\t\t\t if (in != null){\r\n\t\t\t\t\t properties.load(in);\t\r\n\t\t\t\t }else{\r\n\t\t\t\t\t logger.debug(\"Couldnt load Settings.txt as a resource. Using defaults.\");\r\n\t\t\t\t\t throw new FileNotFoundException(\"Couldnt load Settings.txt as a resource\");\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\r\n\t\t\t MT4jSettings.fullscreen = Boolean.parseBoolean(properties.getProperty(\"Fullscreen\", Boolean.valueOf(MT4jSettings.getInstance().isFullscreen()).toString()).trim());\r\n\t\t\t //Use java's fullscreen exclusive mode (real fullscreen) or just use an undecorated window at fullscreen size \r\n\t\t\t MT4jSettings.getInstance().fullscreenExclusive = Boolean.parseBoolean(properties.getProperty(\"FullscreenExclusive\", Boolean.valueOf(MT4jSettings.getInstance().isFullscreenExclusive()).toString()).trim());\r\n\t\t\t //Which display to use for fullscreen\r\n\t\t\t MT4jSettings.getInstance().display = Integer.parseInt(properties.getProperty(\"Display\", String.valueOf(MT4jSettings.getInstance().getDisplay())).trim());\r\n\t\r\n\t\t\t MT4jSettings.getInstance().windowWidth = Integer.parseInt(properties.getProperty(\"DisplayWidth\", String.valueOf(MT4jSettings.getInstance().getWindowWidth())).trim());\r\n\t\t\t MT4jSettings.getInstance().windowHeight = Integer.parseInt(properties.getProperty(\"DisplayHeight\", String.valueOf(MT4jSettings.getInstance().getWindowHeight())).trim());\r\n\t\t\t \r\n\t\t\t //FIXME at fullscreen really use the screen dimension? -> we need to set the native resoultion ourselves!\r\n\t\t\t //so we can have a lower fullscreen resolution than the screen dimensions\r\n\t\t\t if (MT4jSettings.getInstance().isFullscreen() && !MT4jSettings.getInstance().isFullscreenExclusive()){\r\n\t\t\t\t Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\t\t MT4jSettings.getInstance().windowWidth = screenSize.width;\r\n\t\t\t\t MT4jSettings.getInstance().windowHeight = screenSize.height;\r\n\t\t\t }\r\n\t\t\t /*\r\n\t\t\t //Comment this to not change the window width to the screen width in fullscreen mode\r\n\t\t\t else{\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t */\r\n\t\t\t \r\n\t\t\t MT4jSettings.getInstance().maxFrameRate = Integer.parseInt(properties.getProperty(\"MaximumFrameRate\", String.valueOf(MT4jSettings.getInstance().getMaxFrameRate())).trim());\r\n\t\t\t MT4jSettings.getInstance().renderer = Integer.parseInt(properties.getProperty(\"Renderer\", String.valueOf(MT4jSettings.getInstance().getRendererMode())).trim());\r\n\t\t\t MT4jSettings.getInstance().numSamples = Integer.parseInt(properties.getProperty(\"OpenGLAntialiasing\", String.valueOf(MT4jSettings.getInstance().getNumSamples())).trim());\r\n\t\r\n\t\t\t MT4jSettings.getInstance().vSync = Boolean.parseBoolean(properties.getProperty(\"Vertical_sync\", Boolean.valueOf(MT4jSettings.getInstance().isVerticalSynchronization()).toString()).trim());\r\n\t\r\n\t\t\t //Set frametitle\r\n\t\t\t String frameTitle = properties.getProperty(\"Frametitle\", MT4jSettings.getInstance().getFrameTitle().trim());\r\n\t\t\t MT4jSettings.getInstance().frameTitle = frameTitle;\r\n\t\r\n\t\t } catch (Exception e) {\r\n\t\t\t logger.error(\"Error while loading Settings.txt. Using defaults.\");\r\n\t\t }\r\n\t\t settingsLoadedFromFile = true;\r\n\t}", "public void loadSettings(Properties properties) {\r\n mSettings = new TvBrowserDataServiceSettings(properties);\r\n\r\n String[] levelIds=mSettings.getLevelIds();\r\n ArrayList<TvDataLevel> levelList=new ArrayList<TvDataLevel>();\r\n for (int i=0;i<DayProgramFile.getLevels().length;i++) {\r\n if (DayProgramFile.getLevels()[i].isRequired()) {\r\n levelList.add(DayProgramFile.getLevels()[i]);\r\n }\r\n else{\r\n for (String levelId : levelIds) {\r\n if (levelId.equals(DayProgramFile.getLevels()[i].getId())) {\r\n levelList.add(DayProgramFile.getLevels()[i]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n setTvDataLevel(levelList.toArray(new TvDataLevel[levelList.size()]));\r\n\r\n\r\n /* load channel groups settings */\r\n refreshAvailableChannelGroups();\r\n\r\n setWorkingDirectory(mDataDir);\r\n }", "public T loadConfig(File file) throws IOException;", "private Properties getAppSettings() {\n \t\t\n\t if(_appSettings == null){\n\t\t try {\n\t\t\tsynchronized(this){\t\t\n\t\t\t\tif(_appSettings == null) {\t\t\t\t\t\t\n\t\t\t\t\t_appSettings = new Properties();\t\n\t\t\t\t\t\n\t\t\t\t\t//look for an existing file this mmsi\n\t\t\t\t\t//if one doesn't exist, use a default file.\n\t\t\t\t\tString configFile = _configFile;\n\t\t\t\t\tFile file = new File(configFile);\n\t\t\t\t\tif(file.exists() == false){\n\t\t\t\t\t\tconfigFile = STORE_BASE + APPL_PROPS;\n\t\t\t\t\t}\n\t\t\t\t\tFileInputStream oFile = new FileInputStream(configFile);\n\t\t \t\tInputStream setupOutput = new DataInputStream(oFile);\t\t \t\t\t\t\n\t\t \t\t//InputStream propInput = new DataInputStream(this.getClass().getResourceAsStream(STORE_BASE + APP_SETTINGS));\t \t \t \t\t\t\n\t\t\t\t\t_appSettings.load(setupOutput);\t\n\t\t\t\t\t\n\t\t\t\t} \t \t\t\t\t\t\n\t\t\t}\t \t\t\t\n\t\t}catch(Exception oEx){\n\t\t\tAppLogger.error(oEx);\n\t\t}\t\t \t\t\t\t\t\n\t}\t\t\t \t\t\n\treturn _appSettings;\n }", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void loadJsonFile() throws FileNotFoundException {\n Log.println(Log.INFO, \"FileAccessing\", \"Loading settings file.\");\n StringBuilder stringBuilder = new StringBuilder();\n InputStreamReader inputStreamReader = new InputStreamReader(context.openFileInput(\"settingDetails.json\"), StandardCharsets.UTF_8);\n try (BufferedReader reader = new BufferedReader(inputStreamReader)) {\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file reading error.\");\n throw new FileNotFoundException();\n }\n if (stringBuilder.toString().equals(\"\")) {\n Log.println(Log.INFO, \"FileAccessing\", \"Settings file does not exist.\");\n throw new FileNotFoundException();\n }\n\n Gson gson = new Gson();\n JsonObject jsonObject = gson.fromJson(stringBuilder.toString(), JsonObject.class);\n if (jsonObject == null) {\n throw new FileNotFoundException();\n }\n JsonArray mappingControls = (JsonArray) jsonObject.get(\"mappingControls\");\n\n TaskDetail.actionToTask.clear();\n for (JsonElement o : mappingControls) {\n JsonObject individualMapping = (JsonObject) o;\n byte combinedAction = individualMapping.get(\"combinedAction\").getAsByte();\n int outerControl = individualMapping.get(\"task\").getAsInt();\n TaskDetail.actionToTask.put(combinedAction, TaskDetail.taskDetails.get(outerControl));\n }\n\n int setting = 0;\n JsonArray generalSettings = (JsonArray) jsonObject.get(\"generalSettings\");\n for (JsonElement o : generalSettings) {\n JsonObject individualSetting = (JsonObject) o;\n int status = individualSetting.get(\"status\").getAsInt();\n SettingDetail.settingDetails.get(setting++).changeSetting(status);\n }\n\n DeviceDetail.deviceDetails.clear();\n JsonArray deviceList = (JsonArray) jsonObject.get(\"devices\");\n for (JsonElement o : deviceList) {\n JsonObject individualDevice = (JsonObject) o;\n String deviceName = individualDevice.get(\"name\").getAsString();\n String deviceMac = individualDevice.get(\"mac\").getAsString();\n DeviceDetail.deviceDetails.add(new DeviceDetail(deviceMac, deviceName));\n }\n\n SensitivitySetting.sensitivitySettings.clear();\n JsonArray sensitivityList = (JsonArray) jsonObject.get(\"sensitivities\");\n for (JsonElement o : sensitivityList) {\n JsonObject individualSensitivity = (JsonObject) o;\n int multiplicativeFactor = individualSensitivity.get(\"factor\").getAsInt();\n int sensitivity = individualSensitivity.get(\"sensitivity\").getAsInt();\n SensitivitySetting.sensitivitySettings.add(new SensitivitySetting(multiplicativeFactor, sensitivity));\n }\n\n int currentDevice = jsonObject.get(\"currentlySelected\").getAsInt();\n DeviceDetail.setIndexSelected(currentDevice);\n\n updateAllSetting(false);\n }", "@Test\n public void testLoadXMLWithSettings() throws Exception\n {\n File confDir = new File(\"conf\");\n File targetDir = new File(\"target\");\n File testXMLValidationSource = new File(confDir,\n \"testValidateInvalid.xml\");\n File testSavedXML = new File(targetDir, \"testSave.xml\");\n File testSavedFactory = new File(targetDir, \"testSaveFactory.xml\");\n URL dtdFile = getClass().getResource(\"/properties.dtd\");\n final String publicId = \"http://commons.apache.org/test.dtd\";\n\n XMLConfiguration config = new XMLConfiguration(\"testDtd.xml\");\n config.setPublicID(publicId);\n config.save(testSavedXML);\n factory.addProperty(\"xml[@fileName]\", testSavedXML.getAbsolutePath());\n factory.addProperty(\"xml(0)[@validating]\", \"true\");\n factory.addProperty(\"xml(-1)[@fileName]\", testXMLValidationSource\n .getAbsolutePath());\n factory.addProperty(\"xml(1)[@config-optional]\", \"true\");\n factory.addProperty(\"xml(1)[@validating]\", \"true\");\n factory.save(testSavedFactory);\n\n factory = new DefaultConfigurationBuilder();\n factory.setFile(testSavedFactory);\n factory.registerEntityId(publicId, dtdFile);\n factory.clearErrorListeners();\n Configuration c = factory.getConfiguration();\n assertEquals(\"Wrong property value\", \"value1\", c.getString(\"entry(0)\"));\n assertFalse(\"Invalid XML source was loaded\", c\n .containsKey(\"table.name\"));\n\n testSavedXML.delete();\n testSavedFactory.delete();\n }", "private static void manageGameConfigFile(File configFile) {\n Gson gson = new Gson();\n try {\n GameConfig.setInstance(gson.fromJson(new FileReader(configFile), GameConfig.class));\n } catch (FileNotFoundException e) {\n LogUtils.error(\"FileNotFoundException => \", e);\n }\n }", "public void loadPersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tif (file.length() == 0) { // no persistent data to use\n\t\t\treturn;\n\t\t}\n\t\tdeserializeFile(file);\n\t\tloadPersistentSettings();\n\t}", "public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}", "private void readPreferences() {\r\n \t\tSharedPreferences sp = getSharedPreferences(SPN, MODE_PRIVATE);\r\n \t\t// set listener to this\r\n \t\tsp.registerOnSharedPreferenceChangeListener(this);\r\n \t\t// read shared preferences to get data file\r\n \t\tdataFile = sp.getString(res.getString(R.string.pref_data_file_key),\r\n \t\t\t\tnull);\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Data file is \" + dataFile);\r\n \t\t}\r\n \t\tif (dataFile == null)\r\n \t\t\treturn;\r\n \t\t// read if data file is compressed\r\n \t\tgzipFile = sp.getBoolean(res.getString(R.string.pref_data_file_gzip),\r\n \t\t\t\tfalse);\r\n \t}", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.settings);\n }", "static public void initSettings() {\n iSettings = BitmapSettings.getSettings();\n iSettings.load();\n }", "public void loadSavedConfigsMap() {\n\t\tfinal File folder = new File(serializePath);\n\t\tlistFilesForFolder(folder);\n\t}", "@Override public void loadSettings(Map pProps, Map pSettings) {\n pSettings.put(getSourceTypeInternalName() + PATH, pProps.get(CDS_PATH));\n pSettings.put(IS_LOCAL + getSourceTypeInternalName(), pProps.get(LOCAL));\n pSettings.put(getSourceTypeInternalName() + HOST_MACHINE, pProps.get(HOST_MACHINE));\n pSettings.put(getSourceTypeInternalName() + PORT, pProps.get(PORT));\n }", "void openSettings() {\n\t}", "private SettingsManager initSettings() {\n // Copy the demo/config.yml instead of using it directly so it doesn't get overridden\n configFile = copyFileFromJar(\"/demo/config.yml\");\n return SettingsManagerBuilder.withYamlFile(configFile).configurationData(TitleConfig.class).create();\n }", "private void loadSettings() {\n // set theme\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String themeId = preferences.getString(\"theme\", \"\");\n if (themeId.equals(\"light\")) {\n setTheme(R.style.ThemeLightReadMode);\n Log.d(TAG, \"switch to light theme \" + themeId);\n }\n else /*if (themeId.equals(\"dark\"))*/ {\n setTheme(R.style.ThemeDarkReadMode);\n Log.d(TAG, \"switch to dark theme \" + themeId);\n }\n }", "public void load(File configFile) {\n try {\n this.getProperties().load(new FileInputStream(configFile));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void load()\n\t{\n\t\ttry {\n\t\t\tIFile file = project.getFile(PLAM_FILENAME);\n\t\t if (file.exists()) {\n\t\t\t\tInputStream stream= null;\n\t\t\t\ttry {\n\t\t\t\t\tstream = new BufferedInputStream(file.getContents(true));\n\t\t\t\t SAXReader reader = new SAXReader();\n\t\t\t\t Document document = reader.read(stream);\n\t\t\t\t \n\t\t\t\t Element root = document.getRootElement();\n\n\t\t\t\t String url = root.elementTextTrim(\"server-url\");\n\t\t\t\t setServerURL((url != null) ? new URL(url) : null);\n\t\t\t\t \n\t\t\t\t setUserName(root.elementTextTrim(\"username\"));\n\t\t\t\t setPassword(root.elementTextTrim(\"password\"));\n\t\t\t\t setProductlineId(root.elementTextTrim(\"pl-id\"));\n \n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t if (stream != null)\n\t\t\t\t stream.close();\n\t\t\t\t}\n\t\t }\n\t\t} catch (DocumentException e) {\n\t\t\tlogger.info(\"Error while parsing PLAM config.\", e);\n\t\t} catch (IOException e) {\n\t\t}\n\t}", "private static void loadDictionaryConfig()\r\n\t{\r\n\t\tURL dictionaryConfigURL = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tBundle cfmlBundle = Platform.getBundle(CFMLPlugin.PLUGIN_ID);\r\n\t\t\tdictionaryConfigURL = org.eclipse.core.runtime.FileLocator.find(CFMLPlugin.getDefault().getBundle(),\r\n new Path(\"dictionary\"), null);\r\n\t\t\t\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tfactory.setIgnoringComments(true);\r\n\t\t\tfactory.setIgnoringElementContentWhitespace(true);\r\n\t\t\tfactory.setCoalescing(true);\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\t\r\n\t\t\tURL configurl = FileLocator.LocateURL(dictionaryConfigURL, \"dictionaryconfig.xml\");\r\n\t\t\t\t\t\t\r\n\t\t\tdictionaryConfig = builder.parse(configurl.getFile());\r\n\t\t\tif(dictionaryConfig == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:\"\r\n\t\t\t\t\t\t\t+ DictionaryManager.class.getClassLoader()\r\n\t\t\t\t\t\t\t\t\t.getResource(\"org.cfeclipse.cfml/dictionary/dictionaryconfig.xml\").getFile()\r\n\t\t\t\t\t\t\t\t\t.replace(\"dictionaryconfig.xml\", \"\"));\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:file:\" + DictionaryManager.class.getResource(\"/dictionaries.zip\").getFile()\r\n\t\t\t\t\t\t\t+ \"!/org.cfeclipse.cfml/dictionary/\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t}", "private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }", "public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadData(final String filePath)\r\n {\r\n try\r\n {\r\n File fXMLFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXMLFile);\r\n parseXMLDocument(doc);\r\n }\r\n catch (ParserConfigurationException ex)\r\n {\r\n System.err.println(\"\\t ParserConfigurationException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (SAXException ex)\r\n {\r\n System.err.println(\"\\t SAXException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (IOException ex)\r\n {\r\n System.err.println(\"\\t IOException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n }", "void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}", "protected boolean readProjectSettings() { return true; }", "public void loadSettings(String settingsName){\r\n try{\r\n String curLine;\r\n FileReader fr = new FileReader(settingsName+\".txt\");//reads in the pdb\r\n BufferedReader br = new BufferedReader(fr);\r\n //populate the fields in the settings view from the default settings file\r\n while ((curLine = br.readLine()) != null) {\r\n String[] setting = curLine.split(\"[\\t]+\");//split by whitespace into an array to read\r\n if(setting[0].toString().compareTo(\"Minim Method\")==0){\r\n jComboBox1.setSelectedIndex(Integer.parseInt(setting[1]));\r\n }\r\n\t\t\t \r\n if(setting[0].compareTo(\"Step Size\")==0){\r\n if(setting[1].compareTo(\"0.0\")!=0&&setting[1].compareTo(\"0\")!=0)jTextField1.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Numsteps\")==0){\r\n jTextField2.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Convergence\")==0){\r\n jTextField3.setText(setting[1]);\r\n }\r\n\t\t\t \r\n\t\tif(setting[0].compareTo(\"Interval\")==0){\r\n jTextField4.setText(setting[1]);\r\n }\r\n }\r\n this.setVisible(true);\r\n br.close();\r\n fr.close();\r\n }\r\n catch (Exception e){\r\n System.err.println(\"Error: \" + e.getMessage());\r\n }\r\n }", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "public void loadConfig() {\n\t}", "private static boolean loadSharedPreferencesFromFile(File src) {\n\t\tboolean res = false;\n\t\tObjectInputStream input = null;\n\t\ttry {\n\t\t\tinput = new ObjectInputStream(new FileInputStream(src));\n\t\t\tEditor prefEdit = PreferenceManager.getDefaultSharedPreferences(mContext).edit();\n\t\t\tprefEdit.clear();\n\t\t\t// first object is preferences\n\t\t\tMap<String, ?> entries = (Map<String, ?>) input.readObject();\n\t\t\t\t\n\t\t\tfor (Entry<String, ?> entry : entries.entrySet()) {\n\t\t\t\tObject v = entry.getValue();\n\t\t\t\tString key = entry.getKey();\n\t\n\t\t\t\tif (v instanceof Boolean)\n\t\t\t\t\tprefEdit.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\t\telse if (v instanceof Float)\n\t\t\t\t\tprefEdit.putFloat(key, ((Float) v).floatValue());\n\t\t\t\telse if (v instanceof Integer)\n\t\t\t\t\tprefEdit.putInt(key, ((Integer) v).intValue());\n\t\t\t\telse if (v instanceof Long)\n\t\t\t\t\tprefEdit.putLong(key, ((Long) v).longValue());\n\t\t\t\telse if (v instanceof String)\n\t\t\t\t\tprefEdit.putString(key, ((String) v));\n\t\t\t}\n\t\t\tprefEdit.commit();\n\t\n\t\t\t// second object is admin options\n\t\t\tEditor adminEdit = mContext.getSharedPreferences(AdminPreferencesActivity.ADMIN_PREFERENCES, 0).edit();\n\t\t\tadminEdit.clear();\n\t\t\t// first object is preferences\n\t\t\tMap<String, ?> adminEntries = (Map<String, ?>) input.readObject();\n\t\t\tfor (Entry<String, ?> entry : adminEntries.entrySet()) {\n\t\t\t\tObject v = entry.getValue();\n\t\t\t\tString key = entry.getKey();\n\t\n\t\t\t\tif (v instanceof Boolean)\n\t\t\t\t\tadminEdit.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\t\telse if (v instanceof Float)\n\t\t\t\t\tadminEdit.putFloat(key, ((Float) v).floatValue());\n\t\t\t\telse if (v instanceof Integer)\n\t\t\t\t\tadminEdit.putInt(key, ((Integer) v).intValue());\n\t\t\t\telse if (v instanceof Long)\n\t\t\t\t\tadminEdit.putLong(key, ((Long) v).longValue());\n\t\t\t\telse if (v instanceof String)\n\t\t\t\t\tadminEdit.putString(key, ((String) v));\n\t\t\t}\n\t\t\tadminEdit.commit();\n\t\n\t\t\tLog.i(t, \"Loaded hashmap settings into preferences\");\n\t\t\tres = true;\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (input != null) {\n\t\t\t\t\tinput.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public static void loadConfig() throws Exception {\n unloadConfig();\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(new File(\"test_files/stresstest/\" + CONFIG_FILE).getAbsolutePath());\n }", "void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}", "public void load() throws FileNotFoundException {\n loadConfig();\n initRepos();\n }", "private static void readSiteConfig() {\n\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(\"SiteConfiguration.txt\"))) {\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line = br.readLine().strip().toUpperCase();\n\t\t\t\tSite readSite = new Site(line);\n\n\t\t\t\tsites.putIfAbsent(readSite.getSiteName(), readSite);\n\t\t\t}\n\t\t}catch (IOException ioe) {\n\t\t\tlogger.log(Level.WARNING, \"Could not read SiteConfig file properly! \" + ioe);\n\t\t}\n\t}", "private void loadSettings() throws NumberFormatException, SQLException {\n\t\tmaximumRequests = Integer.parseInt(getSetting(\"maximum_requests\"));\n\t\trequestCount = Integer.parseInt(getSetting(\"requests\"));\n\t}", "public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}", "public void loadConfig(){\r\n File config = new File(\"config.ini\");\r\n if(config.exists()){\r\n try {\r\n Scanner confRead = new Scanner(config);\r\n \r\n while(confRead.hasNextLine()){\r\n String line = confRead.nextLine();\r\n if(line.indexOf('=')>0){\r\n String setting,value;\r\n setting = line.substring(0,line.indexOf('='));\r\n value = line.substring(line.indexOf('=')+1,line.length());\r\n \r\n //Perform the actual parameter check here\r\n if(setting.equals(\"romfile\")){\r\n boolean result;\r\n result = hc11_Helpers.loadBinary(new File(value.substring(value.indexOf(',')+1,value.length())),board,\r\n Integer.parseInt(value.substring(0,value.indexOf(',')),16));\r\n if(result)\r\n System.out.println(\"Loaded a rom file.\");\r\n else\r\n System.out.println(\"Error loading rom file.\");\r\n }\r\n }\r\n }\r\n confRead.close();\r\n } catch (FileNotFoundException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "public void initialize() {\n if (!BungeeBan.getInstance().getDataFolder().exists()) {\n BungeeBan.getInstance().getDataFolder().mkdirs();\n }\n File file = this.getConfigurationFile();\n if (!file.exists()) {\n try {\n file.createNewFile();\n if (this.defaultConfig != null) {\n try (InputStream is = BungeeBan.getInstance().getResourceAsStream(this.defaultConfig);\n OutputStream os = new FileOutputStream(file)) {\n ByteStreams.copy(is, os);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n this.reload();\n }", "private void loadPreferences() {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n boolean lm = sp.getBoolean(getString(R.string.live_match), true);\n boolean ls = sp.getBoolean(getString(R.string.live_score), true);\n\n if(lm) live_match.setChecked(true);\n else live_match.setChecked(false);\n\n if(ls) live_score.setChecked(true);\n else live_score.setChecked(false);\n }", "private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.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}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}", "public void loadPersistencePreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean persistent = sharedPreferences.getBoolean(\"TileCachePersistence\", true);\n Log.v(TAG, \"Cache Size: \" + sharedPreferences.getInt(\"TileCacheSize\", MapsActivity.FILE_SYSTEM_CACHE_SIZE_DEFAULT)\n + \", Persistent: \" + persistent);\n int capacity = Math.min(sharedPreferences.getInt(\"TileCacheSize\", MapsActivity.FILE_SYSTEM_CACHE_SIZE_DEFAULT),\n MapsActivity.FILE_SYSTEM_CACHE_SIZE_MAX);\n TileCache fileSystemTileCache = this.mapView.getFileSystemTileCache();\n\n fileSystemTileCache.setPersistent(persistent);\n fileSystemTileCache.setCapacity(capacity);\n // text size\n String textScaleDefault = getString(R.string.preferences_text_scale_default);\n this.mapView.setTextScale(Float.parseFloat(sharedPreferences.getString(\"mapTextScale\", textScaleDefault)));\n }", "private static OMElement loadConfigXML() throws EventBrokerConfigurationException {\n\n String carbonConfigHome = CarbonBaseUtils.getCarbonConfigDirPath();\n File confFile = Paths.get(carbonConfigHome, EventBrokerConstants.EB_CONF).toFile();\n String path = confFile.toString();\n BufferedInputStream inputStream = null;\n try {\n inputStream = new BufferedInputStream(new FileInputStream(confFile));\n XMLStreamReader parser = XMLInputFactory.newInstance().\n createXMLStreamReader(inputStream);\n StAXOMBuilder builder = new StAXOMBuilder(parser);\n OMElement omElement = builder.getDocumentElement();\n omElement.build();\n return omElement;\n } catch (FileNotFoundException e) {\n throw new EventBrokerConfigurationException(EventBrokerConstants.EB_CONF\n + \"cannot be found in the path : \" + path, e);\n } catch (XMLStreamException e) {\n throw new EventBrokerConfigurationException(\"Invalid XML for \" + EventBrokerConstants.EB_CONF\n + \" located in the path : \" + path, e);\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException ingored) {\n throw new EventBrokerConfigurationException(\"Can not close the input stream\");\n }\n }\n }", "public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }", "public void reload() {\n\t\tfileConfiguration = YamlConfiguration.loadConfiguration(configFile);\n\t\tfinal InputStream defaultConfigStream = plugin.getResource(fileName);\n\t\tif (defaultConfigStream != null) {\n\t\t\tfinal Reader defConfigStream = new InputStreamReader(defaultConfigStream, StandardCharsets.UTF_8);\n\t\t\tfinal YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream);\n\t\t\tfileConfiguration.setDefaults(defConfig);\n\t\t}\n\t}", "public void reloadFile() {\n if (configuration == null) {\n file = new File(plugin.getDataFolder(), fileName);\n }\n configuration = YamlConfiguration.loadConfiguration(file);\n\n // Look for defaults in the jar\n Reader defConfigStream = null;\n try {\n defConfigStream = new InputStreamReader(plugin.getResource(fileName), \"UTF8\");\n } catch (UnsupportedEncodingException ex) {}\n\n if (defConfigStream != null) {\n YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream);\n configuration.setDefaults(defConfig);\n }\n }", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public static void loadConfig(){\n String filename = ConfigManager.getConfig().getString(LANG_FILE_KEY);\n String langFileName = Language.LANG_FOLDER_NAME + '/' + filename;\n config.setConfigFile(langFileName);\n\n File file = config.getConfigFile();\n if(file.exists()){\n config.loadConfig();\n }else{\n Logger.warn(\"Lang file \\\"\" + filename + \"\\\" doesn't exist\", false);\n Logger.warn(\"Using English language to avoid errors\", false);\n config.clearConfig();\n try{\n config.getBukkitConfig().load(plugin.getResource(Language.EN.getLangFileName()));\n }catch(Exception ex){\n Logger.err(\"An error occurred while loading English language:\", false);\n Logger.err(ex, false);\n }\n }\n//</editor-fold>\n }", "public FileConfiguration loadConfiguration(File file);", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "public void loadConfigurationFromDisk() {\r\n try {\r\n FileReader fr = new FileReader(CONFIG_FILE);\r\n BufferedReader rd = new BufferedReader(fr);\r\n\r\n String line;\r\n while ((line = rd.readLine()) != null) {\r\n if (line.startsWith(\"#\")) continue;\r\n if (line.equalsIgnoreCase(\"\")) continue;\r\n\r\n StringTokenizer str = new StringTokenizer(line, \"=\");\r\n if (str.countTokens() > 1) {\r\n String aux;\r\n switch (str.nextToken().trim()) {\r\n case \"system.voidchain.protocol_version\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.protocolVersion = aux;\r\n continue;\r\n case \"system.voidchain.transaction.max_size\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.transactionMaxSize = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.block.num_transaction\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.numTransactionsInBlock = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.storage.data_file_extension\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.dataFileExtension = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.walletFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.data_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.dataDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.blockFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.walletFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.memory.block_megabytes\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.memoryUsedForBlocks = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.sync.block_sync_port\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockSyncPort = Integer.parseInt(aux);\r\n }\r\n continue;\r\n case \"system.voidchain.crypto.ec_param\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.ecParam = aux;\r\n continue;\r\n case \"system.voidchain.core.block_proposal_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockProposalTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n case \"system.voidchain.blockchain.chain_valid_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockchainValidTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n fr.close();\r\n rd.close();\r\n\r\n if (this.firstRun)\r\n this.firstRun = false;\r\n } catch (IOException e) {\r\n logger.error(\"Could not load configuration\", e);\r\n }\r\n }", "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "public String readConfiguration(String path);", "public File getConfigurationFile();", "private void createSettingsFile() throws IllegalArgumentException {\r\n\r\n File settingsFile = new File(msAmandaTempFolder, SETTINGS_FILE);\r\n\r\n try {\r\n\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(settingsFile));\r\n\r\n bw.write(\r\n \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\" + System.getProperty(\"line.separator\")\r\n + \"<settings>\" + System.getProperty(\"line.separator\")\r\n + \"\\t<search_settings>\" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<enzyme specificity=\\\"\" + enzymeSpecificity + \"\\\">\" + enzymeName + \"</enzyme>\" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<missed_cleavages>\" + missedCleavages + \"</missed_cleavages>\" + System.getProperty(\"line.separator\")\r\n + modificationsAsString\r\n + \"\\t\\t<instrument>\" + instrument + \"</instrument>\" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<ms1_tol unit=\\\"\" + precursorUnit + \"\\\">\" + precursorMassError + \"</ms1_tol> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<ms2_tol unit=\\\"\" + fragmentUnit + \"\\\">\" + fragmentMassError + \"</ms2_tol> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<max_rank>\" + maxRank + \"</max_rank> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<generate_decoy>\" + generateDecoys + \"</generate_decoy> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<PerformDeisotoping>\" + performDeisotoping + \"</PerformDeisotoping> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<MaxNoModifs>\" + maxModifications + \"</MaxNoModifs> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<MaxNoDynModifs>\" + maxVariableModifications + \"</MaxNoDynModifs> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<MaxNumberModSites>\" + maxModificationSites + \"</MaxNumberModSites> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<MaxNumberNeutralLoss>\" + maxNeutralLosses + \"</MaxNumberNeutralLoss> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<MaxNumberNeutralLossModifications>\" + maxNeutralLossesPerModification + \"</MaxNumberNeutralLossModifications> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<MinimumPepLength>\" + minPeptideLength + \"</MinimumPepLength> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<MaximumPepLength>\" + maxPeptideLength + \"</MaximumPepLength> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<ReportBothBestHitsForTD>\" + reportBothBestHitsForTD + \"</ReportBothBestHitsForTD> \" + System.getProperty(\"line.separator\")\r\n + \"\\t</search_settings> \" + System.getProperty(\"line.separator\")\r\n + System.getProperty(\"line.separator\")\r\n + \"\\t<basic_settings> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<instruments_file>\" + new File(msAmandaFolder, INSTRUMENTS_FILE).getAbsolutePath() + \"</instruments_file> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<unimod_file>\" + new File(msAmandaFolder, UNIMOD_FILE).getAbsolutePath() + \"</unimod_file> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<enzyme_file>\" + new File(msAmandaTempFolder, ENZYMES_FILE).getAbsolutePath() + \"</enzyme_file> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<unimod_obo_file>\" + new File(msAmandaFolder, UNIMOD_OBO_FILE).getAbsolutePath() + \"</unimod_obo_file> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<psims_obo_file>\" + new File(msAmandaFolder, PSI_MS_OBO_FILE).getAbsolutePath() + \"</psims_obo_file> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<monoisotopic>\" + monoisotopic + \"</monoisotopic> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<considered_charges>\" + getChargeRangeAsString() + \"</considered_charges> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<LoadedProteinsAtOnce>\" + maxLoadedProteins + \"</LoadedProteinsAtOnce> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<LoadedSpectraAtOnce>\" + maxLoadedSpectra + \"</LoadedSpectraAtOnce> \" + System.getProperty(\"line.separator\")\r\n + \"\\t\\t<data_folder>\" + msAmandaTempFolder + \"</data_folder> \" + System.getProperty(\"line.separator\")\r\n + \"\\t</basic_settings> \" + System.getProperty(\"line.separator\")\r\n + \"</settings>\"\r\n + System.getProperty(\"line.separator\")\r\n );\r\n\r\n bw.flush();\r\n bw.close();\r\n\r\n } catch (IOException ioe) {\r\n\r\n throw new IllegalArgumentException(\r\n \"Could not create MS Amanda settings file. Unable to write file: '\"\r\n + ioe.getMessage()\r\n + \"'!\"\r\n );\r\n\r\n }\r\n }", "private void loadWiperConfig(String mSubPath,boolean bQuiet)\n {\n FileReader mWiperConfigReader;\n\n // Environment.getRootDirectory() = /system\".\n final File mFileName = new File(Environment.getRootDirectory(), mSubPath);\n try\n {\n mWiperConfigReader = new FileReader(mFileName);\n }\n catch (FileNotFoundException e)\n {\n if (!bQuiet)\n {\n Log.e(TAG, \"wiperconfig file read/open error \" + mFileName);\n }\n bWiperConfigReadError = true;\n return;\n }\n\n try\n {\n XmlPullParser mParser = Xml.newPullParser();\n mParser.setInput(mWiperConfigReader);\n\n XmlUtils.beginDocument(mParser, \"wiperconfig\");\n\n while (true)\n {\n XmlUtils.nextElement(mParser);\n\n String szName = mParser.getName();\n if (!\"configparam\".equals(szName))\n {\n break;\n }\n\n szUsername = mParser.getAttributeValue(null, \"username\");\n szRealm = mParser.getAttributeValue(null, \"realm\");\n\n String szHighFreqPeriodMs = mParser.getAttributeValue(null, \"highFreqPeriodMs\");\n lHighFreqPeriodMs = Long.parseLong(szHighFreqPeriodMs);\n\n String szLowFreqPeriodMs = mParser.getAttributeValue(null, \"lowFreqPeriodMs\");\n lLowFreqPeriodMs = Long.parseLong(szLowFreqPeriodMs);\n\n szTilingPath = mParser.getAttributeValue(null, \"tilingPath\");\n\n String szMaxDataSizePerSession = mParser.getAttributeValue(null, \"maxDataSizePerSession\");\n lMaxDataSizePerSession = Long.parseLong(szMaxDataSizePerSession);\n\n String szMaxDataSizeTotal = mParser.getAttributeValue(null, \"maxDataSizeTotal\");\n lMaxDataSizeTotal = Long.parseLong(szMaxDataSizeTotal);\n\n String szNetworkPvdEnabled = mParser.getAttributeValue(null, \"networkPvdEnabled\");\n bNetworkPvdEnabled = Boolean.parseBoolean(szNetworkPvdEnabled);\n\n }\n }\n catch (XmlPullParserException e)\n {\n Log.e(TAG, \"WiperConfig parsing exception \", e);\n bWiperConfigReadError = true;\n }\n catch (IOException e)\n {\n Log.e(TAG, \"WiperConfig parsing exception\", e);\n bWiperConfigReadError = true;\n }\n\n if(Config.LOGV)\n {\n Log.v(TAG,\"WiperConfig uname:\"+szUsername+\", realm:\"+szRealm+\",hi:\"+lHighFreqPeriodMs+\",lo:\"+lLowFreqPeriodMs+\":tPath:\"+szTilingPath);\n }\n return;\n }", "private static void persistSettings() {\n\t\ttry {\n\t\t\tBufferedWriter userConf = new BufferedWriter(new FileWriter(\n\t\t\t\t\tconf.getAbsolutePath()));\n\t\t\tproperties.store(userConf, null);\n\t\t\t// flush and close streams\n\t\t\tuserConf.flush();\n\t\t\tuserConf.close();\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"Couldn't save config file.\");\n\t\t}\n\t}", "private static void initSettings(TransferITModel model) {\n if (settingsfile.exists()) {\n try {\n ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(settingsfile));\n Object[] readObjects = new Object[6];\n for (int x = 0; x < readObjects.length; x++) {\n readObjects[x] = objectInputStream.readUnshared();\n if (readObjects[x] == null) {\n return;\n }\n }\n model.putAll((Properties) readObjects[0]);\n\n model.setHostHistory((HashSet<String>) readObjects[1]);\n\n model.setUsernameHistory((HashMap<String, String>) readObjects[2]);\n\n model.setPasswordHistory((HashMap<String, String>) readObjects[3]);\n\n model.setUsers((HashMap<String, String>) readObjects[4]);\n\n model.setUserRights((HashMap<String, Boolean>) readObjects[5]);\n\n\n\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n model.addUser(\"anon\", \"anon\", false);\n }\n }", "public final void loadConfig(final String configFile) {\n\t\tLoadSaveConfig lsc = new LoadSaveConfig();\n\t\tlsc.setConfigFilePath(configFile);\n\t\tlsc.load(configRootDir);\n\t\tconfig = lsc.getFemConfig();\n\t}", "public static void readXML(){\n try{\n Document doc = getDoc(\"config.xml\");\n Element root = doc.getRootElement();\n\n //Muestra los elementos dentro de la configuracion del xml\n \n System.out.println(\"Color : \" + root.getChildText(\"color\"));\n System.out.println(\"Pattern : \" + root.getChildText(\"pattern\"));\n System.out.println(\"Background : \" + root.getChildText(\"background\"));\n \n\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "public void printSettingsContents() {\n String fileName = \"collect.settings\";\n try {\n ClassLoader classLoader = getClass().getClassLoader();\n FileInputStream fin = new FileInputStream(\n classLoader.getResource(fileName).getFile());\n ObjectInputStream ois = new ObjectInputStream(fin);\n Map<?, ?> user_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : user_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"user.\" + key.toString() + \"=\" + v.toString());\n }\n Map<?, ?> admin_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : admin_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"admin.\" + key.toString() + \"=\" + v.toString());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }" ]
[ "0.74143326", "0.6904963", "0.6835334", "0.6798996", "0.67367136", "0.67287993", "0.67280364", "0.664244", "0.65542096", "0.6413865", "0.6343844", "0.633825", "0.63038313", "0.62324476", "0.62090874", "0.620615", "0.62049043", "0.61978143", "0.60958135", "0.6074894", "0.60606563", "0.6014283", "0.60039693", "0.59869105", "0.59650147", "0.5959524", "0.5956685", "0.5932536", "0.59311235", "0.5926586", "0.591603", "0.590953", "0.5882616", "0.58798605", "0.5869661", "0.5865048", "0.58350074", "0.582925", "0.57882315", "0.57765996", "0.57617474", "0.57291406", "0.5708794", "0.57059824", "0.5705507", "0.5696143", "0.56914985", "0.56903976", "0.56902593", "0.5689254", "0.56616485", "0.56435955", "0.56304306", "0.5625152", "0.5615959", "0.56110644", "0.56089836", "0.5607316", "0.560057", "0.55908906", "0.55851024", "0.5583647", "0.5578299", "0.5576844", "0.55654293", "0.5532331", "0.5516824", "0.5513448", "0.55107343", "0.5506741", "0.55011594", "0.54935485", "0.54892546", "0.548255", "0.54762894", "0.5474427", "0.54689527", "0.54678637", "0.5464517", "0.54570866", "0.5455441", "0.5446421", "0.5442422", "0.5435143", "0.5426728", "0.54258114", "0.5420935", "0.5419136", "0.5418759", "0.540613", "0.5405164", "0.53976005", "0.5386976", "0.538636", "0.5380274", "0.53792137", "0.53732795", "0.53691", "0.5367159", "0.53618366" ]
0.6298402
13
Gets the Base Address
public static String GetBaseAddress() { // Load Projects Settings XML file Document doc = Utilities.LoadDocumentFromFilePath(IDE.projectFolderPath + "\\ProjectSettings.xml"); String baseAddress = ""; if (doc != null) { // Get all "files" NodeList baseAddressNode = doc.getDocumentElement().getElementsByTagName("baseAddress"); // Handle result if (baseAddressNode.getLength() > 0) { baseAddress = Utilities.getXmlNodeAttribute(baseAddressNode.item(0), "value"); } } return baseAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBaseAddress() {\n return base_address.getAddress();\n }", "public Address getStartAddress() {\n\t\treturn baseAddress;\n\t}", "public LocatorIF getBase() {\n return base_address;\n }", "public Address getImagebase() {\n return new Address(m_module.getConfiguration().getImageBase().toBigInteger());\n }", "public static String getBaseURL() {\n\t\t\n\t\treturn (ZmailURI.getBaseURI().toString());\n\t\t\n\t}", "public Address getFilebase() {\n return new Address(m_module.getConfiguration().getFileBase().toBigInteger());\n }", "public String getBaseURL() {\n\n\t\treturn baseURL;\n\n\t}", "public String getBaseUrl() {\n return (String) get(\"base_url\");\n }", "public String getBaseURL() {\n return baseURL;\n }", "public String getBaseURL() {\n return baseURL;\n }", "public static String getBaseUrl() {\r\n if (baseUrl == null) {\r\n baseUrl = Constants.HTTP_PROTOCOL + \"://\" + getBaseHost() + \":\" + getBasePort();\r\n }\r\n return baseUrl;\r\n }", "public String getBaseUri() {\n\t\treturn baseUri;\n\t}", "public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }", "public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "public static String getBaseHost() {\r\n if (baseHost == null) {\r\n baseHost = PropertiesProvider.getInstance().getProperty(\"server.name\", \"localhost\");\r\n }\r\n return baseHost;\r\n }", "public static String getBaseURL()\r\n {\r\n String savedUrl = P.getChoreoServicesUrl();\r\n return savedUrl.length() > 0 ? savedUrl : Config.DEFAULT_SERVER_URL;\r\n }", "@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public String getBase()\n {\n return base;\n }", "String getStartAddress();", "public String getBaseUrl() {\n StringBuffer buf = new StringBuffer();\n buf.append(getScheme());\n buf.append(\"://\");\n buf.append(getServerName());\n if ((isSecure() && getServerPort() != 443) ||\n getServerPort() != 80) {\n buf.append(\":\");\n buf.append(getServerPort());\n }\n return buf.toString();\n }", "private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }", "public URL getBaseHref() {\n return baseHref;\n }", "public String getBaseLinkUrl() {\n return (String) get(\"base_link_url\");\n }", "String getBaseUri();", "public String getBaseUrl() {\n return builder.getBaseUrl();\n }", "protected String getBaseUrl(HttpServletRequest request) {\n\t\tString retVal = \"\";\n\t\tif (request != null && request.getRequestURL() != null) {\n\t\t\tStringBuffer url = request.getRequestURL();\n\t\t\tString uri = request.getRequestURI();\n\t\t\t\n\t\t\tretVal = url.substring(0, url.length() - uri.length());\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}", "public String getBaseUrl()\n\t{\n\t\treturn baseUrl;\n\t}", "public String appBaseUrl() {\n int amtToTrim = request.getServletPath().length() + request.getPathInfo().length();\n String appBase = requestURL.substring(0, requestURL.length()-amtToTrim);\n return appBase;\n }", "public java.lang.String getBaseUrl() {\n return bugQuery.getBaseUrl();\n }", "static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }", "public static String getBaseUrl() {\n return baseUrl;\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public abstract String getBaseURL();", "public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }", "public static String getBaseUrl(HttpServletRequest request) {\n\t\tif ((request.getServerPort() == 80) || (request.getServerPort() == 443))\n\t\t{\n\t\t\treturn request.getScheme() + \"://\" + request.getServerName();\t\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\treturn request.getScheme() + \"://\" + request.getServerName() + \":\" + request.getServerPort();\n\t\t}\n\t}", "URI getBaseURI() {\n return _baseURI;\n }", "public String getBaseUrl()\n {\n return baseUrl;\n }", "String getEndAddress();", "public String getDefaultFromAddress() {\n\t\treturn myDefaultFromAddress;\n\t}", "String getRootServerBaseUrl();", "public String getBaseId() {\n return baseId;\n }", "public String getBaseUrl() {\r\n return baseUrl;\r\n }", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "protected String getBaseUrl() {\n return requestBaseUrl;\n }", "public String getShBaseURL() {\n\n\t\treturn shBaseURL;\n\n\t}", "private String getBaseUri() {\n\t\treturn null;\n\t}", "public String getInternalAddress();", "private String getBaseURL(Document dom) {\n String baseURLValue = null;\n \n //get the root element\n Element element = dom.getDocumentElement();\n \n //get a nodelist of elements\n \n NodeList nl = element.getElementsByTagName(\"baseURL\");\n if(nl != null && nl.getLength() > 0) {\n for(int i = 0 ; i < nl.getLength();i++) {\n //get the list element\n Element baseURL = (Element)nl.item(i);\n baseURLValue = baseURL.getTextContent();\n }\n }\n \n return baseURLValue;\n }", "String getAddr();", "public Address getLocalApicAddress() {\n return Address.fromIntZeroExtend(mem.getInt(36));\n }", "@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}", "public String getAddress() {\n\t\tlog.info(\"NOT IMPLEMENTED\");\n\t\treturn \"\";\n\t}", "public int getRequiredBase() {\n return requiredBase;\n }", "public String getBaseStaticUrl() {\n return (String) get(\"base_static_url\");\n }", "public static String getModuleBaseUrl(HttpServletRequest request) {\n\t String requestedUri = request.getRequestURI();\n\t int contextEnd = request.getContextPath().length();\n\t int folderEnd = requestedUri.lastIndexOf('/') + 1;\n\t return requestedUri.substring(contextEnd, folderEnd);\n\t }", "public Long getBaseId() {\n return baseId;\n }", "String getServerBaseURL();", "public String getBaseURI() {\n return node.get_BaseURI();\n }", "public String getHyperlinkBase()\r\n {\r\n return (m_hyperlinkBase);\r\n }", "protected static String getDUnitLocatorAddress() {\n return Host.getHost(0).getHostName();\n }", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public String getApplicationURL()\n\t{\n\t\tString url=pro.getProperty(\"baseURL\");\n\t\treturn url;\n\t}", "public int getPortBase() {\r\n return pb;\r\n }", "public static String getBaseURI(NodeInfo node) {\n String xmlBase = node.getAttributeValue(StandardNames.XML_BASE);\n if (xmlBase != null) {\n String escaped = EscapeURI.escape(xmlBase,\"!#$%&'()*+,-./:;=?_[]~\").toString();\n URI escapedURI;\n try {\n escapedURI = new URI(escaped);\n if (!escapedURI.isAbsolute()) {\n NodeInfo parent = node.getParent();\n if (parent == null) {\n // We have a parentless element with a relative xml:base attribute. We need to ensure that\n // in such cases, the systemID of the element is always set to reflect the base URI\n // TODO: ignoring the above comment, in order to pass fn-base-uri-10 in XQTS...\n //return element.getSystemId();\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n // TODO: we are resolving a relative base URI against the base URI of the parent element.\n // This isn't what the RFC says we should do: we should resolve it against the base URI\n // of the containing entity. So xml:base on an ancestor element should have no effect (check this)\n URI base = new URI(node.getParent().getBaseURI());\n escapedURI = base.resolve(escapedURI);\n } else {\n URI base = new URI(startSystemId);\n escapedURI = base.resolve(escapedURI);\n }\n }\n } catch (URISyntaxException e) {\n // xml:base is an invalid URI. Just return it as is: the operation that needs the base URI\n // will probably fail as a result.\n return xmlBase;\n }\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n NodeInfo parent = node.getParent();\n if (parent == null) {\n return startSystemId;\n }\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n return parent.getBaseURI();\n } else {\n return startSystemId;\n }\n }", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "public static String getBasePort() {\r\n if (basePort == null) {\r\n basePort = PropertiesProvider.getInstance().getProperty(\"server.port\", \"8080\");\r\n }\r\n return basePort;\r\n }", "public URL getCodeBase() {\n/* 169 */ return this.stub.getCodeBase();\n/* */ }", "public String getBindAddress() {\n return agentConfig.getBindAddress();\n }", "public String getBaseUrl() {\n return preferences.getString(PREFERENCES_BACKEND_BASE_URL, \"http://naamataulu-backend.herokuapp.com/api/v1/\");\n }", "public int getBaseNumber() {\r\n\t\treturn baseNumber;\r\n\t}", "public Address getEndAddress() {\n\t\treturn baseAddress.getNewAddress(baseAddress.getOffset() + maxOffset);\n\t}", "public static String getBaseURL(URL url) throws MalformedURLException {\n return new URL(url.getProtocol(), url.getHost(), url.getPort(), \"/\").toString();\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public long getAddress() {\n return origin + originOffset;\n }", "public String getHandleServiceBaseUrl();", "public java.lang.String getAddress() {\r\n return localAddress;\r\n }", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public final LinkInfo getBaseLinkInfo()\n {\n return baseLinkInfo;\n }", "public String getHostAddress() {\n\t\treturn javaNetAddress.getHostAddress();\n\t}", "public String baseUrl() {\n return baseUrl;\n }", "public String getFrontEndAddress() {\n //TODO(alown): should this really only get the first one?\n return (this.isSSLEnabled ? \"https://\" : \"http://\") + frontendAddressHolder.getAddresses().get(0);\n }", "FullUriTemplateString baseUri();", "String getAddress();", "String getAddress();", "public String getDocumentBase() {\n return getServerBase() + getContextPath() + \"/\";\n }", "public URL getDocumentBase() {\n/* 158 */ return this.stub.getDocumentBase();\n/* */ }", "int getAddr();", "public BaseInfo getBaseInfo() {\n return baseInfo;\n }", "public String getHost() {\n\t\treturn url.getHost();\n }" ]
[ "0.8283209", "0.7346126", "0.7244084", "0.71553546", "0.7139641", "0.70180655", "0.69805807", "0.6892143", "0.6869168", "0.6869168", "0.68643534", "0.6831028", "0.6827843", "0.6823744", "0.67560065", "0.6737369", "0.6663203", "0.6638575", "0.66149336", "0.66149336", "0.6573792", "0.65620816", "0.65355486", "0.6522338", "0.64489716", "0.64469224", "0.64137775", "0.64088905", "0.63848656", "0.6381446", "0.6350485", "0.62784666", "0.62577647", "0.620687", "0.61921597", "0.6191822", "0.61856455", "0.6173457", "0.61587226", "0.61243844", "0.6114861", "0.6111728", "0.61045045", "0.6102749", "0.609216", "0.60806274", "0.60805064", "0.60805064", "0.60772014", "0.6073958", "0.60652524", "0.60388964", "0.6017167", "0.6014569", "0.6005609", "0.6001669", "0.59877414", "0.59747595", "0.5971614", "0.59506303", "0.5940869", "0.59390116", "0.5935287", "0.59312123", "0.5923614", "0.5911447", "0.5904032", "0.589515", "0.5873363", "0.5863395", "0.5863395", "0.5863395", "0.5863395", "0.5863395", "0.5863395", "0.5862771", "0.58623505", "0.58572817", "0.58296496", "0.5807566", "0.57991624", "0.5797731", "0.57967764", "0.57958394", "0.578827", "0.57854563", "0.577966", "0.57724494", "0.57668525", "0.57601154", "0.5755968", "0.574679", "0.5746041", "0.5744207", "0.5744207", "0.5731956", "0.5716351", "0.57161164", "0.5705634", "0.5701157" ]
0.7835261
1
Gets the path of the last opened project location
public static String GetLastOpenedProject() { String lastOpenedProjectPath = ""; if (applicationSettingsFile != null) { // Get all "files" NodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName("lastProject"); // Handle result if (lastProject.getLength() > 0) { lastOpenedProjectPath = Utilities.getXmlNodeAttribute(lastProject.item(0), "value"); } } return lastOpenedProjectPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }", "public String getProjectFilePath() {\n\t\tif (projectFileIO != null) {\n\t\t\treturn projectFileIO.getFilePath();\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "private static File getProjectsPath() {\n File projectsPath = loadFilePath();\n if (projectsPath == null) {\n JFileChooser fc = createFileChooser();\n if (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n return fc.getSelectedFile();\n }\n }\n return projectsPath;\n }", "public String getCurrentPath() {\n\t\treturn DataManager.getCurrentPath();\n\t}", "public static String getProjectPath() {\n\t\tif (!projectPath.isEmpty()) {\n\t\t\treturn projectPath;\n\t\t} else {\n\t\t\treturn \"No file yet\";\n\t\t}\n\t}", "public String getCurrentPath() {\n\t\treturn \"\";\n\t}", "public String getPath() {\n return this.projectPath;\r\n }", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}", "public String getOpenFilePath() {\n\t\treturn filePath.getText();\n\t}", "public static String getLastDir() {\n return getProperty(\"lastdir\");\n }", "public static String getCurrentFolderPath(){\n\t\treturn currentFolderPath;\n\t}", "public String getProjectPath() {\n return projectPath;\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public static String sActivePath() \r\n\t{\r\n\t\tString activePath = null;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tactivePath = new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn activePath;\r\n\t}", "public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "public static String getWorkspaceName() {\n\t\treturn ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile().toString();\n\t}", "public String getLocationPath();", "public java.lang.String getCurrentPath() {\n java.lang.Object ref = currentPath_;\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 currentPath_ = s;\n return s;\n }\n }", "public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}", "public String getDialogPath() {\n return getCurrentDirectory().getAbsolutePath();\n }", "public Optional<URI> getCurrentSourcePath() {\r\n return context.getAssociatedPath();\r\n }", "public java.lang.String getCurrentPath() {\n java.lang.Object ref = currentPath_;\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 currentPath_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getFilePath() {\n return getSourceLocation().getFilePath();\n }", "public String getWorkRelativePath() {\n return getWorkRelativePath(testURL);\n }", "public String getSaveFilePath() {\n\t\treturn newFilePath.getText();\n\t}", "public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}", "public String getLastLocation() {\n return lastLocation;\n }", "public String getMainFilePath() {\n return primaryFile.getAbsolutePath();\n //return code[0].file.getAbsolutePath();\n }", "private String findCurrentDBPath(){\n String startingDir = System.getProperty(\"user.dir\");\t\t\t\t//get starting directory\n File database = new File(startingDir + \"/src/currentDatabase.txt\");\n String currentDatabasePath= null;\n try {\n if (database.exists()) {\n BufferedReader reader = new BufferedReader(new FileReader(database));\n String currentLine;\n while ((currentLine = reader.readLine()) != null) {\n currentDatabasePath = startingDir + \"/src/\" + currentLine.trim().toUpperCase();\n }\n reader.close();\n }\n else{\n System.out.println(\"***Error- currentDatabase.txt file doesn't exits.\");\n }\n }\n catch(Exception ex){\n System.out.println(ex);\n }\n return currentDatabasePath ;\n }", "public File getWorkingParent()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n }", "public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }", "String getFullWorkfileName();", "public File getProjectDir() {\r\n\t\treturn projectDir;\r\n\t}", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "@Override\n public Path getProjectListFilePath() {\n return projectListStorage.getProjectListFilePath();\n }", "public String getPath() {\n\t\treturn pfDir.getPath();\n\t}", "public String getProjectDir() {\n return (String) data[GENERAL_PROJECT_DIR][PROP_VAL_VALUE];\n }", "public String getSavingLocation()\n {\n return Environment.getExternalStorageDirectory() + File.separator + getResources().getString(R.string.app_name);\n }", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public File getProjectDirectory() {\n return this.mProjectDir;\n }", "public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}", "public Path getOpenedFile() {\r\n\t\treturn openedFile;\r\n\t}", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public String getCurrentTsoPath() {\n return currentTsoPath;\n }", "@Override\n public String getCurrentDirectory() {\n return (String) gemFileState.get(STATE_SYNC_DIRECTORY);\n }", "public String getFilePath() {\n return getString(CommandProperties.FILE_PATH);\n }", "Path getLocation();", "public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "private AbstractBuild<?, ?> getLastFinishedBuild() {\n AbstractBuild<?, ?> lastBuild = m_project.getLastBuild();\n while (lastBuild != null && (lastBuild.isBuilding() || lastBuild.getAction(AbstractBuildReport.class) == null)) {\n lastBuild = lastBuild.getPreviousBuild();\n }\n return lastBuild;\n }", "static public File getLatestPlatformLocation(){\n Iterator i = serverLocationAndClassLoaderMap.entrySet().iterator();\n File ret =null;\n while (i.hasNext()){\n Map.Entry e = (Map.Entry)i.next();\n String loc = (String)e.getKey();\n File possibleOne = new File(loc);\n if (ret==null){\n ret =possibleOne;\n }\n if (isGlassFish(possibleOne)){\n ret =possibleOne;\n }\n }\n return ret;\n \n }", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "File getSaveLocation();", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String chooseFileLocation(){\n String fileLoc = new String();\n\n JFileChooser fc = new JFileChooser(\".\");\n fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n fc.showOpenDialog(null);\n fileLoc = fc.getSelectedFile().getAbsolutePath() + \"\\\\\";\n\n return fileLoc;\n }", "java.lang.String getFileLoc();", "public Path getPathToWorkspaceFolder() {\n return pathToWorkspaceFolder;\n }", "public static final String getProject() { return project; }", "public static final String getProject() { return project; }", "public String getRunLocation();", "public File getProjectFile() {\r\n\t\treturn projectFile;\r\n\t}", "File getWorkDir() {\n return workDir;\n }", "public File getJRELocation() {\n \t\tif (executableLocation == null)\n \t\t\treturn null;\n \t\treturn new File(executableLocation.getParentFile(), \"jre\"); //$NON-NLS-1$\n \t}", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "default Optional<Path> getProjectDir() {\n Optional<Path> projectDir = get(MICRONAUT_PROCESSING_PROJECT_DIR, Path.class);\n if (projectDir.isPresent()) {\n return projectDir;\n }\n // let's find the projectDir\n Optional<GeneratedFile> dummyFile = visitGeneratedFile(\"dummy\" + System.nanoTime());\n if (dummyFile.isPresent()) {\n URI uri = dummyFile.get().toURI();\n // happens in tests 'mem:///CLASS_OUTPUT/dummy'\n if (uri.getScheme() != null && !uri.getScheme().equals(\"mem\")) {\n // assume files are generated in 'build' or 'target' directories\n Path dummy = Paths.get(uri).normalize();\n while (dummy != null) {\n Path dummyFileName = dummy.getFileName();\n if (dummyFileName != null && (\"build\".equals(dummyFileName.toString()) || \"target\".equals(dummyFileName.toString()))) {\n projectDir = Optional.ofNullable(dummy.getParent());\n put(MICRONAUT_PROCESSING_PROJECT_DIR, dummy.getParent());\n break;\n }\n dummy = dummy.getParent();\n }\n }\n }\n\n return projectDir;\n }", "public static String getRapidSmithPath() {\n String path = System.getenv(rapidSmithPathVariableName);\n if (path == null) {\n String nl = System.getProperty(\"line.separator\");\n MessageGenerator.briefErrorAndExit(\"Error: You do not have the \" + rapidSmithPathVariableName +\n \" set in your environment.\" + nl + \" Please set this environment variable to the \" +\n \"location of your rapidSmith project.\" + nl + \" For example: \" +\n rapidSmithPathVariableName + \"=\" + \"/home/fred/workspace/rapidSmith\");\n }\n if (path.endsWith(File.separator)) {\n path.substring(0, path.length() - 1);\n }\n return path;\n }", "public static Path getPath() {\n\t\tPath path = Paths.get(getManagerDir(), NAME);\n\t\treturn path;\n\t}", "private static Path getTargetPath() {\r\n return Paths.get(getBaseDir(), \"target\");\r\n }", "public String getRelativePath() {\n if (repository == null) {\n return name;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(name);\n return b.toString();\n }\n }", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "public String getSaveLocation() {\n return saveLocation;\n }", "public String getCurrUrl() {\n return driver.getCurrentUrl();\n }", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "ProjectRepresentation getWorkingProject();", "private String solutionPath(State goal)\n\t{\n\t\t// TODO \n\t\t\n\t\treturn null; \n\t}", "public String getCurrentLocation() {\n return currentLocation;\n }", "public String getPath() {\n if (foundNemo) {\n return path;\n } else {\n path = \"Uh Oh!! Could not find Nemo!!\";\n return path;\n }\n }", "public String getWorkDiretory() {\n\t\treturn workDiretory;\n\t}", "@Override\r\n public String getProjectPath() {\r\n \treturn String.format(\":%s\", getArtifactId());\r\n }", "public static String GetPreviousProjects() {\n\t\tString previousProjects = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"previousProjects\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tpreviousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn previousProjects;\n\t}", "public String getAbsolutePath() {\n String path = null;\n if (parent != null) {\n path = parent.getAbsolutePath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"/%s\", name);\n }\n return path;\n }", "public File getWorkingDir() {\n return workingDir;\n }", "public File getWorkingDir() {\n return workingDir;\n }", "public String getLocationOfFiles() {\n\t\ttry {\n\t\t\tFile f = new File(\n\t\t\t\t\tgetRepositoryManager().getMetadataRecordsLocation() + \"/\" + getFormatOfRecords() + \"/\" + getKey());\n\t\t\treturn f.getAbsolutePath();\n\t\t} catch (Throwable e) {\n\t\t\tprtlnErr(\"Unable to get location of files: \" + e);\n\t\t\treturn \"\";\n\t\t}\n\t}", "private String retrieveWorkSpaceFileLoc(String fileName) {\n ArrayList<String> regResourceProjects = loadRegistryResourceProjects();\n boolean fileExists = false;\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n String folder = workspace.getRoot().getLocation().toFile().getPath().toString();\n String resourceFilePath = null;\n for (String regResourceProject : regResourceProjects) {\n resourceFilePath = folder + File.separator + regResourceProject + File.separator +\n fileName;\n File resourceFile = new File(resourceFilePath);\n if (resourceFile.exists()) {\n fileExists = true;\n break;\n }\n }\n if (!fileExists) {\n displayUserError(RESGISTRY_RESOURCE_RETRIVING_ERROR, NO_SUCH_RESOURCE_EXISTS);\n }\n return resourceFilePath;\n }", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public String getDatabaseLocation() {\n return txtDatabaseLocation().getText();\n }", "public String getPath() {\n\t\treturn file.getPath();\n\t}", "public IPath getLogLocation() throws IllegalStateException {\n \t\t//make sure the log location is initialized if the instance location is known\n \t\tif (isInstanceLocationSet())\n \t\t\tassertLocationInitialized();\n \t\tFrameworkLog log = Activator.getDefault().getFrameworkLog();\n \t\tif (log != null) {\n \t\t\tjava.io.File file = log.getFile();\n \t\t\tif (file != null)\n \t\t\t\treturn new Path(file.getAbsolutePath());\n \t\t}\n \t\tif (location == null)\n \t\t\tthrow new IllegalStateException(CommonMessages.meta_instanceDataUnspecified);\n \t\treturn location.append(F_META_AREA).append(F_LOG);\n \t}", "public String getSelectedProjectName(){\n\t\treturn DataManager.getProjectFolderName();\n\t}", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "public String getDestLocation() {\r\n return this.destPath.getText();\r\n }", "private String getRepositoryPath() {\n if (repoPath != null) {\n return repoPath;\n }\n\n final String pathProp = System.getProperty(SYSTEM_PATH_PROPERTY);\n\n if (pathProp == null || pathProp.isEmpty()) {\n repoPath = getWorkingDirectory();\n } else if (pathProp.charAt(0) == '.') {\n // relative path\n repoPath = getWorkingDirectory() + System.getProperty(\"file.separator\") + pathProp;\n } else {\n repoPath = RepoUtils.stripFileProtocol(pathProp);\n }\n\n log.info(\"Using repository path: \" + repoPath);\n return repoPath;\n }", "public com.google.protobuf.ByteString\n getCurrentPathBytes() {\n java.lang.Object ref = currentPath_;\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 currentPath_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOutputPath () \n\t{\n\t\treturn outputPathTextField.getText();\n\t}" ]
[ "0.7102287", "0.6950947", "0.6947353", "0.6914966", "0.68926084", "0.6748572", "0.664753", "0.6609904", "0.6576426", "0.6508395", "0.64459044", "0.64320666", "0.6412442", "0.6362435", "0.63222814", "0.6303525", "0.6296305", "0.6287957", "0.6276368", "0.6246805", "0.6242935", "0.6233486", "0.622454", "0.6200629", "0.61937135", "0.61899346", "0.6188552", "0.6144123", "0.61417294", "0.6134596", "0.6132756", "0.61133116", "0.60962087", "0.60723156", "0.60579866", "0.6055438", "0.6038556", "0.60385156", "0.6022139", "0.6018687", "0.6002161", "0.59877515", "0.5984567", "0.59780383", "0.59666145", "0.59593165", "0.5958649", "0.5956234", "0.594884", "0.5931907", "0.5902306", "0.58874", "0.5877276", "0.58706415", "0.586963", "0.58474356", "0.5845014", "0.5845014", "0.5830366", "0.5829319", "0.5822749", "0.5817897", "0.5817897", "0.58111626", "0.5803077", "0.5794228", "0.5789567", "0.5788435", "0.5777683", "0.5773809", "0.576158", "0.57498807", "0.57477844", "0.5744374", "0.57408094", "0.57331187", "0.57273376", "0.57269955", "0.5720684", "0.5715097", "0.5709421", "0.5706399", "0.56990546", "0.5698871", "0.56973344", "0.56967235", "0.56967235", "0.56907", "0.5685114", "0.5668494", "0.5666705", "0.56624097", "0.56579566", "0.56508327", "0.5645989", "0.5644014", "0.56401813", "0.56397283", "0.56395364", "0.5639" ]
0.8372531
0
Gets the value of the "previousProjects" node
public static String GetPreviousProjects() { String previousProjects = ""; if (applicationSettingsFile != null) { // Get all "files" NodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName("previousProjects"); // Handle result if (lastProject.getLength() > 0) { previousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), "value"); } } return previousProjects; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public node getPrevious() {\n\t\t\treturn previous;\n\t\t}", "public Node getPrevious() {\n return previous;\n }", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }", "public int getPrevNode() {\n\t\treturn this.previousNode;\n\t}", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "public MyNode<? super E> getPrevious()\n\t{\n\t\treturn this.previous;\n\t}", "public Node getPrev()\n {\n return this.prev;\n }", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}", "public Node getPrev() {\n return prev;\n }", "public DoublyLinkedNode<E> getPrevious() {\n return prevNode;\n }", "public AStarNode getPrevious() {\n return previous;\n }", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "SolutionChange getPreviousChange();", "public Integer getPreviousValue() {\n return this.previousValue;\n }", "public static String GetLastOpenedProject() {\n\t\tString lastOpenedProjectPath = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"lastProject\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tlastOpenedProjectPath = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn lastOpenedProjectPath;\n\t}", "public Content getNavLinkPrevious() {\n Content li;\n if (prev != null) {\n Content prevLink = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS, prev)\n .label(prevclassLabel).strong(true));\n li = HtmlTree.LI(prevLink);\n }\n else\n li = HtmlTree.LI(prevclassLabel);\n return li;\n }", "int getPrev(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 1);\n\t}", "public int getPrevious() {\n\t\treturn this.previous;\n\t}", "public Node getPrev() {\n return null;\n }", "public Node<T> getPrev() {\n\t\treturn prev;\n\t}", "private String getPreviousRevision(final Project project) {\n List<Measure> measures = getPreviousMeasures(project, CoreMetrics.SCM_REVISION, CoreMetrics.SCM_LAST_COMMIT_DATE);\n if (measures.size()==2) {\n for (Measure measure : measures) {\n if (measure.getMetric().equals(CoreMetrics.SCM_REVISION)) {\n return measure.getData();\n }\n }\n }\n return null;\n }", "@Override\n public E getPrevious() {\n if (isCurrent() && prev != null) { return prev.getData(); }\n else { throw new IllegalStateException(\"There is no previous element.\"); }\n }", "public Node<T> previous() {\r\n return previous;\r\n }", "public Version getPrev(){\n\t\treturn prev;\n\t}", "public Node<T> getPrevNode() {\n\t\treturn prevNode;\n\t}", "public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "public String getPreviousToken() {\n return previousToken;\n }", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public DoubleNode<T> getPrevious()\n {\n\n return previous;\n }", "String getPrevious();", "public static Result prev() {\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString username = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision previousDecision = CMSGuidedFormFill.getPreviousDecision(\r\n\t\t\t\tformName, username, idCurrentNode);\r\n\r\n\t\treturn ok(backdrop.render(previousDecision));\r\n\t}", "public T prev() {\n cursor = ((Entry<T>) cursor).prev;\n ready = true;\n return cursor.element;\n }", "@NotNull\n @JsonProperty(\"previousValue\")\n public String getPreviousValue();", "public AbstractPathElement<V, E> getPrevPathElement()\r\n/* */ {\r\n/* 188 */ return this.prevPathElement;\r\n/* */ }", "public static Previous getPreviousWindow() {\n\t\treturn previousWindow;\n\t}", "public DNode getPrev() { return prev; }", "private Token previous() {\n return tokens.get(current-1);\n }", "public int getPreviousScene(){\n\t\treturn _previousScene;\n\t}", "public static Player getPrevPlayer(){\n\t\tif(players.get(curr).getPnum()==1)\n\t\t\treturn players.get(players.size()-1);\n\t\telse return players.get(curr-1);\n\t}", "@Field(0) \n\tpublic Pointer<uvc_processing_unit > prev() {\n\t\treturn this.io.getPointerField(this, 0);\n\t}", "public Node<S> getPrev() { return prev; }", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public TreeNode getPreviousSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index > 0) {\r\n return parent.children.get(index - 1);\r\n }\r\n }\r\n\r\n return null;\r\n }", "@JsonProperty(\"previous_sibling\")\n @ApiModelProperty(value = \"The previous dialog node.\")\n public String getPreviousSibling() {\n return previousSibling;\n }", "@Override\n public E previous() throws NoSuchElementException\n { \n if(hasPrevious() == false)\n {\n throw new NoSuchElementException();\n }\n idx = idx - 1;\n Node theNode = getNth(idx);\n left = left.prev;\n right = left;\n canRemove = false;\n forward = false;\n return theNode.getElement(); \n }", "public E previous(){\n\t\t\tE e = tail.element;\n\t\t\tcurrent = current.next;\n\t\t\treturn e;\n\t\t}", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "public Vertex getPrev() {\n return prev;\n }", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "public String getProjectno() {\r\n return projectno;\r\n }", "public String getPrevHashValue() {\n return prevHashValue;\n }", "public E previous() {\r\n current--;\r\n return elem[current];\r\n }", "public Token getPreviousToken() {\n return previousToken;\n }", "public static void RemoveProjectFromPreviousProjects(String projectToRemove) {\n\t\t// Get the <root> element of the Document\n\t\torg.w3c.dom.Element root = applicationSettingsFile.getDocumentElement();\n\n\t\t// Handle the \"previousProject\"\n\t\tNode previousLastProject = null;\n\t\tString previousLastProjectValue = null;\n\t\ttry {\n\t\t\t// Get the previous last opened project\n\t\t\tpreviousLastProject = root.getElementsByTagName(\"lastProject\").item(0);\n\t\t\t// Get the previous last opened project's value\n\t\t\tpreviousLastProjectValue = previousLastProject.getAttributes().getNamedItem(\"value\").getNodeValue();\n\t\t\t// Remove the previous last opened project\n\t\t\troot.removeChild(previousLastProject);\n\t\t}\n\t\tcatch (Exception e) { /* do nothing */ }\n\t\t// Create a child node of root: <lastProject value=\"{path}\">\n\t\torg.w3c.dom.Element lastProjectNode = applicationSettingsFile.createElement(\"lastProject\");\n\t\tif (previousLastProjectValue == projectToRemove) {\n\t\t\tlastProjectNode.setAttribute(\"value\", \"\");\n\t\t}\n\t\telse {\n\t\t\tlastProjectNode.setAttribute(\"value\", previousLastProjectValue);\n\t\t}\n\t\t// Add the node to the root element\n\t root.appendChild(lastProjectNode);\n\n\t\t// Handle the \"previousProjects\"\n\t\tNode previousProjects = null;\n\t String previousProjectsValue = null;\n\t\ttry {\n\t\t\t// Get the previous projects\n\t \tpreviousProjects = root.getElementsByTagName(\"previousProjects\").item(0);\n\t \t// Get the previous projects' value\n\t \tpreviousProjectsValue = previousProjects.getAttributes().getNamedItem(\"value\").getNodeValue();\n\t \t// Remove the previous last projects\n\t \troot.removeChild(previousProjects);\n\t\t}\n\t\tcatch (Exception e) { /* do nothing*/ }\n\t\t// Remove the projectToRemove from previousProjectsValue\n\t\tif (previousProjectsValue != null) {\n\t\t\tif (previousProjectsValue.contains(projectToRemove)) {\n\t\t\t\tpreviousProjectsValue = previousProjectsValue.replace(projectToRemove, \"\");\n\t\t\t\tpreviousProjectsValue = previousProjectsValue.replace(\",,\", \",\");\n\t\t\t}\n\t\t\t// Remove any leading commas\n \tif (previousProjectsValue.startsWith(\",\")) {\n \t\t\tpreviousProjectsValue = previousProjectsValue.substring(1);\n \t\t}\n \t// Remove any trailing commas\n \tif (previousProjectsValue.endsWith(\",\")) {\n \t\tpreviousProjectsValue = previousProjectsValue.substring(0, previousProjectsValue.length()-1);\n \t}\n\t\t}\n\t\t// Create a child node of root: <lastProject value=\"{path},{path},etc\">\n \torg.w3c.dom.Element previousProjectsNode = applicationSettingsFile.createElement(\"previousProjects\");\n \tpreviousProjectsNode.setAttribute(\"value\", previousProjectsValue);\n \t// Add the node to the root element\n\t root.appendChild(previousProjectsNode);\n\n\t\t// Save document to disk\n\t Utilities.writeDocumentToFile(applicationSettingsFile, new File(applicationSettingsFilePath));\n\t}", "public PlayerPosition getPrevious() {\n\n\t\tswitch (this) {\n\t\t\tcase BOTTOM:\n\t\t\t\treturn RIGHT;\n\t\t\tcase LEFT:\n\t\t\t\treturn BOTTOM;\n\t\t\tcase TOP:\n\t\t\t\treturn LEFT;\n\t\t\tcase RIGHT:\n\t\t\t\treturn TOP;\n\t\t\tdefault:\n\t\t\t\t// must not happen\n\t\t\t\treturn null;\n\t\t}\n\t}", "public Vertex getPrevious(){\n return previous;\n }", "public PrevPage getPP(){\r\n\t\treturn ppage;\r\n\t}", "@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "@Basic\n\tpublic String getPrevMove() {\n\t\treturn prev_move;\n\t}", "public Page getPrevPageObject() {\n return getPageObject(this.currentIndex.viewIndex - 1);\n }", "public List getPrevList() {\n\t\treturn prevList;\n\t}", "public Index previous() {\n return Index.valueOf(value - 1);\n }", "Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);", "public ProjectModel getCurrentProject() {\n if (projects.size() > 0) {\n return projects.get(0);\n }\n else return null;\n }", "protected JButton getPrevious()\n {\n return previous;\n }", "public int getAD_Tree_Project_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Project_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String projectNumber() {\n return this.projectNumber;\n }", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "public String getBackwardNode() {\r\n\t\ttry {\r\n\t\t\treturn path.getPreviousNode(procNode);\r\n\t\t} catch (Exception e) {return null; /* In case of an error!*/}\r\n\t}", "public Position2D getPreviousPosition()\n {\n return previousPosition;\n }", "public Number getProjectId() {\n return (Number) getAttributeInternal(PROJECTID);\n }", "public T previous() {\n\t\t\tif(hasPrevious()) {\n\t\t\t\tT temp = vector.elementAt(previousPosition);\n\t\t\t\tpreviousPosition++;\n\t\t\t\tnextPosition++;\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t}", "public String getProjectName() {\r\n return this.projectName;\r\n }", "@Override\r\n\t\tpublic Node getPreviousSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n public String getPreviousSelectedTopComponentID() {\n synchronized(LOCK_TOPCOMPONENTS) {\n return topComponentSubModel.getPreviousSelectedTopComponentID();\n }\n }", "public String projectName() {\n return this.projectName;\n }", "public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Node getPreviousSibling() {\n\t\treturn null;\n\t}", "public DListNode2 prev(){\r\n return this.prev;\r\n }", "public T previous() {\r\n\t\t// aktu == null ist dann, wenn aktu einen schritt zuvor first war;\r\n\t\tif (aktu == null) {\r\n\t\t\treturn null;\r\n\t\t} else if (first.equals(aktu)) {\r\n\t\t\t// wir sind am Ende, deswegen setzen wir aktu auf null (für die\r\n\t\t\t// Abfrage oberhalb) und geben den ersten Wert zurück;\r\n\t\t\taktu = null;\r\n\t\t\treturn (T) first.getData();\r\n\t\t} else if (first.equals(aktu.getPrevious())) {\r\n\t\t\t// überprüft, ob der Knoten vor dem aktuellen der letzte ist, dass\r\n\t\t\t// hat den Grund, dass beim letzten die Methode .getPrevios eine\r\n\t\t\t// NullPointerException wirft;\r\n\t\t\taktu = first;\r\n\t\t\treturn (T) first.getNext().getData();\r\n\t\t} else {\r\n\t\t\t// das ist der Standardfall solange der nicht beim vorletzten Knoten\r\n\t\t\t// angekommen ist.\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t\treturn (T) aktu.getNext().getData();\r\n\t\t}\r\n\r\n\t}", "Object previous();", "@Field(0) \n\tpublic uvc_processing_unit prev(Pointer<uvc_processing_unit > prev) {\n\t\tthis.io.setPointerField(this, 0, prev);\n\t\treturn this;\n\t}", "public\tString\tgetPreviousSignature() {\n\t\t\treturn\tthis.prevSignature;\n\t\t}", "public int getPreviousHop() {\n return previousHop;\n }", "public static void SetLastOpenedProject(String path) {\n\t\t// Get the <root> element of the Document\n\t\torg.w3c.dom.Element root = applicationSettingsFile.getDocumentElement();\n\n\t\t// Handle the \"previousProject\"\n\t\tNode previousLastProject = null;\n\t\tString previousLastProjectValue = null;\n\t\ttry {\n\t\t\t// Get the previous last opened project\n\t\t\tpreviousLastProject = root.getElementsByTagName(\"lastProject\").item(0);\n\t\t\t// Get the previous last opened project's value\n\t\t\tpreviousLastProjectValue = previousLastProject.getAttributes().getNamedItem(\"value\").getNodeValue();\n\t\t\t// Remove the previous last opened project\n\t\t\troot.removeChild(previousLastProject);\n\t\t}\n\t\tcatch (Exception e) { /* do nothing */ }\n\t\t// Create a child node of root: <lastProject value=\"{path}\">\n\t\torg.w3c.dom.Element lastProjectNode = applicationSettingsFile.createElement(\"lastProject\");\n\t\tlastProjectNode.setAttribute(\"value\", path);\n\t\t// Add the node to the root element\n\t root.appendChild(lastProjectNode);\n\n\t\t// Handle the \"previousProjects\"\n\t\tNode previousProjects = null;\n\t String previousProjectsValue = null;\n\t\ttry {\n\t\t\t// Get the previous projects\n\t \tpreviousProjects = root.getElementsByTagName(\"previousProjects\").item(0);\n\t \t// Get the previous projects' value\n\t \tpreviousProjectsValue = previousProjects.getAttributes().getNamedItem(\"value\").getNodeValue();\n\t \t// Remove the previous last projects\n\t \troot.removeChild(previousProjects);\n\t\t}\n\t\tcatch (Exception e) { /* do nothing*/ }\n\t\t// Move the old previousProject to the previousProjects\n\t\tif (previousLastProjectValue != null) {\n\t\t\tpreviousProjectsValue = previousProjectsValue + \",\" + previousLastProjectValue;\n\t\t}\n\t\t// Remove the [new] previousProject if contained in previousProjectsValue\n \tif (previousProjectsValue != null) {\n \t\tif(previousProjectsValue.contains(path)) {\n \t\t\tpreviousProjectsValue = previousProjectsValue.replace(path, \"\");\n \t\t\tpreviousProjectsValue = previousProjectsValue.replace(\",,\", \",\");\n \t\t}\n \t\t// Remove any leading commas\n \tif (previousProjectsValue.startsWith(\",\")) {\n \t\t\tpreviousProjectsValue = previousProjectsValue.substring(1);\n \t\t}\n \t}\n \t// Create a child node of root: <lastProject value=\"{path},{path},etc\">\n \torg.w3c.dom.Element previousProjectsNode = applicationSettingsFile.createElement(\"previousProjects\");\n \tpreviousProjectsNode.setAttribute(\"value\", previousProjectsValue);\n \t// Add the node to the root element\n\t root.appendChild(previousProjectsNode);\n\n\t\t// Save document to disk\n\t Utilities.writeDocumentToFile(applicationSettingsFile, new File(applicationSettingsFilePath));\n\t}", "public MavenProject removeForkedProject()\n {\n if ( !forkedProjectStack.isEmpty() )\n {\n MavenProject lastCurrent = currentProject;\n currentProject = (MavenProject) forkedProjectStack.pop();\n\n return lastCurrent;\n }\n\n return null;\n }", "public int getC_Project_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Project_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String projectId() {\n return this.projectId;\n }", "public K prev();", "@Nonnull\n public Optional<ENTITY> previous()\n {\n currentItem = Optional.of(items.get(--index));\n update();\n return currentItem;\n }", "private void prevButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prevButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }", "private\t\tMiContainerIterator getPreviousIterator()\n\t\t{\n\t\tif (startAtTop)\n\t\t\t{\n\t\t\twhile (++layerNum <= editor.getNumberOfLayers() - 1)\n\t\t\t\t{\n\t\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t\t{\n\t\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn(null);\n\t\t\t}\n\t\twhile (--layerNum >= 0)\n\t\t\t{\n\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t{\n\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t}\n\t\t\t}\n\t\treturn(null);\n\t\t}", "public Color getPrevColor(){\n\t\treturn prevColor;\n\t}", "protected abstract IssueLink getPreviousIssue();", "String getPrevMoves() {\n return this.prevMoves;\n }", "public\t\tMiPart\t\tgetPrevious()\n\t\t{\n\t\tMiPart obj = iterator.getPrevious();\n\t\twhile ((obj == null) || ((filter != null) && ((obj = filter.accept(obj)) == null)))\n\t\t\t{\n\t\t\tif (!hasLayers)\n\t\t\t\treturn(null);\n\t\t\tif (!iterateThroughAllLayers)\n\t\t\t\treturn(null);\n\t\t\tMiContainerIterator iter = getPreviousIterator();\n\t\t\tif (iter == null)\n\t\t\t\treturn(null);\n\t\t\titerator = iter;\n\t\t\tobj = iterator.getPrevious();\n\t\t\t}\n\t\treturn(obj);\n\t\t}", "public java.lang.String getProjectId() {\n java.lang.Object ref = projectId_;\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 projectId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }" ]
[ "0.6729995", "0.658587", "0.64816135", "0.6477995", "0.6474306", "0.6437874", "0.64017695", "0.6386294", "0.63851994", "0.6355644", "0.6344441", "0.6324204", "0.62895244", "0.6261144", "0.62538075", "0.6240149", "0.6235945", "0.6227473", "0.62264556", "0.62149334", "0.62058777", "0.62048644", "0.6202416", "0.6189302", "0.61834455", "0.6181734", "0.61138314", "0.6108245", "0.6095344", "0.6072514", "0.60521775", "0.603925", "0.60352093", "0.6025129", "0.60152024", "0.6003848", "0.5999441", "0.59943867", "0.5986674", "0.59387994", "0.5935285", "0.59231824", "0.59151137", "0.59026235", "0.5887086", "0.58698833", "0.5861466", "0.5850253", "0.58445626", "0.5837897", "0.58237034", "0.57962483", "0.57960016", "0.57896674", "0.577893", "0.5767448", "0.57322085", "0.5729938", "0.57275003", "0.57153887", "0.57054347", "0.5683222", "0.5677228", "0.5675135", "0.567181", "0.5660198", "0.56456655", "0.5643651", "0.56378293", "0.56272256", "0.5615557", "0.55564934", "0.5554588", "0.5549467", "0.5534851", "0.55196726", "0.54968673", "0.54719794", "0.54545707", "0.545383", "0.5444752", "0.5425528", "0.54220814", "0.54213834", "0.54110265", "0.5406848", "0.5406724", "0.54042405", "0.5403764", "0.5397227", "0.53949803", "0.5393474", "0.53795135", "0.53667635", "0.53643", "0.5363177", "0.53605634", "0.5343476", "0.53408056", "0.5336121" ]
0.8254383
0
Removes the given project from the previousProjects
public static void RemoveProjectFromPreviousProjects(String projectToRemove) { // Get the <root> element of the Document org.w3c.dom.Element root = applicationSettingsFile.getDocumentElement(); // Handle the "previousProject" Node previousLastProject = null; String previousLastProjectValue = null; try { // Get the previous last opened project previousLastProject = root.getElementsByTagName("lastProject").item(0); // Get the previous last opened project's value previousLastProjectValue = previousLastProject.getAttributes().getNamedItem("value").getNodeValue(); // Remove the previous last opened project root.removeChild(previousLastProject); } catch (Exception e) { /* do nothing */ } // Create a child node of root: <lastProject value="{path}"> org.w3c.dom.Element lastProjectNode = applicationSettingsFile.createElement("lastProject"); if (previousLastProjectValue == projectToRemove) { lastProjectNode.setAttribute("value", ""); } else { lastProjectNode.setAttribute("value", previousLastProjectValue); } // Add the node to the root element root.appendChild(lastProjectNode); // Handle the "previousProjects" Node previousProjects = null; String previousProjectsValue = null; try { // Get the previous projects previousProjects = root.getElementsByTagName("previousProjects").item(0); // Get the previous projects' value previousProjectsValue = previousProjects.getAttributes().getNamedItem("value").getNodeValue(); // Remove the previous last projects root.removeChild(previousProjects); } catch (Exception e) { /* do nothing*/ } // Remove the projectToRemove from previousProjectsValue if (previousProjectsValue != null) { if (previousProjectsValue.contains(projectToRemove)) { previousProjectsValue = previousProjectsValue.replace(projectToRemove, ""); previousProjectsValue = previousProjectsValue.replace(",,", ","); } // Remove any leading commas if (previousProjectsValue.startsWith(",")) { previousProjectsValue = previousProjectsValue.substring(1); } // Remove any trailing commas if (previousProjectsValue.endsWith(",")) { previousProjectsValue = previousProjectsValue.substring(0, previousProjectsValue.length()-1); } } // Create a child node of root: <lastProject value="{path},{path},etc"> org.w3c.dom.Element previousProjectsNode = applicationSettingsFile.createElement("previousProjects"); previousProjectsNode.setAttribute("value", previousProjectsValue); // Add the node to the root element root.appendChild(previousProjectsNode); // Save document to disk Utilities.writeDocumentToFile(applicationSettingsFile, new File(applicationSettingsFilePath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Integer removeProject(Integer projId) {\n\t\treturn sqlSession.delete(\"cn.sep.samp2.project.removeProject\", projId);\n\t}", "public void changeCurrProject(ProjectModel p) {\n \tprojects.remove(p);\n \tprojects.add(0, p);\n }", "public void removeProject(Project item){\n\t\tCollection<Task> delTasks = new ArrayList<Task>();\n\t\tfor ( Task task : m_Tasks ){\n\t\t\tif( task.project.equals(item.m_Name) ) delTasks.add(task);\n\t\t}\n\t\t\n\t\tfor(Task task: delTasks){\n\t\t\tm_Tasks.remove(task);\n\t\t}\n\t\tm_Projects.remove(item);\n\t}", "@Override\n\tpublic Integer delProject(ProjectInfo project) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.delProject\", project);\n\t}", "public MavenProject removeForkedProject()\n {\n if ( !forkedProjectStack.isEmpty() )\n {\n MavenProject lastCurrent = currentProject;\n currentProject = (MavenProject) forkedProjectStack.pop();\n\n return lastCurrent;\n }\n\n return null;\n }", "@Override\n public void removeProject(Project project) {\n TracCommand command = new TracRemoveProjectCommand(configuration, project);\n try {\n success = executor.executeSync(command);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n logger.error(e.getMessage(), e);\n }\n }", "void deleteProject(String projectKey);", "public void clearProject()\n\t{\n\t\tstoreViewState();\n\t\tproject.clearProject();\n\t\tcheckStatus();\n\t}", "public void deleteProject(Long projectId);", "public void removeProjectEntries(String serviceName);", "public static void deleteAndRevert(IProject project) throws CoreException {\n deleteAndRevert(new IProject[] { project });\n }", "public void removeChipFromProjectAndPutItIntoAnother(Subproject fromProject, Subproject toProject) {\n\t\tif(fromProject.chipCanBeRemoved()){\n\t\t\tChip removedChip=fromProject.removeLastChip();\n\t\t\tcurrent.raiseScore(toProject.setChip(removedChip).getAmountSZT());\n\t\t}\n\t}", "public static void SetLastOpenedProject(String path) {\n\t\t// Get the <root> element of the Document\n\t\torg.w3c.dom.Element root = applicationSettingsFile.getDocumentElement();\n\n\t\t// Handle the \"previousProject\"\n\t\tNode previousLastProject = null;\n\t\tString previousLastProjectValue = null;\n\t\ttry {\n\t\t\t// Get the previous last opened project\n\t\t\tpreviousLastProject = root.getElementsByTagName(\"lastProject\").item(0);\n\t\t\t// Get the previous last opened project's value\n\t\t\tpreviousLastProjectValue = previousLastProject.getAttributes().getNamedItem(\"value\").getNodeValue();\n\t\t\t// Remove the previous last opened project\n\t\t\troot.removeChild(previousLastProject);\n\t\t}\n\t\tcatch (Exception e) { /* do nothing */ }\n\t\t// Create a child node of root: <lastProject value=\"{path}\">\n\t\torg.w3c.dom.Element lastProjectNode = applicationSettingsFile.createElement(\"lastProject\");\n\t\tlastProjectNode.setAttribute(\"value\", path);\n\t\t// Add the node to the root element\n\t root.appendChild(lastProjectNode);\n\n\t\t// Handle the \"previousProjects\"\n\t\tNode previousProjects = null;\n\t String previousProjectsValue = null;\n\t\ttry {\n\t\t\t// Get the previous projects\n\t \tpreviousProjects = root.getElementsByTagName(\"previousProjects\").item(0);\n\t \t// Get the previous projects' value\n\t \tpreviousProjectsValue = previousProjects.getAttributes().getNamedItem(\"value\").getNodeValue();\n\t \t// Remove the previous last projects\n\t \troot.removeChild(previousProjects);\n\t\t}\n\t\tcatch (Exception e) { /* do nothing*/ }\n\t\t// Move the old previousProject to the previousProjects\n\t\tif (previousLastProjectValue != null) {\n\t\t\tpreviousProjectsValue = previousProjectsValue + \",\" + previousLastProjectValue;\n\t\t}\n\t\t// Remove the [new] previousProject if contained in previousProjectsValue\n \tif (previousProjectsValue != null) {\n \t\tif(previousProjectsValue.contains(path)) {\n \t\t\tpreviousProjectsValue = previousProjectsValue.replace(path, \"\");\n \t\t\tpreviousProjectsValue = previousProjectsValue.replace(\",,\", \",\");\n \t\t}\n \t\t// Remove any leading commas\n \tif (previousProjectsValue.startsWith(\",\")) {\n \t\t\tpreviousProjectsValue = previousProjectsValue.substring(1);\n \t\t}\n \t}\n \t// Create a child node of root: <lastProject value=\"{path},{path},etc\">\n \torg.w3c.dom.Element previousProjectsNode = applicationSettingsFile.createElement(\"previousProjects\");\n \tpreviousProjectsNode.setAttribute(\"value\", previousProjectsValue);\n \t// Add the node to the root element\n\t root.appendChild(previousProjectsNode);\n\n\t\t// Save document to disk\n\t Utilities.writeDocumentToFile(applicationSettingsFile, new File(applicationSettingsFilePath));\n\t}", "public static void deleteAndRevert(IProject[] projects)\n throws CoreException {\n if (projects != null) {\n for (IProject project : projects) {\n if (project != null) {\n RevertAction revertAction = new RevertAction();\n revertAction.setAsync(false);\n revertAction.selectionChanged(null,\n new StructuredSelection(project));\n revertAction.runAction(false);\n\n if (project != null && project.exists()) {\n project.refreshLocal(IResource.DEPTH_INFINITE, null);\n project.accept(new IResourceVisitor() {\n\n public boolean visit(IResource resource)\n throws CoreException {\n ResourceAttributes attrs = resource\n .getResourceAttributes();\n if (attrs != null) {\n attrs.setReadOnly(false);\n try {\n resource.setResourceAttributes(attrs);\n } catch (CoreException e) {\n }\n }\n return true;\n }\n });\n project.delete(true, true, null);\n }\n }\n }\n }\n }", "public void setProject(Project project){\n\t\tthis.project = project;\n\t\tif (project!=null){\n\t\t\tfor (final Iterator it = project.getRoot().getProgresses ().iterator ();it.hasNext ();){\n\t\t\t\tnew com.ost.timekeeper.actions.commands.DeleteProgress ((Progress)it.next ()).execute ();\n\t\t\t}\n\t\t}\n\t\tif (project!=null){\n\t\t\tthis.setSelectedItem (project.getRoot());\n\t\t} else {\n\t\t\tthis.setSelectedItem (null);\n\t\t}\n\t\t//notifica cambiamento di progetto\n\t\tsynchronized (this){\n\t\t\tthis.setChanged();\n\t\t\tthis.notifyObservers(ObserverCodes.PROJECTCHANGE);\n\t\t}\n\t}", "public static void removeSearchBase(Project project){\n searchBase.remove(project);\n // 223003 - memory leaked project instance \n fileNameSearchBase.remove(project); // prevent leak\n }", "public void removeSelectedAction() {\n\t\tfinal List<Project> selectedItems = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (!selectedItems.isEmpty()) {\n\t\t\tfinal Project[] items = selectedItems.toArray(new Project[selectedItems.size()]);\n\t\t\tfinal Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t\t\talert.initOwner(getWindow());\n\t\t\tif (selectedItems.size() > 1) {\n\t\t\t\talert.setTitle(String.format(\"Remove selected Projects from list? - %s items selected\",\n\t\t\t\t\t\tselectedItems.size()));\n\t\t\t} else {\n\t\t\t\talert.setTitle(\"Remove selected Project from list? - 1 item selected\");\n\t\t\t}\n\t\t\talert.setHeaderText(\"\"\"\n\t\t\t Are you sure you want to remove the selected projects?\n\t\t\t This will not remove any files from the project.\n\t\t\t \"\"\");\n\t\t\tfinal Optional<ButtonType> result = alert.showAndWait();\n\t\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\tfor (final Project p : items) {\n\t\t\t\t\tprojectService.deleteProject(p);\n\t\t\t\t\tprojectsObservable.remove(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void archiveProject(final Project project) {\n\t\t// TODO RemoveWorkerFromProject löschen\n\t\tfinal ArrayList<Task> tasks = getProjectTasks(project);\n\t\tif (!tasks.isEmpty()) {\n\t\t\tfinal TaskController taskController = mainController.getTaskController();\n\t\t\ttaskController.removeWorker(tasks.get(0));\n\t\t\tfor (final Task task : tasks) {\n\t\t\t\tif (task.getCurrentWorker() != null) {\n\t\t\t\t\ttaskController.removeWorker(task);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinal ArrayList<Worker> team = project.getWorkers();\n\t\tif (!team.isEmpty()) {\n\t\t\tfinal TeamController teamController = mainController.getTeamController();\n\t\t\tteamController.removeWorkerFromProject(project, team.get(0));\n\t\t\twhile (!team.isEmpty()) {\n\t\t\t\tteamController.removeWorkerFromProject(project, team.get(0));\n\t\t\t}\n\t\t}\n\t\tproject.setActive(false);\n\t}", "public Subproject drawProject() {\n\t\tSubproject result=projectsAvailable.get(0);\n\t\tprojectsAvailable.remove(result);\n\t\tprojectsActive.add(result);\n\t\treturn result;\n\t}", "public void finishProject(Subproject project) {\n\t\tfor(Player p:players) {\n\t\t\tif(p!=current) {\n\t\t\t\tp.lowerScore(project.getFinishField().getAmountSZT());\n\t\t\t\tcurrent.raiseScore(project.getFinishField().getAmountSZT());\n\t\t\t}\n\t\t}\n\t\tproject.finishProject();\n\t\tprojectsFinished.add(project);\n\t\tprojectsActive.remove(project);\n\t}", "private void unloadProject()\n {\n if (projectBuilder != null) {\n projectBuilder.database.close();\n projectBuilder = null;\n }\n\n if (projectSettingsPanel != null) {\n Container container = projectSettingsPanel.getParent();\n if (container != null)\n container.remove(projectSettingsPanel);\n projectSettingsPanel = null;\n }\n\n projectSettingsContainer.removeAll();\n generateButton.setEnabled(false);\n\n project = null;\n }", "void removeFromMyProjects(String userId,\n String projectGUID) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;", "public void remove2ChipsFromProjectsAndAddToPlayer(Subproject projectA, Subproject projectB) {\n\t\tcurrent.addChip(projectA.removeLastChip());\n\t\tcurrent.addChip(projectB.removeLastChip());\n\t}", "public void deleteTemporaryProject() throws CoreException{\n\t\tString versionName = DataManager.getProjectVersion();\n\t\tajdtHandler.deleteProject(versionName);\n\t\t\n\t\tif(versionName.contains(\"_Old\")){\n\t\t\tversionName = versionName.replace(\"_Old\", \"\");\n\t\t\tajdtHandler.deleteProject(versionName);\n\t\t}\n\t\t\n\t}", "public void removeProjectActions(com.hps.july.persistence.ProjectAction arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().removeProjectActions(arg0);\n }", "public void deleteProject(String projectId) {\n\t\tString args[] = { projectId };\n\n\t\t// delete tasks\n\t\tdatabase.delete(Constants.TABLE_TASKS, Constants.COLUMN_PROJECTS_ID + \" = ?\", args);\n\n\t\t// delete the project\n\t\tdatabase.delete(Constants.TABLE_PROJECTS, Constants.COLUMN_ID + \" = ?\", args);\n\t}", "void deleteTrackerProjects(final Integer id);", "@Override\r\n\tpublic int deleteProject(Map<String, Object> map) throws Exception {\n\t\treturn 0;\r\n\t}", "public static String GetPreviousProjects() {\n\t\tString previousProjects = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"previousProjects\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tpreviousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn previousProjects;\n\t}", "protected void reset(Project dto) {}", "public boolean deleteProject(Project p) {\n try {\n String delete = \"DELETE FROM PROJECTS WHERE PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(delete);\n ps.setString(1, p.getProjectId());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(frame, \n\t\t\t\t\t\t\"Do you want to delete the selected projects?\\nThis action cannot be undone!\", \n\t\t\t\t\t\t\"Delete Selected\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\t\t\t\tif(choice == 0){\n\t\t\t\t\tSystem.out.println(\"Delete\");\n\t\t\t\t\tString[] selected = sel.getSelected(); \n\t\t\t\t\tfor(int i=0;i<selected.length;i++) {\n\t\t\t\t\t\n\t\t\t\t\t\tint index = portfolio.findByCode(selected[i]);\n\t\t\t\t\t\tportfolio.remove(index, config.isUpdateDB());\n\t\t\t\t\t\tsel.remove(index);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\ttoggleSaved(false);\n\t\t\t}", "public void projectClosed() {\n finaliseToolWindow();\n this.project = null;\n }", "void discardBackupWorkspace(String projectId, String workspaceId, WorkspaceType workspaceType);", "protected void removeWorkspace( String workspaceName ) {\n }", "public void removePrevCardList(){\n for (int i = 0; i < playerCardList.getPlayerCardListSize(); i++){\n playerCardPuzzle.getChildren().remove(playerCardList.getPlayerCardByNo(i));\n }\n }", "@Override\n\tpublic Integer delProjectBatch(List<ProjectInfo> projList) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.delProjectBatch\", projList);\n\t}", "public void removeInterpreter(String projectName) {\n\t\ttry {\n\t\t\tSWTBotShell shell = openLibraryTab(projectName);\n\n\t\t\tSWTBotTree librariesBot = getBot().treeWithLabel(\n\t\t\t\t\tTREE_INTERPRETER_LIBS);\n\t\t\tcheckInterprLib(librariesBot, DltkTestsHelper.DEF_INTERPRETER_ID);\n\n\t\t\t// librariesBot.select(0);\n\t\t\tlibrariesBot.getAllItems()[0].select();\n\t\t\tgetBot().button(BTN_REMOVE).click();\n\t\t\tString errorMessage = ErrorMessages.Interpreter_errInterprLibFound;\n\t\t\tSWTBotTestCase.assertFalse(errorMessage, librariesBot.hasItems());\n\n\t\t\twaitEnableAndClick(BTN_OK);\n\t\t\tgetBot().waitUntil(Conditions.shellCloses(shell));\n\n\t\t\tSWTBotTreeItem projectBot = getProjectItem(projectName);\n\t\t\tString nodeText = createInterpLibNodeName(DltkTestsHelper.DEF_INTERPRETER_ID);\n\t\t\t// TODO\n\t\t\t// SWTBotTestCase.assertNull(\n\t\t\t// ErrorMessages.Interpreter_errInterprLibFound, projectBot\n\t\t\t// .expand().getNode(nodeText));\n\t\t} catch (WidgetNotFoundException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t} catch (TimeoutException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t}\n\t}", "public RemovePersonAction(ProjectPanel projectPanel) {\n\t\tthis.projectPanel = projectPanel;\n\t}", "public void removeProjectChangedListener(final ProjectChangedListener\r\n listener) {\r\n if (listener != null) {\r\n final Vector listeners = getProjectChangedListeners();\r\n listeners.remove(listener);\r\n }\r\n }", "private void loadProjects() {\n observableProjects.clear();\n dateFind.setValue(null);\n observableProjects.addAll(getProject());\n table.setItems(observableProjects);\n\n ControllersDataFactory.getLink().delete(CalendarController.class);\n }", "public void removeTeam(Team t) {\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n while (itr.hasNext()) {\r\n //Match to be removed\r\n if (itr.next().containsTeam(t)) {\r\n itr.remove();\r\n }\r\n }\r\n \r\n //Decremente the number of teams left\r\n Team.nbTeam--;\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\tPersonListModel plm = projectPanel.getModel();\n\t\tProject project = plm.getProject();\n\n\t\tint index = projectPanel.getSelectedElement();\n\t\tPerson person = project.getPerson(index);\n\t\tproject.removePerson(person);\n\t\t\n\t}", "public synchronized boolean removeIDsForProject(String projectName) {\n boolean retVal = store.removeIDsForProject(projectName);\n if (retVal) {\n scheduleSaveOfFileIdStore();\n }\n return retVal;\n }", "List<Project> getProjectsWithChanges(List<Project> projects);", "@Override\n\tpublic void deleteProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}", "void deleteByProjectId(Long projectId);", "public void createProject(Project newProject);", "public void abandonProject(ProjectWasAbandoned evt)throws InvalidProjectCommandException{\n validator.validate(this);\n this.closedDate = Optional.of(new Date());\n state = ProjectState.ABANDONED;\n UpdateProperties(evt.getProperties());\n ArrayList<Event> events = new ArrayList<Event>();\n events.add(new ProjectWasCompleted(this, evt.getProperties()));\n }", "public void secondaryRemoveProjectActions(com.hps.july.persistence.ProjectAction arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryRemoveProjectActions(arg0);\n }", "public void removeCurrent( )\n {\n // Implemented by student.\n }", "@Override\n\tpublic void windowClosing(WindowEvent we) \n\t{\n\t\tif(modelProject.readStateProject()[1])\n\t\t{\n\t\t\tif(viewProject.saveProjectDialog() == 0)\n\t\t\t{\n\t\t\t\tif(modelProject.readStateProject()[0])\n\t\t\t\t\tmodelProject.deleteProject();\n\t\t\t}\n\t\t\telse\n\t\t\t\tmodelProject.saveProject();\n\t\t}\n\t\tviewProject.closeProject();\n\t}", "public void deleteProject(int projectId)\n throws InexistentProjectException, SQLException, NoSignedInUserException,\n InexistentDatabaseEntityException, UnauthorisedOperationException {\n User currentUser = getMandatoryCurrentUser();\n Project project = getMandatoryProject(projectId);\n guaranteeUserIsSupervisor(\n currentUser, project, \"delete project\", \"they are not the \" + \"supervisor\");\n commentRepository.deleteAllCommentsOfProject(projectId);\n projectRepository.deleteProject(projectId);\n support.firePropertyChange(\n ProjectChangeablePropertyName.DELETE_PROJECT.toString(), OLD_VALUE, NEW_VALUE);\n }", "private void actionRemoveFile ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//---- Get currently selected file index in the combo box\r\n\t\t\tint index = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t//---- Remove the file from the project by its index\r\n\t\t\tDataController.scenarioRemoveFile(index);\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "public void setProjects(ProjectsList projects) {\n this.projects = projects.clone();\n }", "void remove(Team team);", "public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }", "public boolean deleteProject(String projectName, String userName, String password){\n\t\ttry{\n\t\t\t//Assert.assertTrue(CommonUtil.titleContains(\"Browse Projects\", Constants.EXPLICIT_WAIT_LOW), \"Browse Project Page title is not same.\");\n\t\t\t//logger.info(\"Browse Projects page is selected successfully.\");\n\t\t\t//allProjectsLink.click();\n\t\t\t//Assert.assertTrue(CommonUtil.visibilityOfElementLocated(\"//div[@id='none-panel' and @class='module inall active']\"));\n\t\t\tAssert.assertTrue(CommonUtil.searchTheTextInList(\".//*[@id='project-list']/descendant::a[contains(@id,'view-project-')]\", projectName), \"Project is not searched successfully.\");\n\t\t\tlogger.info(projectName + \" is Searched successfully.\");\n\t\t\t\n\t\t\tCommonUtil.navigateThroughXpath(\"//td[a[text()='\"+projectName+\"']]/following-sibling::td/descendant::a[contains(@id,'delete_project')]\");\n\t\t\tCommonUtil.implicitWait(Constants.IMPLICIT_WAIT_MEDIUM);\n\t\t\tif ( CommonUtil.getTitle().contains(\"Administrator Access\") ) {\n\t\t\t\tAssert.assertTrue( JiraAdministrationAuthenticatePage.getInstance().authenticateAdminPassword(userName, password), \"Jira Administrator is not authenticate successsfully.\" );\n\t\t\t\tCommonUtil.implicitWait(Constants.IMPLICIT_WAIT_MEDIUM);\n\t\t\t\tlogger.info(\"Administrator is authenticate successfully.\");\n\t\t\t}\n\t\t\tAssert.assertTrue(CommonUtil.getTextFromUIByXpath(\"//td/*[@class='formtitle']\").contains(\"Delete Project:\"), \"Delete project confirmation popup is not validated.\");\n\t\t\tlogger.info(\"Delete project confirmation popup is validated successfully.\");\n\t\t\tAssert.assertTrue(CommonUtil.getTextFromUIByXpath(\"//td/*[@class='formtitle']\").contains(projectName), \"Delete project name in popup is not validated.\");\n\t\t\tlogger.info(\"Delete project Name in confirmation popup is validated successfully.\");\n\t\t\tCommonUtil.navigateThroughXpath(\".//*[@id='delete_submit']\");\n\t\t\tCommonUtil.javaWait(Constants.JAVA_WAIT_MEDIUM);\n\t\t\t\n\t\t\t\n\t\t\tAssert.assertFalse(CommonUtil.searchTheTextInList(\".//*[@id='project-list']/descendant::a[contains(@id,'view-project-')]\", projectName), \"Project is still present After delete.\");\n\t\t\tlogger.info(projectName + \" is Deleted successfully.\");\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void removeFinArFundsInActionAppliedHistory(FinArFundsInActionAppliedHistory finArFundsInActionAppliedHistory);", "private static void deleteElement(RubyProjectElement element) {\r\n \t\tRubyProject projectInternal = element.getRubyProjectInternal();\r\n \t\tprojectInternal.getRubyElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \t}", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/projects\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionProject();", "public void discardTurnIn(int projectId, Project.Status newStatus)\n throws InexistentProjectException, SQLException, NoSignedInUserException,\n InexistentDatabaseEntityException, UnauthorisedOperationException,\n IllegalProjectStatusChangeException {\n Project project = getMandatoryProject(projectId);\n User currentUser = getMandatoryCurrentUser();\n if (project.getStatus() == Project.Status.TURNED_IN) {\n if (userIsSupervisor(currentUser, project)) {\n if (newStatus != Project.Status.FINISHED && newStatus != Project.Status.TURNED_IN) {\n project.setStatus(newStatus);\n projectRepository.updateProject(project);\n } else {\n throw new IllegalProjectStatusChangeException(project.getStatus(), newStatus);\n }\n } else {\n throw new UnauthorisedOperationException(\n currentUser.getId(), \"discard turn in\", \"they\" + \" are not the supervisor\");\n }\n } else {\n throw new IllegalProjectStatusChangeException(project.getStatus(), newStatus);\n }\n support.firePropertyChange(\n ProjectChangeablePropertyName.SET_PROJECT_STATUS.toString(), OLD_VALUE, NEW_VALUE);\n }", "public static void Clear(String projectID)\n\t{\n\t\t// Clear data for the project in firebase\n\t\tFirebaseService.clear(projectID);\n\n\t\t// retrieve the project key\n\t\tKey<Project> projectKey = Key.create(Project.class, projectID);\n\n\t\t// DELETE THE WORKERS\n\t\t// by an anchestor query\n\t\tIterable<Key<Worker>> workers = ofy().transactionless().load().type(Worker.class).ancestor(projectKey).keys();\n\t\tofy().transactionless().delete().keys(workers);\n\n\t\t// DELETE THE ARTIFACTS\n\t\t// filtering per projectId\n\t\tIterable<Key<Artifact>> artifacts = ofy().transactionless().load().type(Artifact.class).filter(\"projectId\",projectID).keys();\n\t\tofy().transactionless().delete().keys(artifacts);\n\n\t\t// DELETE THE MICROTASKS\n\t\t// filtering per projectId\n\t\tIterable<Key<Microtask>> microtasks = ofy().transactionless().load().type(Microtask.class).filter(\"projectId\",projectID).keys();\n\t\tofy().transactionless().delete().keys(microtasks);\n\n\t\t// finally delete the project\n\t\tofy().transactionless().delete().key(projectKey);\n\t}", "public void deleteFile() {\n\t\tif (JOptionPane.showConfirmDialog(desktopPane,\n\t\t\t\t\"Are you sure? this action is permanent!\") != JOptionPane.YES_OPTION)\n\t\t\treturn;\n\n\t\tEllowFile file = null;\n\t\tTreePath paths[] = getSelectionModel().getSelectionPaths();\n\t\tif (paths == null)\n\t\t\treturn;\n\t\tfor (TreePath path : paths) {\n\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) path\n\t\t\t\t\t.getLastPathComponent();\n\t\t\tfile = (EllowFile) node.getUserObject();\n\t\t\tEllowynProject project = file.parentProject;\n\t\t\tfile.deleteAll();\n\t\t\tif (!file.isProjectFile && project != null)\n\t\t\t\tproject.rebuild(); // don't rebuild the project if the project\n\t\t\t\t\t\t\t\t\t// itself is deleted\n\t\t\tdesktopPane.closeFrames(file);\n\t\t\tmodel.removeNodeFromParent(node);\n\t\t}\n\t}", "Map<Project, Boolean> deleteBranch(List<Project> projects, Branch deletedBranch, ProgressListener progressListener);", "public String deleteProjectQuery(String pID) \r\n\t{\r\n\t\tString query = \"DELETE FROM Project WHERE ProjectID = \\\"\"+pID+\"\\\"\";\r\n\t\tSystem.out.println(query);\r\n\t\treturn query;\r\n\t}", "public String deleteProjectQuery(String pID) \r\n\t{\r\n\t\tString query = \"DELETE FROM Project WHERE ProjectID = \\\"\"+pID+\"\\\"\";\r\n\t\tSystem.out.println(query);\r\n\t\treturn query;\r\n\t}", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/projects\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionProject(\n @QueryMap DeleteCollectionProject queryParameters);", "public void removeTeamMember(final Artifact artifact);", "private void removePrevNames(String name){\r\n\t\tif (prevNames.contains(name)){\r\n\t\t\tprevNames.remove(name);\r\n\t\t}\r\n\t}", "public void deleteExistingProfile(Long projectId) {\n\t\tProjectExistingProfile profile=new ProjectExistingProfile();\n\t\tprofile.setProjectId(projectId);\n\t\t\n\t\tthis.delete(profile);\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent ae) \n\t{\n\t\tif(ae.getActionCommand().equals(\"Create Project\"))\n\t\t{\n\t\t\tString s = null;\t\t\t\n\t\t\t\n\t\t\tif((s = viewProject.assignNameProjectDialog()) != null)\n\t\t\t{\n\t\t\t\tif(!modelProject.createProject(s))\n\t\t\t\t\tviewProject.errorDialog(\"Project already exists\");\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t/* ***VERBOSE****/\n\t\t\t\t\tif (verbose) System.out.println(\"apro il LateralPanel con s=\"+s);\n\t\t\t\t\t/* ***VERBOSE****/\n\t\t\t\t\t\n\t\t\t\t\tviewProject.loadPanelLateral(s, null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\telse if(ae.getActionCommand().equals(\"Delete Project\"))\n\t\t{\n\t\t\tviewProject.deleteProjectDialog();\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Load Project\"))\n\t\t{\n\t\t\tString s = null;\n\t\t\t\n\t\t\tif((s = viewProject.loadProjectDialog()) != null)\n\t\t\t\tviewProject.loadPanelLateral(\n\t\t\t\t\t\ts.substring(0, s.length() - 4), modelProject.loadProject(s));\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Save Project\"))\n\t\t{\n\t\t\tmodelProject.saveProject();\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Load File\"))\n\t\t{\n\t\t\tString [] s = null;\n\t\t\t\n\t\t\tif((s = viewProject.loadFileDialog()) != null)\n\t\t\t\tmodelProject.addFileProject(s[1]);\n\t\t\t\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Delete Selected File\"))\n\t\t{\n\t\t\tint i = -1;\n\t\t\t\n\t\t\tif((i = viewProject.deleteSelectedFileDialog()) != 1)\n\t\t\t\tmodelProject.removeFileProject(i);\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Delete File\"))\n\t\t{\n\t\t\tint i = -1;\n\t\t\t\n\t\t\tif((i = viewProject.deleteFileDialog()) != 1){\n\n\t\t\t\t/* ***VERBOSE *** */\n\t\t\t\tif(verbose) System.out.println(\"Ho ricevuto i=\"+i);\n\n\t\t\t\t/* ***VERBOSE *** */\n\n\t\t\t\tmodelProject.removeFileProject(i);\n\t\t\t}\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Extract Commonalities\"))\n\t\t{\n\t\t\tviewProject.extractCommonalitiesdDialog();\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Extract Variabilities\"))\n\t\t{\n\t\t\tviewProject.extractVariabilitiesDialog();\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Select Commonalities\"))\n\t\t{\n\t\t\tviewProject.showFeaturesSelected(ViewPanelCentral.FeatureType.COMMONALITIES);\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Select Variabilities\"))\n\t\t{\n\t\t\tviewProject.showFeaturesSelected(ViewPanelCentral.FeatureType.VARIABILITIES);\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Exit\"))\n\t\t{\n\t\t\tif(modelProject.readStateProject()[1])\n\t\t\t{\n\t\t\t\tif(viewProject.saveProjectDialog() == 0)\n\t\t\t\t{\n\t\t\t\t\tif(modelProject.readStateProject()[0])\n\t\t\t\t\t\tmodelProject.deleteProject();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tmodelProject.saveProject();\n\t\t\t}\n\t\t\tviewProject.closeProject();\n\t\t}\n\t\telse System.out.println(\"Unknown action: \"+ae.getActionCommand());\n\t}", "public OperationReference queueDeleteProject(\r\n final UUID projectId) {\r\n\r\n final UUID locationId = UUID.fromString(\"603fe2ac-9723-48b9-88ad-09305aa6c6e1\"); //$NON-NLS-1$\r\n final ApiResourceVersion apiVersion = new ApiResourceVersion(\"2.1\"); //$NON-NLS-1$\r\n\r\n final Map<String, Object> routeValues = new HashMap<String, Object>();\r\n routeValues.put(\"projectId\", projectId); //$NON-NLS-1$\r\n\r\n final Object httpRequest = super.createRequest(HttpMethod.DELETE,\r\n locationId,\r\n routeValues,\r\n apiVersion,\r\n APPLICATION_JSON_TYPE);\r\n\r\n return super.sendRequest(httpRequest, OperationReference.class);\r\n }", "public void removeTestCase(){\n\t\tgetSelectedPanel().removeSelectedTestCase(); \n\t}", "public String deleteProjectQuery(String username) \n\t{\n\t\tString query = \"DELETE FROM Project WHERE username=\\\"\"+username+\"\\\"\";\n\t\tSystem.out.println(query);\n\t\treturn query;\n\t}", "int modifyProject(Project project) throws WrongIDException, WrongDurationException;", "@DeleteMapping(\"/projects/{projectName:\" + Constants.ENTITY_ID_REGEX + \"}\")\n @Timed\n public ResponseEntity<?> deleteProject(@PathVariable String projectName)\n throws NotAuthorizedException {\n checkPermission(token, PROJECT_DELETE);\n log.debug(\"REST request to delete Project : {}\", projectName);\n ProjectDTO projectDto = projectService.findOneByName(projectName);\n checkPermissionOnOrganizationAndProject(token, PROJECT_DELETE,\n projectDto.getOrganization().getName(), projectDto.getProjectName());\n\n try {\n projectService.delete(projectDto.getId());\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, projectName))\n .build();\n } catch (DataIntegrityViolationException ex) {\n return ResponseEntity.badRequest()\n .body(new ErrorVM(ERR_PROJECT_NOT_EMPTY, ex.getMessage()));\n }\n }", "public void previousSolution() {\r\n\t\tif (solutionIndex > 0) {\r\n\t\t\tsolutionIndex--;\r\n\t\t\tcreateObjectDiagram(solutions.get(solutionIndex));\r\n\t\t} else {\r\n\t\t\tLOG.info(LogMessages.pagingFirst);\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/project/{id}\", method = RequestMethod.DELETE)\n\tpublic Response deleteProject(@PathVariable Integer id) {\n\t\tResponse response = new Response();\n\t\ttry {\n\t\t\tBoolean isDelete = projectService.removeProjectData(id);\n\t\t\tif (isDelete) {\n\t\t\t\tresponse.setCode(CustomResponse.SUCCESS.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.SUCCESS.getMessage());\n\t\t\t} else {\n\t\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\tlogger.error(\"error while project delete \", e);\n\t\t}\n\t\treturn response;\n\t}", "@Override\n\tpublic void deleteTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n\tpublic void cancelarProyecto(long idProject) throws ConectelException {\r\n\t\tProyectoDO project = entityManager.find(ProyectoDO.class, idProject);\r\n\t\tif (project == null) {\r\n\t\t\tthrow new ConectelException(\"El proyecto no existe\");\r\n\t\t}\r\n\t\tEstadoDO estado = new EstadoDO(EstadoProyecto.CANCELADO.getId());\r\n\t\tproject.setEstado(estado);\r\n\t\tentityManager.merge(project);\r\n\t}", "public void deleteProjectRecord(int pgId) {\n String sql = \"DELETE FROM Project_Commit_Record WHERE pgid=?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n preStmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void removeLayer(int index){\n history.removeIndex(index);\n historyValues.removeIndex(index);\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public static void removeNature(IProject project) {\n\n\t\t// Cannot modify closed projects.\n\t\tif (!project.isOpen())\n\t\t\treturn;\n\n\t\t// Get the description.\n\t\tIProjectDescription description;\n\t\ttry {\n\t\t\tdescription = project.getDescription();\n\t\t}\n\t\tcatch (CoreException e) {\n\t\t\tPTJavaLog.logError(e);\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine if the project has the nature.\n\t\tList<String> newIds = new ArrayList<String>();\n\t\tnewIds.addAll(Arrays.asList(description.getNatureIds()));\n\t\tint index = newIds.indexOf(NATURE_ID);\n\t\tif (index == -1)\n\t\t\treturn;\n \n\t\t// Remove the nature\n\t\tnewIds.remove(index);\n\t\tdescription.setNatureIds(newIds.toArray(new String[newIds.size()]));\n\n\t\t// Save the description.\n\t\ttry {\n\t\t\tproject.setDescription(description, null);\n\t\t}\n\t\tcatch (CoreException e) {\n\t\t\tPTJavaLog.logError(e);\n\t\t}\n\t}", "public void changeProject(ProjectWasChanged evt) throws InvalidProjectCommandException{\n validator.validate(this);\n UpdateProperties(evt.getProperties());\n ArrayList<Event> events = new ArrayList<Event>();\n events.add(new ProjectWasChanged(this, evt.getProperties()));\n }", "public void testProjectDelete() {\n \t\t// create the project\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\t// set some settings\n \t\tString qualifier = getUniqueString();\n \t\tString key = getUniqueString();\n \t\tString value = getUniqueString();\n \t\tIScopeContext context = new ProjectScope(project);\n \t\tPreferences node = context.getNode(qualifier);\n \t\tPreferences parent = node.parent().parent();\n \t\tnode.put(key, value);\n \t\tassertEquals(\"1.0\", value, node.get(key, null));\n \n \t\ttry {\n \t\t\t// delete the project\n \t\t\tproject.delete(IResource.FORCE | IResource.ALWAYS_DELETE_PROJECT_CONTENT, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.0\", e);\n \t\t}\n \n \t\ttry {\n \t\t\t// project pref should not exist\n \t\t\tassertTrue(\"3.0\", !parent.nodeExists(project.getName()));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"3.1\", e);\n \t\t}\n \n \t\t// create a project with the same name\n \t\tensureExistsInWorkspace(project, true);\n \n \t\t// ensure that the preference value is not set\n \t\tassertNull(\"4.0\", context.getNode(qualifier).get(key, null));\n \t}", "public org.apache.spark.sql.execution.SparkPlan pruneFilterProject (scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.NamedExpression> projectList, scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Expression> filterPredicates, scala.Function1<scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Expression>, scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Expression>> prunePushedDownFilters, scala.Function1<scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute>, org.apache.spark.sql.execution.SparkPlan> scanBuilder) { throw new RuntimeException(); }", "public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}", "public void undo() {\n compositionManager.ungroup(group);\n }", "public void projectClone(Project projectToBeCloned){\r\n\t\tthis.projectName = projectToBeCloned.getProjectName();\r\n\t\tthis.userName = projectToBeCloned.getUserName();\r\n\t\tthis.dateCreated = projectToBeCloned.getDateCreated();\r\n\t\tthis.dateEdited = projectToBeCloned.getDateEdited();\r\n\t\tthis.projectButton=projectToBeCloned.getProjectButton();\r\n\t\tthis.projectNameLabel=projectToBeCloned.getProjectNameLabel();\r\n\r\n\t}", "private void update() {\n\n\t\tthis.projects.clear();\n\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p instanceof Infrastructure) {\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p instanceof Social) {\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\t}", "@DeleteMapping(\"/deleteProject/{projectId}\")\r\n\tpublic void deleteProject(@PathVariable String projectId) {\r\n\r\n\t\tpersistenceService.deleteProject(projectId);\r\n\t}", "@Override\n\tpublic Integer modifyProject(ProjectInfo project) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.modifyProject\", project);\n\t}", "void removeHighlighted(int projectID, int userId, UserType userType);", "private void undoAction(){\n if (allClickedButtons.size() > 0) {\n ButtonClass button = allClickedButtons.get(allClickedButtons.size() - 1);\n //If the button constituted a gameWin, then undo that impact as well\n if (checkGameWin(button.getSmallGame().getLettersOfAllButtons())) {\n //Resets \"partOfWonBoard\" for the buttons on the same smallGame\n for (ButtonClass b: button.getSmallGame().getAllButtons()) {\n b.setPartOfWonBoard(false);\n }\n button.getSmallGame().changeGameColor(R.color.black);\n }\n button.resetButtonResource();\n allClickedButtons.remove(button);\n if(allClickedButtons.size() > 0) {\n chosenButton = allClickedButtons.get(allClickedButtons.size()-1);\n chosenGame = chosenButton.getSmallGame();\n updateBigGameBoardForNextMove();\n } else {\n activity.startGame();\n }\n } else {\n Toast.makeText(activity,\n \"Cannot undo at this time\",\n Toast.LENGTH_SHORT).show();\n }\n }" ]
[ "0.6955398", "0.6929771", "0.691634", "0.69036853", "0.68893147", "0.68361604", "0.66769934", "0.6511277", "0.6418584", "0.6378609", "0.6253461", "0.6213726", "0.6192846", "0.6142959", "0.6134698", "0.6114832", "0.6094391", "0.60167664", "0.601369", "0.6012042", "0.5987161", "0.59342086", "0.58134365", "0.57638127", "0.57485074", "0.572973", "0.56371737", "0.561939", "0.56181633", "0.5604113", "0.5588298", "0.5567163", "0.5562338", "0.55559766", "0.55538505", "0.55412984", "0.5516363", "0.5498961", "0.54986995", "0.5490828", "0.5460385", "0.5449558", "0.54439765", "0.54437923", "0.541377", "0.53838044", "0.5381256", "0.53794616", "0.5372059", "0.5359836", "0.5345146", "0.5297528", "0.5294781", "0.5291546", "0.5291336", "0.52826995", "0.5264783", "0.5257928", "0.5255161", "0.52534837", "0.5220398", "0.52164507", "0.52143204", "0.5205743", "0.5194659", "0.51907367", "0.51907367", "0.51689315", "0.5143543", "0.51433367", "0.5134533", "0.51167583", "0.5115944", "0.5112326", "0.5111692", "0.5104841", "0.51038164", "0.5101732", "0.50994694", "0.508874", "0.50878173", "0.50873154", "0.5085018", "0.5063622", "0.5063622", "0.5063622", "0.5063622", "0.5063622", "0.5048598", "0.5042497", "0.50377846", "0.5032192", "0.5031781", "0.50317293", "0.5024297", "0.5020121", "0.50188845", "0.50150794", "0.50099015", "0.5007682" ]
0.7821643
0
Sets the Base Address
public static void SetBaseAddress(String baseAddress) { // Load Projects Settings XML file Document doc = Utilities.LoadDocumentFromFilePath(IDE.projectFolderPath + "\\ProjectSettings.xml"); // Get the <root> element of the Document org.w3c.dom.Element root = doc.getDocumentElement(); // Remove previous entry Node previousBaseAddress = null; try { previousBaseAddress = root.getElementsByTagName("baseAddress").item(0); } catch (Exception ex) { /* do nothing */ } if (previousBaseAddress != null) { root.removeChild(previousBaseAddress); } // Create a child node for <baseAddress value="{baseAddress}"> org.w3c.dom.Element baseAddressNode = doc.createElement("baseAddress"); baseAddressNode.setAttribute("value", baseAddress); root.appendChild(baseAddressNode); // Save document to disk Utilities.writeDocumentToFile(doc, new File(IDE.projectFolderPath + "\\ProjectSettings.xml")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }", "public void setBaseAddress(String base_address) {\n try {\n this.base_address = new URILocator(base_address);\n } catch (MalformedURLException e) {\n throw new OntopiaRuntimeException(e);\n }\n }", "public void setBaseAddress(int targetAddress, int baseAddress);", "void setBaseUri(String baseUri);", "public void setBaseURL(String val) {\n\n\t\tbaseURL = val;\n\n\t}", "public void setCodebase(URL _codebase) {\r\n\t\tcodebase = _codebase;\r\n\t}", "public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}", "public void setBaseNumber(int baseNumber) {\r\n\t\tthis.baseNumber = baseNumber;\r\n\t}", "public void setFilebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setFileBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "public void setImagebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setImageBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "public void set_addr(int value) {\n setUIntElement(offsetBits_addr(), 16, value);\n }", "public void setBasePath(final String value)\n {\n basePath = value;\n }", "public void setBase(Double x, Double y) {\n\t\tconfig[0] = x;\n\t\tconfig[1] = y;\n\t}", "IParser setServerBaseUrl(String theUrl);", "public void setCodebase(final String codebase) {\n this.codebase = codebase;\n if(this.codebase!=null) {\n if(!this.codebase.endsWith(\"/\"))\n this.codebase = this.codebase+\"/\";\n }\n }", "public void setAddress(String address) {\n try {\n if (address == null ||\n address.equals(\"\") ||\n address.equals(\"localhost\")) {\n m_Address = InetAddress.getLocalHost().getHostName();\n }\n } catch (Exception ex) {\n log.error(\"setAddress()\",ex);\n }\n m_Address = address;\n }", "public void setBaseId(String baseId) {\n this.baseId = baseId;\n }", "public void setBase(double base) {\n\t\tthis.base = base;\n\t}", "public void setDocumentoBase(DocumentoBase documentoBase)\r\n/* 135: */ {\r\n/* 136:158 */ this.documentoBase = documentoBase;\r\n/* 137: */ }", "public void setInternalAddress(String address);", "public void setShBaseURL(String val) {\n\n\t\tshBaseURL = val;\n\n\t}", "public String getBaseAddress() {\n return base_address.getAddress();\n }", "public void setHyperlinkBase(String hyperlinkBase)\r\n {\r\n m_hyperlinkBase = hyperlinkBase;\r\n }", "public void setBase(Integer base);", "public void setBaseId(Long baseId) {\n this.baseId = baseId;\n }", "public void setBaseURL(final String url) {\r\n String location = url;\r\n //-- remove filename if necessary:\r\n if (location != null) { \r\n int idx = location.lastIndexOf('/');\r\n if (idx < 0) idx = location.lastIndexOf('\\\\');\r\n if (idx >= 0) {\r\n int extIdx = location.indexOf('.', idx);\r\n if (extIdx > 0) {\r\n location = location.substring(0, idx);\r\n }\r\n }\r\n }\r\n \r\n try {\r\n _resolver.setBaseURL(new URL(location));\r\n } catch (MalformedURLException except) {\r\n // try to parse the url as an absolute path\r\n try {\r\n LOG.info(Messages.format(\"mapping.wrongURL\", location));\r\n _resolver.setBaseURL(new URL(\"file\", null, location));\r\n } catch (MalformedURLException except2) { }\r\n }\r\n }", "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public BaseAddressPanel() {\n\t\tthis(FULL_ADDRESS_PANEL);\n\t}", "public void setBaseUrl(java.lang.String mBaseUrl) {\n bugQuery.setBaseUrl(mBaseUrl);\n }", "public void setBase(boolean base)\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(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.setBooleanValue(base);\r\n }\r\n }", "public void setBaseInfo(BaseInfo baseInfo) {\n this.baseInfo = baseInfo;\n }", "public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }", "public void setBaseUrl(final String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public RestAPI setBaseURL(String url) throws APIException {\n\t\tthis.url = url;\n\t\tcheckBaseURL();\n\n\t\treturn this;\n\t}", "public void setBase(double baseWidth, double baseLength) {\n setBaseWidth(baseWidth);\n setBaseLength(baseLength);\n }", "public void xsetBase(org.apache.xmlbeans.XmlBoolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.set(base);\r\n }\r\n }", "public void changeToBaseOne() {\r\n\t\tthis.numberBase = 1;\r\n\t}", "public void setLocalBasePath(String localBasePath) throws Exception {\n\t\tDataManager.createLocalbase(localBasePath);\n\t}", "public void setBaseLimit() {\n //sets the bas and the limit in memory\n machine.memory.setBase(0);\n machine.memory.setLimit(Machine.MEMORY_SIZE);\n }", "public void setStartAddress(Long startAddress) {\r\n\t\tthis.startAddress = startAddress;\r\n\t}", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public Address getStartAddress() {\n\t\treturn baseAddress;\n\t}", "public void set(int addr, byte b) {\n data[addr - start] = b;\n }", "@Override\n public void setAdress(Adress adress) {\n this.adress = adress;\n }", "public void setBindAddress(String bindAddress) {\n agentConfig.setBindAddress(bindAddress);\n }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setBaseLength(double baseLength) {\n this.baseLength = baseLength;\n }", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "public void setHost(String p_host) throws MalformedURIException {\n if (p_host == null || p_host.length() == 0) {\n if (p_host != null) {\n m_regAuthority = null;\n }\n m_host = p_host;\n m_userinfo = null;\n m_port = -1;\n return;\n }\n else if (!isWellFormedAddress(p_host)) {\n throw new MalformedURIException(\"Host is not a well formed address!\");\n }\n m_host = p_host;\n m_regAuthority = null;\n }", "public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setLocationAddress(final BwString val) {\n locationAddress = val;\n }", "public void setRequiredBase(int value) {\n this.requiredBase = value;\n }", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public void setBaseUrl(String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public void setExternalAddress(String address);", "public void set(int addr, byte[] buff) throws ProgramException {\n set(addr, buff, 0, buff.length);\n }", "private void setDataBase(Settings set) {\n URL_BASE_POSTGRES = set.getValue(\"jdbc.urlBasePostgres\");\n URL_BASE_VACANCY = set.getValue(\"jdbc.urlBaseVacancy\");\n USER_NAME = set.getValue(\"jdbc.userName\");\n PASSWORD = set.getValue(\"jdbc.password\");\n }", "public void setAddress(final URL value) {\n this.address = value;\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "public abstract void setAddressLine1(String sValue);", "public Builder setRpcAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n rpcAddress_ = value;\n onChanged();\n return this;\n }", "public void xsetAddress(org.apache.xmlbeans.XmlString address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ADDRESS$2);\n }\n target.set(address);\n }\n }", "@Override\n\tpublic void set(SocketAddress v) {\n\t\tsuper.set(Objects.requireNonNull(v));\n\t}", "private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }", "@Override\r\n public void setIPAddress(String address) {\r\n this.address = address;\r\n }", "public void setStd_Base (String Std_Base);", "public void setHost(String host);", "public Builder setBitcoinAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n bitcoinAddress_ = value;\n onChanged();\n return this;\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "public void setAddress(String address) throws JAXRException {\n this.address = address;\n }", "public void setSchemaBaseURL(String schemaBaseURL) {\n this.schemaBaseURL = schemaBaseURL;\n }", "public void setBaseLinkInfo(LinkInfo baseLinkInfo)\n {\n if (baseClassMap == null)\n throw new IllegalStateException(\"Cannot call ClassMap.setUseBaseTable() if the base ClassMap is null.\");\n this.baseLinkInfo = baseLinkInfo;\n }", "void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setAddr(String addr) {\n this.addr = addr == null ? null : addr.trim();\n }", "public void setAddr(String addr) {\n this.addr = addr == null ? null : addr.trim();\n }", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public void setBasedir(String baseD) throws BuildException {\n setBaseDir(new File(baseD));\n }", "@Override\r\n\tpublic void setAddress(String address) {\n\t\tif (address == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (address.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.address = address;\r\n\t}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "@BeforeEach\n\tpublic void setup() {\n\t\tif (!initialized) {\n\t\t\tbaseURI = String.format(uri, port);\n\t\t\tinitialized = true;\n\t\t}\n\t}", "public void setAddress(java.lang.String address)\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(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ADDRESS$2);\n }\n target.setStringValue(address);\n }\n }", "public void setSpriteBase(SpriteBase spriteBase) {\n this.spriteBase = spriteBase;\n }", "public URL makeBase(URL startingURL);", "public void setHostAddress(int value) {\n this.hostAddress = value;\n }", "public void setBasedir( String basedir )\n {\n setBasedir( new File( basedir.replace( '/', File.separatorChar ).replace( '\\\\', File.separatorChar ) ) );\n }", "Builder setAddress(String address);", "public Address getFilebase() {\n return new Address(m_module.getConfiguration().getFileBase().toBigInteger());\n }", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "public void setRegaddress(java.lang.String param) {\r\n localRegaddressTracker = param != null;\r\n\r\n this.localRegaddress = param;\r\n }", "void setAdress(String generator, String address);", "public void setAddress(InetAddress address) {\r\n\t\tthis.address = address;\r\n\t}", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }" ]
[ "0.7752658", "0.7691809", "0.7486517", "0.66345304", "0.6512399", "0.6180665", "0.61609674", "0.61583984", "0.6070426", "0.6046926", "0.6026257", "0.59849113", "0.5978607", "0.5974502", "0.5960271", "0.5943009", "0.59268934", "0.5886268", "0.5872123", "0.5866728", "0.5841056", "0.58249575", "0.5806279", "0.57944506", "0.5785606", "0.57767683", "0.57597536", "0.5722717", "0.57049", "0.5639538", "0.5633394", "0.5620097", "0.5613456", "0.5586105", "0.5576686", "0.5569154", "0.55465335", "0.55426854", "0.5540049", "0.5525401", "0.55252117", "0.5522722", "0.5488047", "0.54857314", "0.5482746", "0.54738325", "0.54738325", "0.54738325", "0.54738325", "0.545747", "0.54374117", "0.54007405", "0.5394251", "0.53828514", "0.5379833", "0.5379626", "0.53766775", "0.53594273", "0.53510576", "0.53465873", "0.5331076", "0.53213835", "0.5310392", "0.5306187", "0.5298806", "0.5295345", "0.52932197", "0.52913773", "0.52731866", "0.52495205", "0.522008", "0.52184623", "0.52155524", "0.52010745", "0.52009106", "0.51883286", "0.51874804", "0.51874787", "0.5185138", "0.5185138", "0.51804566", "0.5179089", "0.5179061", "0.5177366", "0.5177366", "0.5166238", "0.5165632", "0.51648265", "0.516375", "0.5155565", "0.5149177", "0.5149067", "0.5148112", "0.5146374", "0.51451415", "0.5140097", "0.51379114", "0.51360285", "0.51360285", "0.51360285" ]
0.72597206
3
Sets the last project opened (or created)
public static void SetLastOpenedProject(String path) { // Get the <root> element of the Document org.w3c.dom.Element root = applicationSettingsFile.getDocumentElement(); // Handle the "previousProject" Node previousLastProject = null; String previousLastProjectValue = null; try { // Get the previous last opened project previousLastProject = root.getElementsByTagName("lastProject").item(0); // Get the previous last opened project's value previousLastProjectValue = previousLastProject.getAttributes().getNamedItem("value").getNodeValue(); // Remove the previous last opened project root.removeChild(previousLastProject); } catch (Exception e) { /* do nothing */ } // Create a child node of root: <lastProject value="{path}"> org.w3c.dom.Element lastProjectNode = applicationSettingsFile.createElement("lastProject"); lastProjectNode.setAttribute("value", path); // Add the node to the root element root.appendChild(lastProjectNode); // Handle the "previousProjects" Node previousProjects = null; String previousProjectsValue = null; try { // Get the previous projects previousProjects = root.getElementsByTagName("previousProjects").item(0); // Get the previous projects' value previousProjectsValue = previousProjects.getAttributes().getNamedItem("value").getNodeValue(); // Remove the previous last projects root.removeChild(previousProjects); } catch (Exception e) { /* do nothing*/ } // Move the old previousProject to the previousProjects if (previousLastProjectValue != null) { previousProjectsValue = previousProjectsValue + "," + previousLastProjectValue; } // Remove the [new] previousProject if contained in previousProjectsValue if (previousProjectsValue != null) { if(previousProjectsValue.contains(path)) { previousProjectsValue = previousProjectsValue.replace(path, ""); previousProjectsValue = previousProjectsValue.replace(",,", ","); } // Remove any leading commas if (previousProjectsValue.startsWith(",")) { previousProjectsValue = previousProjectsValue.substring(1); } } // Create a child node of root: <lastProject value="{path},{path},etc"> org.w3c.dom.Element previousProjectsNode = applicationSettingsFile.createElement("previousProjects"); previousProjectsNode.setAttribute("value", previousProjectsValue); // Add the node to the root element root.appendChild(previousProjectsNode); // Save document to disk Utilities.writeDocumentToFile(applicationSettingsFile, new File(applicationSettingsFilePath)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openNewProject() {\n\n\t\t// Dispose of all the sound objects in the project that is currently open\n\t\tCollection<SoundInfo> sounds = soundList.values();\n for(SoundInfo sound: sounds){\n sound.close();\n }\n \n // Set the newly opened project variables\n\t\tsoundList = new HashMap<Integer, SoundInfo>();\n\t\tprojectModified = false;\n\t\tprojectFileIO = null;\n\t}", "public void doProjectOpen() {\r\n\t\tthis.observerList.notifyObservers(GNotification.PROJECT_OPEN, null);\r\n\t}", "private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }", "public static String GetLastOpenedProject() {\n\t\tString lastOpenedProjectPath = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"lastProject\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tlastOpenedProjectPath = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn lastOpenedProjectPath;\n\t}", "public void openProject(AbstractProject project) {\n\t\tsetActiveValue(project.getId(), \"1\"); //$NON-NLS-1$\n\t}", "public void setProject(org.eclipse.core.resources.IProject newProject) {\n \t\tproject = newProject;\n \t}", "public IProject getNewProject() {\r\n\t\treturn newProject;\r\n\t}", "public void projectOpened() {\n initToolWindow();\n }", "public LoadRecentProject(String displayName, String filePath){\n \tsuper(); \n this.mDisplayName = displayName;\n this.mFilePath = filePath;\n putValue(Action.ACCELERATOR_KEY, null);\n\t\tputValue(Action.DEFAULT, \"Reopen Project\");\n\t\tputValue(Action.LONG_DESCRIPTION, \"Reopen Project\");\n }", "public ProjectModel getCurrentProject() {\n if (projects.size() > 0) {\n return projects.get(0);\n }\n else return null;\n }", "public int getProjectsFinishedToday() {\n\t\treturn Today;\n\t}", "public Project(String name) {\r\n\t\tsuper(name);\r\n\t\tthis.opened = true;\r\n\t\tthis.projectFile = null;\r\n\t}", "public void changeCurrProject(ProjectModel p) {\n \tprojects.remove(p);\n \tprojects.add(0, p);\n }", "public void closeProject(AbstractProject project) {\n\t\tsetActiveValue(project.getId(), \"0\"); //$NON-NLS-1$\n\t}", "void projectName( String key, String value ){\n projectInProgress.projectName = value;\n if ( projectInProgress.fullProjectName == null ) {\n projectInProgress.fullProjectName = value;\n }\n }", "public void setProject(Project project) {\n this.project = project;\n }", "public void setProject(Project project) {\n this.project = project;\n }", "protected void projectOpened() {\n ProjectManager.mutex().writeAccess(new Mutex.Action() {\n public Object run() {\n EditableProperties ep = updateHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n File buildProperties = new File(System.getProperty(\"netbeans.user\"), \"build.properties\"); // NOI18N\n ep.setProperty(\"user.properties.file\", buildProperties.getAbsolutePath()); // NOI18N \n File bjHome = BlueJSettings.getDefault().getHome();\n if (bjHome != null) {\n \n ep.setProperty(PROP_BLUEJ_HOME, getUserLibPath(bjHome).getAbsolutePath());\n ep.setComment(PROP_BLUEJ_HOME, new String[] {\n \"## the bluej.userlib property is reset everytime the project is opened in netbeans according to the\",\n \"## setting in the IDE that point to the location of the bluej installation's userlib directory.\",\n \"## It is required to find and use the libraries located in BLUEJ_HOME/lib/userlib when building the project\" \n }, true);\n } else {\n ep.remove(PROP_BLUEJ_HOME);\n }\n ep.setProperty(\"bluej.config.libraries\", BlueJSettings.getDefault().getUserLibrariesAsClassPath()); // NOI18N\n ep.setComment(\"bluej.config.libraries\", new String[] { // NOI18N\n \"## classpath entry that is composed from content of bluej.userlib.*.location properties in the user home's bluej.properties file..\",\n \"## rebuilt on every opening of the project in netbeans\"\n }, true);\n updateHelper.putProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH, ep);\n try {\n ProjectManager.getDefault().saveProject(BluejProject.this);\n } catch (IOException e) {\n ErrorManager.getDefault().notify(e);\n }\n return null;\n }\n });\n BlueJSettings.getDefault().addPropertyChangeListener(this);\n \n//// // Check up on build scripts.\n//// try {\n//// if (updateHelper.isCurrent()) {\n//// //Refresh build-impl.xml only for j2seproject/2\n//// genFilesHelper.refreshBuildScript(\n//// GeneratedFilesHelper.BUILD_IMPL_XML_PATH,\n//// BluejProject.class.getResource(\"resources/build-impl.xsl\"),\n//// true);\n//// genFilesHelper.refreshBuildScript(\n//// GeneratedFilesHelper.BUILD_XML_PATH,\n//// BluejProject.class.getResource(\"resources/build.xsl\"),\n//// true);\n//// } \n//// } catch (IOException e) {\n//// ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);\n//// }\n \n // register project's classpaths to GlobalPathRegistry\n ClassPathProviderImpl cpProvider = (ClassPathProviderImpl)lookup.lookup(ClassPathProviderImpl.class);\n GlobalPathRegistry.getDefault().register(ClassPath.BOOT, cpProvider.getBootPath());\n GlobalPathRegistry.getDefault().register(ClassPath.SOURCE, cpProvider.getSourcePath());\n GlobalPathRegistry.getDefault().register(ClassPath.COMPILE, cpProvider.getCompileTimeClasspath());\n\n//// //register updater of main.class\n//// //the updater is active only on the opened projects\n//// mainClassUpdater = new MainClassUpdater (BluejProject.this, eval, updateHelper,\n//// cpProvider.getProjectClassPaths(ClassPath.SOURCE)[0], J2SEProjectProperties.MAIN_CLASS);\n\n//// J2SELogicalViewProvider physicalViewProvider = (J2SELogicalViewProvider)\n//// BluejProject.this.getLookup().lookup (J2SELogicalViewProvider.class);\n//// if (physicalViewProvider != null && physicalViewProvider.hasBrokenLinks()) { \n//// BrokenReferencesSupport.showAlert();\n//// }\n BluejOpenCloseCallback callback = (BluejOpenCloseCallback) Lookup.getDefault().lookup(BluejOpenCloseCallback.class);\n if (callback != null) {\n callback.projectOpened(BluejProject.this);\n }\n }", "private void onProjectFieldUpdated() {\n String project = mProjectTextField.getText();\n\n // Is this a valid project?\n IJavaProject[] projects = mProjectChooserHelper.getAndroidProjects(null /*javaModel*/);\n IProject found = null;\n for (IJavaProject p : projects) {\n if (p.getProject().getName().equals(project)) {\n found = p.getProject();\n break;\n }\n }\n\n if (found != mProject) {\n changeProject(found);\n }\n }", "public void setProject(Project project){\n\t\tthis.project = project;\n\t\tif (project!=null){\n\t\t\tfor (final Iterator it = project.getRoot().getProgresses ().iterator ();it.hasNext ();){\n\t\t\t\tnew com.ost.timekeeper.actions.commands.DeleteProgress ((Progress)it.next ()).execute ();\n\t\t\t}\n\t\t}\n\t\tif (project!=null){\n\t\t\tthis.setSelectedItem (project.getRoot());\n\t\t} else {\n\t\t\tthis.setSelectedItem (null);\n\t\t}\n\t\t//notifica cambiamento di progetto\n\t\tsynchronized (this){\n\t\t\tthis.setChanged();\n\t\t\tthis.notifyObservers(ObserverCodes.PROJECTCHANGE);\n\t\t}\n\t}", "public void setProject(int projId) {\n projectId = projId;\n titleTextView.setText(Project.projects[projectId].getTitle());\n summaryTextView.setText(Project.projects[projectId].getSummary());\n favCheckBox.setChecked(Project.projects[projectId].isFavorite());\n Log.d(\"favorite setproject \",favCheckBox.isChecked()+\" \" + Project.projects[projectId].isFavorite());\n\n }", "public boolean getProjectExternallyEdited()\r\n {\r\n return (m_projectExternallyEdited);\r\n }", "@Override\n\tpublic void setProject(IProject project) {\n\t\tthis.fProject = project;\n\t}", "public int getNewProjectUniqueId() {\r\n\t\treturn lastProjectUniqueID +1;\r\n\t}", "public void projectOpened(File pfile, FileOpenSelector files) { }", "public void setProjectID(int value) {\n this.projectID = value;\n }", "void projectFound( String key ){\n projectInProgress = new Project();\n }", "public boolean isProjectOpen() {\n\t\treturn (projectFileIO != null);\n\t}", "public MavenProject getCurrentProject()\n {\n return currentProject;\n }", "public void addProject(){\n AlertDialog.Builder projectBuilder = new AlertDialog.Builder(mainActivity);\n projectBuilder.setTitle(\"New Project Name:\");\n\n final EditText projectNameInput = new EditText(mainActivity);\n\n projectNameInput.setInputType(InputType.TYPE_TEXT_FLAG_CAP_WORDS);\n projectBuilder.setView(projectNameInput);\n\n projectBuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String projectName = projectNameInput.getText().toString();\n projectList.add(projectName);\n\n HashSet<String> projectListSet = new HashSet<>(projectList);\n\n SharedPreferences.Editor listPrefsEditor = projectListPrefs.edit();\n listPrefsEditor.putStringSet(\"projectList\", projectListSet);\n listPrefsEditor.apply();\n\n mainActivity.codeStopwatch.pause();\n mainActivity.researchStopwatch.pause();\n final Button codingButton = mainActivity.findViewById(R.id.btn_coding_start);\n codingButton.setText(R.string.start);\n final Button researchButton = mainActivity.findViewById(R.id.btn_research_start);\n researchButton.setText(R.string.start);\n\n if (!selectedProjectName.equals(\"\")){\n mainActivity.manageClocks.saveClocks(selectedProjectName);\n }\n mainActivity.codeStopwatch.reset();\n mainActivity.researchStopwatch.reset();\n\n mainActivity.manageClocks.saveClocks(projectName);\n mainActivity.manageClocks.loadClocks(projectName);\n\n Spinner projectsSpinner = mainActivity.findViewById(R.id.projects_spinner);\n ArrayAdapter<String> projectsArrayAdapter = new ArrayAdapter<String>(\n mainActivity, android.R.layout.simple_spinner_item, projectList);\n projectsArrayAdapter.setDropDownViewResource(\n android.R.layout.simple_spinner_dropdown_item);\n projectsSpinner.setAdapter(projectsArrayAdapter);\n projectsSpinner.setSelection(projectsArrayAdapter.getPosition(projectName));\n\n selectedProjectName = projectName;\n SharedPreferences.Editor selectedProjectPrefsEditor = selectedProjectPrefs.edit();\n selectedProjectPrefsEditor.putString(\"selectedProjectName\", selectedProjectName);\n selectedProjectPrefsEditor.apply();\n }\n });\n projectBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n projectBuilder.show();\n }", "private void onProjectBrowse() {\n IJavaProject p = mProjectChooserHelper.chooseJavaProject(mProjectTextField.getText(),\n \"Please select the target project\");\n if (p != null) {\n changeProject(p.getProject());\n mProjectTextField.setText(mProject.getName());\n }\n }", "void setWorkingProject(ProjectRepresentation projectRepresentation);", "private void storeViewState()\n\t{\n\t\tCommand lastCmd = project.getLastCommand();\n\t\tif (lastCmd != null)\n\t\t{\n\t\t\tlastCmd.setOptionalState(view.toJSONString(lastCmd.getProjectState()));\n\t\t}\n\t}", "public ProjectFile getProject()\r\n {\r\n return m_project;\r\n }", "public void setLastLogin() {\r\n game.settings.setLastSeen(strDate);\r\n }", "void open(IdeaProject project);", "public PanelNewProject getNewProject(){\n return nuevoProyecto;\n }", "public void resetProjectTitle()\n\t{\n\t\tif(currentProject.length() == 0)\n\t\t{\n\t\t\tprojectTitle.setTitle(\"Project Properties\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprojectTitle.setTitle(currentProject.toString().substring(currentProject.toString().lastIndexOf('\\\\') + 1));\n\t\t}\n\t\tprojectProperties.repaint();\n\t}", "public void setProjectExternallyEdited(boolean projectExternallyEdited)\r\n {\r\n m_projectExternallyEdited = projectExternallyEdited;\r\n }", "public Project getProject()\n {\n \treturn project;\n }", "public void projectClosed() {\n finaliseToolWindow();\n this.project = null;\n }", "public void init() {\n- newProject = new Project();\n- newProject.setDefaultInputStream(getProject().getDefaultInputStream());\n+ newProject = getProject().createSubProject();\n newProject.setJavaVersionProperty();\n }", "void setProject(InternalActionContext ac, HibProject project);", "public void setProjectAsToDo(int projectId)\n throws InexistentProjectException, SQLException, NoSignedInUserException,\n InexistentDatabaseEntityException, UnauthorisedOperationException,\n IllegalProjectStatusChangeException {\n Project project = getMandatoryProject(projectId);\n User currentUser = getMandatoryCurrentUser();\n if (project.getStatus() == Project.Status.IN_PROGRESS) {\n if (userIsAssignee(currentUser, project)) {\n project.setStatus(Project.Status.TO_DO);\n projectRepository.updateProject(project);\n } else {\n throw new UnauthorisedOperationException(\n currentUser.getId(),\n \"set back the project status to to do\",\n \"they are not the assignee\");\n }\n } else {\n throw new IllegalProjectStatusChangeException(project.getStatus(), Project.Status.TO_DO);\n }\n support.firePropertyChange(\n ProjectChangeablePropertyName.SET_PROJECT_STATUS.toString(), OLD_VALUE, NEW_VALUE);\n }", "public FlexoProject getProject() {\n \t\treturn findCurrentProject();\n \t}", "public void notifyNewProject(URI project) {\n\t\tDebug.log(\"Loading uninitialized project \", project);\n\t\tnotifyNewProjectFiles(new File(project));\n\t}", "public void doProjectClose() {\r\n\t\tthis.observerList.notifyObservers(GNotification.PROJECT_CLOSE, null);\r\n\t}", "public boolean getProjectModified() {\n\t\treturn projectModified;\n\t}", "public Project getProject() {\r\n return project;\r\n }", "public void setProject(Project project)\n {\n txtName.setText(project.getName() == null ? \"\" : project.getName());\n txtCurrentVersion.setText(project.getCurrentVersion() == null ? \"1.0\" : project.getCurrentVersion());\n txtArtifactID.setText(project.getArtifactId() == null ? \"\" : project.getArtifactId());\n txtGroupID.setText(project.getGroupId() == null ? \"\" : project.getGroupId());\n txtPackage.setText(project.getPackage() == null ? \"\" : project.getPackage());\n }", "public void clearProject()\n\t{\n\t\tstoreViewState();\n\t\tproject.clearProject();\n\t\tcheckStatus();\n\t}", "private void newProject(ActionEvent x) {\n\t\tthis.controller.newProject();\n\t}", "public void setEarProject(org.eclipse.core.resources.IProject newEarProject) {\n \t\tearProject = newEarProject;\n \t}", "@Override\n public void onClick(View view) {\n String projectName = etProjectName.getText().toString();\n String projectOwner = etProjectOwner.getText().toString();\n String projectDescription = etProjectDescription.getText().toString();\n long projectId = 0; // This is just to give some value. Not used when saving new project because auto-increment in DB for this value.\n\n\n // USerid and projectname are mandatory parameters\n if( userId != 0 && projectName != null) {\n newProject = new Project(projectId, userId, projectName, projectOwner, projectDescription);\n dbHelper.saveProject(newProject);\n// showToast(\"NewprojectId:\" + newProject.projectId+ \"-->UserId: \"+ userId + \"--> ProjectName\" + newProject.projectName +\"->Owner\"+newProject.projectOwner);\n dbHelper.close();\n\n // SIIRRYTÄÄN PROJEKTILISTAUKSEEN\n Intent newProjectList = new Intent( NewProject.this, ProjectListActivity.class);\n newProjectList.putExtra(\"userId\", userId);\n startActivity(newProjectList);\n }\n\n }", "public void createProject(Project newProject);", "public static final String getProject() { return project; }", "public static final String getProject() { return project; }", "void projectFullName( String key, String value ){\n projectInProgress.fullProjectName = value;\n }", "public void setProjectName(String name) {\r\n this.projectName = name;\r\n }", "public int getProjectID() {\n return projectID;\n }", "private void changeProject(IProject newProject) {\n mProject = newProject;\n\n // enable types based on new API level\n enableTypesBasedOnApi();\n\n // update the folder name based on API level\n resetFolderPath(false /*validate*/);\n\n // update the Type with the new descriptors.\n initializeRootValues();\n\n // update the combo\n updateRootCombo(getSelectedType());\n\n validatePage();\n }", "public void loadTheProject() {\n\t\tProjectHandler.openProject(mFilePath);\n }", "public int openExistingProject(File file) {\n try {\n projectData = projectLoader.openExistingProject(file);\n\n } catch (FileNotFoundException ex) {\n \n return 1; // can not find ini file\n } catch (Exception ex) {\n \n return 2; // can not load project\n }\n\n if (projectData == null) return 2;\n\n return 0;\n }", "public void setProjectFile(File projectFile) {\r\n\t\tthis.projectFile = projectFile;\r\n\t}", "@Override\n public Project getProject() {\n return super.getProject();\n }", "public void projectWorkDirChanged() { }", "public void projectWorkDirChanged() { }", "@Override\n\tpublic IProject getProject() {\n\t\treturn fProject;\n\t}", "private void initializeProject() {\n newProject.setInputHandler(getProject().getInputHandler());\n \n Iterator iter = getBuildListeners();\n while (iter.hasNext()) {\n newProject.addBuildListener((BuildListener) iter.next());\n }\n \n if (output != null) {\n File outfile = null;\n if (dir != null) {\n outfile = FILE_UTILS.resolveFile(dir, output);\n } else {\n outfile = getProject().resolveFile(output);\n }\n try {\n out = new PrintStream(new FileOutputStream(outfile));\n DefaultLogger logger = new DefaultLogger();\n logger.setMessageOutputLevel(Project.MSG_INFO);\n logger.setOutputPrintStream(out);\n logger.setErrorPrintStream(out);\n newProject.addBuildListener(logger);\n } catch (IOException ex) {\n log(\"Ant: Can't set output to \" + output);\n }\n }\n-\n- getProject().initSubProject(newProject);\n-\n // set user-defined properties\n getProject().copyUserProperties(newProject);\n \n if (!inheritAll) {\n // set Java built-in properties separately,\n // b/c we won't inherit them.\n newProject.setSystemProperties();\n \n } else {\n // set all properties from calling project\n addAlmostAll(getProject().getProperties());\n }\n \n Enumeration e = propertySets.elements();\n while (e.hasMoreElements()) {\n PropertySet ps = (PropertySet) e.nextElement();\n addAlmostAll(ps.getProperties());\n }\n }", "public String getProjectName() { return DBCurrent.getInstance().projectName(); }", "public String getProjectName() { return DBCurrent.getInstance().projectName(); }", "public CreateProjectPanel() {\n isFinished = true;\n }", "private void browseProject()\n {\n List<FileFilter> filters = new ArrayList<>();\n filters.add(new FileNameExtensionFilter(\"Bombyx3D project file\", \"yml\"));\n\n File directory = new File(projectPathEdit.getText());\n File selectedFile = FileDialog.chooseOpenFile(this, BROWSE_DIALOG_TITLE, directory, filters);\n if (selectedFile != null) {\n projectDirectory = selectedFile.getParentFile();\n projectPathEdit.setText(projectDirectory.getPath());\n projectPathEdit.selectAll();\n }\n }", "public Project getProject()\n {\n return project;\n }", "public void setProject (jkt.hrms.masters.business.MstrProject project) {\n\t\tthis.project = project;\n\t}", "public void setProjectID(Integer projectID) { this.projectID = projectID; }", "public void setProjects(ArrayList<View> views) {\n projects.clear();\n projects.addAll(views);\n }", "public JobLog setProject(Project project) {\n this.project = project;\n return this;\n }", "default void projectOpenFailed() {\n }", "public jkt.hrms.masters.business.MstrProject getProject () {\n\t\treturn project;\n\t}", "public Project getProject(){\n\t\treturn this.project;\n\t}", "public File getProjectFile() {\r\n\t\treturn projectFile;\r\n\t}", "public String getProjectDate()\n\t{\n\t\treturn m_projectDate;\n\t}", "public void editProjectAction() throws IOException {\n\t\tfinal List<Project> projects = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (projects.size() == 1) {\n\t\t\tfinal Project project = projects.get(0);\n\t\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\t\t((AddProjectDialogController) loader.getController()).getContentController().setProjectToEdit(project);\n\t\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\t\tif (result.isPresent()) {\n\t\t\t\tlogger.trace(\"dialog 'edit project' result: {}\", result::get);\n\t\t\t\tupdateProjectList();\n\t\t\t}\n\t\t}\n\t}", "public Project getProject() {\n return project;\n }", "public Project getProject() {\n return project;\n }", "@Override\n\tpublic int updateProject(Project project) {\n\t\treturn pm.updateProject(project);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent we) \n\t{\n\t\tif(modelProject.readStateProject()[1])\n\t\t{\n\t\t\tif(viewProject.saveProjectDialog() == 0)\n\t\t\t{\n\t\t\t\tif(modelProject.readStateProject()[0])\n\t\t\t\t\tmodelProject.deleteProject();\n\t\t\t}\n\t\t\telse\n\t\t\t\tmodelProject.saveProject();\n\t\t}\n\t\tviewProject.closeProject();\n\t}", "@FXML\n public void onBackButtonClicked()\n {\n ProjectViewerController pvc = (ProjectViewerController) Main.setPrimaryScene(ProjectViewerController.getFxmlPath());\n pvc.setModel(project);\n }", "public void changeProject(ProjectWasChanged evt) throws InvalidProjectCommandException{\n validator.validate(this);\n UpdateProperties(evt.getProperties());\n ArrayList<Event> events = new ArrayList<Event>();\n events.add(new ProjectWasChanged(this, evt.getProperties()));\n }", "public void setOpenedFile(Path path) {\r\n\t\topenedFile = path;\r\n\t}", "public String getProjectno() {\r\n return projectno;\r\n }", "public IProject getProject() {\n return mProject;\n }", "public Project getProject() {\n\t\treturn project;\n\t}", "void projectComplete( String key ) {\n developer.projects.add( projectInProgress );\n projectInProgress = null;\n }", "public void openUpProject(Subproject project) {\n\t\tSubprojectField field=project.setChip(current.removeChip());\n\t\tcurrent.raiseScore(field.getAmountSZT());\n\t}", "public void openProject(File file) {\n\n try {\n if (!file.exists()) {\n JOptionPane.showMessageDialog(Application.getFrame(),\n \"Can't open project - file \\\"\" + file.getPath() + \"\\\" does not exist\",\n \"Can't Open Project\", JOptionPane.OK_OPTION);\n return;\n }\n \n getApplication().getFrameController().addToLastProjListAction(\n file.getAbsolutePath());\n\n Configuration config = buildProjectConfiguration(file);\n Project project = new ApplicationProject(file, config);\n getProjectController().setProject(project);\n\n // if upgrade was canceled\n int upgradeStatus = project.getUpgradeStatus();\n if (upgradeStatus > 0) {\n JOptionPane\n .showMessageDialog(\n Application.getFrame(),\n \"Can't open project - it was created using a newer version of the Modeler\",\n \"Can't Open Project\",\n JOptionPane.OK_OPTION);\n closeProject(false);\n }\n else if (upgradeStatus < 0) {\n if (processUpgrades(project)) {\n getApplication().getFrameController().projectOpenedAction(project);\n }\n else {\n closeProject(false);\n }\n }\n else {\n getApplication().getFrameController().projectOpenedAction(project);\n }\n }\n catch (Exception ex) {\n logObj.warn(\"Error loading project file.\", ex);\n ErrorDebugDialog.guiWarning(ex, \"Error loading project\");\n }\n }", "public void setProjectList(List<OtmProject> projectList) {\n this.projects = projectList;\n }", "public void setNewTaskStartIsProjectStart(boolean newTaskStartIsProjectStart)\r\n {\r\n m_newTaskStartIsProjectStart = newTaskStartIsProjectStart;\r\n }", "private void updateProjectList() {\n\t\tfinal MultipleSelectionModel<Project> selectionModel = selectionList.getSelectionModel();\n\t\tfinal Object[] selectedIndices = selectionModel.getSelectedIndices().toArray();\n\t\tselectionModel.clearSelection();\n\t\tfor (final Object i : selectedIndices) {\n\t\t\tselectionModel.select((int) i);\n\t\t}\n\t}" ]
[ "0.6344341", "0.6305454", "0.62192357", "0.6043924", "0.596537", "0.58028775", "0.58025813", "0.5755982", "0.57531655", "0.5700437", "0.5692005", "0.5658349", "0.5658227", "0.5599954", "0.5599859", "0.5507212", "0.5507212", "0.5496105", "0.5493956", "0.5486711", "0.5454468", "0.5452014", "0.54509383", "0.54174304", "0.5398357", "0.539285", "0.539242", "0.53753775", "0.53728783", "0.5352752", "0.5352351", "0.5347702", "0.53371173", "0.53360116", "0.5335629", "0.53143644", "0.5312018", "0.5296484", "0.529562", "0.5290203", "0.5287452", "0.52758336", "0.52676624", "0.5267286", "0.52584386", "0.5228251", "0.52272016", "0.52195287", "0.5207154", "0.5202359", "0.5190214", "0.5182409", "0.5177509", "0.51758015", "0.5156899", "0.51536226", "0.51536226", "0.5150812", "0.5150082", "0.5149235", "0.51433825", "0.513517", "0.5130207", "0.51222754", "0.51220655", "0.51194584", "0.51194584", "0.51179075", "0.51154673", "0.5111812", "0.5111812", "0.5108755", "0.51086426", "0.5103475", "0.51032054", "0.51031774", "0.5093629", "0.50893676", "0.507401", "0.5066293", "0.506276", "0.5061228", "0.5060881", "0.5060454", "0.50519246", "0.50519246", "0.5051808", "0.5051136", "0.50501776", "0.5039859", "0.50361156", "0.50352335", "0.5034349", "0.50330496", "0.5029101", "0.50249654", "0.50158143", "0.50139314", "0.50120145", "0.5011137" ]
0.71139807
0
This class is generated by jOOQ.
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.9.3" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) @Entity @Table(name = "ha_membership", schema = "cattle") public interface HaMembership extends Serializable { /** * Setter for <code>cattle.ha_membership.id</code>. */ public void setId(Long value); /** * Getter for <code>cattle.ha_membership.id</code>. */ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id", unique = true, nullable = false, precision = 19) public Long getId(); /** * Setter for <code>cattle.ha_membership.name</code>. */ public void setName(String value); /** * Getter for <code>cattle.ha_membership.name</code>. */ @Column(name = "name", length = 255) public String getName(); /** * Setter for <code>cattle.ha_membership.uuid</code>. */ public void setUuid(String value); /** * Getter for <code>cattle.ha_membership.uuid</code>. */ @Column(name = "uuid", unique = true, nullable = false, length = 128) public String getUuid(); /** * Setter for <code>cattle.ha_membership.heartbeat</code>. */ public void setHeartbeat(Long value); /** * Getter for <code>cattle.ha_membership.heartbeat</code>. */ @Column(name = "heartbeat", precision = 19) public Long getHeartbeat(); /** * Setter for <code>cattle.ha_membership.config</code>. */ public void setConfig(String value); /** * Getter for <code>cattle.ha_membership.config</code>. */ @Column(name = "config", length = 16777215) public String getConfig(); /** * Setter for <code>cattle.ha_membership.clustered</code>. */ public void setClustered(Boolean value); /** * Getter for <code>cattle.ha_membership.clustered</code>. */ @Column(name = "clustered", nullable = false, precision = 1) public Boolean getClustered(); // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- /** * Load data from another generated Record/POJO implementing the common interface HaMembership */ public void from(io.cattle.platform.core.model.HaMembership from); /** * Copy data into another generated Record/POJO implementing the common interface HaMembership */ public <E extends io.cattle.platform.core.model.HaMembership> E into(E into); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "public LocksRecord() {\n\t\tsuper(org.jooq.example.gradle.db.information_schema.tables.Locks.LOCKS);\n\t}", "protected DaoRWImpl() {\r\n super();\r\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "private Row() {\n }", "public XTestCase_64_69Dao() {\n\t\tsuper(org.jooq.examples.h2.matchers.tables.XTestCase_64_69.X_TEST_CASE_64_69, org.jooq.examples.h2.matchers.tables.pojos.XTestCase_64_69.class);\n\t}", "private Builder() {\n super(baconhep.TTau.SCHEMA$);\n }", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "private Builder() {\n super(edu.pa.Rat.SCHEMA$);\n }", "public VBookDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class);\n\t}", "public Pojo1110110(){\r\n\t}", "public Contact() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.person.tables.Contact.Contact);\n\t}", "private Column() {\n }", "private V_2603() {\n\t\tsuper(\"V_2603\", org.jooq.examples.h2.matchers.NonPublic.NON_PUBLIC);\n\t}", "public ListSqlHelper() {\n\t\t// for bran creation\n\t}", "private bildeBaseColumns() {\n\n }", "@Generated(\n value = {\n \"http://www.jooq.org\",\n \"jOOQ version:3.10.8\"\n },\n comments = \"This class is generated by jOOQ\"\n)\n@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IMRelation extends Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public IMRelation setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public IMRelation setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public IMRelation setUpstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public String getUpstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public IMRelation setDownstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public String getDownstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public IMRelation setComments(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public String getComments();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public IMRelation setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IMRelation setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public IMRelation setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public IMRelation setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public IMRelation setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public IMRelation setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public IMRelation setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public IMRelation setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common interface IMRelation\n */\n public void from(cn.vertxup.atom.domain.tables.interfaces.IMRelation from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common interface IMRelation\n */\n public <E extends cn.vertxup.atom.domain.tables.interfaces.IMRelation> E into(E into);\n\n default IMRelation fromJson(io.vertx.core.json.JsonObject json) {\n setKey(json.getString(\"KEY\"));\n setType(json.getString(\"TYPE\"));\n setUpstream(json.getString(\"UPSTREAM\"));\n setDownstream(json.getString(\"DOWNSTREAM\"));\n setComments(json.getString(\"COMMENTS\"));\n setSigma(json.getString(\"SIGMA\"));\n setLanguage(json.getString(\"LANGUAGE\"));\n setActive(json.getBoolean(\"ACTIVE\"));\n setMetadata(json.getString(\"METADATA\"));\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n setCreatedBy(json.getString(\"CREATED_BY\"));\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n setUpdatedBy(json.getString(\"UPDATED_BY\"));\n return this;\n }\n\n\n default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"UPSTREAM\",getUpstream());\n json.put(\"DOWNSTREAM\",getDownstream());\n json.put(\"COMMENTS\",getComments());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n json.put(\"CREATED_BY\",getCreatedBy());\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}", "private DbQuery() {}", "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }", "private JooqUtil() {\n\n }", "@Override\r\n\t\tpublic SQLXML createSQLXML() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "public static interface Relation {\n\t\t//some relations are read-only\n\t\tpublic boolean isWriteable();\n\n\t\tpublic String getName();\n\n\t\t/**\n\t\t* Get the model for the relation. This will return a blank tuple, which will show\n\t\t* the ordered list of columns and the type for each. This is basically metadata.\n\t\t*/\n\t\tpublic Tuple getModel();\n\n\t\t/**\n\t\t* Get the number of rows (Tuples) in the relation.\n\t\t*/\n\t\tpublic int getRows();\n\n\t\t//----------------------------\n\t\t//operations on a Relation\n\t\t/**\n\t\t* projection narrows the number of columns in a relation.\n\t\t* This is the part of an sql statement that list the columns, e.g.\n\t\t*\tSELECT firstname,lastname FROM contact.\n\t\t* The contact table has a lot columns that these, but we only need these\n\t\t* two.\n\t\t*/\n\t\tpublic Relation project(Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Select narrows the number of rows returned.\n\t\t*/\n\t\tpublic Relation select(Condition c) throws RelationException;\n\n\t\t/**\n\t\t* Join this relation with another one based on the condition, and give it a name.\n\t\t* The implementation of this is complicated, because it must also create a dynamic\n\t\t* Tuple\n\t\t*/\n\t\tpublic Relation join(Relation r, Condition c, String name) throws RelationException;\n\t\t//-------------------------------\n\n\t\t/**\n\t\t* A cursor is the equivalent of a ResultSet. There may be different types\n\t\t* of Cursors depending on if this is coming directly from the database\n\t\t* or from a derived relation.\n\t\t*/\n\t\tpublic Cursor getCursor() throws RelationException;\n\n\t\t//-------------------------------\n\t\t//change data in the relation\n\t\t//I had this as part of Transaction, but I guess it belongs here.\n\t\t/**\n\t\t* Insert a Tuple into the relation. This may fail for various reasons\n\t\t* including IO problems, invalid transaction state, or constraint violations.\n\t\t* Or if the relation is read-only\n\t\t*/\n\t\tpublic Key insert(Transaction tx,Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Get the tuple that you just inserted by the Key\n\t\t*/\n\t\tpublic Tuple get(Key k) throws RelationException;\n\n\t\t/**\n\t\t* Update the relation with changed data in the Tuple.\n\t\t* The old data is stored in the _audit table.\n\t\t*/\n\t\tpublic void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;\n\n\t\t/**\n\t\t* Delete the object. Must provide old state of object before doing so, so it\n\t\t* can be audited.\n\t\t*/\n\t\tpublic void delete(Transaction tx,Tuple old) throws RelationException;\n\n\t}", "protected AbstractJoSQLFilter ()\n {\n\n }", "public TdRuspHijo() { }", "public VAuthorDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR, org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor.class);\n\t}", "private GroupParticipationTable() {\n }", "@Override\n protected Sequence newSequence(ResultSet sequenceMeta) throws SQLException {\n Sequence seq = super.newSequence(sequenceMeta);\n seq.setIdentifier(DBIdentifier.trim(seq.getIdentifier()));\n return seq;\n }", "private Builder() {\n super(com.politrons.avro.AvroPerson.SCHEMA$);\n }", "@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}", "private RowData() {\n initFields();\n }", "private TableAccessET() {\n\n }", "private Builder() {\n super(sparqles.avro.analytics.EPViewInteroperability.SCHEMA$);\n }", "public DBDocumentPackage(){\n\t\tthis.primaryKey = null;\n\t\tthis.values = new HashMap<String, Object>();\n\t}", "private ArrowRelationSerializerTeX() {\n }", "private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }", "public DatabaseTable() { }", "public ArangoDBVertex() {\n\t\tsuper();\n\t}", "@Override\n protected void initResultTable() {\n }", "private Builder() {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n }", "private Builder() {\n super(com.twc.bigdata.views.avro.viewing_info.SCHEMA$);\n }", "private Builder() {\n\t\t}", "public PCreateAuthor() {\n\t\tsuper(org.jooq.SQLDialect.SYBASE, \"p_create_author\", org.jooq.test.sybase.generatedclasses.Dba.DBA);\n\t}", "public interface DatabaseCondition extends SQLObject {\n \n}", "public Mytable() {\n this(DSL.name(\"mytable\"), null);\n }", "public SpecialOffer() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.sales.tables.SpecialOffer.SpecialOffer);\n\t}", "public DocumentDao() {\n super(Document.DOCUMENT, cn.edu.nju.teamwiki.jooq.tables.pojos.Document.class);\n }", "public Schema() {\n\t\tsuper();\n\t}", "public DataEquivalentSetClass() {\n }", "public RadixObjectDb() {\r\n super('r', TextUtils.EMPTY_STRING);\r\n }", "public void formDatabaseTable() {\n }", "private TexeraDb() {\n super(\"texera_db\", null);\n }", "public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Override\n public PlainSqlQuery<T, ID> createPlainSqlQuery() {\n return null;\n }", "public DatasetParameterPK() {\n }", "private JdbcTypeRegistry() {\n }", "private Builder() {\n super(org.ga4gh.models.CallSet.SCHEMA$);\n }", "public VoterDao() {\n super(Voter.VOTER, com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter.class);\n }", "private Rows(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public ActiveRowMapper() {\n\t}", "public interface Sqlable {\n\n Map<String, Object> getSqlMap();\n\n String getTableName();\n\n}", "public AllFieldsTableHandler(){}", "public void setup() {\r\n // These setters could be used to override the default.\r\n // this.setDatabasePolicy(new null());\r\n // this.setJDBCHelper(JDBCHelperFactory.create());\r\n this.setTableName(\"chm62edt_habitat_syntaxa\");\r\n this.setTableAlias(\"A\");\r\n this.setReadOnly(true);\r\n\r\n this.addColumnSpec(\r\n new CompoundPrimaryKeyColumnSpec(\r\n new StringColumnSpec(\"ID_HABITAT\", \"getIdHabitat\",\r\n \"setIdHabitat\", DEFAULT_TO_ZERO, NATURAL_PRIMARY_KEY),\r\n new StringColumnSpec(\"ID_SYNTAXA\", \"getIdSyntaxa\",\r\n \"setIdSyntaxa\", DEFAULT_TO_EMPTY_STRING,\r\n NATURAL_PRIMARY_KEY)));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"RELATION_TYPE\", \"getRelationType\",\r\n \"setRelationType\", DEFAULT_TO_NULL));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"ID_SYNTAXA_SOURCE\", \"getIdSyntaxaSource\",\r\n \"setIdSyntaxaSource\", DEFAULT_TO_EMPTY_STRING, REQUIRED));\r\n\r\n JoinTable syntaxa = new JoinTable(\"chm62edt_syntaxa B\", \"ID_SYNTAXA\",\r\n \"ID_SYNTAXA\");\r\n\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"NAME\", \"setSyntaxaName\"));\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"AUTHOR\", \"setSyntaxaAuthor\"));\r\n this.addJoinTable(syntaxa);\r\n\r\n JoinTable syntaxasource = new JoinTable(\"chm62edt_syntaxa_source C\",\r\n \"ID_SYNTAXA_SOURCE\", \"ID_SYNTAXA_SOURCE\");\r\n\r\n syntaxasource.addJoinColumn(new StringJoinColumn(\"SOURCE\", \"setSource\"));\r\n syntaxasource.addJoinColumn(\r\n new StringJoinColumn(\"SOURCE_ABBREV\", \"setSourceAbbrev\"));\r\n syntaxasource.addJoinColumn(new IntegerJoinColumn(\"ID_DC\", \"setIdDc\"));\r\n this.addJoinTable(syntaxasource);\r\n }", "private Queries() {\n // prevent instantiation\n }", "public interface SQLTransform {\n\n\t/**\n\t * Generate code to put into cursor, the bean property value.\n\t *\n\t * @param tableEntity entity with table to target\n\t * @param methodBuilder the method builder\n\t * @param beanClass the bean class\n\t * @param beanName the bean name\n\t * @param property the property\n\t * @param cursorName the cursor name\n\t * @param indexName the index name\n\t */\n\tvoid generateReadPropertyFromCursor(SQLiteEntity tableEntity, Builder methodBuilder, TypeName beanClass, String beanName, ModelProperty property, String cursorName, String indexName);\n\n\t/**\n\t * Used when you need to use a cursor column as select's result value. \n\t *\n\t * @param methodBuilder the method builder\n\t * @param daoDefinition the dao definition\n\t * @param paramTypeName the param type name\n\t * @param cursorName the cursor name\n\t * @param indexName the index name\n\t */\n\tvoid generateReadValueFromCursor(Builder methodBuilder, SQLiteDaoDefinition daoDefinition, TypeName paramTypeName, String cursorName, String indexName);\n\n\t/**\n\t * Generate default value, null or 0 or ''.\n\t *\n\t * @param methodBuilder the method builder\n\t */\n\tvoid generateDefaultValue(Builder methodBuilder);\n\n\t/**\n\t * Write a bean property to a content writer.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param beanName the bean name\n\t * @param beanClass the bean class\n\t * @param property property to write\n\t */\n\tvoid generateWriteProperty2ContentValues(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);\n\t\n\t/**\n\t * Write a bean property into a where condition.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param beanName the bean name\n\t * @param beanClass the bean class\n\t * @param property the property\n\t */\n\tvoid generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);\n\n\t/**\n\t * <p>\n\t * Generate code to write parameter to where condition\n\t * </p>.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param method the method\n\t * @param paramName the param name\n\t * @param paramTypeName the param type name\n\t */\n\tvoid generateWriteParam2WhereCondition(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramTypeName);\n\t\n\t/**\n\t * <p>Generate code to write parameter to where statement</p>.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param method the method\n\t * @param paramName the param name\n\t * @param paramType the param type\n\t * @param property the property\n\t */\n\tvoid generateWriteParam2ContentValues(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramType, ModelProperty property);\n\n\t/**\n\t * Generate code to set property to null value or default value.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param beanClass the bean class\n\t * @param beanName the bean name\n\t * @param property the property\n\t * @param cursorName the cursor name\n\t * @param indexName the index name\n\t */\n\tvoid generateResetProperty(Builder methodBuilder, TypeName beanClass, String beanName, ModelProperty property, String cursorName, String indexName);\n\n\t/**\n\t * Associated column type.\n\t *\n\t * @return column type as string\n\t */\n\tString getColumnTypeAsString();\n\n\t/**\n\t * Gets the column type.\n\t *\n\t * @return column type\n\t */\n\tColumnAffinityType getColumnType();\n\t\n\t/**\n\t * if true, transform can be used as convertion type in a type adapter.\n\t *\n\t * @return true, if is type adapter aware\n\t */\n\tboolean isTypeAdapterAware();\n\n}", "public LeaguePrimaryKey() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Column(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n protected void initialize() {\n\n \n }", "public OtlSourcesRViewRowImpl() {\r\n }", "BSQL2Java2 createBSQL2Java2();", "public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}" ]
[ "0.60794973", "0.6066551", "0.59953856", "0.5985798", "0.5696937", "0.5672971", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.566314", "0.5662292", "0.565078", "0.5615002", "0.55924225", "0.55819905", "0.55743796", "0.55641395", "0.5551943", "0.5537726", "0.5532224", "0.5520201", "0.5476303", "0.5453263", "0.54477805", "0.54024976", "0.540061", "0.5390877", "0.5363881", "0.5321558", "0.53027815", "0.5291439", "0.52801216", "0.527976", "0.5277333", "0.526814", "0.5267833", "0.52677876", "0.52623254", "0.52619714", "0.52613753", "0.5252943", "0.524974", "0.5248592", "0.5245401", "0.5239975", "0.5239599", "0.5212534", "0.5210849", "0.5206308", "0.52035224", "0.5190462", "0.5189094", "0.51839423", "0.5176154", "0.5170843", "0.5158306", "0.5154363", "0.5152337", "0.51507354", "0.51483756", "0.5146734", "0.51453847", "0.5143914", "0.51373386", "0.51311374", "0.51308197", "0.51289314", "0.51278687", "0.5123198", "0.5122848", "0.51109236", "0.5109887", "0.51028407", "0.51022327", "0.5102146", "0.5102146", "0.5102146", "0.5102146", "0.5102146", "0.5102146", "0.509564", "0.50876945", "0.5086132", "0.50803494", "0.5075256" ]
0.0
-1
FROM and INTO Load data from another generated Record/POJO implementing the common interface HaMembership
public void from(io.cattle.platform.core.model.HaMembership from);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <E extends io.cattle.platform.core.model.HaMembership> E into(E into);", "RecordSet loadAllMemberContribution (Record inputRecord);", "@Override\r\n\tpublic void loadData() {\r\n\t\t// Get Session\r\n\r\n\t\tSession ses = HibernateUtil.getSession();\r\n\r\n\t\tQuery query = ses.createQuery(\"FROM User\");\r\n\r\n\t\tList<User> list = null;\r\n\t\tSet<PhoneNumber> phone = null;\r\n\t\tlist = query.list();\r\n\t\tfor (User u : list) {\r\n\t\t\tSystem.out.println(\"Users are \" + u);\r\n\t\t\t// Getting phones for for a particular user Id\r\n\t\t\tphone = u.getPhone();\r\n\t\t\tfor (PhoneNumber ph : phone) {\r\n\t\t\t\tSystem.out.println(\"Phones \" + ph);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "@Generated(\n value = {\n \"http://www.jooq.org\",\n \"jOOQ version:3.9.3\"\n },\n comments = \"This class is generated by jOOQ\"\n)\n@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\n@Entity\n@Table(name = \"ha_membership\", schema = \"cattle\")\npublic interface HaMembership extends Serializable {\n\n /**\n * Setter for <code>cattle.ha_membership.id</code>.\n */\n public void setId(Long value);\n\n /**\n * Getter for <code>cattle.ha_membership.id</code>.\n */\n @Id\n @GeneratedValue(strategy = GenerationType.IDENTITY)\n @Column(name = \"id\", unique = true, nullable = false, precision = 19)\n public Long getId();\n\n /**\n * Setter for <code>cattle.ha_membership.name</code>.\n */\n public void setName(String value);\n\n /**\n * Getter for <code>cattle.ha_membership.name</code>.\n */\n @Column(name = \"name\", length = 255)\n public String getName();\n\n /**\n * Setter for <code>cattle.ha_membership.uuid</code>.\n */\n public void setUuid(String value);\n\n /**\n * Getter for <code>cattle.ha_membership.uuid</code>.\n */\n @Column(name = \"uuid\", unique = true, nullable = false, length = 128)\n public String getUuid();\n\n /**\n * Setter for <code>cattle.ha_membership.heartbeat</code>.\n */\n public void setHeartbeat(Long value);\n\n /**\n * Getter for <code>cattle.ha_membership.heartbeat</code>.\n */\n @Column(name = \"heartbeat\", precision = 19)\n public Long getHeartbeat();\n\n /**\n * Setter for <code>cattle.ha_membership.config</code>.\n */\n public void setConfig(String value);\n\n /**\n * Getter for <code>cattle.ha_membership.config</code>.\n */\n @Column(name = \"config\", length = 16777215)\n public String getConfig();\n\n /**\n * Setter for <code>cattle.ha_membership.clustered</code>.\n */\n public void setClustered(Boolean value);\n\n /**\n * Getter for <code>cattle.ha_membership.clustered</code>.\n */\n @Column(name = \"clustered\", nullable = false, precision = 1)\n public Boolean getClustered();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common interface HaMembership\n */\n public void from(io.cattle.platform.core.model.HaMembership from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common interface HaMembership\n */\n public <E extends io.cattle.platform.core.model.HaMembership> E into(E into);\n}", "public RecordSet loadClaimInfo(Record inputRecord);", "RecordSet loadAllFund(PolicyHeader policyHeader, Record inputRecord);", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\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\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "RecordSet loadAllComponents(Record record, RecordLoadProcessor recordLoadProcessor);", "void populateData();", "@Override\r\n\tprotected final void objectDataMapping() throws BillingSystemException{\r\n\t\tString[][] data=getDataAsArray(USER_DATA_FILE);\r\n\t\tif(validateData(data,\"Authorised User\",COL_LENGTH)){\r\n\t\tList<User> listUser=new ArrayList<User>();\r\n\t\t\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t \t\r\n\t \tUser usr=new User();\r\n\t \t\t\r\n\t \tusr.setUsername(data[i][0]);\r\n\t \tusr.setPassword(data[i][1]);\r\n\t \tusr.setRole(getRoleByCode(data[i][2]));\r\n\t \t\r\n\t \tlistUser.add(usr);\t\r\n\t }\r\n\r\n\t\t\r\n\t\tthis.listUser=listUser;\r\n\t\t}\r\n\t}", "public RecordSet loadAllProcessingDetail(Record inputRecord);", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "protected Member getMembersData() {\r\n String firstName = txtFieldFirstName.getText();\r\n String lastName = txtFieldLastName.getText();\r\n String dateOfBirth = txtFieldDateOfBirth.getText();\r\n String iban = txtFieldIBAN.getText();\r\n String entranceDate = txtFieldEntranceDate.getText();\r\n String leavingDate = txtFieldLeavingDate.getText();\r\n String disabilities = txtAreaDisabilities.getText();\r\n String notes = txtAreaNotes.getText();\r\n String sex = comBoxSexSelection.getItemAt(comBoxSexSelection.getSelectedIndex());\r\n int boardMember = (comBoxBoardMember.getItemAt(comBoxBoardMember.getSelectedIndex()) == \"Ja\") ? 1 : 0;\r\n\r\n Member member = new Member.Builder()\r\n .firstName(firstName)\r\n .lastName(lastName)\r\n .dateOfBirth(dateOfBirth)\r\n .iban(iban)\r\n .sex(sex)\r\n .disabilities(disabilities)\r\n .boardMember(boardMember)\r\n .entranceDate(entranceDate)\r\n .leavingDate(leavingDate)\r\n .notes(notes)\r\n .build();\r\n\r\n return member;\r\n }", "@Override\r\n\t\tpublic List<Boimpl> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\t\tdata = new ArrayList<Boimpl>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\t// | id | name | address | city | sallary | job | DEPARTMENT\r\n\r\n\t\t\t\tBoimpl obj = new Boimpl();\r\n\t\t\t\tobj.setId(rs.getInt(\"id\"));\r\n\t\t\t\tobj.setName(rs.getString(\"name\"));\r\n\t\t\t\tobj.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tobj.setJob(rs.getString(\"job\"));\r\n\t\t\t\tobj.setSallary(rs.getFloat(\"sallary\"));\r\n\t\t\t\tobj.setDEPARTMENT(rs.getString(\"DEPARTMENT\"));\r\n\t\t\t\tobj.setCity(rs.getString(\"city\"));\r\n\t\t\t\tdata.add(obj);\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t}", "RecordSet loadAllLayerDetail(Record inputRecord);", "protected abstract void loadData();", "protected void fromDBObject(DBObject data) {\n /* Get all public fields of the class */\n Field[] fields = this.getClass().getFields();\n for(Field field : fields) {\n String name = field.getName();\n \n if(data.containsField(name)) {\n if(Modifier.isFinal(field.getModifiers()))\n field.setAccessible(true);\n\n Object value = data.get(name);\n \n try {\n field.set(this, convertDBToField(value, field));\n } catch (IllegalAccessException | IllegalArgumentException ex) {\n throw new MongomanException(ex);\n }\n }\n }\n \n _id = (ObjectId) data.get(\"_id\");\n loaded = data;\n }", "public static void toPersonObject() {\n\t\t\n\t\t// queries \n\t\tString getPersonQuery = \"SELECT * FROM Persons\";\n\t\tString getEmailQuery = \"SELECT (email) FROM Emails e WHERE e.personID=?;\";\n\t\t\n\t\t// Create connection and prepare Sql statement \n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet personRs = null;\n\t\tResultSet emailRs = null;\n\n\t\t// result\n\t\tPerson p = null;\n\t\tAddress a = null;\n\t\tString personCode=null, lastName=null, firstName=null;\n\t\n\t\ttry {\t\n\t\t\tconn = ConnectionFactory.getOne();\n\t\t\tps = conn.prepareStatement(getPersonQuery);\n\t\t\tpersonRs = ps.executeQuery();\n\t\t\twhile(personRs.next()) {\n\t\t\t\tpersonCode = personRs.getString(\"personCode\");\n\t\t\t\tlastName = personRs.getString(\"lastName\");\n\t\t\t\tfirstName = personRs.getString(\"firstName\");\n\t\t\t\tint addressID = personRs.getInt(\"addressID\");\n\t\t\t\tint personID = personRs.getInt(\"id\");\n\t\t\t\t\n\t\t\t\ta = ProcessDatabase.toAddressObjectFromDB(addressID);\n\t\t\t\t// create a set to store email and deposite to create an object \n\t\t\t\tArrayList<String> emails = new ArrayList<String>();\n\t\t\t\tString email = null;\n\t\t\t\t//seperate query to get email Address \n\t\t\t\tps = conn.prepareStatement(getEmailQuery);\n\t\t\t\tps.setInt(1, personID);\n\t\t\t\temailRs = ps.executeQuery();\n\t\t\t\twhile(emailRs.next()) {\n\t\t\t\t\temail = emailRs.getString(\"email\");\n\t\t\t\t\temails.add(email);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//create a person Object \n\t\t\t\t//Person(String personCode, String lastName, String firstName, Address address, Set<String> emails)\n\t\t\t\tp = new Person(personCode,lastName,firstName,a,emails);\n\t\t\t\t\n\t\t\t\t//add to Person list \n\t\t\t\tDataConverter.getPersons().add(p);\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\t//log error to logger\n\t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\t}\n\t\t\n\t}", "public RecordSet loadAllCorpOrgDiscountMember(Record inputRecord, RecordLoadProcessor entitlementRLP);", "private User convert(ResultSet rs) throws SQLException, NoSuchAlgorithmException {\n User user = new User(\n rs.getLong(1),\n rs.getString(2),\n new HashedString(rs.getString(3), true),\n new Email(rs.getString(4)));\n return user;\n }", "public interface UniversityDetail {\n public int getId();\n public String getUniversityName();\n public String getLetterRecipient();\n public String getSalutation();\n}", "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}", "RecordSet loadAllPremium(PolicyHeader policyHeader, Record inputRecord);", "private void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }", "public <E extends com.userservice.demo.schema.generated.user_service_demo.tables.interfaces.IUser> E into(E into);", "private Agent loadFromFile(String _login)\n {\n Agent agent = new Agent();\n File file = new File(_login + \".csv\");\n FileReader fr;\n BufferedReader br;\n String line;\n try {\n fr = new FileReader(file);\n br = new BufferedReader(fr);\n\n line = br.readLine();\n\n int numCients;\n { // to restrain the scope of csvData\n String[] csvData = line.split(\",\");\n agent.setID(Integer.parseInt(csvData[0]));\n agent.setName(csvData[1]);\n agent.setSalary(Double.parseDouble(csvData[2]));\n agent.setSalesBalance(Double.parseDouble(csvData[3]));\n\n numCients = Integer.parseInt(csvData[4]);\n }\n\n for(int i = 0; i<numCients; i++) {\n line = br.readLine();\n\n Client client = new Client();\n int numProp;\n\n {\n String[] csvData = line.split(\",\");\n client.setID(Integer.parseInt(csvData[0]));\n client.setName(csvData[1]);\n client.setIncome(Double.parseDouble(csvData[2]));\n\n numProp = Integer.parseInt(csvData[3]);\n }\n\n for(int j=0; j<numProp; j++)\n {\n line = br.readLine();\n\n String[] csvData = line.split(\",\");\n\n if(csvData[0].equals(\"house\")) {\n House property = new House();\n\n property.setAddress(csvData[1]);\n property.setNumRoom(Integer.parseInt(csvData[2]));\n property.setPrice(Double.parseDouble(csvData[3]));\n property.setSize(Double.parseDouble(csvData[4]));\n property.setHasGarage(Boolean.parseBoolean(csvData[5]));\n\n property.setHasGarden(Boolean.parseBoolean(csvData[6]));\n property.setHasPool(Boolean.parseBoolean(csvData[7]));\n\n client.addProperty(property);\n }\n else if(csvData[0].equals(\"apt\"))\n {\n Apartment property = new Apartment();\n\n property.setAddress(csvData[1]);\n property.setNumRoom(Integer.parseInt(csvData[2]));\n property.setPrice(Double.parseDouble(csvData[3]));\n property.setSize(Double.parseDouble(csvData[4]));\n property.setHasGarage(Boolean.parseBoolean(csvData[5]));\n\n property.setHasTerrace(Boolean.parseBoolean(csvData[6]));\n property.setHasElevator(Boolean.parseBoolean(csvData[7]));\n property.setFloor(Integer.parseInt(csvData[8]));\n property.setNumber(Integer.parseInt(csvData[9]));\n\n client.addProperty(property);\n }\n }\n\n agent.addClient(client);\n }\n fr.close();\n br.close();\n return agent;\n }\n catch (NumberFormatException nfEx) {\n JOptionPane.showMessageDialog(null, \"There was a problem when retrieving \" +\n \"the agent's data.\\n Please try again\");\n return null;\n }\n catch (IOException ioEx) {\n JOptionPane.showMessageDialog(null, \"This user doesn't exist....\");\n return null;\n }\n }", "private static int loadFromDatabase(NamedCache cache, int memberId,\r\n\t\t\tint numberOfMembers) throws SQLException {\n\t\tJdbcDataSource ds = new JdbcDataSource();\r\n\t\tds.setURL(\"jdbc:h2:tcp://localhost/~/test\");\r\n\t\tds.setUser(\"sa\");\r\n\t\tds.setPassword(\"\");\r\n\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tCustomer customer = null;\r\n\t\tMap<String, Customer> buffer = new HashMap<String, Customer>();\r\n\t\tconn = ds.getConnection();\r\n\t\tps = conn\r\n\t\t\t\t.prepareStatement(\"SELECT ID,FIRSTNAME,LASTNAME,COUNTRY,ZIPCODE,CITIZENNO,AGE FROM CUSTOMERS WHERE MOD(ID,?) = ?\");\r\n\r\n\t\tps.setInt(1, numberOfMembers);\r\n\t\tps.setInt(2, (memberId - 1));\r\n\r\n\t\trs = ps.executeQuery();\r\n\t\twhile (rs.next()) {\r\n\t\t\tcustomer = new Customer();\r\n\t\t\tcustomer.setId(rs.getString(\"ID\"));\r\n\t\t\tcustomer.setFirstName(rs.getString(\"FIRSTNAME\"));\r\n\t\t\tcustomer.setLastName(rs.getString(\"LASTNAME\"));\r\n\t\t\tcustomer.setCountry(rs.getString(\"COUNTRY\"));\r\n\t\t\tcustomer.setZipCode(rs.getInt(\"ZIPCODE\"));\r\n\t\t\tcustomer.setCitizenNo(rs.getString(\"CITIZENNO\"));\r\n\t\t\tcustomer.setAge(rs.getInt(\"AGE\"));\r\n\t\t\tbuffer.put(customer.getId(), customer);\r\n\t\t}\r\n\r\n\t\tcache.putAll(buffer);\r\n\r\n\t\trs.close();\r\n\t\tps.close();\r\n\t\tconn.close();\r\n\t\treturn buffer.size();\r\n\t}", "FromTable createFromTable();", "private Profile profileData(String name, String department, String dateHired){\n Date dateHiredObject = new Date(dateHired);\n Profile newEmployeeProfile = new Profile(name, department, dateHiredObject);\n return newEmployeeProfile;\n }", "interface ReplicateRecord {\n public ReplicateRecord mode(ConnectorMode mode);\n public ReplicateRecord record(DomainRecord record);\n public SourceRecord convert() throws Exception;\n}", "private void readObject ( ObjectInputStream in ) throws IOException, ClassNotFoundException {\n ObjectInputStream.GetField fields = in.readFields();\n _user = (CTEUser) fields.get(\"_user\", null);\n }", "public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }", "protected void populate(EdaContext xContext, ResultSet rs) \n\tthrows SQLException, IcofException {\n\n\t\tsetId(rs.getLong(ID_COL));\n\t\tsetFromChangeReq(xContext, rs.getLong(FROM_ID_COL));\n\t\tsetToChangeReq(xContext, rs.getLong(TO_ID_COL));\n\t\tsetRelationship(rs.getString(RELATIONSHIP_COL));\n\t\tsetLoadFromDb(true);\n\n\t}", "protected abstract boolean populateAttributes();", "@Override\n\tpublic BaseVo loadFromRS(ResultSet rs) {\n\t\t\n\t\tGatherIndicators gatherIndicators = new GatherIndicators();\n\t\ttry {\n\t\t\tgatherIndicators.setId(rs.getInt(\"id\"));\n\t\t\tgatherIndicators.setName(rs.getString(\"name\"));\n\t\t\tgatherIndicators.setType(rs.getString(\"type\"));\n\t\t\tgatherIndicators.setSubtype(rs.getString(\"subtype\"));\n\t\t\tgatherIndicators.setAlias(rs.getString(\"alias\"));\n\t\t\tgatherIndicators.setDescription(rs.getString(\"description\"));\n\t\t\tgatherIndicators.setCategory(rs.getString(\"category\"));\n\t\t\tgatherIndicators.setIsDefault(rs.getString(\"isDefault\"));\n\t\t\tgatherIndicators.setIsCollection(rs.getString(\"isCollection\"));\n\t\t\tgatherIndicators.setPoll_interval(rs.getString(\"poll_interval\"));\n\t\t\tgatherIndicators.setInterval_unit(rs.getString(\"interval_unit\"));\n\t\t\tgatherIndicators.setClasspath(rs.getString(\"classpath\"));\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 gatherIndicators;\n\t}", "private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }", "int insert(ScPartyMember record);", "public interface ProbeUserMapper {\n List<ProbeUser> queryProbeUser(User user) throws Exception;\n void setProbeUser(List<ProbeUser> probeUser) throws Exception;\n}", "private void loadBtechData()\r\n\t{\r\n\t\tlist.clear();\r\n\t\tString qu = \"SELECT * FROM BTECHSTUDENT\";\r\n\t\tResultSet result = databaseHandler.execQuery(qu);\r\n\r\n\t\ttry {// retrieve student information form database\r\n\t\t\twhile(result.next())\r\n\t\t\t{\r\n\t\t\t\tString studendID = result.getString(\"studentNoB\");\r\n\t\t\t\tString nameB = result.getString(\"nameB\");\r\n\t\t\t\tString studSurnameB = result.getString(\"surnameB\");\r\n\t\t\t\tString supervisorB = result.getString(\"supervisorB\");\r\n\t\t\t\tString emailB = result.getString(\"emailB\");\r\n\t\t\t\tString cellphoneB = result.getString(\"cellphoneNoB\");\r\n\t\t\t\tString courseB = result.getString(\"stationB\");\r\n\t\t\t\tString stationB = result.getString(\"courseB\");\r\n\r\n\t\t\t\tlist.add(new StudentProperty(studendID, nameB, studSurnameB,\r\n\t\t\t\t\t\tsupervisorB, emailB, cellphoneB, courseB, stationB));\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\t// Transfer the list data on the table\r\n\t\tstudentBTable.setItems(list);\r\n\t}", "public /*override*/ void LoadRecordData(BinaryReader bamlBinaryReader) \r\n {\r\n TypeId = bamlBinaryReader.ReadInt16(); \r\n RuntimeName = bamlBinaryReader.ReadString(); \r\n }", "@SuppressWarnings(\"all\")\npublic interface I_LBR_PartnerDFe \n{\n\n /** TableName=LBR_PartnerDFe */\n public static final String Table_Name = \"LBR_PartnerDFe\";\n\n /** AD_Table_ID=1120461 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPName */\n public static final String COLUMNNAME_BPName = \"BPName\";\n\n\t/** Set BP Name\t */\n\tpublic void setBPName (String BPName);\n\n\t/** Get BP Name\t */\n\tpublic String getBPName();\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 DateDoc */\n public static final String COLUMNNAME_DateDoc = \"DateDoc\";\n\n\t/** Set Document Date.\n\t * Date of the Document\n\t */\n\tpublic void setDateDoc (Timestamp DateDoc);\n\n\t/** Get Document Date.\n\t * Date of the Document\n\t */\n\tpublic Timestamp getDateDoc();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name DocumentType */\n public static final String COLUMNNAME_DocumentType = \"DocumentType\";\n\n\t/** Set Document Type.\n\t * Document Type\n\t */\n\tpublic void setDocumentType (String DocumentType);\n\n\t/** Get Document Type.\n\t * Document Type\n\t */\n\tpublic String getDocumentType();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name 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 IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name IsSOTrx */\n public static final String COLUMNNAME_IsSOTrx = \"IsSOTrx\";\n\n\t/** Set Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic void setIsSOTrx (boolean IsSOTrx);\n\n\t/** Get Sales Transaction.\n\t * This is a Sales Transaction\n\t */\n\tpublic boolean isSOTrx();\n\n /** Column name LBR_EventType */\n public static final String COLUMNNAME_LBR_EventType = \"LBR_EventType\";\n\n\t/** Set Event Type\t */\n\tpublic void setLBR_EventType (String LBR_EventType);\n\n\t/** Get Event Type\t */\n\tpublic String getLBR_EventType();\n\n /** Column name LBR_IsManifested */\n public static final String COLUMNNAME_LBR_IsManifested = \"LBR_IsManifested\";\n\n\t/** Set Manifested\t */\n\tpublic void setLBR_IsManifested (boolean LBR_IsManifested);\n\n\t/** Get Manifested\t */\n\tpublic boolean isLBR_IsManifested();\n\n /** Column name LBR_IsXMLValid */\n public static final String COLUMNNAME_LBR_IsXMLValid = \"LBR_IsXMLValid\";\n\n\t/** Set XML Valid\t */\n\tpublic void setLBR_IsXMLValid (boolean LBR_IsXMLValid);\n\n\t/** Get XML Valid\t */\n\tpublic boolean isLBR_IsXMLValid();\n\n /** Column name LBR_PartnerDFe_ID */\n public static final String COLUMNNAME_LBR_PartnerDFe_ID = \"LBR_PartnerDFe_ID\";\n\n\t/** Set Partner Doc Fiscal\t */\n\tpublic void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);\n\n\t/** Get Partner Doc Fiscal\t */\n\tpublic int getLBR_PartnerDFe_ID();\n\n /** Column name LBR_PartnerDFe_UU */\n public static final String COLUMNNAME_LBR_PartnerDFe_UU = \"LBR_PartnerDFe_UU\";\n\n\t/** Set LBR_PartnerDFe_UU\t */\n\tpublic void setLBR_PartnerDFe_UU (String LBR_PartnerDFe_UU);\n\n\t/** Get LBR_PartnerDFe_UU\t */\n\tpublic String getLBR_PartnerDFe_UU();\n\n /** Column name LBR_SitNF */\n public static final String COLUMNNAME_LBR_SitNF = \"LBR_SitNF\";\n\n\t/** Set NF Status.\n\t * NF Status\n\t */\n\tpublic void setLBR_SitNF (String LBR_SitNF);\n\n\t/** Get NF Status.\n\t * NF Status\n\t */\n\tpublic String getLBR_SitNF();\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 SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name lbr_CNPJ */\n public static final String COLUMNNAME_lbr_CNPJ = \"lbr_CNPJ\";\n\n\t/** Set CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic void setlbr_CNPJ (String lbr_CNPJ);\n\n\t/** Get CNPJ.\n\t * Used to identify Legal Entities in Brazil\n\t */\n\tpublic String getlbr_CNPJ();\n\n /** Column name lbr_CPF */\n public static final String COLUMNNAME_lbr_CPF = \"lbr_CPF\";\n\n\t/** Set CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic void setlbr_CPF (String lbr_CPF);\n\n\t/** Get CPF.\n\t * Used to identify individuals in Brazil\n\t */\n\tpublic String getlbr_CPF();\n\n /** Column name lbr_DigestValue */\n public static final String COLUMNNAME_lbr_DigestValue = \"lbr_DigestValue\";\n\n\t/** Set Digest Value\t */\n\tpublic void setlbr_DigestValue (String lbr_DigestValue);\n\n\t/** Get Digest Value\t */\n\tpublic String getlbr_DigestValue();\n\n /** Column name lbr_IE */\n public static final String COLUMNNAME_lbr_IE = \"lbr_IE\";\n\n\t/** Set IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic void setlbr_IE (String lbr_IE);\n\n\t/** Get IE.\n\t * Used to Identify the IE (State Tax ID)\n\t */\n\tpublic String getlbr_IE();\n\n /** Column name lbr_NFeID */\n public static final String COLUMNNAME_lbr_NFeID = \"lbr_NFeID\";\n\n\t/** Set NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic void setlbr_NFeID (String lbr_NFeID);\n\n\t/** Get NFe ID.\n\t * Identification of NFe\n\t */\n\tpublic String getlbr_NFeID();\n\n /** Column name lbr_NFeProt */\n public static final String COLUMNNAME_lbr_NFeProt = \"lbr_NFeProt\";\n\n\t/** Set NFe Protocol\t */\n\tpublic void setlbr_NFeProt (String lbr_NFeProt);\n\n\t/** Get NFe Protocol\t */\n\tpublic String getlbr_NFeProt();\n\n /** Column name lbr_NFeStatus */\n public static final String COLUMNNAME_lbr_NFeStatus = \"lbr_NFeStatus\";\n\n\t/** Set NFe Status.\n\t * Status of NFe\n\t */\n\tpublic void setlbr_NFeStatus (String lbr_NFeStatus);\n\n\t/** Get NFe Status.\n\t * Status of NFe\n\t */\n\tpublic String getlbr_NFeStatus();\n}", "public void from(com.userservice.demo.schema.generated.user_service_demo.tables.interfaces.IUser from);", "private User createUserFromResults(ResultSet results) throws SQLException {\n User user = new User();\n user.setLastName(results.getString(\"last_name\"));\n user.setFirstName(results.getString(\"first_name\"));\n user.setUserid(results.getString(\"id\"));\n user.setDateOfBirth(results.getDate(\"date_of_birth\"));\n // TODO map the remaining fields\n return user;\n }", "public abstract void loadData();", "public abstract void loadData();", "AccountDTO coverAccountToEmpDTO(Account account);", "@Test\n public void userGetMembershipDataByIdTest() {\n Long membershipId = null;\n Integer membershipType = null;\n InlineResponse2005 response = api.userGetMembershipDataById(membershipId, membershipType);\n\n // TODO: test validations\n }", "private MyPersonModelProvider(String inputdata) {\n\t\t\tList<String> contents = UtilFile.readFile(inputdata);\n\t\t\tList<List<String>> tableContents = UtilFile.convertTableContents(contents);\n\n\t\t\tpersons = new ArrayList<MyPerson>();\n\t\t\tfor (List<String> iList : tableContents) {\n\t\t\t\tpersons.add(new MyPerson(iList.get(0), iList.get(1), iList.get(2), Boolean.valueOf(iList.get(3))));\n\t\t\t}\n\t\t}", "public <E extends cn.vertxup.atom.domain.tables.interfaces.IMRelation> E into(E into);", "public UserImplPart1(int studentId, String yourName, int yourAge,int yourSchoolYear, String yourNationality){\n this.studentId = studentId;\n this.name= yourName;\n this.age = yourAge; \n this.schoolYear= yourSchoolYear;\n this.nationality= yourNationality;\n}", "protected abstract D createData();", "public void setData(InputRecord record)\n throws SQLException\n {\n super.setData(record);\n try\n {\n long resourceClassId = record.getLong(\"resource_class_id\");\n resourceClass = coral.getSchema().getResourceClass(resourceClassId);\n if(!record.isNull(\"parent\"))\n {\n parentId = record.getLong(\"parent\");\n }\n long creatorId = record.getLong(\"created_by\");\n creator = coral.getSecurity().getSubject(creatorId);\n created = record.getDate(\"creation_time\");\n long ownerId = record.getLong(\"owned_by\");\n owner = coral.getSecurity().getSubject(ownerId);\n long modifierId = record.getLong(\"modified_by\");\n modifier = coral.getSecurity().getSubject(modifierId);\n modified = record.getDate(\"modification_time\");\n }\n catch(EntityDoesNotExistException e)\n {\n throw new SQLException(\"Failed to load Resource #\"+id, e);\n }\n }", "public abstract void loadFromDatabase();", "public void populateUserDetails() {\n\n this.enterprise = system.getOpRegionDirectory().getOperationalRegionList()\n .stream().filter(op -> op.getRegionId() == user.getNetworkId())\n .findFirst()\n .get()\n .getBuDir()\n .getBusinessUnitList()\n .stream()\n .filter(bu -> bu.getUnitType() == BusinessUnitType.CHEMICAL)\n .map(unit -> (ChemicalManufacturingBusiness) unit)\n .filter(chemBusiness -> chemBusiness.getEnterpriseId() == user.getEnterpriseId())\n .findFirst()\n .get();\n\n this.organization = (ChemicalManufacturer) enterprise\n .getOrganizationList().stream()\n .filter(o -> o.getOrgId() == user.getOrganizationId())\n .findFirst()\n .get();\n\n }", "private void WriteDataToDataBase(SubForum CreatedSubForum) throws IOException, ClassNotFoundException{ \r\n LinkedList <SubForum> SubForumList = new LinkedList();\r\n //Check if there are more user´s in the file\r\n try{\r\n FileInputStream InputFile = new FileInputStream(\"DataBase/Forum/ForumDataBase.obj\");\r\n ObjectInputStream InputObject = new ObjectInputStream(InputFile);\r\n SubForumList = (LinkedList <SubForum>) InputObject.readObject();\r\n InputFile.close();\r\n InputObject.close();\r\n SubForumList.add(CreatedSubForum); \r\n }\r\n \r\n //If not this is the first user\r\n catch (Exception FileNotFoundException){\r\n SubForumList.add(CreatedSubForum);\r\n }\r\n \r\n //Then rewrite the list with the new user \r\n FileOutputStream OutputFile = new FileOutputStream(\"DataBase/Forum/ForumDataBase.obj\");\r\n ObjectOutputStream OutputObject = new ObjectOutputStream(OutputFile);\r\n OutputObject.writeObject(SubForumList); \r\n \r\n OutputFile.close();\r\n OutputObject.close(); \r\n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\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 LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "private static void mFirstSync(Connection con, FileReader fr, String club, boolean clubcorp) {\n\n PreparedStatement pstmt2 = null;\n Statement stmt = null;\n ResultSet rs = null;\n\n\n Member member = new Member();\n\n String line = \"\";\n String password = \"\";\n String temp = \"\";\n\n int i = 0;\n int inact = 0;\n int pri_indicator = 0;\n\n // Values from MFirst records\n //\n String fname = \"\";\n String lname = \"\";\n String mi = \"\";\n String suffix = \"\";\n String posid = \"\";\n String gender = \"\";\n String ghin = \"\";\n String memid = \"\";\n String mNum = \"\";\n String u_hndcp = \"\";\n String c_hndcp = \"\";\n String mship = \"\";\n String mtype = \"\";\n String msub_type = \"\";\n String bag = \"\";\n String email = \"\";\n String email2 = \"\";\n String phone = \"\";\n String phone2 = \"\";\n String mobile = \"\";\n String primary = \"\";\n String webid = \"\";\n String custom1 = \"\";\n String custom2 = \"\";\n String custom3 = \"\";\n\n float u_hcap = 0;\n float c_hcap = 0;\n int birth = 0;\n\n // Values from ForeTees records\n //\n String fname_old = \"\";\n String lname_old = \"\";\n String mi_old = \"\";\n String mship_old = \"\";\n String mtype_old = \"\";\n String email_old = \"\";\n String mNum_old = \"\";\n String ghin_old = \"\";\n String bag_old = \"\";\n String posid_old = \"\";\n String email2_old = \"\";\n String phone_old = \"\";\n String phone2_old = \"\";\n String suffix_old = \"\";\n String msub_type_old = \"\";\n\n float u_hcap_old = 0;\n float c_hcap_old = 0;\n int birth_old = 0;\n\n // Values for New ForeTees records\n //\n String memid_new = \"\";\n String webid_new = \"\";\n String fname_new = \"\";\n String lname_new = \"\";\n String mi_new = \"\";\n String mship_new = \"\";\n String mtype_new = \"\";\n String email_new = \"\";\n String mNum_new = \"\";\n String ghin_new = \"\";\n String bag_new = \"\";\n String posid_new = \"\";\n String email2_new = \"\";\n String phone_new = \"\";\n String phone2_new = \"\";\n String suffix_new = \"\";\n String msub_type_new = \"\";\n String dupuser = \"\";\n String dupwebid = \"\";\n String dupmnum = \"\";\n String emailMF = \"[email protected]\";\n String subject = \"Roster Sync Warning from ForeTees for \" +club;\n\n float u_hcap_new = 0;\n float c_hcap_new = 0;\n int birth_new = 0;\n int errCount = 0;\n int warnCount = 0;\n int totalErrCount = 0;\n int totalWarnCount = 0;\n int email_bounce1 = 0;\n int email_bounce2 = 0;\n\n String errorMsg = \"\";\n String errMemInfo = \"\";\n String errMsg = \"\";\n String warnMsg = \"\";\n String emailMsg1 = \"Duplicate names found in MembersFirst file during ForeTees Roster Sync processing for club: \" +club+ \".\\n\\n\";\n String emailMsg2 = \"\\nThis indicates that either 2 members have the exact same names (not allowed), or MF's member id has changed.\\n\\n\";\n\n ArrayList<String> errList = new ArrayList<String>();\n ArrayList<String> warnList = new ArrayList<String>();\n\n boolean failed = false;\n boolean changed = false;\n boolean skip = false;\n boolean found = false;\n boolean sendemail = false;\n boolean genderMissing = false;\n boolean useWebid = false;\n boolean useWebidQuery = false;\n\n\n // Overwrite log file with fresh one for today's logs\n SystemUtils.logErrorToFile(\"Members First: Error log for \" + club + \"\\nStart time: \" + new java.util.Date().toString() + \"\\n\", club, false);\n\n try {\n\n BufferedReader bfrin = new BufferedReader(fr);\n line = new String();\n\n // format of each line in the file:\n //\n // memid, mNum, fname, mi, lname, suffix, mship, mtype, gender, email, email2,\n // phone, phone2, bag, hndcp#, uhndcp, chndcp, birth, posid, mobile, primary\n //\n //\n while ((line = bfrin.readLine()) != null) { // get one line of text\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord( line );\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 20 ) { // enough data ?\n\n memid = tok.nextToken();\n mNum = tok.nextToken();\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n suffix = tok.nextToken();\n mship = tok.nextToken(); // col G\n mtype = tok.nextToken(); // col H\n gender = tok.nextToken();\n email = tok.nextToken();\n email2 = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n bag = tok.nextToken();\n ghin = tok.nextToken();\n u_hndcp = tok.nextToken();\n c_hndcp = tok.nextToken();\n temp = tok.nextToken();\n posid = tok.nextToken();\n mobile = tok.nextToken();\n primary = tok.nextToken(); // col U\n\n if ( tok.countTokens() > 0 ) {\n\n custom1 = tok.nextToken();\n }\n if ( tok.countTokens() > 0 ) {\n\n custom2 = tok.nextToken();\n }\n if ( tok.countTokens() > 0 ) {\n\n custom3 = tok.nextToken();\n }\n\n\n // trim gender in case followed be spaces\n gender = gender.trim();\n\n //\n // Check for ? (not provided)\n //\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (mNum.equals( \"?\" )) {\n\n mNum = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (suffix.equals( \"?\" )) {\n\n suffix = \"\";\n }\n if (mship.equals( \"?\" )) {\n\n mship = \"\";\n }\n if (mtype.equals( \"?\" )) {\n\n mtype = \"\";\n }\n if (gender.equals( \"?\" ) || (!gender.equalsIgnoreCase(\"M\") && !gender.equalsIgnoreCase(\"F\"))) {\n\n if (gender.equals( \"?\" )) {\n genderMissing = true;\n } else {\n genderMissing = false;\n }\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (email2.equals( \"?\" )) {\n\n email2 = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (bag.equals( \"?\" )) {\n\n bag = \"\";\n }\n if (ghin.equals( \"?\" )) {\n\n ghin = \"\";\n }\n if (u_hndcp.equals( \"?\" )) {\n\n u_hndcp = \"\";\n }\n if (c_hndcp.equals( \"?\" )) {\n\n c_hndcp = \"\";\n }\n if (temp.equals( \"?\" )) {\n\n birth = 0;\n\n } else {\n\n birth = Integer.parseInt(temp);\n }\n if (posid.equals( \"?\" )) {\n\n posid = \"\";\n }\n if (mobile.equals( \"?\" )) {\n\n mobile = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!memid.equals( \"\" ) && !mNum.equals( \"\" ) &&\n !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 && mi.equals( \"\" )) {\n\n mi = tok.nextToken();\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" ) && tok.countTokens() > 0 && club.equals(\"pradera\")) { // Pradera - if suffix AND 2-part lname, use both\n\n String lpart2 = tok.nextToken();\n\n lname = lname + \"_\" + lpart2; // combine them (i.e. Van Ess = Van_Ess)\n\n } else {\n\n if (suffix.equals( \"\" ) && tok.countTokens() > 0) { // if suffix not provided\n\n suffix = tok.nextToken();\n }\n }\n\n //\n // Make sure name is titled (most are already)\n //\n if (!club.equals(\"thereserveclub\")) {\n fname = toTitleCase(fname);\n }\n\n if (!club.equals(\"lakewoodranch\") && !club.equals(\"ballantyne\") && !club.equals(\"pattersonclub\") && !club.equals(\"baldpeak\") && !club.equals(\"pradera\") &&\n !club.equals(\"wellesley\") && !club.equals(\"portlandgc\") && !club.equals(\"trooncc\") && !club.equals(\"pmarshgc\") && !club.equals(\"paloaltohills\") &&\n !club.equals(\"thereserveclub\") && !club.equals(\"castlepines\")) {\n\n lname = toTitleCase(lname);\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n if (!u_hndcp.equals( \"\" ) && !u_hndcp.equalsIgnoreCase(\"NH\") && !u_hndcp.equalsIgnoreCase(\"NHL\")) {\n\n u_hndcp = u_hndcp.replace('L', ' '); // isolate the handicap - remove spaces and trailing 'L'\n u_hndcp = u_hndcp.replace('H', ' '); // or 'H' if present\n u_hndcp = u_hndcp.replace('N', ' '); // or 'N' if present\n u_hndcp = u_hndcp.replace('J', ' '); // or 'J' if present\n u_hndcp = u_hndcp.replace('R', ' '); // or 'R' if present\n u_hndcp = u_hndcp.trim();\n\n u_hcap = Float.parseFloat(u_hndcp); // usga handicap\n\n if ((!u_hndcp.startsWith(\"+\")) && (!u_hndcp.startsWith(\"-\"))) {\n\n u_hcap = 0 - u_hcap; // make it a negative hndcp (normal)\n }\n }\n\n if (!c_hndcp.equals( \"\" ) && !c_hndcp.equalsIgnoreCase(\"NH\") && !c_hndcp.equalsIgnoreCase(\"NHL\")) {\n\n c_hndcp = c_hndcp.replace('L', ' '); // isolate the handicap - remove spaces and trailing 'L'\n c_hndcp = c_hndcp.replace('H', ' '); // or 'H' if present\n c_hndcp = c_hndcp.replace('N', ' '); // or 'N' if present\n c_hndcp = c_hndcp.replace('J', ' '); // or 'J' if present\n c_hndcp = c_hndcp.replace('R', ' '); // or 'R' if present\n c_hndcp = c_hndcp.trim();\n\n c_hcap = Float.parseFloat(c_hndcp); // usga handicap\n\n if ((!c_hndcp.startsWith(\"+\")) && (!c_hndcp.startsWith(\"-\"))) {\n\n c_hcap = 0 - c_hcap; // make it a negative hndcp (normal)\n }\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n \n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n skip = false;\n errCount = 0; // reset error count\n warnCount = 0; // reset warning count\n errMsg = \"\"; // reset error message\n warnMsg = \"\"; // reset warning message\n errMemInfo = \"\"; // reset error member info\n found = false; // init club found\n\n\n //\n // Format member info for use in error logging before club-specific manipulation\n //\n errMemInfo = \"Member Details:\\n\" +\n \" name: \" + lname + \", \" + fname + \" \" + mi + \"\\n\" +\n \" mtype: \" + mtype + \" mship: \" + mship + \"\\n\" +\n \" memid: \" + memid + \" mNum: \" + mNum + \" gender: \" + gender;\n\n // if gender is incorrect or missing, flag a warning in the error log\n if (gender.equals(\"\")) {\n\n // report only if not a club that uses blank gender fields\n if (!club.equals(\"roccdallas\") && !club.equals(\"charlottecc\") && !club.equals(\"sawgrass\") && !clubcorp) {\n\n warnCount++;\n if (genderMissing) {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER missing! (Defaulted to 'M')\";\n } else {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER incorrect! (Defaulted to 'M')\";\n }\n\n gender = \"M\";\n\n } else if (club.equals(\"charlottecc\") || club.equals(\"sawgrass\")) { // default to female instead\n\n warnCount++;\n if (genderMissing) {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER missing! (Defaulted to 'F')\";\n } else {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER incorrect! (Defaulted to 'F)\";\n }\n\n gender = \"F\";\n\n } else if (clubcorp) {\n\n errCount++;\n skip = true;\n if (genderMissing) {\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: GENDER missing!\";\n } else {\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: GENDER incorrect!\";\n }\n }\n }\n\n //\n // Skip entries with first/last names of 'admin'\n //\n if (fname.equalsIgnoreCase(\"admin\") || lname.equalsIgnoreCase(\"admin\")) {\n errCount++;\n skip = true;\n errMsg = errMsg + \"\\n\" +\n \" -INVALID NAME! 'Admin' or 'admin' not allowed for first or last name\";\n }\n\n //\n // *********************************************************************\n //\n // The following will be dependent on the club - customized\n //\n // *********************************************************************\n //\n\n //******************************************************************\n // Saucon Valley Country Club\n //******************************************************************\n //\n if (club.equals( \"sauconvalleycc\" )) {\n\n found = true; // club found\n\n //\n // Determine if we should process this record\n //\n if (!mship.equalsIgnoreCase( \"No Privileges\" ) && !mtype.equalsIgnoreCase( \"Social\" ) &&\n !mtype.equalsIgnoreCase( \"Recreational\" )) {\n\n //\n // determine member type\n //\n if (mtype.equals( \"\" )) { // if not specified\n mtype = \"Staff\"; // they are staff\n }\n if (mship.equals( \"\" )) { // if not specified\n mship = \"Staff\"; // they are staff\n }\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n //\n // The Member Types and Mship Types for this club are backwards.\n // We must set our fields accordingly.\n //\n String memType = mship; // set actual mtype value\n mship = mtype; // set actual mship value\n\n if (memType.equals( \"Full Golf Privileges\" )) {\n\n mtype = \"Full Golf Privileges Men\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Full Golf Privileges Women\";\n }\n }\n\n if (memType.equals( \"Limited Golf Privileges\" )) {\n\n mtype = \"Limited Golf Privileges Men\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Limited Golf Privileges Women\";\n }\n }\n\n if (memType.equals( \"Senior Limited Golf Privileges\" )) {\n\n mtype = \"Senior Limited Golf Privileges\";\n }\n\n //\n // set posid according to mNum\n //\n if (mNum.endsWith( \"-1\" )) { // if spouse\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-1)\n posid = posid + \"1\"; // add a '1' (now 2741)\n\n } else {\n\n if (mNum.endsWith( \"-2\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-2)\n posid = posid + \"2\"; // add a '2' (now 2742)\n\n } else {\n\n if (mNum.endsWith( \"-3\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-3)\n posid = posid + \"3\"; // add a '3' (now 2743)\n\n } else {\n\n if (mNum.endsWith( \"-4\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-4)\n posid = posid + \"4\"; // add a '4' (now 2744)\n\n } else {\n\n posid = mNum; // primary posid = mNum\n }\n }\n }\n }\n\n suffix = \"\"; // done with suffix for now\n\n //\n // Check if member is over 70 yrs old - if so, add '_*' to the end of the last name\n // so proshop will know\n //\n if (birth > 0 && birth < 19500000) { // if worth checking\n\n //\n // Get today's date and then go back 70 years\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 70; // go back 70 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth <= oldDate) { // if member is 70+ yrs old\n\n lname = lname + \"_*\"; // inidicate such\n }\n }\n\n } else {\n\n skip = true; // skip this record\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n } // end of IF club = sauconvalleycc\n\n //******************************************************************\n // Crestmont CC\n //******************************************************************\n //\n if (club.equals( \"crestmontcc\" )) {\n\n found = true; // club found\n\n //\n // determine member type\n //\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n mtype = \"T Designated Male\";\n\n if (gender.equals( \"F\" )) {\n mtype = \"T Designated Female\";\n }\n\n } // end of IF club = crestmontcc\n\n //******************************************************************\n // Black Rock CC\n //******************************************************************\n //\n /*\n if (club.equals( \"blackrock\" )) {\n\n found = true; // club found\n\n //\n // remove the 'A' from spouses mNum\n //\n if (mNum.endsWith( \"A\" ) || mNum.endsWith( \"B\" ) || mNum.endsWith( \"C\" ) ||\n mNum.endsWith( \"D\" ) || mNum.endsWith( \"E\" ) || mNum.endsWith( \"F\" )) {\n\n mNum = stripA(mNum); // remove the ending 'A'\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (!mtype.equals( \"Dependents\" )) { // if not a junior\n\n if (gender.equals( \"F\" )) {\n\n if (mtype.equals( \"Primary\" )) {\n\n mtype = \"Member Female\";\n\n } else {\n\n mtype = \"Spouse Female\";\n }\n\n } else { // Male\n\n if (mtype.equals( \"Primary\" )) {\n\n mtype = \"Member Male\";\n\n } else {\n\n mtype = \"Spouse Male\";\n }\n }\n }\n\n } // end of IF club = blackrock\n */\n\n //******************************************************************\n // John's Island CC\n //******************************************************************\n //\n if (club.equals( \"johnsisland\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is not a blank or admin record\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (lname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine membership type\n //\n if (mship.equals( \"Golf Member\" )) {\n mship = \"Golf\";\n } else if (mship.startsWith( \"Golf Swap\" )) {\n mship = \"Golf Swap\";\n lname = lname + \"*\"; // mark these members\n } else if (mship.equals( \"Sport/Social Member\" )) {\n mship = \"Sport Social\";\n lname = lname + \"*\"; // mark these members\n } else if (mship.startsWith( \"Sport/Social Swap\" )) {\n mship = \"Sport Social Swap\";\n } else {\n mship = \"Golf\";\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (gender.equals( \"M\" ) && primary.equals( \"P\" )) {\n mtype = \"Primary Male\";\n } else if (gender.equals( \"F\" ) && primary.equals( \"P\" )) {\n mtype = \"Primary Female\";\n } else if (gender.equals( \"M\" ) && primary.equals( \"S\" )) {\n mtype = \"Spouse Male\";\n } else if (gender.equals( \"F\" ) && primary.equals( \"S\" )) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n } // end of IF club = johnsisland\n\n/*\n //******************************************************************\n // Philadelphia Cricket Club\n //******************************************************************\n //\n if (club.equals( \"philcricket\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is not an admin record or missing mship/mtype\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*Note* mship located in mtype field)\";\n\n } else if (lname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' MEMBERSHIP TYPE!\";\n } else {\n\n if (mtype.equalsIgnoreCase(\"Leave of Absence\")) {\n \n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (mtype.equalsIgnoreCase( \"golf stm family\" ) || mtype.equalsIgnoreCase( \"golf stm ind.\" )) {\n\n lname = lname + \"*\"; // add an astericks\n }\n\n // if mtype = no golf, add ^ to their last name\n if (mtype.equalsIgnoreCase( \"no golf\" )) {\n\n lname += \"^\";\n }\n\n mship = toTitleCase(mtype); // mship = mtype\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n\n /*\n //\n // determine member type\n //\n if (mtype.equalsIgnoreCase( \"2 junior ft golfers\" ) || mtype.equalsIgnoreCase( \"add'l jr. ft golfers\" ) ||\n mtype.equalsIgnoreCase( \"ft golf full 18-20\" ) || mtype.equalsIgnoreCase( \"ft jr. 17 & under\" ) ||\n mtype.equalsIgnoreCase( \"jr 17 & under w/golf\" ) || mtype.equalsIgnoreCase( \"jr 18-20 w/golf\" ) ||\n mtype.equalsIgnoreCase( \"jr. activity/no chg\" )) {\n\n mtype = \"Certified Juniors\";\n\n } else {\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (mtype.equalsIgnoreCase( \"ft assoc golf 21-30\" ) || mtype.equalsIgnoreCase( \"ft assoc ind golf\" ) ||\n mtype.equalsIgnoreCase( \"ft assoc ind/stm fm\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Associate Male\";\n\n } else {\n\n mtype = \"Associate Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"ft full fm/ind 21-30\" ) || mtype.equalsIgnoreCase( \"ft full ind/sm fm\" ) ||\n mtype.equalsIgnoreCase( \"ft golf full fam.\" ) || mtype.equalsIgnoreCase( \"ft golf full ind.\" ) ||\n mtype.equalsIgnoreCase( \"ft golf honorary\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Full Male\";\n\n } else {\n\n mtype = \"Full Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"golf stm family\" ) || mtype.equalsIgnoreCase( \"golf stm ind.\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"STM Male\";\n\n } else {\n\n mtype = \"STM Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"golf stm (17-20)\" ) || mtype.equalsIgnoreCase( \"golf stm 16 & under\" )) {\n\n mtype = \"STM Junior\";\n\n } else {\n\n mtype = \"Non-Golfing\";\n }\n }\n }\n }\n }\n }\n\n } // end of IF club = philcricket\n\n */\n /*\n //******************************************************************\n // Edgewood CC\n //******************************************************************\n //\n if (club.equals( \"edgewood\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase( \"Sport\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Sport' MEMBERSHIP TYPE!\";\n } else if (mship.equalsIgnoreCase( \"Dining\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Dining' MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Strip any leading zeros from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = edgewood\n */\n /*\n //******************************************************************\n // Out Door CC\n //******************************************************************\n //\n if (club.equals( \"outdoor\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Translate the mship value - remove the '00x-' prefix\n //\n tok = new StringTokenizer( mship, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n\n mship = tok.nextToken(); // get prefix\n mship = tok.nextToken(); // get mship without prefix\n }\n\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Member Male\";\n } else {\n mtype = \"Member Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = outdoor\n */\n\n\n //******************************************************************\n // Rhode Island CC\n //******************************************************************\n //\n if (club.equals( \"rhodeisland\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = rhodeisland\n\n //******************************************************************\n // Wellesley CC\n //******************************************************************\n //\n if (club.equals( \"wellesley\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type (mship value plus 'Male' or 'Female' - i.e. 'Golf Male')\n //\n if (gender.equals( \"F\" )) { // if Female\n mtype = mship + \" Female\";\n } else {\n mtype = mship + \" Male\";\n }\n }\n } // end of IF club = wellesley\n\n //******************************************************************\n // Lakewood Ranch CC\n //******************************************************************\n //\n if (club.equals( \"lakewoodranch\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (mship.equalsIgnoreCase(\"SMR Members and Staff\")) {\n mship = \"SMR Members\";\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = lakewoodranch\n\n //******************************************************************\n // Long Cove CC\n //******************************************************************\n //\n if (club.equals( \"longcove\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member sub-type (MGA or LGA)\n //\n msub_type = \"\";\n\n if (!mtype.equals( \"\" )) { // if mtype specified (actually is sub-type)\n\n msub_type = mtype; // set it in case they ever need it\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (gender.equals( \"M\" )) {\n mtype = \"Adult Male\";\n } else {\n mtype = \"Adult Female\";\n }\n }\n } // end of IF club = longcove\n\n //******************************************************************\n // Bellerive CC\n //******************************************************************\n //\n /*\n if (club.equals( \"bellerive\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) { // mship exist ?\n\n skip = true; // no - skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n if (primary.equalsIgnoreCase( \"P\" )) {\n\n gender = \"M\"; // default to Male\n\n } else {\n\n gender = \"F\"; // default to Female\n }\n }\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Adult Male\";\n\n } else {\n\n mtype = \"Adult Female\";\n }\n\n //\n // Strip any extra chars from mNum\n //\n if (mNum.endsWith( \"A\" ) || mNum.endsWith( \"B\" ) || mNum.endsWith( \"C\" ) ||\n mNum.endsWith( \"D\" ) || mNum.endsWith( \"E\" ) || mNum.endsWith( \"F\" )) {\n\n mNum = stripA(mNum); // remove the ending 'A'\n }\n\n if (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n // *** see oahucc and common MF processing below if we use this again *****************\n\n webid = memid; // use id from MF\n\n //\n // Set the proper mship type\n //\n if (mship.equalsIgnoreCase( \"Active\" ) || mship.equalsIgnoreCase( \"Associate\" ) ||\n mship.equalsIgnoreCase( \"Junior\" ) || mship.equalsIgnoreCase( \"Life\" )) {\n\n mship = \"Golf\";\n }\n\n if (mship.equalsIgnoreCase( \"Non-Golf\" )) {\n\n mship = \"Non-Golf Senior\";\n }\n\n if (mship.equalsIgnoreCase( \"Non-Res\" )) {\n\n mship = \"Non-Resident\";\n }\n\n if (mship.equalsIgnoreCase( \"Spouse\" )) {\n\n //\n // See if we can locate the primary and use his/her mship (else leave as is, it will change next time)\n //\n pstmt2 = con.prepareStatement (\n \"SELECT m_ship FROM member2b WHERE memNum = ? AND webid != ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, mNum);\n pstmt2.setString(2, webid);\n rs = pstmt2.executeQuery();\n\n if(rs.next()) {\n\n mship = rs.getString(\"m_ship\");\n }\n pstmt2.close(); // close the stmt\n }\n }\n } // end of IF club = bellerive\n */\n\n //******************************************************************\n // Peninsula Club\n //******************************************************************\n //\n if (club.equals( \"peninsula\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals(\"\")) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (!mship.equalsIgnoreCase( \"Full\" ) && !mship.equalsIgnoreCase( \"Sports\" ) && !mship.equalsIgnoreCase( \"Corp Full\" ) &&\n !mship.equalsIgnoreCase( \"Tennis\" )) { // mship ok ?\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (primary.equalsIgnoreCase( \"P\" )) { // if Primary member\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n\n } else { // Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = peninsula\n\n\n //******************************************************************\n // Wilmington CC\n //******************************************************************\n //\n if (club.equals( \"wilmington\" )) {\n\n found = true; // club found\n\n // Make sure this is ok\n if (mship.equals( \"\" )) { // mship missing ?\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n // Set POS Id in case they ever need it\n posid = mNum;\n\n // determine membership type and member type\n if (mship.equalsIgnoreCase( \"Child\" )) { // if child\n\n mship = \"Associate\";\n\n // Check if member is 13 or over\n if (birth > 0) {\n\n // Get today's date and then go back 13 years\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 13; // go back 13 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth <= oldDate) { // if member is 13+ yrs old\n mtype = \"Dependent\";\n } else {\n mtype = \"Dependent - U13\";\n }\n }\n\n } else {\n\n if (mship.equalsIgnoreCase( \"Senior\" ) || mship.equalsIgnoreCase( \"Associate\" ) || mship.equalsIgnoreCase(\"Clerical\")) { // if Senior or spouse\n skip = false; // ok\n } else if (mship.endsWith( \"Social\" )) { // if any Social\n mship = \"Social\"; // convert all to Social\n } else if (mship.equalsIgnoreCase( \"Senior Special\" )) { // if Senior Special\n mship = \"Associate\"; // convert to Associate\n } else if (mship.equalsIgnoreCase( \"Senior Transfer\" )) { // if Senior Special\n mship = \"Senior\"; // convert to Senior\n } else {\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase( \"M\" )) {\n mtype = \"Adult Male\";\n } else {\n mtype = \"Adult Female\";\n }\n }\n\n // Check if member has range privileges\n msub_type = \"\"; // init\n\n if (custom1.equalsIgnoreCase( \"range\" )) {\n msub_type = \"R\"; // yes, indicate this so it can be displayed on Pro's tee sheet\n }\n\n }\n } // end of IF club = wilmington\n\n\n //******************************************************************\n // Awbrey Glen CC\n //******************************************************************\n //\n if (club.equals( \"awbreyglen\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) { // mship missing ?\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (mship.equalsIgnoreCase(\"Employee\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n gender = \"F\"; // assume Female\n }\n }\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end of IF club = awbreyglen\n\n\n //******************************************************************\n // The Pinery CC\n //******************************************************************\n //\n if (club.equals( \"pinery\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase( \"Tennis Dues\" ) || mship.equalsIgnoreCase( \"Social Dues\" ) ||\n mship.equalsIgnoreCase( \"Premier Tennis Dues\" ) || mship.equalsIgnoreCase( \"Premier Social Prepaid\" ) ||\n mship.equalsIgnoreCase( \"Premier Social Dues\" ) || mship.equalsIgnoreCase( \"Premier Dining Dues\" ) ||\n mship.equalsIgnoreCase( \"Dining Dues\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // Set mtype\n //\n if (primary.equals( \"\" )) { // if primary not specified\n\n primary = \"P\"; // default to Primary\n }\n\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n gender = \"F\"; // assume Female\n }\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n }\n } // end of IF club = pinery\n\n\n\n //******************************************************************\n // The Country Club\n //******************************************************************\n //\n if (club.equals( \"tcclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n if (mship.startsWith( \"65 & above \" )) {\n\n mship = \"65 & Above Exempt\"; // remove garbage character\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equals( \"\" )) { // if primary not specified\n\n primary = \"P\"; // default to Primary\n }\n\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Check for dependents\n //\n if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") || mNum.endsWith(\"-5\") ||\n mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") || mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n if (gender.equalsIgnoreCase( \"F \")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n }\n\n }\n } // end of IF club = tcclub\n\n //******************************************************************\n // Navesink Country Club\n //******************************************************************\n //\n if (club.equals( \"navesinkcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else {\n\n useWebid = true;\n webid = memid;\n memid = mNum; // use mNum for username, they are unique!\n\n\n if (mtype.startsWith( \"Member Type\" )) {\n\n mship = mtype.substring(12); // remove garbage character\n\n } else {\n mship = mtype;\n }\n\n if (mship.equalsIgnoreCase(\"SS\") || mship.equalsIgnoreCase(\"SSQ\") || mship.equalsIgnoreCase(\"WMF\") ||\n mship.equalsIgnoreCase(\"WMS\") || mship.equalsIgnoreCase(\"HQ\") || mship.equalsIgnoreCase(\"HM\") ||\n mship.equalsIgnoreCase(\"H\") || mship.equalsIgnoreCase(\"HL\") || mship.equalsIgnoreCase(\"HR\") ||\n mship.equalsIgnoreCase(\"JSQ\") || mship.equalsIgnoreCase(\"SHL\") || mship.equalsIgnoreCase(\"SP\") ||\n mship.equalsIgnoreCase(\"SPJ\") || mship.equalsIgnoreCase(\"SPQ\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n StringTokenizer navTok = null;\n\n // check Primary/Spouse\n if (mNum.endsWith(\"-1\")) {\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 2);\n\n } else if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") ||\n mNum.endsWith(\"-5\") || mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") ||\n mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n primary = \"D\";\n mNum = mNum.substring(0, mNum.length() - 2);\n } else {\n primary = \"P\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else if (primary.equalsIgnoreCase( \"D\" )) {\n\n //\n // Dependent mtype based on age\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 18; // backup 18 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth > oldDate || birth == 0) { // dependent is under 18 or no bday provided\n\n mtype = \"Dependent Under 18\";\n } else {\n mtype = \"Dependent 18-24\";\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n if (mship.equalsIgnoreCase(\"SR\") || mship.equalsIgnoreCase(\"SRQ\")) {\n mship = \"SR\";\n } else if (mship.equalsIgnoreCase(\"JR\") || mship.equalsIgnoreCase(\"JRQ\")) {\n mship = \"JR\";\n } else if (mship.equalsIgnoreCase(\"NR\") || mship.equalsIgnoreCase(\"NRQ\")) {\n mship = \"NR\";\n } else if (mship.equalsIgnoreCase(\"R\") || mship.equalsIgnoreCase(\"RQ\")) {\n mship = \"R\";\n }\n }\n }\n } // end of IF club = navesinkcc\n\n\n //******************************************************************\n // The International\n //******************************************************************\n //\n if (club.equals( \"international\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n mship = \"Unknown\"; // allow for missing mships for now\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n\n //\n // Set mship\n //\n if (mship.equals( \"Other\" ) || mship.equals( \"Social\" ) || mship.startsWith( \"Spouse of\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else {\n\n if (mship.startsWith( \"Corporate\" ) || mship.startsWith( \"ITT\" )) {\n mship = \"Corporate\";\n } else if (mship.equals( \"Individual\" ) || mship.endsWith( \"Individual\" ) || mship.startsWith( \"Honorary\" ) ||\n mship.startsWith( \"Owner\" ) || mship.equals( \"Trade\" )) {\n mship = \"Individual\";\n } else if (mship.startsWith( \"Family\" ) || mship.startsWith( \"Senior Family\" )) {\n mship = \"Family\";\n } else if (mship.startsWith( \"Out of Region\" )) {\n mship = \"Out of Region\";\n } else if (mship.startsWith( \"Associat\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Staff\" )) {\n mship = \"Staff\";\n }\n\n }\n } // end of IF club = international\n\n\n //******************************************************************\n // Blue Hill\n //******************************************************************\n //\n if (club.equals( \"bluehill\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else { // must be Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Set mship\n //\n if (mship.startsWith( \"Social\" )) {\n mship = \"Social Golf\";\n } else if (mship.startsWith( \"Associat\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Corporate\" )) {\n mship = \"Corporate\";\n } else if (!mship.equals( \"Junior\" )) {\n mship = \"Regular Golf\"; // all others (Junior remains as Junior)\n }\n }\n } // end of IF club = bluehill\n\n\n //******************************************************************\n // Oak Lane\n //******************************************************************\n //\n if (club.equals( \"oaklane\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!!!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing or not allowed! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Remove '-n' from mNum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiters are space\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get main mNum\n }\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else { // must be Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Set mship\n //\n if (mship.startsWith( \"Senior Social\" ) || mship.startsWith( \"Social\" )) {\n mship = \"Social\";\n } else if (mship.startsWith( \"Senior Tennis\" ) || mship.startsWith( \"Summer Tennis\" ) || mship.startsWith( \"Tennis\" )) {\n mship = \"Tennis\";\n }\n }\n } // end of IF club = oaklane\n\n\n //******************************************************************\n // Green Hills\n //******************************************************************\n //\n if (club.equals( \"greenhills\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!!!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n mtype = \"Primary Male\"; // default Primary\n\n if (mNum.endsWith( \"-1\" )) { // if Spouse\n mtype = \"Spouse Female\";\n }\n\n //\n // Remove '-n' from mNum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiters are space\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get main mNum\n }\n }\n } // end of IF club = greenhills\n\n\n //******************************************************************\n // Oahu CC\n //******************************************************************\n //\n if (club.equals( \"oahucc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n // This family has a last name consisting of 3 words. If them, just plug in the correct name\n if (memid.equals(\"4081\") || memid.equals(\"4081-1\")) {\n lname = \"de_los_Reyes\";\n }\n\n //\n // Convert some mships\n //\n if (mship.equalsIgnoreCase( \"Surviving Spouse 50 Year Honorary\" )) {\n mship = \"Surv Sp 50 Year Honorary\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse - Non-Resident\" )) {\n mship = \"Surviving Spouse Non-Resident\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Non-Resident - Golf\" )) {\n mship = \"Surv Sp Non-Resident - Golf\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Super Senior - Golf\" )) {\n mship = \"Surv Sp Super Senior - Golf\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Super Senior - Social\" )) {\n mship = \"Surv Sp Super Senior - Social\";\n }\n\n //\n // Set mtype\n //\n if (mship.startsWith(\"Surv\") || mship.equalsIgnoreCase(\"SS50\")) { // if Surviving Spouse\n\n mtype = \"Spouse\"; // always Spouse\n\n } else {\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n mtype = \"Spouse\";\n } else {\n mtype = \"Primary\"; // default to Primary\n }\n }\n\n //\n // Check for Junior Legacy members last\n //\n if (mship.startsWith( \"Jr\" )) {\n\n mship = \"Junior Legacy\";\n mtype = \"Spouse\";\n }\n }\n } // end of IF club = oahucc\n\n\n\n //******************************************************************\n // Ballantyne CC\n //******************************************************************\n //\n if (club.equals( \"ballantyne\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken();\n }\n\n //\n // Convert some mships ************** finish this!!!!!!!!! ************\n //\n if (mtype.equalsIgnoreCase( \"Full Golf\" ) || mship.equalsIgnoreCase(\"Trial Member - Golf\")) {\n\n mship = \"Golf\";\n skip = false;\n\n } else if (mtype.equalsIgnoreCase( \"Limited Golf\" ) || mship.equalsIgnoreCase( \"Master Member\" ) || mship.equalsIgnoreCase(\"Trial Sports Membership\")) {\n\n mship = \"Sports\";\n skip = false;\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n //\n // Set mtype ?????????? **************** and this !!!! **************\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club is ballantyne\n\n\n //******************************************************************\n // Troon CC\n //******************************************************************\n //\n if (club.equals( \"trooncc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken();\n }\n\n if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Intermediate Golf\") ||\n mship.equalsIgnoreCase(\"Social to Golf Upgrade\") || mship.equalsIgnoreCase(\"Founding\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Social from Golf\")) {\n mship = \"Social\";\n } else if (!mship.equalsIgnoreCase(\"Senior\") && !mship.equalsIgnoreCase(\"Dependent\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n try {\n if (mship.equalsIgnoreCase(\"Dependent\") && (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"b\"))) {\n String mNumTemp = mNum.substring(0, mNum.length() - 1);\n PreparedStatement pstmtTemp = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n\n pstmtTemp.clearParameters();\n pstmtTemp.setString(1, mNumTemp);\n\n ResultSet rsTemp = pstmtTemp.executeQuery();\n\n if (rsTemp.next()) {\n mship = rsTemp.getString(\"m_ship\");\n }\n\n pstmtTemp.close();\n }\n } catch (Exception exc) {\n mship = \"Unknown\";\n }\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase( \"F\" )) { // if spouse\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club = trooncc\n\n\n //******************************************************************\n // Imperial GC\n //******************************************************************\n //\n if (club.equals( \"imperialgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.startsWith( \"Account\" ) || mship.equals( \"Dining Full\" ) ||\n mship.equals( \"Dining Honorary\" ) || mship.equals( \"Dining Single\" ) ||\n mship.equals( \"Resigned\" ) || mship.equals( \"Suspended\" )) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n //useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken();\n }\n\n\n //\n // Convert some mships\n //\n if (mship.startsWith( \"Associate\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Dining Summer\" )) {\n mship = \"Dining Summer Golf\";\n } else if (mship.startsWith( \"Golf Royal\" )) {\n mship = \"Golf Royal\";\n } else if (mship.startsWith( \"Golf Single\" ) || mship.equalsIgnoreCase(\"RISINGLE\")) {\n mship = \"Golf Single\";\n } else if (mship.equalsIgnoreCase(\"RIMEMBER\")) {\n mship = \"Golf Full\";\n } else if (mship.startsWith( \"Limited Convert\" )) {\n mship = \"Limited Convertible\";\n } else if (mship.startsWith( \"Resigned\" )) {\n mship = \"Resigned PCD\";\n }\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n\n gender = \"F\";\n }\n }\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club = imperialgc\n\n\n\n /* Disable - Pro wants to maintain roster himself !!!\n *\n //******************************************************************\n // Hop Meadow GC\n //******************************************************************\n //\n if (club.equals( \"hopmeadowcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken(); // keep mnum same for all family members\n }\n\n\n //\n // Convert some mships\n //\n if (mship.startsWith( \"Sporting\" )) {\n\n mship = \"Sporting Member\";\n\n } else {\n\n if (mship.startsWith( \"Dependent\" )) {\n\n mship = \"Dependents\";\n\n } else {\n\n if (mship.startsWith( \"Non-Resid\" )) {\n\n mship = \"Non Resident\";\n\n } else {\n\n if (mship.equals( \"Clergy\" ) || mship.startsWith( \"Full Privilege\" ) ||\n mship.equals( \"Honorary\" ) || mship.startsWith( \"Retired Golf\" )) {\n\n mship = \"Full Privilege Golf\";\n\n } else if (mship.equals(\"Senior\")) {\n\n // let Senior come through as-is\n\n } else {\n\n skip = true; // skip all others\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n }\n }\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n\n mtype = \"Spouse Female\";\n\n if (!gender.equalsIgnoreCase( \"F\")) {\n\n mtype = \"Spouse Male\";\n }\n\n } else {\n\n mtype = \"Primary Male\";\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n\n mtype = \"Primary Female\";\n }\n }\n }\n } // end of IF club = hopmeadowcc\n */\n\n\n\n //******************************************************************\n // Bentwater Yacht & CC\n //******************************************************************\n //\n if (club.equals( \"bentwaterclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n\n //\n // Convert the mships (\"Member Type:xxx\" - just take the xxx)\n //\n tok = new StringTokenizer( mship, \":\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mship = tok.nextToken(); // skip 1st part\n mship = tok.nextToken(); // get actual mship\n }\n\n\n //\n // Set mtype\n //\n mtype = \"Member\"; // same for all\n }\n } // end of IF club = bentwaterclub\n\n\n //******************************************************************\n // Sharon Heights\n //******************************************************************\n //\n if (club.equals( \"sharonheights\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n\n //\n // Set POS Id - leave leading zeros, but strip trailing alpha!!\n //\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n posid = stripA(mNum); // remove trailing alpha for POSID\n }\n\n\n //\n // Strip any leading zeros and from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum w/o zeros for username (each is unique - MUST include the trailing alpha!!)\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n } else {\n\n if (mNum.endsWith(\"B\") || mNum.endsWith(\"b\")) {\n\n mtype = \"Adult Female\";\n }\n }\n\n //\n // Now remove the trainling alpha from mNum\n //\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n }\n } // end of IF club = sharonheights\n\n\n/*\n //******************************************************************\n // Bald Peak\n //******************************************************************\n //\n if (club.equals( \"baldpeak\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use MF's memid\n memid = mNum; // use mNum for username (each is unique)\n\n\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"S\")) {\n\n mtype = \"Adult Female\";\n gender = \"F\";\n }\n }\n }\n } // end of IF club = baldpeak\n*/\n\n //******************************************************************\n // Mesa Verde CC\n //******************************************************************\n //\n if (club.equals( \"mesaverdecc\" )) {\n\n found = true; // club found\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (mship.startsWith( \"Social\" )) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n mtype = \"Member\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Auxiliary\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"S\")) {\n\n mtype = \"Auxiliary\";\n gender = \"F\";\n }\n }\n }\n } // end of IF club = mesaverdecc\n\n\n //******************************************************************\n // Portland CC\n //******************************************************************\n //\n if (club.equals( \"portlandcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n\n if (primary.equalsIgnoreCase(\"P\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"P\")) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Spouse Male\";\n }\n }\n\n //\n // Set mship\n //\n if (mship.endsWith(\"10\") || mship.endsWith(\"11\") || mship.endsWith(\"12\") || mship.endsWith(\"14\") ||\n mship.endsWith(\"15\") || mship.endsWith(\"16\") || mship.endsWith(\"17\")) {\n\n mship = \"Active\";\n\n } else if (mship.endsWith(\"20\") || mship.endsWith(\"21\")) {\n mship = \"Social\";\n } else if (mship.endsWith(\"30\") || mship.endsWith(\"31\")) {\n mship = \"Senior Active\";\n } else if (mship.endsWith(\"40\") || mship.endsWith(\"41\")) {\n mship = \"Junior Active\";\n } else if (mship.endsWith(\"18\") || mship.endsWith(\"19\")) {\n mship = \"Junior Social\";\n } else if (mship.endsWith(\"50\") || mship.endsWith(\"51\") || mship.endsWith(\"60\")) {\n mship = \"Unattached\";\n } else if (mship.endsWith(\"78\") || mship.endsWith(\"79\")) {\n mship = \"Social Non-Resident\";\n } else if (mship.endsWith(\"80\") || mship.endsWith(\"81\")) {\n mship = \"Active Non-Resident\";\n } else if (mship.endsWith(\"70\") || mship.endsWith(\"71\") || mship.endsWith(\"72\")) {\n mship = \"Spousal\";\n } else {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = portlandcc\n\n\n /*\n //******************************************************************\n // Dorset FC - The Pro does not want to use RS - he will maintain the roster\n //******************************************************************\n //\n if (club.equals( \"dorsetfc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n if (!mship.endsWith( \":5\" ) && !mship.endsWith( \":9\" ) && !mship.endsWith( \":17\" ) && !mship.endsWith( \":21\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n //\n // Set mship\n //\n mship = \"Family Full\";\n }\n }\n } // end of IF club = dorsetfc\n */\n\n\n //******************************************************************\n // Baltusrol GC\n //******************************************************************\n //\n if (club.equals( \"baltusrolgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n\n //\n // Set mtype\n //\n if (memid.endsWith(\"-1\")) { // if Spouse\n\n if (gender.equalsIgnoreCase(\"M\")) {\n\n mtype = \"Spouse Male\";\n\n } else {\n\n mtype = \"Spouse Female\";\n\n fname = \"Mrs_\" + fname; // change to Mrs....\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Primary Female\";\n\n } else {\n\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set the mship type\n //\n if (mship.startsWith(\"Junior\")) { // Funnel anything starting with 'Junior' to be simply \"Junior\"\n\n mship = \"Junior\";\n\n } else if (mship.equalsIgnoreCase(\"Staff\") || mship.startsWith(\"Type\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = baultusrolcc\n\n\n\n\n //******************************************************************\n // The Club at Pradera\n //******************************************************************\n //\n if (club.equals( \"pradera\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n if (mNum.endsWith(\"-1\")) { // if Spouse\n mNum = mNum.substring(0, mNum.length()-2);\n if (!genderMissing && gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Spouse\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set the mship type\n //\n mship = \"Golf\"; // default\n\n if (mNum.startsWith(\"I\")) {\n mship = \"Invitational\";\n } else if (mNum.startsWith(\"P\")) {\n mship = \"Prestige\";\n } else if (mNum.startsWith(\"F\")) {\n mship = \"Founding\";\n } else if (mNum.startsWith(\"J\")) {\n mship = \"Junior Executive\";\n } else if (mNum.startsWith(\"C\")) {\n mship = \"Corporate\";\n } else if (mNum.startsWith(\"H\")) {\n mship = \"Honorary\";\n } else if (mNum.startsWith(\"Z\")) {\n mship = \"Employee\";\n } else if (mNum.startsWith(\"S\")) {\n mship = \"Sports\";\n } else if (mNum.startsWith(\"L\") || mNum.startsWith(\"l\")) {\n mship = \"Lifetime\";\n } else if (mNum.startsWith(\"X\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = pradera\n\n\n\n //******************************************************************\n // Scarsdale GC\n //******************************************************************\n //\n if (club.equals( \"scarsdalegolfclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n if (!mNum.endsWith(\"-1\")) {\n\n memid = mNum; // use mNum for username\n\n } else {\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // isolate mnum\n }\n\n memid = mNum + \"A\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase(\"S\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set mship\n //\n if (mship.endsWith(\"egular\")) { // catch all Regulars\n mship = \"Regular\";\n } else if (mship.endsWith(\"ssociate\")) { // catch all Associates\n mship = \"Associate\";\n } else if (mship.endsWith(\"Social\")) { // catch all Socials\n mship = \"House Social\";\n } else if (mship.endsWith(\"Sports\")) { // catch all Sports\n mship = \"House Sports\";\n } else if (mship.equals(\"P\") || mship.equals(\"Privilege\")) {\n mship = \"Privilege\";\n } else if (!mship.equals(\"Special Visitors\") && !mship.equals(\"Non-Resident\") && !mship.equals(\"Honorary\")) {\n\n skip = true; // skip if not one of the above\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club is Scarsdale\n\n\n\n //******************************************************************\n // Patterson Club\n //******************************************************************\n //\n if (club.equals( \"pattersonclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mship.startsWith( \"DS\" ) || mship.startsWith( \"Employee\" ) || mship.equals( \"LOA\" ) ||\n mship.equals( \"Resigned\" ) || mship.equals( \"Honorary\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n\n memid = mNum; // use mNum for username\n\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n /*\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken(); // isolate mnum\n\n if (memid.endsWith(\"-1\")) {\n\n memid = mNum + \"A\"; // use nnnA\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n } else {\n mtype = \"Dependent\";\n }\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n */\n\n if (mNum.endsWith(\"A\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n\n //\n // Set mship - these do not exist any longer, but leave just in case\n //\n if (mship.equalsIgnoreCase(\"FP-Intermediate\")) {\n mship = \"FP\";\n } else {\n if (mship.equalsIgnoreCase(\"HTP Intermediate\")) {\n mship = \"HTP\";\n }\n } // Accept others as is\n }\n } // end of IF club = pattersonclub\n\n\n //******************************************************************\n // Tamarack\n //******************************************************************\n //\n if (club.equals( \"tamarack\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // Set username to mNum (it is unique)\n //\n memid = mNum;\n\n //\n // Remove extension from mNum if not primary\n //\n StringTokenizer tok9 = new StringTokenizer( mNum, \"-\" ); // look for a dash (i.e. 1234-1)\n\n if ( tok9.countTokens() > 1 ) { \n\n mNum = tok9.nextToken(); // get just the mNum if it contains an extension\n }\n\n /*\n if (!primary.equalsIgnoreCase(\"P\")) {\n mNum = stripA(mNum);\n }\n */\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (mship.startsWith(\"SP-\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n mship = mship.substring(3);\n\n } else if (mship.startsWith(\"DEP-\")) {\n\n mtype = \"Dependent\";\n\n mship = mship.substring(4);\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n if (memid.contains(\"-\")) {\n memid = memid.substring(0, memid.length() - 2) + memid.substring(memid.length() - 1);\n }\n \n\n //\n // Set mship\n //\n if (mship.equalsIgnoreCase(\"Associate\") || mship.equalsIgnoreCase(\"Corporate\") || mship.equalsIgnoreCase(\"Dependent\") ||\n mship.equalsIgnoreCase(\"Junior\") || mship.equalsIgnoreCase(\"Non-Resident\") || mship.equalsIgnoreCase(\"Senior\") ||\n mship.equalsIgnoreCase(\"Regular\") || mship.equalsIgnoreCase(\"Sr Cert\") || mship.equalsIgnoreCase(\"Intermed/C\") ||\n mship.equalsIgnoreCase(\"Widow\")) {\n\n // Do nothing\n\n } else if (mship.equalsIgnoreCase(\"Certificate\")) {\n mship = \"Certificat\";\n } else if (mship.equalsIgnoreCase(\"Intermediate\")) {\n mship = \"Intermedia\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = tamarack\n\n //******************************************************************\n // St. Clair Country Club\n //******************************************************************\n //\n if (club.equals( \"stclaircc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n\n // strip \"Member Type:\" from mship if present\n if (mtype.startsWith(\"Member Type:\")) {\n mtype = mtype.substring(12);\n }\n\n // set mship\n if (mtype.equalsIgnoreCase(\"ACTIVE\") || mtype.equalsIgnoreCase(\"VOTING\")) {\n mship = \"Voting\";\n } else if (mtype.equalsIgnoreCase(\"ACTIVESR\") || mtype.equalsIgnoreCase(\"SENIOR\")) {\n mship = \"Senior\";\n } else if (mtype.startsWith(\"INT\")) {\n mship = \"Intermediate\";\n } else if (mtype.equalsIgnoreCase(\"ASSOC20\")) {\n mship = \"Assoc20\";\n } else if (mtype.equalsIgnoreCase(\"ASSOCIATE\")) {\n mship = \"Associate Golf\";\n } else if (mtype.equalsIgnoreCase(\"LTD GOLF\")) {\n mship = \"Limited Golf\";\n } else if (mtype.equalsIgnoreCase(\"SOCGLF\")) {\n mship = \"Social Golf\";\n } else if (mtype.equalsIgnoreCase(\"NRGP\")) {\n mship = \"NR Golf\";\n } else if (mtype.equalsIgnoreCase(\"FAMILY GP\") || mtype.equalsIgnoreCase(\"SPOUSE GP\")) {\n mship = \"Spouse Golf\";\n } else if (mtype.equalsIgnoreCase(\"FAMILYSPGP\") || mtype.equalsIgnoreCase(\"SPOUSESPGP\")) {\n mship = \"Spouse Golf 9\";\n } else if (mtype.equalsIgnoreCase(\"ASSP20GP\")) {\n mship = \"Assoc Spouse20\";\n } else if (mtype.equalsIgnoreCase(\"ASGP\")) {\n mship = \"Assoc/Ltd Spouse\";\n } else if (mtype.equalsIgnoreCase(\"LTDSP GP\") || mtype.equalsIgnoreCase(\"ASGP\")) {\n mship = \"Limited Spouse\";\n } else if (mtype.equalsIgnoreCase(\"ASSSPGP\")) {\n mship = \"Associate Spouse\";\n } else if (mtype.equalsIgnoreCase(\"SOCSP GP\") || mtype.equalsIgnoreCase(\"ASRGP\")) {\n mship = \"Soc Golf Spouse\";\n } else if (mtype.equalsIgnoreCase(\"JR 12-17\") || mtype.equalsIgnoreCase(\"JR 18-24\")) {\n mship = \"Junior Golf\";\n } else if (mtype.equalsIgnoreCase(\"ASSOC20J\") || mtype.equalsIgnoreCase(\"ASSOC20J18\")) {\n mship = \"Assoc Jr20\";\n } else if (mtype.equalsIgnoreCase(\"ASSOCJR\") || mtype.equalsIgnoreCase(\"ASSOCJR18\")) {\n mship = \"Associate Jr\";\n } else if (mtype.startsWith(\"LTD JR\")) {\n mship = \"Limited Jr\";\n } else if (mtype.equalsIgnoreCase(\"SOCJR<18\") || mtype.equalsIgnoreCase(\"SOCJR>18\")) {\n mship = \"Soc Jr Golf\";\n } else if (mtype.equalsIgnoreCase(\"EMERITUS\")) {\n mship = \"Emeritus\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n // set other values\n posid = mNum; // set posid in case we ever need it\n while (mNum.startsWith(\"0\")){\n mNum = remZeroS(mNum);\n }\n\n useWebid = true; // use these webids\n webid = memid;\n memid = mNum;\n\n // set mtype\n if (mNum.endsWith(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n mNum = mNum.substring(0,mNum.length()-1); // remove extension char\n } else if (mNum.endsWith(\"J\") || mNum.endsWith(\"K\") || mNum.endsWith(\"L\") || mNum.endsWith(\"M\") || mNum.endsWith(\"N\") || mNum.endsWith(\"O\") || mNum.endsWith(\"P\")) {\n mtype = \"Dependent\";\n mNum = mNum.substring(0,mNum.length()-1); // remove extension char\n } else {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n }\n }\n\n } // end of IF club = stclaircc\n\n\n //******************************************************************\n // The Trophy Club Country Club\n //******************************************************************\n //\n if (club.equals( \"trophyclubcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n\n } else {\n\n useWebid = true;\n webid = memid;\n posid = mNum;\n\n mship = \"Golf\";\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n } // end of IF club = trophyclubcc\n\n\n\n //******************************************************************\n // Pelican Marsh Golf Club\n //******************************************************************\n //\n if (club.equals( \"pmarshgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true;\n webid = memid;\n memid = mNum;\n\n mNum = stripDash(mNum); // remove the -00 etc from end of mNums\n\n posid = mNum;\n\n // check for proper membership types\n if (mtype.equalsIgnoreCase(\"Equity Golf\") || mtype.equalsIgnoreCase(\"Non-Equity Golf\") ||\n mtype.equalsIgnoreCase(\"Trial Golf\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"Equity Social\")) {\n mship = \"Social\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n } // end of IF club is pmarshgc\n\n\n //******************************************************************\n // Silver Lake Country Club\n //******************************************************************\n //\n if (club.equals( \"silverlakecc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum;\n mNum = remZeroS(mNum);\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mtype.startsWith(\"Social\")) {\n mship = \"Social Elite\";\n } else {\n mship = \"Full Golf\";\n }\n\n //Will need to add \"Social Elite\" eventually!\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n\n }\n } // end of IF club is silverlakecc\n\n\n //******************************************************************\n // Edina Country Club\n //******************************************************************\n //\n if (club.equals(\"edina\") || club.equals(\"edina2010\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n StringTokenizer tempTok = new StringTokenizer(mNum, \"-\");\n String suf = \"0\";\n\n if (tempTok.countTokens() > 1){ // if mNum contains a - then it is a spouse\n mNum = stripDash(mNum);\n suf = \"1\";\n }\n\n posid = mNum; // set posid before zeros are removed\n\n while (mNum.startsWith(\"0\")) {\n mNum = remZeroS(mNum);\n }\n\n memid = mNum + suf; // set memid\n\n // ignore specific membership types\n if (mship.equalsIgnoreCase(\"Other Clubs\") || mship.equalsIgnoreCase(\"Party Account\") ||\n mship.equalsIgnoreCase(\"Resigned with Balance Due\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else if (mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Honorary Social\") || mship.equalsIgnoreCase(\"Clergy\") || mship.equalsIgnoreCase(\"Social Widow\")) {\n\n mship = \"Social\";\n\n } else if (mship.equalsIgnoreCase(\"Pool/Tennis\")) {\n\n mship = \"Pool/Tennis\";\n\n } else { // leave these two as they are, everything else = golf\n \n mship = \"Golf\";\n }\n\n // set member type based on gender\n if (primary.equalsIgnoreCase(\"P\") || primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n } else {\n mtype = \"Dependent\";\n }\n \n \n //\n // Custom to filter out a member's 2nd email address - she doesn't want ForeTees emails on this one, but wants it in MF\n //\n if (webid.equals(\"2720159\")) {\n \n email2 = \"\";\n }\n \n }\n\n } // end if edina\n\n //******************************************************************\n // Seville Golf & Country Club\n //******************************************************************\n //\n if (club.equals(\"sevillegcc\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid before zeros are removed\n\n while (mNum.startsWith(\"0\")) {\n mNum = remZeroS(mNum);\n }\n\n // ignore specific membership types\n if (mtype.startsWith(\"Sports\")) {\n mship = \"Sports Golf\";\n } else {\n mship = \"Full Golf\";\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n\n } // end if sevillegcc\n\n\n //******************************************************************\n // Royal Oaks CC - Dallas\n //******************************************************************\n //\n if (club.equals(\"roccdallas\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase(\"Tennis Member\") || mship.equalsIgnoreCase(\"Tennis Special Member\") ||\n mship.equalsIgnoreCase(\"Junior Tennis Member\") || mship.equalsIgnoreCase(\"Social Member\") ||\n mship.equalsIgnoreCase(\"Dining Member\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid before zeros are removed\n // memid = mNum; // user mNum as memid, mNums ARE UNIQUE! - USE MF's ID !!!!\n\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n\n\n // handle 'Spouse of member' membership type\n if (mship.equalsIgnoreCase(\"Spouse of member\")) {\n\n primary = \"S\"; // they are a Spouse\n\n // if Spouse: determine mship from 2nd character of mNum\n if (!mNum.equals(\"\")) {\n\n if (mNum.charAt(1) == 'P') {\n mship = \"Golf Associate Member\";\n } else if (mNum.charAt(1) == 'E') {\n mship = \"Special Member\";\n } else if (mNum.charAt(1) == 'G') {\n mship = \"Senior Member\";\n } else if (mNum.charAt(1) == 'J') {\n mship = \"Junior Member\";\n } else if (mNum.charAt(1) == 'N') {\n mship = \"Non Resident Member\";\n } else if (mNum.charAt(1) == 'F') {\n mship = \"Temp Non Certificate\";\n } else if (mNum.charAt(1) == 'L') {\n mship = \"Ladies Member\";\n } else if (mNum.charAt(1) == 'K') {\n mship = \"Associate Resident Member\";\n } else if (mNum.charAt(1) == 'H') {\n mship = \"Honorary\";\n } else if (mNum.charAt(1) == 'B') {\n mship = \"Tennis with Golf\";\n } else if (mNum.charAt(1) == 'D' || mNum.charAt(1) == 'T' || mNum.charAt(1) == 'R' || mNum.charAt(1) == 'S') {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else { // no letter for 2nd char of mNum\n mship = \"Resident Member\";\n }\n } else {\n\n skip = true;\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE could not be determined! (mNum missing)\";\n }\n }\n\n // set member type based on gender\n // blank gender and mNum ending with 'A' = female, otherwise male\n if (gender.equalsIgnoreCase(\"F\") || (gender.equalsIgnoreCase(\"\") && mNum.toLowerCase().endsWith(\"a\"))) {\n\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if roccdallas\n\n\n //******************************************************************\n // Hackberry Creek CC - hackberrycreekcc\n //******************************************************************\n //\n if (club.equals(\"hackberrycreekcc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n mship = \"Golf\"; // everyone changed to \"Golf\"\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n } // end if hackberrycreekcc\n\n //******************************************************************\n // Brookhaven CC - brookhavenclub\n //******************************************************************\n //\n if (club.equals(\"brookhavenclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n\n if (mtype.startsWith(\"DFW\")) {\n mship = \"DFWY\";\n } else {\n mship = \"Golf\"; // everyone changed to \"Golf\"\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n } // end if brookhavenclub\n\n //******************************************************************\n // Stonebridge Ranch CC - stonebridgeranchcc\n //******************************************************************\n //\n if (club.equals(\"stonebridgeranchcc\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mtype.equalsIgnoreCase(\"Dual Club\") || mtype.equalsIgnoreCase(\"Dual Club Distant\") || mtype.equalsIgnoreCase(\"Dual Club Society\") ||\n mtype.equalsIgnoreCase(\"Honorary\") || mtype.equalsIgnoreCase(\"Honorary Society\") || mtype.equalsIgnoreCase(\"Prem Charter Select\") ||\n mtype.equalsIgnoreCase(\"Prem Chrtr Sel Scty\") || mtype.equalsIgnoreCase(\"Prem Club Corp Scty\") || mtype.equalsIgnoreCase(\"Prem Mbr Sel Society\") ||\n mtype.equalsIgnoreCase(\"Prem Member Charter\") || mtype.equalsIgnoreCase(\"Prem Member Select\") || mtype.equalsIgnoreCase(\"Prem Mbrshp Society\") ||\n mtype.equalsIgnoreCase(\"Premier Club Corp D\") || mtype.equalsIgnoreCase(\"Premier Club Jr\") || mtype.equalsIgnoreCase(\"Premier Corporate\") ||\n mtype.equalsIgnoreCase(\"Premier Membership\") || mtype.equalsIgnoreCase(\"Premier Nr\") || mtype.equalsIgnoreCase(\"Prem Mbr Chrtr Scty\") ||\n mtype.equalsIgnoreCase(\"Premier Club Jr Scty\") || mtype.equalsIgnoreCase(\"Westerra\") || mtype.equalsIgnoreCase(\"Premier Club C Ppd\") ||\n mtype.equalsIgnoreCase(\"Premier Club Corp Ds\") || mtype.equalsIgnoreCase(\"Preview\")) {\n\n mship = \"Dual\";\n\n } else if (mtype.equalsIgnoreCase(\"Pr SB Sel Scty\") || mtype.equalsIgnoreCase(\"Prem Stnbrdge Select\") || mtype.equalsIgnoreCase(\"Prem Stonbrdg Scty \") ||\n mtype.equalsIgnoreCase(\"Premier Stonebridge\") || mtype.equalsIgnoreCase(\"Stonebridge Assoc.\") || mtype.equalsIgnoreCase(\"Stonebridge Charter\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Golf\") || mtype.equalsIgnoreCase(\"Stonebridge Golf Soc\") || mtype.equalsIgnoreCase(\"Options II\") ||\n mtype.equalsIgnoreCase(\"Options II Society\") || mtype.equalsIgnoreCase(\"Options I \") || mtype.equalsIgnoreCase(\"Options I Society\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Distn Gf\") || mtype.equalsIgnoreCase(\"Sb Premier Nr\") || mtype.equalsIgnoreCase(\"Prem Stonbrdg Scty\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Soc Scty\") || mtype.equalsIgnoreCase(\"Stnbrdge Assoc Scty\") || mtype.equalsIgnoreCase(\"Sb Golf Legacy Soc.\")) {\n\n mship = \"Dye\";\n\n } else if (mtype.equalsIgnoreCase(\"Pr Rcc Pr 6/96 Scty\") || mtype.equalsIgnoreCase(\"Pr Rnch Aft 6/96 Sct\") || mtype.equalsIgnoreCase(\"Prem Rcc Jr Select\") ||\n mtype.equalsIgnoreCase(\"Prem Rcc Prior 6/96\") || mtype.equalsIgnoreCase(\"Prem Rnch After 6/96\") || mtype.equalsIgnoreCase(\"Prem Rnch Select Sty\") ||\n mtype.equalsIgnoreCase(\"Premier Ranch Select\") || mtype.equalsIgnoreCase(\"Prm Rcc Sel Aft\") || mtype.equalsIgnoreCase(\"Prm Rcc Sel Aft 96st\") ||\n mtype.equalsIgnoreCase(\"Ranch Charter\") || mtype.equalsIgnoreCase(\"Ranch Golf\") || mtype.equalsIgnoreCase(\"Ranch Golf Legacy\") ||\n mtype.equalsIgnoreCase(\"Ranch Golf Non-Res\") || mtype.equalsIgnoreCase(\"Ranch Golf Society\") || mtype.equalsIgnoreCase(\"Special Golf\") ||\n mtype.equalsIgnoreCase(\"Prem Rcc Pr Nr\") || mtype.equalsIgnoreCase(\"Prem Rnch Sports Sty\") || mtype.equalsIgnoreCase(\"Ranch Nr Society\") ||\n mtype.equalsIgnoreCase(\"Pr Rcc Aft799 Society\") || mtype.equalsIgnoreCase(\"Ranch Non Resident\") || mtype.equalsIgnoreCase(\"Ranch Ppd Rcc Golf\")) {\n\n mship = \"Hills\";\n\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n\n } // end if stonebridgeranchcc\n\n\n //******************************************************************\n // Charlotte CC - charlottecc\n //******************************************************************\n //\n if (club.equals(\"charlottecc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum.toUpperCase(); // use mNum for memid, they are unique\n\n // Set primary/spouse value\n if (mNum.toUpperCase().endsWith(\"S\")) {\n primary = \"S\";\n mNum = stripA(mNum);\n } else {\n primary = \"P\";\n }\n\n posid = mNum; // set posid in case it's ever needed\n\n // set mtype based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n // if mship starts with 'Spousal-surviving' or 'Spousal', remove the prefix\n if (mship.equalsIgnoreCase(\"Spousal-surviving Resident\")) {\n mship = \"Dependent Spouse\";\n } else {\n if (mship.startsWith(\"Spousal-surviving\")) {\n mship = mship.substring(18, mship.length() - 1);\n }\n if (mship.startsWith(\"Spousal\") && !mship.equalsIgnoreCase(\"Spousal Member\")) {\n mship = mship.substring(8, mship.length() - 1);\n }\n\n // set mship\n if (mship.startsWith(\"Resident\") || mship.equalsIgnoreCase(\"Ministerial-NM\")) {\n mship = \"Resident\";\n } else if (mship.startsWith(\"Non-Resident\")) {\n mship = \"Non Resident\";\n } else if (mship.startsWith(\"Dependant\")) {\n mship = \"Dependent Spouse\";\n } else if (mship.startsWith(\"Honorary\")) {\n mship = \"Honorary\";\n } else if (mship.startsWith(\"Lady\") || mship.equalsIgnoreCase(\"Spousal Member\")) {\n mship = \"Lady\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n }\n } // end if charlottecc\n\n\n //******************************************************************\n // Gleneagles CC - gleneaglesclub\n //******************************************************************\n //\n if (club.equals(\"gleneaglesclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n mship = \"Golf\"; // everyone changed to \"Golf\"\n\n // set member type and memid based on gender\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n memid = mNum + \"A\";\n\n } else if (primary.equalsIgnoreCase(\"P\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Member Female\";\n } else {\n mtype = \"Member Male\";\n }\n memid = mNum;\n } else { // Dependent\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n // use provided memid\n }\n }\n\n } // end if gleneaglesclub\n\n\n\n\n //******************************************************************\n // Portland CC - portlandgc\n //******************************************************************\n //\n if (club.equals(\"portlandgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mNum.length() == 6) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Female Spouse\";\n } else {\n mtype = \"Male Spouse\";\n }\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of extra number on end of spouse mNums\n primary = \"S\";\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) { // strip leading zeros\n memid = remZeroS(memid);\n }\n memid = memid + \"A\";\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Female Member\";\n } else {\n mtype = \"Male Member\";\n }\n\n primary = \"P\";\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) { // strip leading zeros\n memid = remZeroS(memid);\n }\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (mship.equalsIgnoreCase(\"AAR-FG\") || mship.equalsIgnoreCase(\"NON-RES\") ||\n mship.equalsIgnoreCase(\"REGULAR\") || mship.equalsIgnoreCase(\"TEMPORARY\")) { mship = \"Regular\"; }\n else if (mship.equalsIgnoreCase(\"30YEARS\")) { mship = \"30 Year Social\"; }\n else if (mship.equalsIgnoreCase(\"EMPLOYEE\")) { mship = \"Employee\"; }\n else if (mship.equalsIgnoreCase(\"HONORARY\")) { mship = \"Honorary\"; }\n else if (mship.equalsIgnoreCase(\"JUNIOR\")) { mship = \"Junior Associate\"; }\n else if (mship.equalsIgnoreCase(\"SOCIAL\")) { mship = \"Social\"; }\n else if (mship.startsWith(\"L\")) { mship = \"Leave of Absence\"; }\n else if (mship.equalsIgnoreCase(\"SPOUSE\")) { mship = \"Spouse Associate\"; }\n else if (mship.equalsIgnoreCase(\"Member Status:SENIOR\")) { mship = \"Senior\"; }\n else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if portlandgc\n\n\n //******************************************************************\n // Quechee Club\n //******************************************************************\n //\n if (club.equals(\"quecheeclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of trailing primary indicator # on mNum\n\n if (memid.endsWith(\"0\")) { // Primary\n primary = \"P\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n } else if (memid.endsWith(\"1\")) { // Spouse\n primary = \"S\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else { // Dependent\n primary = \"D\";\n mtype = \"Dependent\";\n }\n\n // Set the posid\n if (primary.equals(\"S\")) {\n posid = mNum + \"1\"; // set posid in case we need it in the future\n } else {\n posid = mNum + \"0\";\n }\n\n if (mship.equalsIgnoreCase(\"ALL-F\")) {\n mship = \"ALL Family\";\n } else if (mship.equalsIgnoreCase(\"ALL-S\")) {\n mship = \"ALL Single\";\n } else if (mship.equalsIgnoreCase(\"GAP-F\")) {\n mship = \"GAP Family\";\n } else if (mship.equalsIgnoreCase(\"GAP-S\")) {\n mship = \"GAP Single\";\n } else if (mship.equalsIgnoreCase(\"GAPM-F\")) {\n mship = \"GAPM Family\";\n } else if (mship.equalsIgnoreCase(\"GAPM-S\")) {\n mship = \"GAPM Single\";\n } else if (mship.equalsIgnoreCase(\"NON-GAP\")) {\n mship = \"NON-GAP\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if quecheeclub\n\n\n\n //******************************************************************\n // Quechee Club - Tennis\n //******************************************************************\n //\n if (club.equals(\"quecheeclubtennis\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of trailing primary indicator # on mNum\n\n if (memid.endsWith(\"0\")) { // Primary\n primary = \"P\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n } else if (memid.endsWith(\"1\")) { // Spouse\n primary = \"S\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else { // Dependent\n primary = \"D\";\n mtype = \"Dependent\";\n }\n\n // Set the posid\n if (primary.equals(\"S\")) {\n posid = mNum + \"1\"; // set posid in case we need it in the future\n } else {\n posid = mNum + \"0\";\n }\n\n if (mship.equalsIgnoreCase(\"ALL-F\")) {\n mship = \"ALL Family\";\n } else if (mship.equalsIgnoreCase(\"ALL-S\")) {\n mship = \"ALL Single\";\n } else if (custom1.equalsIgnoreCase(\"Tennis-F\")) {\n mship = \"TAP Family\";\n } else if (custom1.equalsIgnoreCase(\"Tennis-S\")) {\n mship = \"TAP Single\";\n } else if (custom1.equals(\"?\") || custom1.equals(\"\")) {\n mship = \"NON-TAP\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if quecheeclubtennis\n\n //******************************************************************\n // The Oaks Club\n //******************************************************************\n //\n if (club.equals(\"theoaksclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n\n primary = \"S\";\n gender = \"F\";\n mtype = \"Spouse Female\";\n\n mNum = mNum.substring(0, mNum.length() - 2);\n\n if (mship.startsWith(\"Dependent\")) { // Use the primary's mship\n try {\n ResultSet oaksRS = null;\n PreparedStatement oaksStmt = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n oaksStmt.clearParameters();\n oaksStmt.setString(1, mNum);\n oaksRS = oaksStmt.executeQuery();\n\n if (oaksRS.next()) {\n mship = oaksRS.getString(\"m_ship\");\n } else {\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SPOUSE with DEPENDENT membership type - NO PRIMARY FOUND!\";\n }\n\n oaksStmt.close();\n\n } catch (Exception exc) { }\n }\n\n } else if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") || mNum.endsWith(\"-5\") ||\n mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") || mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n\n primary = \"D\";\n mtype = \"Dependent\";\n mNum = mNum.substring(0, mNum.length() - 2);\n\n } else {\n\n primary = \"P\";\n gender = \"M\";\n mtype = \"Primary Male\";\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (mship.equalsIgnoreCase(\"Regular Equity\") || mship.equalsIgnoreCase(\"Member Type:001\")) {\n mship = \"Regular Equity\";\n } else if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Member Type:010\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"Social Property Owner\") || mship.equalsIgnoreCase(\"Member Type:002\")) {\n mship = \"Social Property Owner\";\n } else if (mship.equalsIgnoreCase(\"Tennis Associate\") || mship.equalsIgnoreCase(\"Member Type:020\")) {\n mship = \"Tennis Associate\";\n } else if (mship.equalsIgnoreCase(\"Member Type:022\")) {\n mship = \"Jr Tennis Associate\";\n } else if (mship.startsWith(\"Dependent\")) {\n mship = \"Dependent\";\n } else if (mship.equalsIgnoreCase(\"Member Type:085\")) {\n mship = \"General Manager\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n }\n } // end if theoaksclub\n\n\n //******************************************************************\n // Admirals Cove\n //******************************************************************\n //\n if (club.equals(\"admiralscove\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1);\n\n } else {\n primary = \"P\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n if (mship.equals( \"\" )) {\n //\n // Spouse or Dependent - look for Primary mship type and use that\n //\n try {\n pstmt2 = con.prepareStatement (\n \"SELECT m_ship FROM member2b WHERE username != ? AND m_ship != '' AND memNum = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, memid);\n pstmt2.setString(2, mNum);\n rs = pstmt2.executeQuery();\n\n if(rs.next()) {\n mship = rs.getString(\"m_ship\"); // use primary mship type\n } else { //\n skip = true; // skip this one\n mship = \"\";\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n }\n\n pstmt2.close();\n\n } catch (Exception e1) { }\n\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (!mship.equals(\"\")) {\n\n if (mship.startsWith(\"Golf\") || mship.equals(\"Full Golf\")) {\n mship = \"Full Golf\";\n } else if (mship.startsWith(\"Sports\")) {\n mship = \"Sports\";\n } else if (!mship.equals(\"Social\") && !mship.equals(\"Marina\") && !mship.equals(\"Tennis\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n }\n } // end if admiralscove\n\n\n //******************************************************************\n // Ozaukee CC\n //******************************************************************\n //\n if (club.equals(\"ozaukeecc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"C\") || mNum.endsWith(\"D\")) {\n\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1); // strip trailing 'A'\n\n } else {\n primary = \"P\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n if (mship.equalsIgnoreCase(\"EM\")) {\n mship = \"Emeritus\";\n }\n\n if (mship.equalsIgnoreCase(\"Curler\") || mship.equalsIgnoreCase(\"Resigned\") ||\n mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Summer Social\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n posid = mNum; // set posid in case we need it in the future\n }\n } // end if ozaukeecc\n\n //******************************************************************\n // Palo Alto Hills G&CC - paloaltohills\n //******************************************************************\n //\n if (club.equals(\"paloaltohills\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n // trim off leading zeroes\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (gender.equals(\"F\")) {\n primary = \"S\";\n //mtype = \"Secondary Female\"; // no longer setting mtype with roster sync\n } else {\n primary = \"P\";\n //mtype = \"Primary Male\"; // no longer setting mtype with roster sync\n gender = \"M\";\n }\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (memid.startsWith(\"1\") || memid.startsWith(\"4\") || memid.startsWith(\"6\") || memid.startsWith(\"8\")) {\n mship = \"Golf\";\n } else if (memid.startsWith(\"2\")) {\n mship = \"Social\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n\n } // end if paloaltohills\n\n\n //******************************************************************\n // Woodside Plantation CC - wakefieldplantation\n //******************************************************************\n //\n if (club.equals(\"woodsideplantation\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n\n if (memid.equals(\"399609\")) { // Marvin Cross has an invalid email address ([email protected]) - belongs to a church in FL\n email2 = \"\";\n }\n\n\n if (primary.equalsIgnoreCase(\"P\")) {\n memid = mNum;\n } else {\n memid = mNum + \"A\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n } // end if woodsideplantation\n\n //******************************************************************\n // Timarron CC - timarroncc\n //******************************************************************\n //\n if (club.equals(\"timarroncc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n mship = \"Golf\";\n\n if (primary.equalsIgnoreCase(\"S\")) {\n memid = mNum + \"A\";\n } else {\n memid = mNum;\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if timarroncc\n\n //******************************************************************\n // Fountaingrove Golf & Athletic Club - fountaingrovegolf\n //******************************************************************\n //\n if (club.equals(\"fountaingrovegolf\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n String posSuffix = \"\";\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum;\n \n if (mNum.endsWith(\"A\")) {\n primary = \"P\";\n mNum = mNum.substring(0, mNum.length() - 1);\n memid = mNum;\n } else {\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1);\n memid = mNum + \"A\";\n }\n\n if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Employee\")) {\n mship = \"Golf\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if fountaingrovegolf\n\n\n/* Disabled, left ForeTees\n //******************************************************************\n // Austin Country Club - austincountryclub\n //******************************************************************\n //\n if (club.equals(\"austincountryclub\")) {\n\n found = true; // club found\n\n if (primary.equalsIgnoreCase(\"P\") && mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n if (mNum.toUpperCase().endsWith(\"A\")) {\n mNum = stripA(mNum);\n }\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n posid = mNum; // set posid in case we need it in the future\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n // If a spouse member, retrieve the primary user's membership type to use for them\n if (primary.equalsIgnoreCase(\"S\")) {\n try {\n PreparedStatement pstmtAus = null;\n ResultSet rsAus = null;\n\n pstmtAus = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE memNum = ? AND m_ship<>''\");\n pstmtAus.clearParameters();\n pstmtAus.setString(1, mNum);\n\n rsAus = pstmtAus.executeQuery();\n\n if (rsAus.next()) {\n mship = rsAus.getString(\"m_ship\");\n } else {\n mship = \"\";\n }\n\n pstmtAus.close();\n\n } catch (Exception ignore) {\n\n mship = \"\";\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Membership Type could not be retrieved from Primary Member record!\";\n }\n }\n\n if (mship.equalsIgnoreCase(\"JRF\") || mship.equalsIgnoreCase(\"Former Junior\")) {\n mship = \"Former Junior\";\n } else if (mship.equalsIgnoreCase(\"HON\") || mship.equalsIgnoreCase(\"Honorary\")) {\n mship = \"Honorary\";\n } else if (mship.equalsIgnoreCase(\"JR\") || mship.equalsIgnoreCase(\"Junior\")) {\n mship = \"Junior\";\n } else if (mship.equalsIgnoreCase(\"N-R\") || mship.equalsIgnoreCase(\"Non-Resident\")) {\n mship = \"Non-Resident\";\n } else if (mship.equalsIgnoreCase(\"RES\") || mship.equalsIgnoreCase(\"Resident\")) {\n mship = \"Resident\";\n } else if (mship.equalsIgnoreCase(\"SR\") || mship.equalsIgnoreCase(\"SRD\") || mship.equalsIgnoreCase(\"Senior\")) {\n mship = \"Senior\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n\n }\n } // end if austincountryclub\n */\n\n //******************************************************************\n // Treesdale Golf & Country Club - treesdalegolf\n //******************************************************************\n //\n if (club.equals(\"treesdalegolf\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n posid = mNum; // set posid in case we need it in the future\n\n if (primary.equalsIgnoreCase(\"P\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Primary Female\";\n } else {\n gender = \"M\";\n mtype = \"Primary Male\";\n }\n\n } else if (primary.equalsIgnoreCase(\"S\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Spouse Female\";\n } else {\n gender = \"M\";\n mtype = \"Spouse Male\";\n }\n\n memid += \"A\";\n\n } else {\n mtype = \"Junior\";\n }\n\n mship = \"Golf\";\n\n }\n } // end if treesdalegolf\n\n //******************************************************************\n // Sawgrass Country Club - sawgrass\n //******************************************************************\n //\n if (club.equals(\"sawgrass\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n mNum = mNum.substring(0, mNum.length() - 2);\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n // Still filter on given mships even though using mtype field to determine what mship will be set to\n if (mship.equalsIgnoreCase(\"Associate Member\") || mship.equalsIgnoreCase(\"Complimentary Employee\") || mship.equalsIgnoreCase(\"Complimentary Other\") ||\n mship.startsWith(\"House\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mship)\";\n }\n\n if (mtype.equalsIgnoreCase(\"7DAY\")) {\n mship = \"Sports\";\n } else if (mtype.equalsIgnoreCase(\"3DAY\")) {\n mship = \"Social\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mtype)\";\n }\n\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Member Female\";\n } else {\n mtype = \"Member Male\";\n }\n\n }\n } // end if sawgrass\n\n /*\n //******************************************************************\n // TPC at SnoaQualmie Ridge\n //******************************************************************\n //\n if (club.equals(\"snoqualmieridge\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case it's ever needed\n\n // Set primary/spouse value\n if (mNum.toUpperCase().endsWith(\"A\")) {\n primary = \"P\";\n mNum = stripA(mNum);\n } else {\n if (mNum.toUpperCase().endsWith(\"B\")) {\n primary = \"S\";\n mNum = stripA(mNum);\n } else {\n if (mNum.toUpperCase().endsWith(\"C\") || mNum.toUpperCase().endsWith(\"D\") ||\n mNum.toUpperCase().endsWith(\"E\") || mNum.toUpperCase().endsWith(\"F\") ||\n mNum.toUpperCase().endsWith(\"G\") || mNum.toUpperCase().endsWith(\"H\") ||\n mNum.toUpperCase().endsWith(\"I\") || mNum.toUpperCase().endsWith(\"J\")) {\n primary = \"D\";\n\n memid = mNum.toUpperCase(); // use mNum for memid, they are unique\n\n mNum = stripA(mNum);\n\n } else {\n primary = \"P\"; // if no alpha - assume primary\n }\n }\n }\n\n // set mtype based on gender and relationship\n if (gender.equalsIgnoreCase(\"F\")) {\n\n if (primary.equals(\"P\") || primary.equals(\"S\")) {\n\n mtype = \"Adult Female\";\n\n memid = mNum + \"F\"; // memid for Adult Females\n\n } else {\n\n mtype = \"Dependent Female\";\n }\n\n } else { // Male\n\n if (primary.equals(\"P\") || primary.equals(\"S\")) {\n mtype = \"Adult Male\";\n\n memid = mNum + \"M\"; // memid for Adult Males\n\n } else {\n\n mtype = \"Dependent Male\";\n }\n }\n\n // mships ?????????????\n\n }\n } // end if snoqualmieridge\n */\n\n //******************************************************************\n // Druid Hills Golf Club - dhgc\n //******************************************************************\n //\n if (club.equals(\"dhgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n // Remove leading zeroes\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mship.equalsIgnoreCase(\"House\")) {\n\n skip = true;\n errCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n }\n } // end if dhgc\n\n //******************************************************************\n // The Reserve Club - thereserveclub\n //******************************************************************\n //\n if (club.equals(\"thereserveclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n mNum = mNum.substring(0, mNum.length() - 2);\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n mship = mtype;\n\n if (mship.endsWith(\" - Spouse\")) {\n mship = mship.substring(0, mship.length() - 9);\n }\n\n if (mship.startsWith(\"Social\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mtype)\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end if thereserveclub\n\n\n //******************************************************************\n // Robert Trent Jones - rtjgc\n //******************************************************************\n //\n if (club.equals(\"rtjgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n //\n // use the mnum for memid\n //\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n if (mNum.endsWith(\"-1\")) {\n\n memid = mNum;\n\n while (memid.length() < 5) {\n memid = \"0\" + memid;\n }\n\n if (gender.equals(\"F\")) {\n memid += \"A\"; // spouse or female\n }\n } else {\n memid = mNum; // primary males\n }\n\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n\n }\n\n } // end if rtjgc\n\n\n //******************************************************************\n // Morgan Run - morganrun\n //******************************************************************\n //\n if (club.equals(\"morganrun\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n \n if (primary.equalsIgnoreCase(\"S\")) {\n memid += \"A\";\n }\n\n mship = \"Golf\";\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if morganrun\n\n\n //******************************************************************\n // CC at DC Ranch - ccdcranch\n //******************************************************************\n //\n if (club.equals(\"ccdcranch\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mship.equalsIgnoreCase(\"COR\") || mship.equalsIgnoreCase(\"GOLF\")) {\n mship = \"Full Golf\";\n } else if (mship.equalsIgnoreCase(\"SPS\")) {\n mship = \"Sports/Social\";\n } else if (mship.equalsIgnoreCase(\"SECONDARY\")) {\n if (mNum.startsWith(\"1\") || mNum.startsWith(\"5\")) {\n mship = \"Full Golf\";\n } else if (mNum.startsWith(\"3\")) {\n mship = \"Sports/Social\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if ccdcranch\n\n\n //******************************************************************\n // Oakley CC - oakleycountryclub\n //******************************************************************\n //\n if (club.equals(\"oakleycountryclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (!mtype.equals(\"\")) {\n mship = mtype;\n }\n\n // Set the member type\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if oakleycountryclub\n\n\n //******************************************************************\n // Black Rock CC - blackrockcountryclub\n //******************************************************************\n //\n if (club.equals(\"blackrockcountryclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"D\") || mNum.endsWith(\"Z\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n gender = \"M\";\n }\n }\n\n }\n\n } // end if blackrockcountryclub\n\n/*\n //******************************************************************\n // The Edison Club - edisonclub\n //******************************************************************\n //\n if (club.equals(\"edisonclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n while (posid.startsWith(\"0\")) {\n posid = posid.substring(1);\n }\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n gender = \"M\";\n }\n } \n\n }\n\n } // end if edisonclub\n */\n\n\n //******************************************************************\n // Longue Vue Club - longuevueclub\n //******************************************************************\n //\n if (club.equals(\"longuevueclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mtype.equals(\"\")) {\n mtype = \"Adult Male\";\n }\n\n if (mtype.endsWith(\" Female\")) {\n gender = \"F\";\n } else {\n gender = \"M\";\n }\n }\n } // end if longuevueclub\n\n\n //******************************************************************\n // Happy Hollow Club - happyhollowclub\n //******************************************************************\n //\n if (club.equals(\"happyhollowclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) {\n memid = memid.substring(1);\n }\n\n // If member number does not end with the first letter of member's last name, strip off the last character\n if (!mNum.endsWith(lname.substring(0,1))) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n // Add leading zeroes until mNum has a length of 5\n while (mNum.length() < 5) {\n mNum = \"0\" + mNum;\n }\n\n\n // Remove \"Member Status:\" from beginning of mship\n if (mtype.startsWith(\"Member Status:\")) {\n mtype = mtype.replace(\"Member Status:\", \"\");\n }\n\n // Filter mtypes and mships\n if (mtype.equalsIgnoreCase(\"DEPEND A\") || mtype.equalsIgnoreCase(\"DEPEND B\") || mtype.equalsIgnoreCase(\"DEPEND SOC\")) {\n\n if (mtype.equalsIgnoreCase(\"DEPEND A\") || mtype.equalsIgnoreCase(\"DEPEND B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"DEPEND SOC\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n\n } else if (mtype.equalsIgnoreCase(\"EMPLOYEE\") || mtype.equalsIgnoreCase(\"GOLF A\") || mtype.equalsIgnoreCase(\"GOLF B\") || mtype.equalsIgnoreCase(\"SOCIAL\")) {\n\n if (mtype.equalsIgnoreCase(\"EMPLOYEE\")) {\n mship = \"Employee\";\n } else if (mtype.equalsIgnoreCase(\"GOLF A\") || mtype.equalsIgnoreCase(\"GOLF B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"SOCIAL\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n \n } else if (mtype.equalsIgnoreCase(\"SPOUSE A\") || mtype.equalsIgnoreCase(\"SPOUSE B\") || mtype.equalsIgnoreCase(\"SPOUSE SOC\")) {\n\n if (mtype.equalsIgnoreCase(\"SPOUSE A\") || mtype.equalsIgnoreCase(\"SPOUSE B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"SPOUSE SOC\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n }\n } // end if happyhollowclub\n\n \n \n //******************************************************************\n // CC of Castle Pines\n //******************************************************************\n //\n if (club.equals(\"castlepines\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) { // strip any leading zeros\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n // Isolate the member number\n StringTokenizer tok9 = new StringTokenizer( mNum, \"-\" ); // look for a dash (i.e. 1234-1)\n\n if ( tok9.countTokens() > 1 ) { \n\n mNum = tok9.nextToken(); // get just the mNum if it contains an extension\n }\n\n // Filter mtypes and mships\n if (mship.equalsIgnoreCase(\"golf\") || mship.equalsIgnoreCase(\"corporate\")) {\n\n if (mship.equalsIgnoreCase(\"Corporate\")) {\n mship = \"Corporate\";\n } else {\n mship = \"Regular Member\"; // convert Golf to Regular Member\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n }\n } // end if castlepines\n\n\n\n //******************************************************************\n // Golf Club at Turner Hill - turnerhill\n //******************************************************************\n //\n if (club.equals(\"turnerhill\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n mship = \"Golf\";\n\n if (!gender.equalsIgnoreCase(\"F\")) {\n gender = \"M\";\n }\n\n if (mNum.endsWith(\"A\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n mNum = mNum.substring(0, mNum.length() - 1);\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n }\n } // end if turnerhill\n\n\n //******************************************************************\n // The Club at Mediterra - mediterra\n //******************************************************************\n //\n if (club.equals(\"mediterra\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n // Get ride of all leading zeroes.\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n // Strip off special character\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"b\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mship.equalsIgnoreCase(\"G\") || mship.equalsIgnoreCase(\"GNF\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"S\")) {\n mship = \"Sports\";\n } else if (mship.equalsIgnoreCase(\"D\")) {\n\n try {\n\n pstmt2 = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n pstmt2.clearParameters();\n pstmt2.setString(1, mNum);\n\n rs = pstmt2.executeQuery();\n\n if (rs.next()) {\n mship = rs.getString(\"m_ship\");\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NO PRIMARY MEMBERSHIP TYPE!\";\n }\n\n pstmt2.close();\n\n } catch (Exception exc) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: ERROR WHILE LOOKING UP MEMBERSHIP TYPE!\";\n }\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end if mediterra\n\n\n //******************************************************************\n // Hideaway Beach Club - hideawaybeachclub\n //******************************************************************\n //\n if (club.equals(\"hideawaybeachclub\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mNum.startsWith(\"7\")) {\n mship = \"Renter\";\n } else {\n mship = \"Golf\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n } // end if hideawaybeachclub\n\n\n \n //******************************************************************\n // All clubs\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\") && !memid.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n ghin_old = \"\";\n bag_old = \"\";\n posid_old = \"\";\n email2_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n suffix_old = \"\";\n u_hcap_old = 0;\n c_hcap_old = 0;\n birth_old = 0;\n msub_type_old = \"\";\n email_bounce1 = 0;\n email_bounce2 = 0;\n\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n if (!webid.equals( \"\" )) {\n\n webid = truncate(webid, 15);\n }\n if (!msub_type.equals( \"\" )) {\n\n msub_type = truncate(msub_type, 30);\n }\n\n //\n // Set Gender and Primary values\n //\n if (!gender.equalsIgnoreCase( \"M\" ) && !gender.equalsIgnoreCase( \"F\" )) {\n\n gender = \"\";\n }\n\n pri_indicator = 0; // default = Primary\n\n if (primary.equalsIgnoreCase( \"S\" )) { // Spouse\n\n pri_indicator = 1;\n }\n if (primary.equalsIgnoreCase( \"D\" )) { // Dependent\n\n pri_indicator = 2;\n }\n\n\n //\n // See if a member already exists with this id (username or webid)\n //\n // **** NOTE: memid and webid MUST be set to their proper values before we get here!!!!!!!!!!!!!!!\n //\n //\n // 4/07/2010\n // We now use 2 booleans to indicate what to do with the webid field.\n // useWebid is the original boolean that was used to indicate that we should use the webid to identify the member.\n // We lost track of when this flag was used and why. It was no longer used to indicate the webid should be \n // used in the query, so we don't know what its real purpose is. We don't want to disrupt any clubs that are\n // using it, so we created a new boolean for the query.\n // useWebidQuery is the new flag to indicate that we should use the webid when searching for the member. You should use\n // both flags if you want to use this one.\n //\n try {\n \n if (useWebid == true) { // use webid to locate member?\n\n webid_new = webid; // yes, set new ids\n memid_new = \"\";\n\n } else { // DO NOT use webid\n\n webid_new = \"\"; // set new ids\n memid_new = memid;\n }\n\n if (useWebidQuery == false) {\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n\n } else { // use the webid field\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n }\n\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n memid = rs.getString(\"username\"); // get username in case we used webid (use this for existing members)\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n ghin_old = rs.getString(\"ghin\");\n bag_old = rs.getString(\"bag\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n msub_type_old = rs.getString(\"msub_type\");\n email2_old = rs.getString(\"email2\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n suffix_old = rs.getString(\"name_suf\");\n email_bounce1 = rs.getInt(\"email_bounced\");\n email_bounce2 = rs.getInt(\"email2_bounced\");\n\n if (useWebid == true) { // use webid to locate member?\n memid_new = memid; // yes, get this username\n } else {\n webid_new = rs.getString(\"webid\"); // no, get current webid\n }\n }\n pstmt2.close(); // close the stmt\n\n\n //\n // If member NOT found, then check if new member OR id has changed\n //\n boolean memFound = false;\n boolean dup = false;\n boolean userChanged = false;\n boolean nameChanged = false;\n String dupmship = \"\";\n\n if (fname_old.equals( \"\" )) { // if member NOT found\n\n //\n // New member - first check if name already exists\n //\n pstmt2 = con.prepareStatement (\n \"SELECT username, m_ship, memNum, webid FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next() && !club.equals(\"longcove\")) { // Allow duplicate names for Long Cove for members owning two properties at once\n\n dupuser = rs.getString(\"username\"); // get this username\n dupmship = rs.getString(\"m_ship\");\n dupmnum = rs.getString(\"memNum\");\n dupwebid = rs.getString(\"webid\"); // get this webid\n\n //\n // name already exists - see if this is the same member\n //\n sendemail = true; // send a warning email to us and MF\n\n if ((!dupmnum.equals( \"\" ) && dupmnum.equals( mNum )) || club.equals(\"imperialgc\")) { // if name and mNum match, then memid or webid must have changed\n\n if (useWebid == true) { // use webid to locate member?\n\n webid_new = webid; // set new ids\n memid_new = dupuser;\n memid = dupuser; // update this record\n\n } else {\n\n webid_new = dupwebid; // set new ids\n memid_new = memid;\n memid = dupuser; // update this record\n userChanged = true; // indicate the username has changed\n }\n\n memFound = true; // update the member\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n ghin_old = rs.getString(\"ghin\");\n bag_old = rs.getString(\"bag\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n msub_type_old = rs.getString(\"msub_type\");\n email2_old = rs.getString(\"email2\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n suffix_old = rs.getString(\"name_suf\");\n email_bounce1 = rs.getInt(\"email_bounced\");\n email_bounce2 = rs.getInt(\"email2_bounced\");\n }\n\n //\n // Add this info to the email message text\n //\n emailMsg1 = emailMsg1 + \"Name = \" +fname+ \" \" +mi+ \" \" +lname+ \", ForeTees Member Id has been updated to that received.\\n\\n\";\n\n } else {\n\n //\n // Add this info to the email message text\n //\n emailMsg1 = emailMsg1 + \"Name = \" +fname+ \" \" +mi+ \" \" +lname+ \", ForeTees username = \" +dupuser+ \", ForeTees webid = \" +dupwebid+ \", MF id = \" +memid+ \"\\n\\n\";\n\n dup = true; // dup member - do not add\n }\n\n }\n pstmt2.close(); // close the stmt\n\n } else { // member found\n\n memFound = true;\n }\n\n //\n // Now, update the member record if existing member\n //\n if (memFound == true) { // if member exists\n\n changed = false; // init change indicator\n\n lname_new = lname_old;\n\n // do not change lname for Saucon Valley if lname_old ends with '_*'\n if (club.equals( \"sauconvalleycc\" ) && lname_old.endsWith(\"_*\")) {\n\n lname = lname_old;\n\n } else if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n\n fname_new = fname_old;\n\n //\n // DO NOT change for select clubs\n //\n if (club.equals( \"pinery\" ) || club.equals( \"bellerive\" ) || club.equals( \"greenhills\" ) || club.equals( \"fairbanksranch\" ) ||\n club.equals( \"baltusrolgc\" ) || club.equals(\"charlottecc\") || club.equals(\"castlepines\")) {\n\n fname = fname_old; // do not change fnames\n\n } else {\n\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n }\n\n mi_new = mi_old;\n\n //\n // DO NOT change middle initial for ClubCorp clubs\n //\n if (clubcorp) {\n\n mi = mi_old;\n\n } else {\n if (!mi_old.equals( mi )) {\n\n mi_new = mi; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n }\n\n mship_new = mship_old;\n\n if (!mship.equals( \"\" ) && !mship_old.equals( mship )) {\n\n mship_new = mship; // set value from MFirst record\n changed = true;\n }\n\n mtype_new = mtype_old;\n\n if (club.equals( \"greenhills\" ) || club.equals(\"paloaltohills\") ||\n (club.equals(\"navesinkcc\") && mtype_old.equals(\"Primary Male GP\"))) { // Green Hills - do not change the mtype\n\n mtype = mtype_old;\n\n } else {\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n\n mtype_new = mtype; // set value from MFirst record\n changed = true;\n }\n }\n\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from MFirst record\n changed = true;\n }\n\n ghin_new = ghin_old;\n\n if (!ghin.equals( \"\" ) && !ghin_old.equals( ghin )) {\n\n ghin_new = ghin; // set value from MFirst record\n changed = true;\n }\n\n bag_new = bag_old;\n\n if (!club.equals(\"edina\") && !club.equals(\"edina2010\")) { // never change for Edina\n\n if (!bag.equals( \"\" ) && !bag_old.equals( bag )) {\n\n bag_new = bag; // set value from MFirst record\n changed = true;\n }\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from MFirst record\n changed = true;\n }\n\n email_new = email_old;\n\n if (!club.equals(\"mesaverdecc\")) { // never change for Mesa Verde CC\n\n if (!email_old.equals( email )) { // if MF's email changed or was removed\n\n email_new = email; // set value from MFirst record\n changed = true;\n email_bounce1 = 0; // reset bounced flag\n }\n }\n\n email2_new = email2_old;\n\n if (!club.equals(\"mesaverdecc\")) { // never change for Mesa Verde CC\n\n if (!email2_old.equals( email2 )) { // if MF's email changed or was removed\n\n email2_new = email2; // set value from MFirst record\n changed = true;\n email_bounce2 = 0; // reset bounced flag\n }\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from MFirst record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from MFirst record\n changed = true;\n }\n\n suffix_new = suffix_old;\n\n if (!suffix.equals( \"\" ) && !suffix_old.equals( suffix )) {\n\n suffix_new = suffix; // set value from MFirst record\n changed = true;\n }\n\n birth_new = birth_old;\n\n if (!club.equals(\"fountaingrovegolf\")) { // Don't update birthdates for Fountain Grove\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from MFirst record\n changed = true;\n }\n }\n\n if (!mobile.equals( \"\" )) { // if mobile phone provided\n\n if (phone_new.equals( \"\" )) { // if phone1 is empty\n\n phone_new = mobile; // use mobile number\n changed = true;\n\n } else {\n\n if (phone2_new.equals( \"\" )) { // if phone2 is empty\n\n phone2_new = mobile; // use mobile number\n changed = true;\n }\n }\n }\n\n msub_type_new = msub_type_old;\n\n if (!msub_type.equals( \"\" ) && !msub_type_old.equals( msub_type )) {\n\n msub_type_new = msub_type; // set value from MFirst record\n changed = true;\n }\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // Update our record (always now to set the last_sync_date)\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET username = ?, name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, ghin = ?, bag = ?, birth = ?, posid = ?, msub_type = ?, email2 = ?, phone1 = ?, \" +\n \"phone2 = ?, name_suf = ?, webid = ?, inact = 0, last_sync_date = now(), gender = ?, pri_indicator = ?, \" +\n \"email_bounced = ?, email2_bounced = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid_new);\n pstmt2.setString(2, lname_new);\n pstmt2.setString(3, fname_new);\n pstmt2.setString(4, mi_new);\n pstmt2.setString(5, mship_new);\n pstmt2.setString(6, mtype_new);\n pstmt2.setString(7, email_new);\n pstmt2.setString(8, mNum_new);\n pstmt2.setString(9, ghin_new);\n pstmt2.setString(10, bag_new);\n pstmt2.setInt(11, birth_new);\n pstmt2.setString(12, posid_new);\n pstmt2.setString(13, msub_type_new);\n pstmt2.setString(14, email2_new);\n pstmt2.setString(15, phone_new);\n pstmt2.setString(16, phone2_new);\n pstmt2.setString(17, suffix_new);\n pstmt2.setString(18, webid_new);\n pstmt2.setString(19, gender);\n pstmt2.setInt(20, pri_indicator);\n pstmt2.setInt(21, email_bounce1);\n pstmt2.setInt(22, email_bounce2);\n\n pstmt2.setString(23, memid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n\n } else { // member NOT found - add it if we can\n\n if (dup == false) { // if not duplicate member\n\n //\n // New member is ok - add it\n //\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, webid, \" +\n \"last_sync_date, gender, pri_indicator) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,?,?,?,?,'',?,?, now(),?,?)\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, msub_type);\n pstmt2.setString(17, email2);\n pstmt2.setString(18, phone);\n pstmt2.setString(19, phone2);\n pstmt2.setString(20, suffix);\n pstmt2.setString(21, webid);\n pstmt2.setString(22, gender);\n pstmt2.setInt(23, pri_indicator);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n\n } else { // this member not found, but name already exists\n\n if (dup) {\n errCount++;\n errMsg = errMsg + \"\\n -Dup user found:\\n\" +\n \" new: memid = \" + memid + \" : cur: \" + dupuser + \"\\n\" +\n \" webid = \" + webid + \" : \" + dupwebid + \"\\n\" +\n \" mNum = \" + mNum + \" : \" + dupmnum;\n }\n\n if (club.equals( \"bentwaterclub\" ) && !dupuser.equals(\"\")) {\n\n //\n // Bentwater CC - Duplicate member name found. This is not uncommon for this club.\n // We must accept the member record with the highest priority mship type.\n // Members are property owners and can own multiple properties, each with a\n //\n // Order of Priority:\n // GPM\n // DOP\n // DCC\n // DOC\n // DGC\n // MGM\n // DOM\n // SCM\n // EMP\n // DSS\n // DCL\n // VSG\n // S\n //\n boolean switchMship = false;\n\n if (mship.equals(\"GPM\")) { // if new record has highest mship value\n\n switchMship = true; // update existing record to this mship\n\n } else {\n\n if (mship.equals(\"DOP\")) {\n\n if (!dupmship.equals(\"GPM\")) { // if existing mship is lower than new one\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DCC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\")) { // if existing mship is lower than new one\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DOC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DGC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"MGM\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\") && !dupmship.equals(\"DGC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DOM\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\") && !dupmship.equals(\"DGC\") && !dupmship.equals(\"MGM\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"SCM\")) {\n\n if (dupmship.equals(\"EMP\") || dupmship.equals(\"DSS\") || dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"EMP\")) {\n\n if (dupmship.equals(\"DSS\") || dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DSS\")) {\n\n if (dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DCL\")) {\n\n if (dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"VSG\")) {\n\n if (dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n //\n // If we must switch the mship type, update the existing record to reflect the higher pri mship\n //\n if (switchMship == true) {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET \" +\n \"username = ?, m_ship = ?, memNum = ?, posid = ?, webid = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // use this username so record gets updated correctly next time\n pstmt2.setString(2, mship);\n pstmt2.setString(3, mNum);\n pstmt2.setString(4, posid);\n pstmt2.setString(5, webid);\n pstmt2.setString(6, dupuser); // update existing record - keep username, change others\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n userChanged = true; // indicate username changed\n\n memid_new = memid; // new username\n memid = dupuser; // old username\n fname_new = fname;\n mi_new = mi;\n lname_new = lname;\n }\n\n } // end of IF Bentwater Club and dup user\n }\n } // end of IF Member Found\n\n //\n // Member updated - now see if the username or name changed\n //\n if (userChanged == true || nameChanged == true) { // if username or name changed\n\n //\n // username or name changed - we must update other tables now\n //\n StringBuffer mem_name = new StringBuffer( fname_new ); // get the new first name\n\n if (!mi_new.equals( \"\" )) {\n mem_name.append(\" \" +mi_new); // new mi\n }\n mem_name.append(\" \" +lname_new); // new last name\n\n String newName = mem_name.toString(); // convert to one string\n\n Admin_editmem.updTeecurr(newName, memid_new, memid, con); // update teecurr with new values\n\n Admin_editmem.updTeepast(newName, memid_new, memid, con); // update teepast with new values\n\n Admin_editmem.updLreqs(newName, memid_new, memid, con); // update lreqs with new values\n\n Admin_editmem.updPartner(memid_new, memid, con); // update partner with new values\n\n Admin_editmem.updEvents(newName, memid_new, memid, con); // update evntSignUp with new values\n\n Admin_editmem.updLessons(newName, memid_new, memid, con); // update the lesson books with new values\n }\n }\n catch (Exception e3b) {\n errCount++;\n errMsg = errMsg + \"\\n -Error2 processing roster for \" +club+ \"\\n\" +\n \" line = \" +line+ \": \" + e3b.getMessage(); // build msg\n }\n\n } else {\n\n // Only report errors that AREN'T due to skip == true, since those were handled earlier!\n if (!found) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBER NOT FOUND!\";\n }\n if (fname.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n }\n if (lname.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -LAST NAME missing!\";\n }\n if (memid.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -USERNAME missing!\";\n }\n } // end of IF skip\n\n } // end of IF minimum requirements\n\n } // end of IF tokens\n\n // log any errors and warnings that occurred\n if (errCount > 0) {\n totalErrCount += errCount;\n errList.add(errMemInfo + \"\\n *\" + errCount + \" error(s) found*\" + errMsg + \"\\n\");\n }\n if (warnCount > 0) {\n totalWarnCount += warnCount;\n warnList.add(errMemInfo + \"\\n *\" + warnCount + \" warning(s) found*\" + warnMsg + \"\\n\");\n }\n } // end of while (for each record in club's file)\n\n //\n // Done with this file for this club - now set any members that were excluded from this file inactive\n //\n if (found == true) { // if we processed this club\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET inact = 1 \" +\n \"WHERE last_sync_date != now() AND last_sync_date != '0000-00-00'\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n \n \n //\n // Roster File Found for this club - make sure the roster sync indicator is set in the club table\n //\n setRSind(con, club);\n }\n\n\n //\n // Send an email to us and MF support if any dup names found\n //\n if (sendemail == true) {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host); // set outbound host address\n properties.put(\"mail.smtp.port\", port); // set outbound port\n properties.put(\"mail.smtp.auth\", \"true\"); // set 'use authentication'\n\n Session mailSess = Session.getInstance(properties, SystemUtils.getAuthenticator()); // get session properties\n\n MimeMessage message = new MimeMessage(mailSess);\n\n try {\n\n message.setFrom(new InternetAddress(efrom)); // set from addr\n\n message.setSubject( subject ); // set subject line\n message.setSentDate(new java.util.Date()); // set date/time sent\n }\n catch (Exception ignore) {\n }\n\n //message.addRecipient(Message.RecipientType.TO, new InternetAddress(emailFT)); // set our support email addr\n\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(emailMF)); // add MF email addr\n\n emailMsg1 = emailMsg1 + emailMsg2; // add trailer msg\n\n try {\n message.setText( emailMsg1 ); // put msg in email text area\n\n Transport.send(message); // send it!!\n }\n catch (Exception ignore) {\n }\n\n }\n\n }\n catch (Exception e3) {\n\n errorMsg = errorMsg + \" Error processing roster for \" +club+ \": \" + e3.getMessage() + \"\\n\"; // build msg\n SystemUtils.logError(errorMsg); // log it\n }\n\n // Print error and warning count totals to error log\n SystemUtils.logErrorToFile(\"\" +\n \"Total Errors Found: \" + totalErrCount + \"\\n\" +\n \"Total Warnings Found: \" + totalWarnCount + \"\\n\", club, true);\n\n // Print errors and warnings to error log\n if (totalErrCount > 0) {\n SystemUtils.logErrorToFile(\"\" +\n \"********************************************************************\\n\" +\n \"****ERRORS FOR \" + club + \" (Member WAS NOT synced!)\\n\" +\n \"********************************************************************\\n\", club, true);\n while (errList.size() > 0) {\n SystemUtils.logErrorToFile(errList.remove(0), club, true);\n }\n }\n if (totalWarnCount > 0) {\n SystemUtils.logErrorToFile(\"\" +\n \"********************************************************************\\n\" +\n \"****WARNINGS FOR \" + club + \" (Member MAY NOT have synced!)\\n\" +\n \"********************************************************************\\n\", club, true);\n while (warnList.size() > 0) {\n SystemUtils.logErrorToFile(warnList.remove(0), club, true);\n }\n }\n\n // Print end tiem to error log\n SystemUtils.logErrorToFile(\"End time: \" + new java.util.Date().toString() + \"\\n\", club, true);\n \n }", "private void loadExistingPerson() {\r\n\r\n\t\tSystem.out.println(\"Start Load existing Patient...\");\r\n\r\n\t\ttry {\r\n\t\t\tIPerson p1 = new Person(\"admin\", new Role(Roles.ADMINISTRATOR,\r\n\t\t\t\t\t\"Hauptadministrator\"), BCrypt.hashpw(\"admin\", BCrypt\r\n\t\t\t\t\t.gensalt()), \"[email protected]\", \"Vorname\", \"Nachname\",\r\n\t\t\t\t\t\"Organisation\", \"Abteilung\", \"Fachrichtung\", \"Strasse\",\r\n\t\t\t\t\t\"3e\", \"54321\", \"Ort\");\r\n\r\n\t\t\tList<IPerson> possiblePersons = PersistenceService.getService()\r\n\t\t\t\t\t.getPersonsFromDB(\"admin\");\r\n\t\t\tIPerson p2 = null;\r\n\t\t\tfor (IPerson p : possiblePersons) {\r\n\t\t\t\tif (BCrypt.checkpw(\"admin\", p.getPassword()))\r\n\t\t\t\t\tp2 = p;\r\n\t\t\t}\r\n\r\n\t\t\t// Person p2=Person.getPerson(3);\r\n\r\n\t\t\tSystem.out.println(\"Person p1: \" + p1.toString());\r\n\t\t\tif (p2 != null)\r\n\t\t\t\tSystem.out.println(\"Person p2: \" + p2.toString());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Person p2 nicht geladen.\");\r\n\t\t\tp1.save();\r\n\t\t} catch (BusinesslogicException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} catch (DatabaseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Patient loaded!!\");\r\n\t}", "public interface UserModle {\n void setID(int id);\n void setNumber(String number);\n void setPassword(String password);\n UserBaen load(int id);\n}", "protected abstract void retrievedata();", "private void loadData() throws Exception {\n List<Student> listOfStudents = new ArrayList<>();\n DocumentBuilderFactory documentBuilderFactory =\n DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder =\n documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(XMLfile);\n Element root = document.getDocumentElement();\n\n NodeList nodes = root.getChildNodes();\n int len = nodes.getLength();\n for (int i = 0; i < len; i++) {\n Node studentNode = nodes.item(i);\n if (studentNode instanceof Element) {\n Student b = createStudent((Element) studentNode);\n listOfStudents.add(b);\n }\n }\n Map<Long, Student> map= new HashMap<>();\n for (Student s : listOfStudents){\n map.putIfAbsent(s.getId(),s);\n }\n this.setEntities(map);\n }", "public void load2() throws Exception {\n String query = \"select * from catalog_snapshot where item_id = \" + item_id + \" and facility_id = '\" + facility_id + \"'\";\n query += \" and fac_item_id = '\" + this.fac_item_id + \"'\";\n DBResultSet dbrs = null;\n ResultSet rs = null;\n try {\n dbrs = db.doQuery(query);\n rs = dbrs.getResultSet();\n if (rs.next()) {\n setItemId( (int) rs.getInt(\"ITEM_ID\"));\n setFacItemId(rs.getString(\"FAC_ITEM_ID\"));\n setMaterialDesc(rs.getString(\"MATERIAL_DESC\"));\n setGrade(rs.getString(\"GRADE\"));\n setMfgDesc(rs.getString(\"MFG_DESC\"));\n setPartSize( (float) rs.getFloat(\"PART_SIZE\"));\n setSizeUnit(rs.getString(\"SIZE_UNIT\"));\n setPkgStyle(rs.getString(\"PKG_STYLE\"));\n setType(rs.getString(\"TYPE\"));\n setPrice(BothHelpObjs.makeBlankFromNull(rs.getString(\"PRICE\")));\n setShelfLife( (float) rs.getFloat(\"SHELF_LIFE\"));\n setShelfLifeUnit(rs.getString(\"SHELF_LIFE_UNIT\"));\n setUseage(rs.getString(\"USEAGE\"));\n setUseageUnit(rs.getString(\"USEAGE_UNIT\"));\n setApprovalStatus(rs.getString(\"APPROVAL_STATUS\"));\n setPersonnelId( (int) rs.getInt(\"PERSONNEL_ID\"));\n setUserGroupId(rs.getString(\"USER_GROUP_ID\"));\n setApplication(rs.getString(\"APPLICATION\"));\n setFacilityId(rs.getString(\"FACILITY_ID\"));\n setMsdsOn(rs.getString(\"MSDS_ON_LINE\"));\n setSpecOn(rs.getString(\"SPEC_ON_LINE\"));\n setMatId( (int) rs.getInt(\"MATERIAL_ID\"));\n setSpecId(rs.getString(\"SPEC_ID\"));\n setMfgPartNum(rs.getString(\"MFG_PART_NO\"));\n\n //trong 3-27-01\n setCaseQty(BothHelpObjs.makeZeroFromNull(rs.getString(\"CASE_QTY\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n HelpObjs.monitor(1,\n \"Error object(\" + this.getClass().getName() + \"): \" + e.getMessage(), null);\n throw e;\n } finally {\n dbrs.close();\n }\n return;\n }", "public BatchRecordInfo(BatchRecordInfo source) {\n if (source.RecordId != null) {\n this.RecordId = new Long(source.RecordId);\n }\n if (source.SubDomain != null) {\n this.SubDomain = new String(source.SubDomain);\n }\n if (source.RecordType != null) {\n this.RecordType = new String(source.RecordType);\n }\n if (source.RecordLine != null) {\n this.RecordLine = new String(source.RecordLine);\n }\n if (source.Value != null) {\n this.Value = new String(source.Value);\n }\n if (source.TTL != null) {\n this.TTL = new Long(source.TTL);\n }\n if (source.Status != null) {\n this.Status = new String(source.Status);\n }\n if (source.Operation != null) {\n this.Operation = new String(source.Operation);\n }\n if (source.ErrMsg != null) {\n this.ErrMsg = new String(source.ErrMsg);\n }\n if (source.Id != null) {\n this.Id = new Long(source.Id);\n }\n if (source.Enabled != null) {\n this.Enabled = new Long(source.Enabled);\n }\n if (source.MX != null) {\n this.MX = new Long(source.MX);\n }\n if (source.Weight != null) {\n this.Weight = new Long(source.Weight);\n }\n if (source.Remark != null) {\n this.Remark = new String(source.Remark);\n }\n }", "public static void populateData() {\n\n }", "public List<SubjectBean> populateStudent(String sql ){\n\t\t\t\t\tList<SubjectBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(SubjectBean.class));\n\t\t\t\t\t\treturn retlist;\n\t\t\t }", "private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}", "public void importApprovedMembers() {\r\n\t\tList<MemberImport> newMembers = applicationDao.importMissingMembers();\r\n\t\tint existingCounter = 0;\r\n\t\tint newMembersCounter = 0;\r\n\r\n\t\tfor (MemberImport memberImport : newMembers) {\r\n\t\t\t// Is there a user with the above email address -\r\n\t\t\tUser user = null;\r\n\t\t\tif (!memberImport.getEmail().isEmpty()) {\r\n\t\t\t\tList<User> users = userDao.findByUserActivationEmailExclusive(memberImport.getEmail());\r\n\t\t\t\tif (users.size() == 1) {\r\n\t\t\t\t\tuser = users.get(0);\r\n\t\t\t\t} else if (users.size() == 2) {\r\n\t\t\t\t\tSystem.err.println(\"Found 2 records for user with email::\" + memberImport.getEmail());\r\n\t\t\t\t\t// Deactivate the Associate Account\r\n\t\t\t\t\tfor (User u : users) {\r\n\t\t\t\t\t\tif (u.getMemberNo() != null) {\r\n\t\t\t\t\t\t\tif (u.getMemberNo().contains(\"Assoc/\")) {\r\n\t\t\t\t\t\t\t\tu.getMember().setMemberShipStatus(MembershipStatus.INACTIVE);\r\n\t\t\t\t\t\t\t\tu.setIsActive(0);\r\n\t\t\t\t\t\t\t\tuserDao.save(u);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tuser = u;\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} else {\r\n\t\t\t\tcreateNewMember(memberImport);\r\n\t\t\t\tnewMembersCounter = newMembersCounter + 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (user != null) {\r\n\t\t\t\tSystem.err.println(\"User Found>>>\" + memberImport.getEmail());\r\n\t\t\t\tuser.setMemberNo(memberImport.getMemberNo());\r\n\t\t\t\tuser.setFullName(memberImport.getName());\r\n\t\t\t\tuser.setEmail(memberImport.getEmail());\r\n\t\t\t\tif (memberImport.getGender() == 0) {\r\n\t\t\t\t\tuser.getUserData().setGender(Gender.MALE);\r\n\t\t\t\t} else if (memberImport.getStatus() == 1) {\r\n\t\t\t\t\tuser.getUserData().setGender(Gender.FEMALE);\r\n\t\t\t\t}\r\n\t\t\t\tRole role = roleDao.getByName(\"MEMBER\");\r\n\t\t\t\tuser.addRole(role);\r\n\r\n\t\t\t\tMember m = memberDao.findByUserId(user.getId());\r\n\t\t\t\t// Check if this member has been imported before...\r\n\t\t\t\tif (m == null) {\r\n\t\t\t\t\tm = new Member();\r\n\t\t\t\t}\r\n\t\t\t\tm.setMemberNo(memberImport.getMemberNo());\r\n\t\t\t\tm.setRegistrationDate(memberImport.getDateRegistered());\r\n\t\t\t\tm.setUserRefId(user.getRefId());\r\n\t\t\t\tif (memberImport.getStatus() == 0) {\r\n\t\t\t\t\tm.setMemberShipStatus(MembershipStatus.ACTIVE);\r\n\t\t\t\t} else if (memberImport.getStatus() == 1) {\r\n\t\t\t\t\tm.setMemberShipStatus(MembershipStatus.ACTIVE);\r\n\t\t\t\t}\r\n\t\t\t\tuser.setMember(m);\r\n\t\t\t\tuserDao.save(m);\r\n\t\t\t\tuserDao.save(user);\r\n\t\t\t\texistingCounter = existingCounter + 1;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"User Not found>>>\" + memberImport.getEmail());\r\n\t\t\t\tcreateNewMember(memberImport);\r\n\t\t\t\tnewMembersCounter = newMembersCounter + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.err.println(\"Successfully Imported ::\" + existingCounter + \" Members who existed.\");\r\n\t\tSystem.err.println(\"Successfully Imported ::\" + newMembersCounter + \" Members who did not exist.\");\r\n\t\tSystem.err.println(\"Total ::\" + (existingCounter + newMembersCounter));\r\n\t}", "private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"[email protected]\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"[email protected]\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"[email protected]\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"[email protected]\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"[email protected]\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}", "@Override\n public List<School> importData(final String databaseName, final Date dateFrom, final Date dateTo) {\n return null;\n }", "public void fieldsFrom(DataObject arg) {\n boolean isValidArg = false;\n if (arg instanceof org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Ipv4MatchFields) {\n this._ipv4Source = ((org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Ipv4MatchFields)arg).getIpv4Source();\n this._ipv4Destination = ((org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Ipv4MatchFields)arg).getIpv4Destination();\n isValidArg = true;\n }\n if (!isValidArg) {\n throw new IllegalArgumentException(\n \"expected one of: [org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Ipv4MatchFields] \\n\" +\n \"but was: \" + arg\n );\n }\n }", "public interface Member {\n\n public String getFirstName();\n\n public String getSurName();\n\n public Date getBithday();\n\n public String getGender();\n\n public List<Contact> getContacts();\n\n\n}", "public void readExternal(PofReader in) throws IOException {\n\t\tsetNewUser((User) in.readObject(0));\n\t}", "public ClubDetails mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\tClubDetails clubDetails = new ClubDetails();\r\n\t\tclubDetails.setUsername(rs.getString(\"username\"));\r\n\t\tclubDetails.setPassword(rs.getString(\"password\"));\r\n\t\tclubDetails.setNewPassword(rs.getString(\"newPassword\"));\r\n\t\tclubDetails.setClubname(rs.getString(\"clubname\"));\r\n\t\tclubDetails.setEmail(rs.getString(\"email\"));\r\n\t\t//clubDetails.setMemberDetails(new HashSet<MemberDetails>());\r\n\t\tclubDetails.setMembershiptype(rs.getString(\"membershiptype\"));\r\n\t\tclubDetails.setPhonenumber(rs.getLong(\"phonenumber\"));\r\n\t\tclubDetails.setClub_id(rs.getInt(\"club_id\"));\r\n\t\tclubDetails.setRoleId(rs.getInt(\"roleId\"));\r\n\t\treturn clubDetails;\r\n\t}", "protected void loadData()\n {\n }", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}", "List<OrgMemberRecord> selectByExample(OrgMemberRecordExample example);", "@Override\r\n\tpublic List<EmployeeBo> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\tList<EmployeeBo> lisbo= new ArrayList<EmployeeBo>();\r\n\t\tEmployeeBo bo=null;\r\n\t\twhile(rs.next())\r\n\t\t{\r\n\t\t\tbo=new EmployeeBo();\r\n\t\t\tbo.setEmpno(rs.getInt(1));\r\n\t\t\tbo.setEname(rs.getString(2));\r\n\t\t\tbo.setJob(rs.getString(3));\r\n\t\t\tbo.setSalary(rs.getInt(4));\r\n\t\t\tlisbo.add(bo);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn lisbo;\r\n\t}", "protected DocumentTestObject homeMembership() \n\t{\n\t\treturn new DocumentTestObject(\n getMappedTestObject(\"homeMembership\"));\n\t}", "@Test\n public void testRead() {\n\n List<JDBCDataObject> classList = new ArrayList<>();\n\n classList = manageClass.read(new EnrollmentDTO(1, 0, 0, null));\n\n assertNotNull(classList);\n }", "public java.util.Hashtable _copyFromEJB() {\n com.ibm.ivj.ejb.runtime.AccessBeanHashtable h = new com.ibm.ivj.ejb.runtime.AccessBeanHashtable();\n\n h.put(\"recdate\", getRecdate());\n h.put(\"objtype\", new Short(getObjtype()));\n h.put(\"eventtype\", getEventtype());\n h.put(\"objid\", new Integer(getObjid()));\n h.put(\"logid\", new Integer(getLogid()));\n h.put(\"peopleKey\", getPeopleKey());\n h.put(\"__Key\", getEntityContext().getPrimaryKey());\n\n return h;\n\n}", "private List<User> readFromFile() {\n\n List<String> lines = new ArrayList<>();\n List<User> contactList = new ArrayList<>();\n Map<String, PhoneNumber> phoneNumbersNewUser = new HashMap<>();\n\n try (BufferedReader in = new BufferedReader(new FileReader(contactsFile))) {\n String line;\n while ((line = in.readLine()) != null) {\n lines.add(line);\n }\n\n } catch (IOException ex) {\n System.out.println(\"File not found \\n\" + ex);\n ;\n }\n\n for (String line : lines) {\n String[] userProperties = line.split(\"\\\\|\");\n\n int id = Integer.parseInt(userProperties[0]);\n String fName = userProperties[1];\n String lName = userProperties[2];\n String email = userProperties[3];\n int age = Integer.parseInt(userProperties[4]);\n String[] phones = userProperties[5].split(\"\\\\,\");\n String[] homePhone = phones[0].split(\"\\\\_\");\n String[] mobilePhone = phones[1].split(\"\\\\_\");\n String[] workPhone = phones[2].split(\"\\\\_\");\n phoneNumbersNewUser.put(homePhone[0], new PhoneNumber(homePhone[1], homePhone[2]));\n phoneNumbersNewUser.put(mobilePhone[0], new PhoneNumber(mobilePhone[1], mobilePhone[2]));\n phoneNumbersNewUser.put(workPhone[0], new PhoneNumber(workPhone[1], workPhone[2]));\n String[] homeAdress = userProperties[6].split(\"\\\\,\");\n Address homeAdressNewUser = new Address(homeAdress[0], Integer.parseInt(homeAdress[1]), Integer.parseInt(homeAdress[2]),\n homeAdress[3], homeAdress[4], homeAdress[5], homeAdress[6]);\n String title = userProperties[7];\n String[] companyProperties = userProperties[8].split(\"\\\\_\");\n String[] companyAddress = companyProperties[1].split(\"\\\\,\");\n Address companyAddressNewUser = new Address(companyAddress[0], Integer.parseInt(companyAddress[1]),\n Integer.parseInt(companyAddress[2]), companyAddress[3], companyAddress[4], companyAddress[5],\n companyAddress[6]);\n String companyName = companyProperties[0];\n Company companyNewUser = new Company(companyName, companyAddressNewUser);\n boolean isFav = Boolean.parseBoolean(userProperties[9]);\n User user = new User(id, fName, lName, email, age, phoneNumbersNewUser, homeAdressNewUser, title, companyNewUser, isFav);\n contactList.add(user);\n }\n\n\n return contactList;\n }", "public void _copyToEJB(java.util.Hashtable h) {\n java.sql.Timestamp localRecdate = (java.sql.Timestamp) h.get(\"recdate\");\n Short localObjtype = (Short) h.get(\"objtype\");\n java.lang.String localEventtype = (java.lang.String) h.get(\"eventtype\");\n Integer localObjid = (Integer) h.get(\"objid\");\n\n if ( h.containsKey(\"recdate\") )\n setRecdate((localRecdate));\n if ( h.containsKey(\"objtype\") )\n setObjtype((localObjtype).shortValue());\n if ( h.containsKey(\"eventtype\") )\n setEventtype((localEventtype));\n if ( h.containsKey(\"objid\") )\n setObjid((localObjid).intValue());\n\n}", "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}", "@Override\n\tpublic List<User> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\tList<User> list = new ArrayList<User>();\n\t\twhile (rs.next()) {\n\t\t\tUser user = new User();\n\t\t\tuser.setUserId(rs.getInt(\"user_id\"));\n\t\t\tuser.setUserName(rs.getString(\"user_name\"));\n\t\t\tlist.add(user);\n\n\t\t}\n\t\treturn list;\n\t}", "@Override\n protected void load() {\n //recordId can be null when in batchMode\n if (this.recordId != null && this.properties.isEmpty()) {\n this.sqlgGraph.tx().readWrite();\n if (this.sqlgGraph.getSqlDialect().supportsBatchMode() && this.sqlgGraph.tx().getBatchManager().isStreaming()) {\n throw new IllegalStateException(\"streaming is in progress, first flush or commit before querying.\");\n }\n\n //Generate the columns to prevent 'ERROR: cached plan must not change result type\" error'\n //This happens when the schema changes after the statement is prepared.\n @SuppressWarnings(\"OptionalGetWithoutIsPresent\")\n EdgeLabel edgeLabel = this.sqlgGraph.getTopology().getSchema(this.schema).orElseThrow(() -> new IllegalStateException(String.format(\"Schema %s not found\", this.schema))).getEdgeLabel(this.table).orElseThrow(() -> new IllegalStateException(String.format(\"EdgeLabel %s not found\", this.table)));\n StringBuilder sql = new StringBuilder(\"SELECT\\n\\t\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(\"ID\"));\n appendProperties(edgeLabel, sql);\n List<VertexLabel> outForeignKeys = new ArrayList<>();\n for (VertexLabel vertexLabel : edgeLabel.getOutVertexLabels()) {\n outForeignKeys.add(vertexLabel);\n sql.append(\", \");\n if (vertexLabel.hasIDPrimaryKey()) {\n String foreignKey = vertexLabel.getSchema().getName() + \".\" + vertexLabel.getName() + Topology.OUT_VERTEX_COLUMN_END;\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(foreignKey));\n } else {\n int countIdentifier = 1;\n for (String identifier : vertexLabel.getIdentifiers()) {\n PropertyColumn propertyColumn = vertexLabel.getProperty(identifier).orElseThrow(\n () -> new IllegalStateException(String.format(\"identifier %s column must be a property\", identifier))\n );\n PropertyType propertyType = propertyColumn.getPropertyType();\n String[] propertyTypeToSqlDefinition = this.sqlgGraph.getSqlDialect().propertyTypeToSqlDefinition(propertyType);\n int count = 1;\n for (String ignored : propertyTypeToSqlDefinition) {\n if (count > 1) {\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + propertyType.getPostFixes()[count - 2] + Topology.OUT_VERTEX_COLUMN_END));\n } else {\n //The first column existVertexLabel no postfix\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + Topology.OUT_VERTEX_COLUMN_END));\n }\n if (count++ < propertyTypeToSqlDefinition.length) {\n sql.append(\", \");\n }\n }\n if (countIdentifier++ < vertexLabel.getIdentifiers().size()) {\n sql.append(\", \");\n }\n }\n }\n }\n List<VertexLabel> inForeignKeys = new ArrayList<>();\n for (VertexLabel vertexLabel : edgeLabel.getInVertexLabels()) {\n sql.append(\", \");\n inForeignKeys.add(vertexLabel);\n if (vertexLabel.hasIDPrimaryKey()) {\n String foreignKey = vertexLabel.getSchema().getName() + \".\" + vertexLabel.getName() + Topology.IN_VERTEX_COLUMN_END;\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(foreignKey));\n } else {\n int countIdentifier = 1;\n for (String identifier : vertexLabel.getIdentifiers()) {\n PropertyColumn propertyColumn = vertexLabel.getProperty(identifier).orElseThrow(\n () -> new IllegalStateException(String.format(\"identifier %s column must be a property\", identifier))\n );\n PropertyType propertyType = propertyColumn.getPropertyType();\n String[] propertyTypeToSqlDefinition = this.sqlgGraph.getSqlDialect().propertyTypeToSqlDefinition(propertyType);\n int count = 1;\n for (String ignored : propertyTypeToSqlDefinition) {\n if (count > 1) {\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + propertyType.getPostFixes()[count - 2] + Topology.IN_VERTEX_COLUMN_END));\n } else {\n //The first column existVertexLabel no postfix\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + Topology.IN_VERTEX_COLUMN_END));\n }\n if (count++ < propertyTypeToSqlDefinition.length) {\n sql.append(\", \");\n }\n }\n if (countIdentifier++ < vertexLabel.getIdentifiers().size()) {\n sql.append(\", \");\n }\n }\n }\n }\n sql.append(\"\\nFROM\\n\\t\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(this.schema));\n sql.append(\".\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(EDGE_PREFIX + this.table));\n sql.append(\" WHERE \");\n //noinspection Duplicates\n if (edgeLabel.hasIDPrimaryKey()) {\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(\"ID\"));\n sql.append(\" = ?\");\n } else {\n int count = 1;\n for (String identifier : edgeLabel.getIdentifiers()) {\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(identifier));\n sql.append(\" = ?\");\n if (count++ < edgeLabel.getIdentifiers().size()) {\n sql.append(\" AND \");\n }\n\n }\n }\n if (this.sqlgGraph.getSqlDialect().needsSemicolon()) {\n sql.append(\";\");\n }\n Connection conn = this.sqlgGraph.tx().getConnection();\n if (logger.isDebugEnabled()) {\n logger.debug(sql.toString());\n }\n try (PreparedStatement preparedStatement = conn.prepareStatement(sql.toString())) {\n if (edgeLabel.hasIDPrimaryKey()) {\n preparedStatement.setLong(1, this.recordId.sequenceId());\n } else {\n int count = 1;\n for (Comparable identifierValue : this.recordId.getIdentifiers()) {\n preparedStatement.setObject(count++, identifierValue);\n }\n }\n ResultSet resultSet = preparedStatement.executeQuery();\n if (resultSet.next()) {\n loadResultSet(resultSet, inForeignKeys, outForeignKeys);\n }\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }\n }", "private static void flexSync(Connection con, InputStreamReader isr, String club) {\n\n PreparedStatement pstmt2 = null;\n Statement stmt = null;\n ResultSet rs = null;\n\n\n Member member = new Member();\n\n String line = \"\";\n String password = \"\";\n String temp = \"\";\n\n int i = 0;\n\n // Values from Flexscape records\n //\n String fname = \"\";\n String lname = \"\";\n String mi = \"\";\n String suffix = \"\";\n String posid = \"\";\n String gender = \"\";\n String ghin = \"\";\n String memid = \"\";\n String webid = \"\";\n String mNum = \"\";\n String u_hndcp = \"\";\n String c_hndcp = \"\";\n String mship = \"\";\n String mtype = \"\";\n String bag = \"\";\n String email = \"\";\n String email2 = \"\";\n String phone = \"\";\n String phone2 = \"\";\n String mobile = \"\";\n String primary = \"\";\n String active = \"\";\n\n String mship2 = \"\"; // used to tell if match was found\n\n float u_hcap = 0;\n float c_hcap = 0;\n int birth = 0;\n\n // Values from ForeTees records\n //\n String fname_old = \"\";\n String lname_old = \"\";\n String mi_old = \"\";\n String mship_old = \"\";\n String mtype_old = \"\";\n String email_old = \"\";\n String mNum_old = \"\";\n String ghin_old = \"\";\n String bag_old = \"\";\n String posid_old = \"\";\n String email2_old = \"\";\n String phone_old = \"\";\n String phone2_old = \"\";\n String suffix_old = \"\";\n String memid_old = \"\";\n\n float u_hcap_old = 0;\n float c_hcap_old = 0;\n int birth_old = 0;\n\n // Values for New ForeTees records\n //\n String fname_new = \"\";\n String lname_new = \"\";\n String mi_new = \"\";\n String mship_new = \"\";\n String mtype_new = \"\";\n String email_new = \"\";\n String mNum_new = \"\";\n String ghin_new = \"\";\n String bag_new = \"\";\n String posid_new = \"\";\n String email2_new = \"\";\n String phone_new = \"\";\n String phone2_new = \"\";\n String suffix_new = \"\";\n String memid_new = \"\";\n String last_mship = \"\";\n String last_mnum = \"\";\n\n float u_hcap_new = 0;\n float c_hcap_new = 0;\n int birth_new = 0;\n int rcount = 0;\n int newCount = 0;\n int modCount = 0;\n int work = 0;\n\n String errorMsg = \"Error in Common_sync.flexSync: \";\n\n boolean failed = false;\n boolean changed = false;\n boolean skip = false;\n boolean headerFound = false;\n boolean found = false;\n boolean memidChanged = false;\n\n\n SystemUtils.logErrorToFile(\"FlexScape: Error log for \" + club + \"\\nStart time: \" + new java.util.Date().toString() + \"\\n\", club, false);\n\n try {\n\n BufferedReader br = new BufferedReader(isr);\n\n while (true) {\n\n line = br.readLine();\n\n if (line == null) {\n break;\n }\n\n // Skip the 1st row (header row)\n\n if (headerFound == false) {\n\n headerFound = true;\n\n } else {\n\n skip = false;\n found = false; // default to club NOT found\n\n //\n // *********************************************************************\n //\n // The following will be dependent on the club - customized\n //\n // *********************************************************************\n //\n if (club.equals( \"fourbridges\" )) {\n\n found = true; // club found\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord4( line );\n line = cleanRecord2( line );\n\n rcount++; // count the records\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 10 ) { // enough data ?\n\n webid = tok.nextToken();\n memid = tok.nextToken();\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n gender = tok.nextToken();\n email = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n temp = tok.nextToken();\n primary = tok.nextToken();\n\n mNum = \"\";\n suffix = \"\";\n mship = \"\";\n mtype = \"\";\n email2 = \"\";\n bag = \"\";\n ghin = \"\";\n u_hndcp = \"\";\n c_hndcp = \"\";\n posid = \"\";\n mobile = \"\";\n active = \"\";\n\n //\n // Check for ? (not provided)\n //\n if (webid.equals( \"?\" )) {\n\n webid = \"\";\n }\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (gender.equals( \"?\" )) {\n\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (temp.equals( \"?\" ) || temp.equals( \"0\" )) {\n\n temp = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!webid.equals( \"\" ) && !memid.equals( \"\" ) && !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 ) {\n\n mi = tok.nextToken(); // over-write mi if already there\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n\n } else { // sufix after last name ?\n\n if ( tok.countTokens() > 0 ) {\n\n suffix = tok.nextToken();\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n\n //\n // convert birth date (mm/dd/yyyy to yyyymmdd)\n //\n birth = 0;\n\n if (!temp.equals( \"\" )) {\n\n String b1 = \"\";\n String b2 = \"\";\n String b3 = \"\";\n int mm = 0;\n int dd = 0;\n int yy = 0;\n\n tok = new StringTokenizer( temp, \"/-\" ); // delimiters are / & -\n\n if ( tok.countTokens() > 2 ) {\n\n b1 = tok.nextToken();\n b2 = tok.nextToken();\n b3 = tok.nextToken();\n\n mm = Integer.parseInt(b1);\n dd = Integer.parseInt(b2);\n yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n\n } else { // try 'Jan 20, 1951' format\n\n tok = new StringTokenizer( temp, \", \" ); // delimiters are comma and space\n\n if ( tok.countTokens() > 2 ) {\n\n b1 = tok.nextToken();\n b2 = tok.nextToken();\n b3 = tok.nextToken();\n\n if (b1.startsWith( \"Jan\" )) {\n mm = 1;\n } else {\n if (b1.startsWith( \"Feb\" )) {\n mm = 2;\n } else {\n if (b1.startsWith( \"Mar\" )) {\n mm = 3;\n } else {\n if (b1.startsWith( \"Apr\" )) {\n mm = 4;\n } else {\n if (b1.startsWith( \"May\" )) {\n mm = 5;\n } else {\n if (b1.startsWith( \"Jun\" )) {\n mm = 6;\n } else {\n if (b1.startsWith( \"Jul\" )) {\n mm = 7;\n } else {\n if (b1.startsWith( \"Aug\" )) {\n mm = 8;\n } else {\n if (b1.startsWith( \"Sep\" )) {\n mm = 9;\n } else {\n if (b1.startsWith( \"Oct\" )) {\n mm = 10;\n } else {\n if (b1.startsWith( \"Nov\" )) {\n mm = 11;\n } else {\n if (b1.startsWith( \"Dec\" )) {\n mm = 12;\n } else {\n mm = Integer.parseInt(b1);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n dd = Integer.parseInt(b2);\n yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n }\n }\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n\n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n //\n // Determine if we should process this record\n //\n if (!webid.equals( \"\" )) { // must have a webid\n\n mNum = memid;\n\n if (mNum.endsWith( \"A\" ) || mNum.endsWith( \"a\" ) || mNum.endsWith( \"B\" ) || mNum.endsWith( \"b\" ) ||\n mNum.endsWith( \"C\" ) || mNum.endsWith( \"c\" ) || mNum.endsWith( \"D\" ) || mNum.endsWith( \"d\" ) ||\n mNum.endsWith( \"E\" ) || mNum.endsWith( \"e\" ) || mNum.endsWith( \"F\" ) || mNum.endsWith( \"f\" )) {\n\n mNum = stripA(mNum);\n }\n\n posid = mNum;\n\n\n //\n // Use a version of the webid for our username value. We cannot use the mNum for this because the mNum can\n // change at any time (when their mship changes). The webid does not change for members.\n //\n memid = \"100\" + webid; // use 100xxxx so username will never match any old usernames that were originally\n // based on mNums!!\n\n\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n }\n if (primary.equals( \"\" )) {\n\n primary = \"0\";\n }\n\n //\n // Determine mtype value\n //\n if (gender.equalsIgnoreCase( \"M\" )) {\n\n mtype = \"Primary Male\";\n\n if (primary.equalsIgnoreCase( \"1\" )) {\n\n mtype = \"Spouse Male\";\n\n }\n\n } else {\n\n mtype = \"Primary Female\";\n\n if (primary.equalsIgnoreCase( \"1\" )) {\n\n mtype = \"Spouse Female\";\n\n }\n }\n\n //\n // Determine mship value\n //\n work = Integer.parseInt(mNum); // create int for compares\n\n mship = \"\";\n\n if (work < 1000) { // 0001 - 0999 (see 7xxx below also)\n\n mship = \"Full Family Golf\";\n\n } else {\n\n if (work < 1500) { // 1000 - 1499\n\n mship = \"Individual Golf\";\n\n } else {\n\n if (work < 2000) { // 1500 - 1999\n\n mship = \"Individual Golf Plus\";\n\n } else {\n\n if (work > 2999 && work < 4000) { // 3000 - 3999\n\n mship = \"Corporate Golf\";\n\n } else {\n\n if (work > 3999 && work < 5000) { // 4000 - 4999\n\n mship = \"Sports\";\n\n } else {\n\n if (work > 6499 && work < 6600) { // 6500 - 6599\n\n mship = \"Player Development\";\n\n } else {\n\n if (work > 7002 && work < 7011) { // 7003 - 7010\n\n mship = \"Harpors Point\";\n\n if (work == 7004 || work == 7008 || work == 7009) { // 7004, 7008 or 7009\n\n mship = \"Full Family Golf\";\n }\n\n } else {\n\n if (work > 8999 && work < 10000) { // 9000 - 9999\n\n mship = \"Employees\";\n mtype = \"Employee\"; // override mtype for employees\n }\n }\n }\n }\n }\n }\n }\n }\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip record if mship not one of above\n SystemUtils.logErrorToFile(\"MSHIP MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, \"fourbridges\", true);\n }\n\n } else {\n\n skip = true; // skip record if webid not provided\n SystemUtils.logErrorToFile(\"WEBID MISSING - SKIPPED\", \"fourbridges\", true);\n }\n\n } else {\n\n skip = true; // skip record if memid or name not provided\n SystemUtils.logErrorToFile(\"USERNAME/NAME MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + memid, \"fourbridges\", true);\n\n } // end of IF minimum requirements met (memid, etc)\n\n\n\n //\n //******************************************************************\n // Common processing - add or update the member record\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n memid_old = \"\";\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n posid_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n birth_old = 0;\n\n memidChanged = false;\n changed = false;\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if(rs.next()) {\n\n memid_old = rs.getString(\"username\");\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n }\n pstmt2.close(); // close the stmt\n\n if (!fname_old.equals( \"\" )) { // if member found\n\n changed = false; // init change indicator\n\n memid_new = memid_old;\n\n if (!memid.equals( memid_old )) { // if username has changed\n\n memid_new = memid; // use new memid\n changed = true;\n memidChanged = true;\n }\n\n lname_new = lname_old;\n\n if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from Flexscape record\n changed = true;\n }\n\n fname_new = fname_old;\n\n fname = fname_old; // DO NOT change first names\n\n/*\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from Flexscape record\n changed = true;\n }\n*/\n\n mi_new = mi_old;\n\n if (!mi.equals( \"\" ) && !mi_old.equals( mi )) {\n\n mi_new = mi; // set value from Flexscape record\n changed = true;\n }\n\n mship_new = mship_old;\n\n if (mship_old.startsWith( \"Founding\" )) { // do not change if Founding ....\n\n mship = mship_old;\n\n } else {\n\n if (!mship_old.equals( mship )) { // if the mship has changed\n\n mship_new = mship; // set value from Flexscape record\n changed = true;\n }\n }\n\n mtype_new = mtype_old;\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n\n mtype_new = mtype; // set value from Flexscape record\n changed = true;\n }\n\n birth_new = birth_old;\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from Flexscape record\n changed = true;\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from Flexscape record\n changed = true;\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from Flexscape record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from Flexscape record\n changed = true;\n }\n\n email_new = email_old; // do not change emails\n email2_new = email2_old;\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // NOTE: mNums can change for this club!!\n //\n // DO NOT change the webid!!!!!!!!!\n //\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from Flexscape record\n\n //\n // mNum changed - change it for all records that match the old mNum.\n // This is because most dependents are not included in web site roster,\n // but are in our roster.\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET memNum = ? \" +\n \"WHERE memNum = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, mNum_new);\n pstmt2.setString(2, mNum_old);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n\n\n //\n // Update our record\n //\n if (changed == true) {\n\n modCount++; // count records changed\n }\n\n try {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET username = ?, name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, birth = ?, posid = ?, phone1 = ?, \" +\n \"phone2 = ?, inact = 0, last_sync_date = now(), gender = ? \" +\n \"WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid_new);\n pstmt2.setString(2, lname_new);\n pstmt2.setString(3, fname_new);\n pstmt2.setString(4, mi_new);\n pstmt2.setString(5, mship_new);\n pstmt2.setString(6, mtype_new);\n pstmt2.setString(7, email_new);\n pstmt2.setString(8, mNum_new);\n pstmt2.setInt(9, birth_new);\n pstmt2.setString(10, posid_new);\n pstmt2.setString(11, phone_new);\n pstmt2.setString(12, phone2_new);\n pstmt2.setString(13, gender);\n pstmt2.setString(14, webid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n }\n catch (Exception e9) {\n\n errorMsg = errorMsg + \" Error updating record (#\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e9.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"UPDATE MYSQL ERROR!\", \"fourbridges\", true);\n }\n\n\n //\n // Now, update other tables if the username has changed\n //\n if (memidChanged == true) {\n\n StringBuffer mem_name = new StringBuffer( fname_new ); // get the new first name\n\n if (!mi_new.equals( \"\" )) {\n mem_name.append(\" \" +mi_new); // new mi\n }\n mem_name.append(\" \" +lname_new); // new last name\n\n String newName = mem_name.toString(); // convert to one string\n\n Admin_editmem.updTeecurr(newName, memid_new, memid_old, con); // update teecurr with new values\n\n Admin_editmem.updTeepast(newName, memid_new, memid_old, con); // update teepast with new values\n\n Admin_editmem.updLreqs(newName, memid_new, memid_old, con); // update lreqs with new values\n\n Admin_editmem.updPartner(memid_new, memid_old, con); // update partner with new values\n\n Admin_editmem.updEvents(newName, memid_new, memid_old, con); // update evntSignUp with new values\n\n Admin_editmem.updLessons(newName, memid_new, memid_old, con); // update the lesson books with new values\n }\n\n\n } else {\n\n //\n // New member - first check if name already exists\n //\n boolean dup = false;\n\n pstmt2 = con.prepareStatement (\n \"SELECT username FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n dup = true;\n }\n pstmt2.close(); // close the stmt\n\n if (dup == false) {\n\n //\n // New member - add it\n //\n newCount++; // count records added\n\n try {\n\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, \" +\n \"webid, last_sync_date, gender) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,'',?,?,?,'',?,?,now(),?)\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, email2);\n pstmt2.setString(17, phone);\n pstmt2.setString(18, phone2);\n pstmt2.setString(19, suffix);\n pstmt2.setString(20, webid);\n pstmt2.setString(21, gender);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n\n }\n catch (Exception e8) {\n\n errorMsg = errorMsg + \" Error adding record (#\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e8.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"INSERT MYSQL ERROR!\", \"fourbridges\", true);\n }\n\n } else { // Dup name\n\n // errorMsg = errorMsg + \" Duplicate Name found, name = \" +fname+ \" \" +lname+ \", record #\" +rcount+ \" for \" +club+ \", line = \" +line; // build msg\n // SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"DUPLICATE NAME!\", \"fourbridges\", true);\n }\n }\n\n } // end of IF skip\n\n } // end of IF record valid (enough tokens)\n\n } else { // end of IF club = fourbridges\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord4( line );\n line = cleanRecord2( line );\n\n rcount++; // count the records\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 10 ) { // enough data ?\n\n webid = tok.nextToken();\n memid = tok.nextToken();\n tok.nextToken(); // eat this value, not used\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n gender = tok.nextToken();\n email = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n temp = tok.nextToken();\n primary = tok.nextToken();\n mship = tok.nextToken();\n\n mNum = \"\";\n suffix = \"\";\n mtype = \"\";\n email2 = \"\";\n bag = \"\";\n ghin = \"\";\n u_hndcp = \"\";\n c_hndcp = \"\";\n posid = \"\";\n mobile = \"\";\n active = \"\";\n\n //\n // Check for ? (not provided)\n //\n if (webid.equals( \"?\" )) {\n\n webid = \"\";\n }\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (mship.equals( \"?\" )) {\n\n mship = \"\";\n }\n if (gender.equals( \"?\" )) {\n\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (temp.equals( \"?\" ) || temp.equals( \"0\" )) {\n\n temp = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!webid.equals( \"\" ) && !memid.equals( \"\" ) && !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 ) {\n\n mi = tok.nextToken(); // over-write mi if already there\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n\n } else { // sufix after last name ?\n\n if ( tok.countTokens() > 0 ) {\n\n suffix = tok.nextToken();\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n\n //\n // convert birth date (mm/dd/yyyy to yyyymmdd)\n //\n birth = 0;\n\n if (!temp.equals( \"\" )) {\n\n String b1 = \"\";\n String b2 = \"\";\n String b3 = \"\";\n int mm = 0;\n int dd = 0;\n int yy = 0;\n\n tok = new StringTokenizer( temp, \"/-\" ); // delimiters are / & -\n\n if ( tok.countTokens() > 2 ) {\n\n b1 = tok.nextToken();\n b2 = tok.nextToken();\n b3 = tok.nextToken();\n\n mm = Integer.parseInt(b1);\n dd = Integer.parseInt(b2);\n yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n\n } else { // try 'Jan 20, 1951' format\n\n tok = new StringTokenizer( temp, \", \" ); // delimiters are comma and space\n\n if ( tok.countTokens() > 2 ) {\n\n b1 = tok.nextToken();\n b2 = tok.nextToken();\n b3 = tok.nextToken();\n\n if (b1.startsWith( \"Jan\" )) {\n mm = 1;\n } else {\n if (b1.startsWith( \"Feb\" )) {\n mm = 2;\n } else {\n if (b1.startsWith( \"Mar\" )) {\n mm = 3;\n } else {\n if (b1.startsWith( \"Apr\" )) {\n mm = 4;\n } else {\n if (b1.startsWith( \"May\" )) {\n mm = 5;\n } else {\n if (b1.startsWith( \"Jun\" )) {\n mm = 6;\n } else {\n if (b1.startsWith( \"Jul\" )) {\n mm = 7;\n } else {\n if (b1.startsWith( \"Aug\" )) {\n mm = 8;\n } else {\n if (b1.startsWith( \"Sep\" )) {\n mm = 9;\n } else {\n if (b1.startsWith( \"Oct\" )) {\n mm = 10;\n } else {\n if (b1.startsWith( \"Nov\" )) {\n mm = 11;\n } else {\n if (b1.startsWith( \"Dec\" )) {\n mm = 12;\n } else {\n mm = Integer.parseInt(b1);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n dd = Integer.parseInt(b2);\n yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n }\n }\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n\n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n\n //*********************************************\n // Start of club specific processing\n //*********************************************\n\n\n //******************************************************************\n // Ocean Reef - oceanreef\n //******************************************************************\n //\n if (club.equals( \"oceanreef\" )) {\n\n found = true; // club found\n \n //\n // Determine if we should process this record\n //\n if (!webid.equals( \"\" )) { // must have a webid\n\n mNum = memid;\n //\n\n posid = mNum;\n\n\n if (primary.equals( \"\" )) {\n\n primary = \"0\";\n }\n\n if (mNum.endsWith(\"-000\")) {\n primary = \"0\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n gender = \"M\";\n mtype = \"Primary Male\";\n }\n } else if (mNum.endsWith(\"-001\")) {\n primary = \"1\";\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n gender = \"F\";\n mtype = \"Spouse Female\";\n }\n } else if (mNum.endsWith(\"-002\")) {\n primary = \"2\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Family Female\";\n } else {\n gender = \"M\";\n mtype = \"Family Male\";\n }\n } else {\n skip = true;\n SystemUtils.logErrorToFile(\"DEPENDENT MSHIP - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, \"oceanreef\", true);\n }\n\n mNum = mNum.substring(0, mNum.length() - 4);\n\n if (mship.equals(\"100\") || mship.equals(\"105\") || mship.equals(\"109\") || mship.equals(\"110\") || mship.equals(\"115\") ||\n mship.equals(\"150\") || mship.equals(\"159\") || mship.equals(\"160\") || mship.equals(\"180\") || mship.equals(\"199\") ||\n mship.equals(\"300\") || mship.equals(\"360\")) {\n mship = \"Social\";\n } else if (mship.equals(\"101\")) {\n mship = \"Multi-Game Card\";\n } else if (mship.equals(\"102\")) {\n mship = \"Summer Option\";\n } else if (mship.equals(\"130\")) {\n mship = \"Social Legacy\";\n } else if (mship.equals(\"400\") || mship.equals(\"450\") || mship.equals(\"460\") || mship.equals(\"480\")) {\n mship = \"Charter\";\n } else if (mship.equals(\"420\") || mship.equals(\"430\")) {\n mship = \"Charter Legacy\";\n } else if (mship.equals(\"401\")) {\n mship = \"Charter w/Trail Pass\";\n } else if (mship.equals(\"500\") || mship.equals(\"540\") || mship.equals(\"580\")) {\n mship = \"Patron\";\n } else if (mship.equals(\"520\") || mship.equals(\"530\")) {\n mship = \"Patron Legacy\";\n } else if (mship.equals(\"800\") || mship.equals(\"801\") || mship.equals(\"860\") || mship.equals(\"880\")) {\n mship = \"Other\";\n } else {\n skip = true;\n SystemUtils.logErrorToFile(\"MSHIP NON-GOLF OR UNKNOWN TYPE - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, club, true);\n }\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip record if mship not one of above\n SystemUtils.logErrorToFile(\"MSHIP MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, club, true);\n }\n\n } else {\n\n skip = true; // skip record if webid not provided\n SystemUtils.logErrorToFile(\"WEBID MISSING - SKIPPED\", club, true);\n }\n } // end of if oceanreef\n\n\n //******************************************************************\n // Colorado Springs CC - coloradospringscountryclub\n //******************************************************************\n //\n if (club.equals( \"coloradospringscountryclub\" )) {\n\n found = true; // club found\n\n //\n // Determine if we should process this record\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip record if mship not one of above\n SystemUtils.logErrorToFile(\"MSHIP MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, club, true);\n \n } else if (webid.equals(\"\")) {\n\n skip = true; // skip record if webid not provided\n SystemUtils.logErrorToFile(\"WEBID MISSING - SKIPPED\", club, true);\n \n } else {\n\n while (memid.startsWith(\"0\")) {\n memid = memid.substring(1);\n }\n\n mNum = memid;\n\n posid = mNum;\n\n while (posid.length() < 8) {\n posid = \"0\" + posid;\n }\n\n primary = mNum.substring(mNum.length() - 1);\n\n if (mNum.endsWith(\"-000\") || mNum.endsWith(\"-001\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n } else if (mNum.endsWith(\"-002\") || mNum.endsWith(\"-003\") || mNum.endsWith(\"-004\") || mNum.endsWith(\"-005\") ||\n mNum.endsWith(\"-006\") || mNum.endsWith(\"-007\") || mNum.endsWith(\"-008\") || mNum.endsWith(\"-009\")) {\n\n mtype = \"Youth\";\n }\n\n mNum = mNum.substring(0, mNum.length() - 4);\n\n if (mship.equalsIgnoreCase(\"Recreational\") || mship.equalsIgnoreCase(\"Clubhouse\")) {\n\n skip = true; // skip record if webid not provided\n SystemUtils.logErrorToFile(\"NON-GOLF MEMBERSHIP TYPE - SKIPPED\", club, true);\n }\n \n }\n } // end of if coloradospringscountryclub\n\n //*********************************************\n // End of club specific processing\n //*********************************************\n\n } else {\n\n skip = true; // skip record if memid or name not provided\n SystemUtils.logErrorToFile(\"USERNAME/NAME MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + memid, club, true);\n\n } // end of IF minimum requirements met (memid, etc)\n\n\n\n //\n //******************************************************************\n // Common processing - add or update the member record\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n memid_old = \"\";\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n posid_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n birth_old = 0;\n\n memidChanged = false;\n changed = false;\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if(rs.next()) {\n\n memid_old = rs.getString(\"username\");\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n }\n pstmt2.close(); // close the stmt\n\n if (!fname_old.equals( \"\" )) { // if member found\n\n changed = false; // init change indicator\n\n memid_new = memid_old;\n\n if (!memid.equals( memid_old )) { // if username has changed\n\n memid_new = memid; // use new memid\n changed = true;\n memidChanged = true;\n }\n\n lname_new = lname_old;\n\n if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from Flexscape record\n changed = true;\n }\n\n fname_new = fname_old;\n\n fname = fname_old; // DO NOT change first names\n\n/*\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from Flexscape record\n changed = true;\n }\n*/\n mi_new = mi_old;\n\n if (!mi.equals( \"\" ) && !mi_old.equals( mi )) {\n\n mi_new = mi; // set value from Flexscape record\n changed = true;\n }\n\n mship_new = mship_old;\n\n if (!mship_old.equals( mship )) { // if the mship has changed\n\n mship_new = mship; // set value from Flexscape record\n changed = true;\n }\n\n mtype_new = mtype_old;\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n mtype_new = mtype; // set value from Flexscape record\n changed = true;\n }\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from Flexscape record\n changed = true;\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from Flexscape record\n changed = true;\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from Flexscape record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from Flexscape record\n changed = true;\n }\n\n email_new = email_old; // do not change emails\n email2_new = email2_old;\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // NOTE: mNums can change for this club!!\n //\n // DO NOT change the webid!!!!!!!!!\n //\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from Flexscape record\n\n //\n // mNum changed - change it for all records that match the old mNum.\n // This is because most dependents are not included in web site roster,\n // but are in our roster.\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET memNum = ? \" +\n \"WHERE memNum = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, mNum_new);\n pstmt2.setString(2, mNum_old);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n\n\n //\n // Update our record\n //\n if (changed == true) {\n\n modCount++; // count records changed\n }\n\n try {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET username = ?, name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, birth = ?, posid = ?, phone1 = ?, \" +\n \"phone2 = ?, inact = 0, last_sync_date = now(), gender = ? \" +\n \"WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid_new);\n pstmt2.setString(2, lname_new);\n pstmt2.setString(3, fname_new);\n pstmt2.setString(4, mi_new);\n pstmt2.setString(5, mship_new);\n pstmt2.setString(6, mtype_new);\n pstmt2.setString(7, email_new);\n pstmt2.setString(8, mNum_new);\n pstmt2.setInt(9, birth_new);\n pstmt2.setString(10, posid_new);\n pstmt2.setString(11, phone_new);\n pstmt2.setString(12, phone2_new);\n pstmt2.setString(13, gender);\n pstmt2.setString(14, webid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n }\n catch (Exception e9) {\n\n errorMsg = errorMsg + \" Error updating record (#\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e9.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"UPDATE MYSQL ERROR!\", club, true);\n }\n\n\n //\n // Now, update other tables if the username has changed\n //\n if (memidChanged == true) {\n\n StringBuffer mem_name = new StringBuffer( fname_new ); // get the new first name\n\n if (!mi_new.equals( \"\" )) {\n mem_name.append(\" \" +mi_new); // new mi\n }\n mem_name.append(\" \" +lname_new); // new last name\n\n String newName = mem_name.toString(); // convert to one string\n\n Admin_editmem.updTeecurr(newName, memid_new, memid_old, con); // update teecurr with new values\n\n Admin_editmem.updTeepast(newName, memid_new, memid_old, con); // update teepast with new values\n\n Admin_editmem.updLreqs(newName, memid_new, memid_old, con); // update lreqs with new values\n\n Admin_editmem.updPartner(memid_new, memid_old, con); // update partner with new values\n\n Admin_editmem.updEvents(newName, memid_new, memid_old, con); // update evntSignUp with new values\n\n Admin_editmem.updLessons(newName, memid_new, memid_old, con); // update the lesson books with new values\n }\n\n\n } else {\n\n //\n // New member - first check if name already exists\n //\n boolean dup = false;\n\n pstmt2 = con.prepareStatement (\n \"SELECT username FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n dup = true;\n }\n pstmt2.close(); // close the stmt\n\n if (dup == false) {\n\n //\n // New member - add it\n //\n newCount++; // count records added\n\n try {\n\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, \" +\n \"webid, last_sync_date, gender) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,'',?,?,?,'',?,?,now(),?)\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, email2);\n pstmt2.setString(17, phone);\n pstmt2.setString(18, phone2);\n pstmt2.setString(19, suffix);\n pstmt2.setString(20, webid);\n pstmt2.setString(21, gender);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n\n }\n catch (Exception e8) {\n\n errorMsg = errorMsg + \" Error adding record (#\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e8.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"INSERT MYSQL ERROR! - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + memid, club, true);\n }\n\n } else { // Dup name\n\n // errorMsg = errorMsg + \" Duplicate Name found, name = \" +fname+ \" \" +lname+ \", record #\" +rcount+ \" for \" +club+ \", line = \" +line; // build msg\n // SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"DUPLICATE NAME! - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + memid, club, true);\n }\n }\n } // end of IF skip\n } // end of IF record valid (enough tokens)\n }\n\n/*\n // FIX the mship types and have them add gender!!!!!!!!!!!!!!!!!!!!!!!!\n //\n // Scitot Reserve\n //\n if (club.equals( \"sciotoreserve\" )) {\n\n found = true; // club found\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord2( line );\n\n rcount++; // count the records\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 10 ) { // enough data ?\n\n webid = tok.nextToken();\n memid = tok.nextToken();\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n gender = tok.nextToken();\n email = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n temp = tok.nextToken();\n primary = tok.nextToken();\n\n mNum = \"\";\n suffix = \"\";\n mship = \"\";\n mtype = \"\";\n email2 = \"\";\n bag = \"\";\n ghin = \"\";\n u_hndcp = \"\";\n c_hndcp = \"\";\n posid = \"\";\n mobile = \"\";\n active = \"\";\n\n //\n // Check for ? (not provided)\n //\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (gender.equals( \"?\" )) {\n\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (temp.equals( \"?\" ) || temp.equals( \"0\" )) {\n\n temp = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!memid.equals( \"\" ) && !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 ) {\n\n mi = tok.nextToken(); // over-write mi if already there\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n\n } else { // sufix after last name ?\n\n if ( tok.countTokens() > 0 ) {\n\n suffix = tok.nextToken();\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n\n //\n // convert birth date (mm/dd/yyyy to yyyymmdd)\n //\n if (!temp.equals( \"\" )) {\n\n tok = new StringTokenizer( temp, \"/-\" ); // delimiters are / & -\n\n String b1 = tok.nextToken();\n String b2 = tok.nextToken();\n String b3 = tok.nextToken();\n\n int mm = Integer.parseInt(b1);\n int dd = Integer.parseInt(b2);\n int yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n\n } else {\n\n birth = 0;\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n\n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n //\n // Determine if we should process this record\n //\n if (!webid.equals( \"\" )) { // must have a webid\n\n mNum = memid;\n\n posid = memid;\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username !!\n\n\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n }\n if (primary.equals( \"\" )) {\n\n primary = \"0\";\n }\n\n //\n // Determine mtype value\n //\n if (gender.equalsIgnoreCase( \"M\" )) {\n\n if (primary.equalsIgnoreCase( \"0\" )) {\n\n mtype = \"Main Male\";\n\n } else {\n\n if (primary.equalsIgnoreCase( \"1\" )) {\n\n mtype = \"Spouse Male\";\n\n } else {\n\n mtype = \"Junior Male\";\n }\n }\n\n } else { // Female\n\n if (primary.equalsIgnoreCase( \"0\" )) {\n\n mtype = \"Main Female\";\n\n } else {\n\n if (primary.equalsIgnoreCase( \"1\" )) {\n\n mtype = \"Spouse Female\";\n\n } else {\n\n mtype = \"Junior Female\";\n }\n }\n }\n\n //\n // Determine mship value ?????????????????\n //\n work = Integer.parseInt(mNum); // create int for compares\n\n mship = \"\";\n\n if (work < 1000) { // 0001 - 0999 (see 7xxx below also)\n\n mship = \"Full Family Golf\";\n\n } else {\n\n if (work < 1500) { // 1000 - 1499\n\n mship = \"Individual Golf\";\n\n } else {\n\n if (work < 2000) { // 1500 - 1999\n\n mship = \"Individual Golf Plus\";\n\n } else {\n\n if (work > 2999 && work < 4000) { // 3000 - 3999\n\n mship = \"Corporate Golf\";\n\n } else {\n\n if (work > 3999 && work < 5000) { // 4000 - 4999\n\n mship = \"Sports\";\n\n } else {\n\n if (work > 6499 && work < 6600) { // 6500 - 6599\n\n mship = \"Player Development\";\n\n } else {\n\n if (work > 7002 && work < 7011) { // 7003 - 7010\n\n mship = \"Harpors Point\";\n\n if (work == 7004 || work == 7008 || work == 7009) { // 7004, 7008 or 7009\n\n mship = \"Full Family Golf\";\n }\n\n } else {\n\n if (work > 8999 && work < 10000) { // 9000 - 9999\n\n mship = \"Employees\";\n mtype = \"Employee\"; // override mtype for employees\n }\n }\n }\n }\n }\n }\n }\n }\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip record if mship not one of above\n }\n\n } else {\n\n skip = true; // skip record if webid not provided\n }\n\n } else {\n\n skip = true; // skip record if memid or name not provided\n\n } // end of IF minimum requirements met (memid, etc)\n\n\n\n //\n //******************************************************************\n // Common processing - add or update the member record\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n posid_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n birth_old = 0;\n\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if(rs.next()) {\n\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n }\n pstmt2.close(); // close the stmt\n\n if (!fname_old.equals( \"\" )) { // if member found\n\n changed = false; // init change indicator\n\n lname_new = lname_old;\n\n if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from Flexscape record\n changed = true;\n }\n\n fname_new = fname_old;\n\n fname = fname_old; // DO NOT change first names\n\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from Flexscape record\n changed = true;\n }\n\n mi_new = mi_old;\n\n if (!mi.equals( \"\" ) && !mi_old.equals( mi )) {\n\n mi_new = mi; // set value from Flexscape record\n changed = true;\n }\n\n mship_new = mship_old;\n\n if (mship_old.startsWith( \"Founding\" )) { // do not change if Founding ....\n\n mship = mship_old;\n\n } else {\n\n if (!mship_old.equals( mship )) { // if the mship has changed\n\n mship_new = mship; // set value from Flexscape record\n changed = true;\n }\n }\n\n mtype_new = mtype_old;\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n\n mtype_new = mtype; // set value from Flexscape record\n changed = true;\n }\n\n birth_new = birth_old;\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from Flexscape record\n changed = true;\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from Flexscape record\n changed = true;\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from Flexscape record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from Flexscape record\n changed = true;\n }\n\n email_new = email_old; // do not change emails\n email2_new = email2_old;\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // NOTE: mNums can change for this club!! This will also result in a different memid!!\n //\n // DO NOT change the memid or webid!!!!!!!!!\n //\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from Flexscape record\n\n //\n // mNum changed - change it for all records that match the old mNum.\n // This is because most dependents are not included in web site roster,\n // but are in our roster.\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET memNum = ? \" +\n \"WHERE memNum = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, mNum_new);\n pstmt2.setString(2, mNum_old);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n\n\n //\n // Update our record\n //\n if (changed == true) {\n\n modCount++; // count records changed\n }\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, birth = ?, posid = ?, phone1 = ?, \" +\n \"phone2 = ?, inact = 0, last_sync_date = now() \" +\n \"WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, lname_new);\n pstmt2.setString(2, fname_new);\n pstmt2.setString(3, mi_new);\n pstmt2.setString(4, mship_new);\n pstmt2.setString(5, mtype_new);\n pstmt2.setString(6, email_new);\n pstmt2.setString(7, mNum_new);\n pstmt2.setInt(8, birth_new);\n pstmt2.setString(9, posid_new);\n pstmt2.setString(10, phone_new);\n pstmt2.setString(11, phone2_new);\n pstmt2.setString(12, webid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n } else {\n\n //\n // New member - first check if name already exists\n //\n boolean dup = false;\n\n pstmt2 = con.prepareStatement (\n \"SELECT username FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n dup = true;\n }\n pstmt2.close(); // close the stmt\n\n if (dup == false) {\n\n //\n // New member - add it\n //\n newCount++; // count records added\n\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, webid, \" +\n \"last_sync_date) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,'',?,?,?,'',?,?,now())\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, email2);\n pstmt2.setString(17, phone);\n pstmt2.setString(18, phone2);\n pstmt2.setString(19, suffix);\n pstmt2.setString(20, webid);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n }\n }\n\n } // end of IF skip\n\n } // end of IF record valid (enough tokens)\n\n } // end of IF club = ????\n*/\n\n } // end of IF header row\n\n } // end of while\n\n //\n // Done with this file for this club - now set any members that were excluded from this file inactive\n //\n if (found == true) { // if we processed this club\n\n // Set anyone inactive that didn't sync, but has at one point. (Not sure why this was turned off for all flexscape clubs, fourbridges requested it be turned back on.\n if (club.equals(\"fourbridges\") || club.equals(\"coloradospringscountryclub\")) {\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET inact = 1 \" +\n \"WHERE last_sync_date != now() AND last_sync_date != '0000-00-00'\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n \n \n //\n // Roster File Found for this club - make sure the roster sync indicator is set in the club table\n //\n setRSind(con, club);\n }\n }\n\n }\n catch (Exception e3) {\n\n errorMsg = errorMsg + \" Error processing roster (record #\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e3.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n }\n\n }", "public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }", "private RecordSet loadAgentInformation(Record inputRecord, PolicyHeader policyHeader) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"loadAgentInformation\", new Object[]{policyHeader});\r\n }\r\n\r\n RecordSet agentRecordSet = getAgentManager().loadAllPolicyAgent(policyHeader, inputRecord);\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"loadAgentInformation\", agentRecordSet);\r\n }\r\n\r\n return agentRecordSet;\r\n }", "Data<User> getMe(String fields);", "public interface RegistrationDataExtractor {\n\n RegistrationData extractDataFromObjectLinks(Link[] objectLinks, LwM2mVersion lwM2mVersion);\n\n public class RegistrationData {\n private String alternatePath;\n private Set<ContentFormat> supportedContentFormats;\n private Map<Integer, Version> supportedObjects;\n private Set<LwM2mPath> availableInstances;\n\n public String getAlternatePath() {\n return alternatePath;\n }\n\n public void setAlternatePath(String alternatePath) {\n this.alternatePath = alternatePath;\n }\n\n public Set<ContentFormat> getSupportedContentFormats() {\n return supportedContentFormats;\n }\n\n public void setSupportedContentFormats(Set<ContentFormat> supportedContentFormats) {\n this.supportedContentFormats = supportedContentFormats;\n }\n\n public Map<Integer, Version> getSupportedObjects() {\n return supportedObjects;\n }\n\n public void setSupportedObjects(Map<Integer, Version> supportedObjects) {\n this.supportedObjects = supportedObjects;\n }\n\n public Set<LwM2mPath> getAvailableInstances() {\n return availableInstances;\n }\n\n public void setAvailableInstances(Set<LwM2mPath> availableInstances) {\n this.availableInstances = availableInstances;\n }\n }\n}", "@TaDaMethod(variablesToTrack = {\"name\", \"race\", \"ssn2\", \"ssn3\",\n\t\t\t\"investmentIncome\", \"investmentIncome\", \"investmentIncome\",\n\t\t\t\"education\", \"ssn4\", \"occupationCode\",\n\t\t\t\"industryCode\", \"weeklyWage\", \"workWeeks\"}, \n\t\t\tcorrespondingDatabaseAttribute = {\"userrecord.name\", \"userrecord.race\", \"education.ssn\", \"investment.ssn\",\n\t\t\t\"investment.CAPITALGAINS\", \"investment.CAPITALLOSSES\", \"investment.STOCKDIVIDENDS\",\n\t\t\t\"education.education\", \"job.ssn\", \"job.INDUSTRYCODE\", \n\t\t\t\"job.OCCUPATIONCODE\", \"job.WEEKWAGE\", \"job.workweeks\"})\n\tpublic EstimateIncomeDTOInterface getValues(int ssn){\n\t\t\n\t\tResultSet results;\n\t\tStatement statement;\n\t\t\n\t\tString ssnString = Integer.toString(ssn);\n\t\t\n\t\tString name = null;\n\t\tString race = null;\n\t\tString education = null;\n\t\tint occupationCode = 0;\n\t\tint industryCode = 0;\n\t\tint weeklyWage = 0;\n\t\tint workWeeks = 0;\n\t\tint investmentIncome = 0;\n\t\t\n\t\ttry{\n\t\t\tstatement = Factory.getConnection().createStatement();\n\t \tresults = statement.executeQuery(\"SELECT SSN, NAME, RACE from userrecord WHERE SSN = \" + ssnString +\"\");\n\t \twhile(results.next()){\n\t \t\tif(results.getInt(\"SSN\") == 0){\n\t \t\t\tcontinue;\n\t \t\t} else {\n\t \t\t\tname = results.getString(\"NAME\");\n\t \t\t\trace = results.getString(\"RACE\");\n\t \t\t}\n\t \t}\n\t \t\n\t \tresults = statement.executeQuery(\"SELECT SSN, EDUCATION from education WHERE SSN = \" + ssnString +\"\");\n\t \twhile(results.next()){\n\t \t\tint ssn2 = results.getInt(\"SSN\");\n\t \t\tif(ssn2 == 0){\n\t \t\t\tcontinue;\n\t \t\t} else {\n\t \t\t\teducation = results.getString(\"EDUCATION\");\n\t \t\t}\n\t \t}\n\t \t\n\t \tresults = statement.executeQuery(\"SELECT SSN, CAPITALGAINS, CAPITALLOSSES, STOCKDIVIDENDS from investment WHERE SSN = \" + ssnString +\"\");\n\t \twhile(results.next()){\n\t \t\tint ssn3 = results.getInt(\"SSN\");\n\t \t\tif(ssn3 == 0){\n\t \t\t\tcontinue;\n\t \t\t} else {\n\t \t\t\tinvestmentIncome = results.getInt(\"CAPITALGAINS\") - results.getInt(\"CAPITALLOSSES\") + results.getInt(\"STOCKDIVIDENDS\");\n\t \t\t}\n\t \t}\n\t \t\n\t \tresults = statement.executeQuery(\"SELECT SSN, INDUSTRYCODE, OCCUPATIONCODE, WEEKWAGE, WORKWEEKS from job WHERE SSN = \" + ssnString +\"\");\n\t \twhile(results.next()){\n\t \t\tint ssn4 = results.getInt(\"SSN\");\n\t \t\tif(ssn4 == 0){\n\t \t\t\tcontinue;\n\t \t\t} else {\n\t \t\toccupationCode = results.getInt(\"INDUSTRYCODE\");\n\t \t\tindustryCode = results.getInt(\"OCCUPATIONCODE\");\n\t \t\tweeklyWage = results.getInt(\"WEEKWAGE\");\n\t \t\tworkWeeks = results.getInt(\"WORKWEEKS\");\n\t \t\t}\n\t \t}\n\n\t\t} catch(SQLException e) {\n\t\t\twhile (e != null) {\n\t\t\t\tSystem.err.println(\"\\n----- SQLException -----\");\n\t\t\t\tSystem.err.println(\" SQL State: \" + e.getSQLState());\n\t\t\t\tSystem.err.println(\" Error Code: \" + e.getErrorCode());\n\t\t\t\tSystem.err.println(\" Message: \" + e.getMessage());\n\t\t\t\t// for stack traces, refer to derby.log or uncomment this:\n\t\t\t\t// e.printStackTrace(System.err);\n\t\t\t\te = e.getNextException();\n\t\t\t}\n\t\t}\n\t\t\t\n \treturn Factory.getEstimateIncomeDTO(name, ssn, race, education,\n \t\t\toccupationCode, industryCode, weeklyWage, workWeeks, investmentIncome);\n \t\n\t}", "private boolean migratePartFamilyData(Context context) throws Exception {\n boolean migrationStatus = false;\n try {\n matrix.db.Policy cPolicy = new matrix.db.Policy(POLICY_CLASSIFICATION);\n\n // Get a MapList of Part Family, Part Issuer objects in the database\n // that need to be migrated\n\n StringList objectSelects = new StringList(8);\n objectSelects.addElement(\"id\");\n objectSelects.addElement(\"type\");\n objectSelects.addElement(\"name\");\n objectSelects.addElement(\"revision\");\n objectSelects.addElement(\"vault\");\n objectSelects.addElement(\"current\");\n objectSelects.addElement(\"policy\");\n objectSelects.addElement(SELECT_PART_FAMILY_MEMBER_RELATIONSHIP_NAME);\n\n // query for all Part Family objects, this will include Part Issuer objects\n // since it is sub-type of Part Family\n matrix.db.Query query = new matrix.db.Query(\"\");\n\n query.open(context);\n query.setBusinessObjectType(TYPE_PART_FAMILY);\n query.setBusinessObjectName(\"*\");\n query.setBusinessObjectRevision(\"*\");\n query.setOwnerPattern(\"*\");\n query.setVaultPattern(\"*\");\n query.setWhereExpression(\"\");\n query.setExpandType(true);\n\n BusinessObjectWithSelectList list = new BusinessObjectWithSelectList(1);\n QueryIterator qItr = null;\n try {\n ContextUtil.startTransaction(context, false);\n qItr = query.getIterator(context, objectSelects, (short) 1000);\n while (qItr.hasNext())\n list.addElement(qItr.next());\n\n ContextUtil.commitTransaction(context);\n } catch (Exception ex) {\n ContextUtil.abortTransaction(context);\n throw new Exception(ex.toString());\n } finally {\n qItr.close();\n }\n ArrayList partFamilyList = null;\n\n if (list != null && list.size() > 0) {\n partFamilyList = toMapList(list);\n }\n\n query.close(context);\n\n String command = null;\n\n // loop thru the list, change the policy to 'Classification'\n // if the type is \"Part Issuer'\n // i.e. this change is not required for 'Part Family'\n //\n // For each of these objects, get the connected \"Part Family Member\"\n // relationships, change them to \"Classified Item\"\n\n if (partFamilyList != null && partFamilyList.size() > 0) {\n Iterator partFamilyItr = partFamilyList.iterator();\n String objectId = null;\n String objectType = null;\n String objectName = null;\n String objectRev = null;\n String objectVault = null;\n String objectState = null;\n String objectPolicy = null;\n StringList partFamiltMemberRelList = null;\n Iterator partFamiltMemberRelItr = null;\n BusinessObject busObject = null;\n String initialRev = cPolicy.getFirstInSequence(context);\n emxInstallUtil_mxJPO.println(context, \">initialRev \" + initialRev + \"\\n\");\n\n while (partFamilyItr.hasNext()) {\n Map map = (Map) partFamilyItr.next();\n\n objectId = (String) map.get(\"id\");\n objectType = (String) map.get(\"type\");\n objectName = (String) map.get(\"name\");\n objectRev = (String) map.get(\"revision\");\n objectVault = (String) map.get(\"vault\");\n objectState = (String) map.get(\"current\");\n objectPolicy = (String) map.get(\"policy\");\n\n busObject = new BusinessObject(objectId);\n busObject.open(context);\n\n // change the type, policy for 'Part Issuer' objects\n // this forces to change the revision of the object to comply with Classification policy\n if (isTypePartIssuerExists && objectType.equals(TYPE_PART_ISSUER)) {\n try {\n if (objectRev != initialRev) {\n // core requires name to be changed if revision is changed\n // so fool it by first changing, and then change it back to its original name\n String fakeName = objectName + \"Conversion~\";\n busObject.change(context, TYPE_PART_FAMILY, fakeName, initialRev, objectVault, POLICY_CLASSIFICATION);\n busObject.update(context);\n\n busObject.change(context, TYPE_PART_FAMILY, objectName, initialRev, objectVault, POLICY_CLASSIFICATION);\n busObject.update(context);\n } else {\n busObject.change(context, TYPE_PART_FAMILY, objectName, objectRev, objectVault, POLICY_CLASSIFICATION);\n busObject.update(context);\n }\n\n // In case, if customer renamed state \"Exists\" to \"Active\"\n // then do not promote, bacause core will adjust the state automatically\n if (POLICY_PART_ISSUER_STATE_EXISTS.equals(objectState) && !POLICY_PART_ISSUER_STATE_EXISTS.equals(STATE_ACTIVE)) {\n busObject.promote(context);\n }\n\n } catch (MatrixException e) {\n duplicatePartIssuerExists = true;\n emxInstallUtil_mxJPO.println(context, \">WARNING: Duplicate name found for Part Issuer object: id\" + objectId + \" :name :\" + objectName + \"\\n\");\n }\n\n }\n\n // change the policy for 'Part Family' objects\n // It is assumed here that \"Part Family\" type objects used \"Part Family\" policy\n if (POLICY_PART_FAMILY.equals(objectPolicy)) {\n busObject.setPolicy(context, cPolicy);\n busObject.update(context);\n\n // In case, if customer renamed state \"Exists\" to \"Active\"\n // then do not promote, bacause core will adjust the state automatically\n if (STATE_EXISTS.equals(objectState) && !STATE_EXISTS.equals(STATE_ACTIVE)) {\n busObject.promote(context);\n }\n }\n\n busObject.update(context);\n busObject.close(context);\n\n // if the \"Part Family\", \"Part Issuer\" does not have associated Parts\n // map will not contain the key, this is also applicable if the conversion routine\n // is run multiple times\n if (map.containsKey(SELECT_PART_FAMILY_MEMBER_RELATIONSHIP_NAME)) {\n partFamiltMemberRelList = (StringList) map.get(SELECT_PART_FAMILY_MEMBER_RELATIONSHIP_NAME);\n if (partFamiltMemberRelList != null && partFamiltMemberRelList.size() > 0) {\n partFamiltMemberRelItr = partFamiltMemberRelList.iterator();\n\n while (partFamiltMemberRelItr.hasNext()) {\n command = \"modify connection \" + (String) partFamiltMemberRelItr.next() + \" type \\\"\" + RELATIONSHIP_CLASSIFIED_ITEM + \"\\\"\";\n emxInstallUtil_mxJPO.executeMQLCommand(context, command);\n }\n command = \"modify businessobject \" + objectId + \" \\\"\" + ATTRIBUTE_COUNT + \"\\\" \" + partFamiltMemberRelList.size();\n emxInstallUtil_mxJPO.executeMQLCommand(context, command);\n }\n }\n }\n } else {\n emxInstallUtil_mxJPO.println(context, \"No Part Family/Part Issuer objects found in the database\\n\");\n }\n migrationStatus = true;\n\n // delete the Part Issuer type, policy from the database\n if (isTypePartIssuerExists && !duplicatePartIssuerExists) {\n command = \"delete type \\\"\" + TYPE_PART_ISSUER + \"\\\"\";\n emxInstallUtil_mxJPO.executeMQLCommand(context, command);\n\n command = \"delete policy \\\"\" + POLICY_PART_ISSUER + \"\\\"\";\n emxInstallUtil_mxJPO.executeMQLCommand(context, command);\n }\n\n return migrationStatus;\n } catch (Exception ex) {\n emxInstallUtil_mxJPO.println(context, \">ERROR:in migratePartFamilyData method Exception :\" + ex.getMessage() + \"\\n\");\n throw ex;\n }\n }", "public void load() throws Throwable\n {\n // addCompositeTypes();\n\n Db typeRecordTable = new Db(null, 0);\n typeRecordTable.set_error_stream(System.err);\n typeRecordTable.set_errpfx(\"Catalog Retrieval Error\");\n typeRecordTable.open(CatalogManager.getCurrentDirectory()+\n File.separator+\n CompositeTypeRecord.databaseFileName, \n null, Db.DB_BTREE, Db.DB_CREATE, 0644);\n \n Db typeFieldRecordTable = new Db(null, 0);\n typeFieldRecordTable.set_error_stream(System.err);\n typeFieldRecordTable.set_errpfx(\"Catalog Retrieval Error\");\n typeFieldRecordTable.open(CatalogManager.getCurrentDirectory()+\n File.separator+\n TypeFieldRecord.databaseFileName, \n null, Db.DB_BTREE, Db.DB_CREATE, 0644);\n \n // Acquire an iterator for the table.\n Dbc outerIterator;\n outerIterator = typeRecordTable.cursor(null, 0);\n \n Dbc innerIterator;\n innerIterator = typeFieldRecordTable.cursor(null, 0);\n \n IntegerDbt outerKey = new IntegerDbt();\n CompositeTypeRecord typeRecord = new CompositeTypeRecord();\n \n while (outerIterator.get(outerKey, typeRecord, Db.DB_NEXT) == 0) {\n typeRecord.parse();\n if (Constants.VERBOSE) System.out.println(typeRecord);\n\t // if(!typeRecord.getIsInferred()) {\n\t\tCompositeType t = new CompositeType(typeRecord.getTypeName(), \n\t\t\t\t\t\t typeRecord.getIsInferred());\n\t\t\n\t\tIntegerArrayDbt innerKey = new IntegerArrayDbt(new int[] {outerKey.getInteger(), 0});\n\t\tTypeFieldRecord typeFieldRecord = new TypeFieldRecord();\n\t\t\n\t\tif (innerIterator.get(innerKey, typeFieldRecord, Db.DB_SET_RANGE) == 0) {\n\t\t int[] indices = innerKey.getIntegerArray();\n\t\t if (indices[0] == outerKey.getInteger()) {\n\t\t\ttypeFieldRecord.parse();\n\t\t\tif (Constants.VERBOSE) System.out.println(typeFieldRecord);\n\t\t\tt.addAttribute(typeFieldRecord.getFieldName(), \n\t\t\t\t findPrimitiveType(typeFieldRecord.getFieldType()),\n\t\t\t\t typeFieldRecord.getSize());\n\t\t\t\n\t\t\twhile (innerIterator.get(innerKey, typeFieldRecord, Db.DB_NEXT) == 0) {\n\t\t\t indices = innerKey.getIntegerArray();\n\t\t\t if (indices[0] != outerKey.getInteger()) break;\n\t\t\t typeFieldRecord.parse();\n\t\t\t if (Constants.VERBOSE) System.out.println(typeFieldRecord);\n\t\t\t t.addAttribute(typeFieldRecord.getFieldName(), \n\t\t\t\t\t findPrimitiveType(typeFieldRecord.getFieldType()),\n\t\t\t\t\t typeFieldRecord.getSize());\n\t\t\t}\n\t\t }\n\t\t}\n\t\taddCompositeType(t);\n\t\t//}\n }\n\n innerIterator.close();\n outerIterator.close();\n typeRecordTable.close(0);\n typeFieldRecordTable.close(0);\n }", "public interface ImportExport {\n public String exportUserDataAsString(Users users) throws Exception;\n public File exportUserDataAsFile(Users users)throws Exception;\n public Users importUserData() throws Exception;\n}", "private Account loadDataFromDB(String id){\n if(mCurrentAccount == null){\n mCurrentAccount = getAccountDetailUC.execute(id);\n try {\n mLastSaveAccount = mCurrentAccount.clone();\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n }\n }else{\n mCurrentAccount = getAccountDetailUC.execute(id);\n }\n return mCurrentAccount;\n }", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "@Override\n public void importUsers() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"importUsers\");\n }\n\n for (int i = 0; i < usersForImportation.size(); i++) {\n\n if (usersForImportation.get(i).getObject1()) {\n ConnectathonParticipant cp = new ConnectathonParticipant();\n ConnectathonParticipantQuery query = new ConnectathonParticipantQuery();\n query.testingSession().eq(TestingSession.getSelectedTestingSession());\n query.email().eq(usersForImportation.get(i).getObject2().getEmail());\n\n if (query.getCount() == 0) {\n\n try {\n\n cp.setEmail(usersForImportation.get(i).getObject2().getEmail());\n cp.setFirstname(usersForImportation.get(i).getObject2().getFirstname());\n cp.setLastname(usersForImportation.get(i).getObject2().getLastname());\n cp.setMondayMeal(true);\n cp.setTuesdayMeal(true);\n cp.setWednesdayMeal(true);\n cp.setThursdayMeal(true);\n cp.setFridayMeal(true);\n cp.setVegetarianMeal(false);\n cp.setSocialEvent(false);\n cp.setTestingSession(TestingSession.getSelectedTestingSession());\n cp.setInstitution(usersForImportation.get(i).getObject2().getInstitution());\n cp.setInstitutionName(usersForImportation.get(i).getObject2().getInstitution().getName());\n\n if (Role.isUserMonitor(usersForImportation.get(i).getObject2())) {\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getMonitorStatus());\n\n } else if (Role.isUserVendorAdmin(usersForImportation.get(i).getObject2())\n || Role.isUserVendorUser(usersForImportation.get(i).getObject2())) {\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getVendorStatus());\n\n } else {\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getVisitorStatus());\n }\n\n entityManager.clear();\n entityManager.persist(cp);\n entityManager.flush();\n\n FacesMessages.instance().add(StatusMessage.Severity.INFO, USER + usersForImportation.get(i).getObject2().getLastname() + \" \" +\n \"\" + usersForImportation.get(i).getObject2().getEmail()\n + \" is imported\");\n renderAddPanel = false;\n getAllConnectathonParticipants();\n\n } catch (Exception e) {\n LOG.warn(USER + usersForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n\n }\n FinancialCalc.updateInvoiceIfPossible(cp.getInstitution(), cp.getTestingSession(), entityManager);\n } else {\n LOG.warn(USER + usersForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\",\n usersForImportation.get(i).getObject2().getFirstname(),\n usersForImportation.get(i).getObject2().getLastname(),\n usersForImportation.get(i).getObject2().getEmail());\n }\n }\n\n }\n }", "RecordSet generatePremiumAccounting(Record inputRecord);", "public interface RecordPersister\r\n{\r\n\t/**\r\n\t * Holds all implementation-specific data in a change record\r\n\t */\r\n\tpublic static final class ChangeData\r\n\t{\r\n\t\t/**\r\n\t\t * The major subject of the change\r\n\t\t */\r\n\t\tpublic Object majorSubject;\r\n\r\n\t\t/**\r\n\t\t * The minor subject of the change\r\n\t\t */\r\n\t\tpublic Object minorSubject;\r\n\r\n\t\t/**\r\n\t\t * The first metadata of the change\r\n\t\t */\r\n\t\tpublic Object data1;\r\n\r\n\t\t/**\r\n\t\t * The second metadata of the change\r\n\t\t */\r\n\t\tpublic Object data2;\r\n\r\n\t\t/**\r\n\t\t * The previous value in the change\r\n\t\t */\r\n\t\tpublic Object preValue;\r\n\r\n\t\t/**\r\n\t\t * Creates an empty ChangeData\r\n\t\t */\r\n\t\tpublic ChangeData()\r\n\t\t{\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Creates a filled-out ChangeData\r\n\t\t * \r\n\t\t * @param majS The major subject for the change\r\n\t\t * @param minS The minor subject for the change\r\n\t\t * @param md1 The first metadata for the change\r\n\t\t * @param md2 The second metadata for the change\r\n\t\t * @param pv The previous value for the change\r\n\t\t */\r\n\t\tpublic ChangeData(Object majS, Object minS, Object md1, Object md2, Object pv)\r\n\t\t{\r\n\t\t\tthis();\r\n\t\t\tmajorSubject = majS;\r\n\t\t\tminorSubject = minS;\r\n\t\t\tdata1 = md1;\r\n\t\t\tdata2 = md2;\r\n\t\t\tpreValue = pv;\r\n\t\t}\r\n\t}\r\n\r\n\t// The following methods are common with Synchronize2Impl\r\n\r\n\t/**\r\n\t * Gets a record user by ID\r\n\t * \r\n\t * @param id The ID of the user\r\n\t * @return The user with the given ID\r\n\t * @throws PrismsRecordException If no such user exists or an error occurs retriving the user\r\n\t */\r\n\tRecordUser getUser(long id) throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Gets a subject type by name\r\n\t * \r\n\t * @param typeName The name of the subject type to get (see {@link SubjectType#name()})\r\n\t * @return The subject type with the given name\r\n\t * @throws PrismsRecordException If no such subject type exists or another error occurs\r\n\t */\r\n\tSubjectType getSubjectType(String typeName) throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Gets the database ID for a value\r\n\t * \r\n\t * @param item The item to get the persistence ID for\r\n\t * @return The ID to identify the object in a change record\r\n\t */\r\n\tlong getID(Object item);\r\n\r\n\t/**\r\n\t * Retrieves the values associated with a set of IDs. Each parameter may be the already-parsed\r\n\t * value (which may be simply returned in the ChangeData return), the identifier for the value,\r\n\t * the serialized value (only in the case of the preValue), or null (except in the case of the\r\n\t * major subject).\r\n\t * \r\n\t * @param subjectType The subject type of the change record\r\n\t * @param changeType The type of the change\r\n\t * @param majorSubject The major subject or the ID of the major subject to retrieve\r\n\t * @param minorSubject The minor subject or the ID of the minor subject to retrieve. May be\r\n\t * null.\r\n\t * @param data1 The first metadata or the ID of the first metadata to retrieve. May be null.\r\n\t * @param data2 The second metadata or the ID of the second metadata to retrieve. May be null.\r\n\t * @param preValue The previous value (serialized, a string) or the ID of the previous value in\r\n\t * the change to retrieve. May be null.\r\n\t * @return The ChangeData containing the values of each non-null ID.\r\n\t * @throws PrismsRecordException If an error occurs retrieving any of the data.\r\n\t */\r\n\tChangeData getData(SubjectType subjectType, ChangeType changeType, Object majorSubject,\r\n\t\tObject minorSubject, Object data1, Object data2, Object preValue)\r\n\t\tthrows PrismsRecordException;\r\n\r\n\t// End common methods\r\n\r\n\t/**\r\n\t * @return All domains that this persister understands\r\n\t * @throws PrismsRecordException If an error occurs getting the data\r\n\t */\r\n\tSubjectType [] getAllSubjectTypes() throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Gets all domains that qualify as change history for the given value's type\r\n\t * \r\n\t * @param value The value to get the history of\r\n\t * @return All domains that record history of the type of the value\r\n\t * @throws PrismsRecordException If an error occurs getting the data\r\n\t */\r\n\tSubjectType [] getHistoryDomains(Object value) throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Serializes a change's object to a string. This method will only be called for change objects\r\n\t * (previous values) if the change's ChangeType reports false for\r\n\t * {@link ChangeType#isObjectIdentifiable()}. This method will not be called for instances of\r\n\t * Boolean, Integer, Long, Float, Double, or String. Serialization of these types is handled\r\n\t * internally.\r\n\t * \r\n\t * @param change The change to serialize the previous value of\r\n\t * @return The serialized object\r\n\t * @throws PrismsRecordException If an error occurs serializing the object\r\n\t */\r\n\tString serializePreValue(ChangeRecord change) throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Called when a modification is purged that is the last link to an item in the records. The\r\n\t * persister now has an opportunity to purge the item itself if desired.\r\n\t * \r\n\t * @param item The item with no more records\r\n\t * @param stmt A database statement to make deletion easier\r\n\t * @throws PrismsRecordException If an error occurs purging the data\r\n\t */\r\n\tvoid checkItemForDelete(Object item, java.sql.Statement stmt) throws PrismsRecordException;\r\n}", "private void loadTestInstanceData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> TemplateCore.loadTestInstanceData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n// try {\r\n// String strINum = String.valueOf(pk_test_instance);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT fk_described_template, fk_run, due_date, phase, test_instance.synchronized, fk_version_set, fk_template, description_hash, described_template.synchronized, hash, enabled, steps \" +\r\n// \"FROM test_instance \" +\r\n// \"JOIN described_template ON fk_described_template = pk_described_template \" +\r\n// \"JOIN template ON fk_template = pk_test_instance \" +\r\n// \"WHERE pk_test_instance = \" + strINum );\r\n // everything in this query is 1:1 relationship, so resultSet has exactly 1 or 0 entry\r\n\r\n// if ( resultSet.next() ) {\r\n// dbTestInstance.pk_described_template = resultSet.getLong(\"fk_described_template\"); // null entry returns 0\r\n// dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n// dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n// dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n// dbTestInstance.iSynchronized = resultSet.getBoolean(\"test_instance.synchronized\");\r\n//\r\n// dbTestInstance.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n// dbTestInstance.fk_template = resultSet.getLong(\"fk_template\"); // null entry returns 0\r\n// dbTestInstance.description_hash = resultSet.getBytes(\"description_hash\");\r\n// dbTestInstance.dtSynchronized = resultSet.getBoolean(\"described_template.synchronized\");\r\n//\r\n// dbTestInstance.template_hash = resultSet.getBytes(\"hash\");\r\n// dbTestInstance.enabled = resultSet.getBoolean(\"enabled\");\r\n// dbTestInstance.steps = resultSet.getString(\"steps\");\r\n//\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads 1:1 data from test_instance \" + dbTestInstance.pk_test_instance + \", pk_described_template \" + dbTestInstance.pk_described_template +\r\n// \", pk_test_instance \" + dbTestInstance.fk_template + (dbTestInstance.fk_run!=0 ? \", TEST RESULT ALREADY STORED\" : \"\"));\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// } else {\r\n// throw new Exception(\"instance data not present\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding multiple lines of data\r\n// try {\r\n// String strPKDT = String.valueOf(dbTestInstance.pk_described_template);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n// \"FROM dt_line \" +\r\n// \"WHERE fk_described_template = \" + strPKDT );\r\n// while ( resultSet.next() ) {\r\n// DBDTLine dtLine = new DBDTLine();\r\n// dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n// dtLine.line = resultSet.getInt(\"line\");\r\n// dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// dbTestInstance.pkToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n// \"FROM artifact_to_dt_line \" +\r\n// \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n// \"WHERE fk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n// dtLine.reason = resultSet.getString(\"reason\");\r\n// dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n// dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding version information; not every dtLine has corresponding version information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n// \"FROM version \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.version = resultSet.getString(\"version\");\r\n// dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n// dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n// dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding content information; not every dtLine has corresponding content information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n// \"FROM content \" +\r\n// \"JOIN artifact ON fk_content = pk_content \" +\r\n// \"WHERE pk_artifact = \" + strPKArtifact );\r\n// if ( resultSet.next() ) {\r\n// dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n// dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding component information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT name \" +\r\n// \"FROM component \" +\r\n// \"JOIN version ON fk_component = pk_component \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.componentName = resultSet.getString(\"name\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// }\r\n//\r\n// // get corresponding resource information; not every dtLine has corresponding resource information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n// \"FROM dt_line \" +\r\n// \"JOIN resource ON fk_resource = pk_resource \" +\r\n// \"WHERE pk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n// dtLine.resourceName = resultSet.getString(\"name\");\r\n// dtLine.resourceDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n }" ]
[ "0.63633895", "0.61385345", "0.5531192", "0.54328793", "0.5396804", "0.5375115", "0.5359605", "0.5315945", "0.5262477", "0.51827794", "0.51663536", "0.5154291", "0.51521623", "0.51209646", "0.511661", "0.5092733", "0.50481975", "0.49825615", "0.49737906", "0.49711272", "0.49630466", "0.4951468", "0.49379116", "0.493147", "0.49202564", "0.4912669", "0.49099794", "0.49014756", "0.48600233", "0.48471975", "0.48420534", "0.4834575", "0.48337975", "0.48314604", "0.48296916", "0.48127165", "0.47919065", "0.4789268", "0.4787193", "0.47856313", "0.4771973", "0.47698238", "0.47633946", "0.47631255", "0.47631255", "0.47580233", "0.47515252", "0.47407326", "0.47364873", "0.47212633", "0.471592", "0.47145605", "0.4714317", "0.47083032", "0.470137", "0.46981725", "0.4694867", "0.4692576", "0.46894994", "0.4687279", "0.4686031", "0.46739727", "0.46734452", "0.4668991", "0.4667943", "0.46654058", "0.46611047", "0.46584135", "0.46579173", "0.46557006", "0.46544433", "0.46535358", "0.4652742", "0.46509525", "0.46467268", "0.46377227", "0.4634399", "0.46336883", "0.46246585", "0.46213254", "0.46187818", "0.46171078", "0.46139765", "0.46045175", "0.4603096", "0.46010107", "0.45998642", "0.45986807", "0.45981827", "0.45971978", "0.459572", "0.45948708", "0.4594442", "0.45939618", "0.45931783", "0.45822075", "0.45770174", "0.45769924", "0.4576404", "0.45747575" ]
0.58235866
2
Copy data into another generated Record/POJO implementing the common interface HaMembership
public <E extends io.cattle.platform.core.model.HaMembership> E into(E into);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RecordSet loadAllMemberContribution (Record inputRecord);", "private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}", "RecordInfo clone();", "interface ReplicateRecord {\n public ReplicateRecord mode(ConnectorMode mode);\n public ReplicateRecord record(DomainRecord record);\n public SourceRecord convert() throws Exception;\n}", "public void from(io.cattle.platform.core.model.HaMembership from);", "int insert(ScPartyMember record);", "public Object copy_from(Object src) {\n\n GuestScienceData typedSrc = (GuestScienceData) src;\n GuestScienceData typedDst = this;\n super.copy_from(typedSrc);\n /** Full name of apk */\n typedDst.apkName = typedSrc.apkName;\n /** Type of data being sent */\n typedDst.type = (rapid.ext.astrobee.GuestScienceDataType) typedDst.type.copy_from(typedSrc.type);\n /** String to classify the kind of data */\n typedDst.topic = typedSrc.topic;\n /** Data from the apk */\n typedDst.data = (rapid.OctetSequence2K) typedDst.data.copy_from(typedSrc.data);\n\n return this;\n }", "@Generated(\n value = {\n \"http://www.jooq.org\",\n \"jOOQ version:3.9.3\"\n },\n comments = \"This class is generated by jOOQ\"\n)\n@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\n@Entity\n@Table(name = \"ha_membership\", schema = \"cattle\")\npublic interface HaMembership extends Serializable {\n\n /**\n * Setter for <code>cattle.ha_membership.id</code>.\n */\n public void setId(Long value);\n\n /**\n * Getter for <code>cattle.ha_membership.id</code>.\n */\n @Id\n @GeneratedValue(strategy = GenerationType.IDENTITY)\n @Column(name = \"id\", unique = true, nullable = false, precision = 19)\n public Long getId();\n\n /**\n * Setter for <code>cattle.ha_membership.name</code>.\n */\n public void setName(String value);\n\n /**\n * Getter for <code>cattle.ha_membership.name</code>.\n */\n @Column(name = \"name\", length = 255)\n public String getName();\n\n /**\n * Setter for <code>cattle.ha_membership.uuid</code>.\n */\n public void setUuid(String value);\n\n /**\n * Getter for <code>cattle.ha_membership.uuid</code>.\n */\n @Column(name = \"uuid\", unique = true, nullable = false, length = 128)\n public String getUuid();\n\n /**\n * Setter for <code>cattle.ha_membership.heartbeat</code>.\n */\n public void setHeartbeat(Long value);\n\n /**\n * Getter for <code>cattle.ha_membership.heartbeat</code>.\n */\n @Column(name = \"heartbeat\", precision = 19)\n public Long getHeartbeat();\n\n /**\n * Setter for <code>cattle.ha_membership.config</code>.\n */\n public void setConfig(String value);\n\n /**\n * Getter for <code>cattle.ha_membership.config</code>.\n */\n @Column(name = \"config\", length = 16777215)\n public String getConfig();\n\n /**\n * Setter for <code>cattle.ha_membership.clustered</code>.\n */\n public void setClustered(Boolean value);\n\n /**\n * Getter for <code>cattle.ha_membership.clustered</code>.\n */\n @Column(name = \"clustered\", nullable = false, precision = 1)\n public Boolean getClustered();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common interface HaMembership\n */\n public void from(io.cattle.platform.core.model.HaMembership from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common interface HaMembership\n */\n public <E extends io.cattle.platform.core.model.HaMembership> E into(E into);\n}", "protected Member getMembersData() {\r\n String firstName = txtFieldFirstName.getText();\r\n String lastName = txtFieldLastName.getText();\r\n String dateOfBirth = txtFieldDateOfBirth.getText();\r\n String iban = txtFieldIBAN.getText();\r\n String entranceDate = txtFieldEntranceDate.getText();\r\n String leavingDate = txtFieldLeavingDate.getText();\r\n String disabilities = txtAreaDisabilities.getText();\r\n String notes = txtAreaNotes.getText();\r\n String sex = comBoxSexSelection.getItemAt(comBoxSexSelection.getSelectedIndex());\r\n int boardMember = (comBoxBoardMember.getItemAt(comBoxBoardMember.getSelectedIndex()) == \"Ja\") ? 1 : 0;\r\n\r\n Member member = new Member.Builder()\r\n .firstName(firstName)\r\n .lastName(lastName)\r\n .dateOfBirth(dateOfBirth)\r\n .iban(iban)\r\n .sex(sex)\r\n .disabilities(disabilities)\r\n .boardMember(boardMember)\r\n .entranceDate(entranceDate)\r\n .leavingDate(leavingDate)\r\n .notes(notes)\r\n .build();\r\n\r\n return member;\r\n }", "int insert(OrgMemberRecord record);", "private Builder(com.politrons.avro.AvroPerson other) {\n super(com.politrons.avro.AvroPerson.SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.username)) {\n this.username = data().deepCopy(fields()[1].schema(), other.username);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.email_address)) {\n this.email_address = data().deepCopy(fields()[2].schema(), other.email_address);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.phone_number)) {\n this.phone_number = data().deepCopy(fields()[3].schema(), other.phone_number);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.first_name)) {\n this.first_name = data().deepCopy(fields()[4].schema(), other.first_name);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.last_name)) {\n this.last_name = data().deepCopy(fields()[5].schema(), other.last_name);\n fieldSetFlags()[5] = true;\n }\n }", "int insert(UcMembers record);", "protected DocumentTestObject homeMembership() \n\t{\n\t\treturn new DocumentTestObject(\n getMappedTestObject(\"homeMembership\"));\n\t}", "public String copy(SQLGenerator dstGen, String srcConstraint,\n boolean includeDstGenFields) throws SQLException{\n \n if (dstGen==null) return null;\n srcConstraint = srcConstraint==null ? \"\" : \" where \" + srcConstraint;\n \n String q = \"select * from \" + dstGen.getTableName() + srcConstraint;\n \n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(q);\n ResultSetMetaData rsmd = rs.getMetaData();\n int colCount = rsmd.getColumnCount();\n \n while (rs.next()){\n SQLGenerator gen = (SQLGenerator)dstGen.clone();\n for (int i=1; i<=colCount; i++){\n String colName = rsmd.getColumnName(i);\n String colValue = rs.getString(i);\n if ((dstGen.getFieldValue(colName))==null){\n if (colValue!=null)\n gen.setField(colName, colValue);\n }\n else if (!includeDstGenFields){\n if(dstGen.getFieldValue(colName).equals(\"\"))\n gen.removeField(colName);\n }\n }\n \n log(gen.insertStatement());\n stmt.executeUpdate(gen.insertStatement());\n }\n \n if (includeDstGenFields)\n return null;\n else\n return searchEngine.getLastInsertID();\n }", "int insertSelective(OrgMemberRecord record);", "@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }", "int insert(Member record);", "@Override\n public void copyTo(UserProfile userProfile) {\n userProfile.setId(getId());\n userProfile.setCity(getCity());\n userProfile.setZipcode(getZipcode());\n userProfile.setCountry(getCountry());\n userProfile.setTitle(getTitle());\n userProfile.setName(getName());\n userProfile.setFirstName(getFirstName());\n userProfile.setLastName(getLastName());\n userProfile.setUsername(getUsername());\n userProfile.setGender(getGender());\n userProfile.setPoints(getPoints());\n userProfile.setNotifyReportDue(isNotifyReportDue());\n }", "public void copyFrom(SRSLF04S_OA orig)\n {\n OutWsMethodResultReturnCode_AT = orig.OutWsMethodResultReturnCode_AT;\n OutWsMethodResultReturnCode_AS = orig.OutWsMethodResultReturnCode_AS;\n OutWsMethodResultReturnCode = orig.OutWsMethodResultReturnCode;\n OutWsStudentNr_AT = orig.OutWsStudentNr_AT;\n OutWsStudentNr_AS = orig.OutWsStudentNr_AS;\n OutWsStudentNr = orig.OutWsStudentNr;\n OutWsStudentMkTitle_AT = orig.OutWsStudentMkTitle_AT;\n OutWsStudentMkTitle_AS = orig.OutWsStudentMkTitle_AS;\n OutWsStudentMkTitle = orig.OutWsStudentMkTitle;\n OutWsStudentSurname_AT = orig.OutWsStudentSurname_AT;\n OutWsStudentSurname_AS = orig.OutWsStudentSurname_AS;\n OutWsStudentSurname = orig.OutWsStudentSurname;\n OutWsStudentInitials_AT = orig.OutWsStudentInitials_AT;\n OutWsStudentInitials_AS = orig.OutWsStudentInitials_AS;\n OutWsStudentInitials = orig.OutWsStudentInitials;\n OutStudentNameCsfStringsString25_AT = \n orig.OutStudentNameCsfStringsString25_AT;\n OutStudentNameCsfStringsString25_AS = \n orig.OutStudentNameCsfStringsString25_AS;\n OutStudentNameCsfStringsString25 = orig.OutStudentNameCsfStringsString25;\n OutWsStaffPersno_AT = orig.OutWsStaffPersno_AT;\n OutWsStaffPersno_AS = orig.OutWsStaffPersno_AS;\n OutWsStaffPersno = orig.OutWsStaffPersno;\n OutWsStaffMkRcCode_AT = orig.OutWsStaffMkRcCode_AT;\n OutWsStaffMkRcCode_AS = orig.OutWsStaffMkRcCode_AS;\n OutWsStaffMkRcCode = orig.OutWsStaffMkRcCode;\n OutWsStaffSurname_AT = orig.OutWsStaffSurname_AT;\n OutWsStaffSurname_AS = orig.OutWsStaffSurname_AS;\n OutWsStaffSurname = orig.OutWsStaffSurname;\n OutWsStaffInitials_AT = orig.OutWsStaffInitials_AT;\n OutWsStaffInitials_AS = orig.OutWsStaffInitials_AS;\n OutWsStaffInitials = orig.OutWsStaffInitials;\n OutWsStaffTitle_AT = orig.OutWsStaffTitle_AT;\n OutWsStaffTitle_AS = orig.OutWsStaffTitle_AS;\n OutWsStaffTitle = orig.OutWsStaffTitle;\n OutSmsRequestBatchNr_AT = orig.OutSmsRequestBatchNr_AT;\n OutSmsRequestBatchNr_AS = orig.OutSmsRequestBatchNr_AS;\n OutSmsRequestBatchNr = orig.OutSmsRequestBatchNr;\n OutSmsRequestMkRcCode_AT = orig.OutSmsRequestMkRcCode_AT;\n OutSmsRequestMkRcCode_AS = orig.OutSmsRequestMkRcCode_AS;\n OutSmsRequestMkRcCode = orig.OutSmsRequestMkRcCode;\n OutSmsLogMkBatchNr_AT = orig.OutSmsLogMkBatchNr_AT;\n OutSmsLogMkBatchNr_AS = orig.OutSmsLogMkBatchNr_AS;\n OutSmsLogMkBatchNr = orig.OutSmsLogMkBatchNr;\n OutSmsLogSequenceNr_AT = orig.OutSmsLogSequenceNr_AT;\n OutSmsLogSequenceNr_AS = orig.OutSmsLogSequenceNr_AS;\n OutSmsLogSequenceNr = orig.OutSmsLogSequenceNr;\n OutSmsLogReferenceNr_AT = orig.OutSmsLogReferenceNr_AT;\n OutSmsLogReferenceNr_AS = orig.OutSmsLogReferenceNr_AS;\n OutSmsLogReferenceNr = orig.OutSmsLogReferenceNr;\n OutSmsLogCellNr_AT = orig.OutSmsLogCellNr_AT;\n OutSmsLogCellNr_AS = orig.OutSmsLogCellNr_AS;\n OutSmsLogCellNr = orig.OutSmsLogCellNr;\n OutSmsLogMessage_AT = orig.OutSmsLogMessage_AT;\n OutSmsLogMessage_AS = orig.OutSmsLogMessage_AS;\n OutSmsLogMessage = orig.OutSmsLogMessage;\n OutSmsLogSentOn_AT = orig.OutSmsLogSentOn_AT;\n OutSmsLogSentOn_AS = orig.OutSmsLogSentOn_AS;\n OutSmsLogSentOn = orig.OutSmsLogSentOn;\n OutSmsLogDeliveredOn_AT = orig.OutSmsLogDeliveredOn_AT;\n OutSmsLogDeliveredOn_AS = orig.OutSmsLogDeliveredOn_AS;\n OutSmsLogDeliveredOn = orig.OutSmsLogDeliveredOn;\n OutSmsLogMessageStatus_AT = orig.OutSmsLogMessageStatus_AT;\n OutSmsLogMessageStatus_AS = orig.OutSmsLogMessageStatus_AS;\n OutSmsLogMessageStatus = orig.OutSmsLogMessageStatus;\n OutSmsLogMkPersNr_AT = orig.OutSmsLogMkPersNr_AT;\n OutSmsLogMkPersNr_AS = orig.OutSmsLogMkPersNr_AS;\n OutSmsLogMkPersNr = orig.OutSmsLogMkPersNr;\n OutSmsLogLogRefId_AT = orig.OutSmsLogLogRefId_AT;\n OutSmsLogLogRefId_AS = orig.OutSmsLogLogRefId_AS;\n OutSmsLogLogRefId = orig.OutSmsLogLogRefId;\n OutSecurityWsUserNumber_AT = orig.OutSecurityWsUserNumber_AT;\n OutSecurityWsUserNumber_AS = orig.OutSecurityWsUserNumber_AS;\n OutSecurityWsUserNumber = orig.OutSecurityWsUserNumber;\n OutStaffNameCsfStringsString30_AT = orig.OutStaffNameCsfStringsString30_AT;\n OutStaffNameCsfStringsString30_AS = orig.OutStaffNameCsfStringsString30_AS;\n OutStaffNameCsfStringsString30 = orig.OutStaffNameCsfStringsString30;\n OutLogGroup_MA = orig.OutLogGroup_MA;\n for(int a = 0; a < 50; a++)\n {\n OutLogGroup_AC[a] = orig.OutLogGroup_AC[a];\n OutGSmsLogMkBatchNr_AT[a] = orig.OutGSmsLogMkBatchNr_AT[a];\n OutGSmsLogMkBatchNr_AS[a] = orig.OutGSmsLogMkBatchNr_AS[a];\n OutGSmsLogMkBatchNr[a] = orig.OutGSmsLogMkBatchNr[a];\n OutGSmsLogReferenceNr_AT[a] = orig.OutGSmsLogReferenceNr_AT[a];\n OutGSmsLogReferenceNr_AS[a] = orig.OutGSmsLogReferenceNr_AS[a];\n OutGSmsLogReferenceNr[a] = orig.OutGSmsLogReferenceNr[a];\n OutGSmsLogCellNr_AT[a] = orig.OutGSmsLogCellNr_AT[a];\n OutGSmsLogCellNr_AS[a] = orig.OutGSmsLogCellNr_AS[a];\n OutGSmsLogCellNr[a] = orig.OutGSmsLogCellNr[a];\n OutGSmsLogMessage_AT[a] = orig.OutGSmsLogMessage_AT[a];\n OutGSmsLogMessage_AS[a] = orig.OutGSmsLogMessage_AS[a];\n OutGSmsLogMessage[a] = orig.OutGSmsLogMessage[a];\n OutGSmsLogSentOn_AT[a] = orig.OutGSmsLogSentOn_AT[a];\n OutGSmsLogSentOn_AS[a] = orig.OutGSmsLogSentOn_AS[a];\n OutGSmsLogSentOn[a] = orig.OutGSmsLogSentOn[a];\n OutGSmsLogMessageStatus_AT[a] = orig.OutGSmsLogMessageStatus_AT[a];\n OutGSmsLogMessageStatus_AS[a] = orig.OutGSmsLogMessageStatus_AS[a];\n OutGSmsLogMessageStatus[a] = orig.OutGSmsLogMessageStatus[a];\n OutGSmsLogSequenceNr_AT[a] = orig.OutGSmsLogSequenceNr_AT[a];\n OutGSmsLogSequenceNr_AS[a] = orig.OutGSmsLogSequenceNr_AS[a];\n OutGSmsLogSequenceNr[a] = orig.OutGSmsLogSequenceNr[a];\n OutGLogCsfLineActionBarAction_AT[a] = \n orig.OutGLogCsfLineActionBarAction_AT[a];\n OutGLogCsfLineActionBarAction_AS[a] = \n orig.OutGLogCsfLineActionBarAction_AS[a];\n OutGLogCsfLineActionBarAction[a] = orig.OutGLogCsfLineActionBarAction[a];\n OutGLogCsfLineActionBarSelectionFlag_AT[a] = \n orig.OutGLogCsfLineActionBarSelectionFlag_AT[a];\n OutGLogCsfLineActionBarSelectionFlag_AS[a] = \n orig.OutGLogCsfLineActionBarSelectionFlag_AS[a];\n OutGLogCsfLineActionBarSelectionFlag[a] = \n orig.OutGLogCsfLineActionBarSelectionFlag[a];\n OutGMessageStatusDescCsfStringsString30_AT[a] = \n orig.OutGMessageStatusDescCsfStringsString30_AT[a];\n OutGMessageStatusDescCsfStringsString30_AS[a] = \n orig.OutGMessageStatusDescCsfStringsString30_AS[a];\n OutGMessageStatusDescCsfStringsString30[a] = \n orig.OutGMessageStatusDescCsfStringsString30[a];\n }\n OutCsfStringsString500_AT = orig.OutCsfStringsString500_AT;\n OutCsfStringsString500_AS = orig.OutCsfStringsString500_AS;\n OutCsfStringsString500 = orig.OutCsfStringsString500;\n OutCsfClientServerCommunicationsReturnCode_AT = \n orig.OutCsfClientServerCommunicationsReturnCode_AT;\n OutCsfClientServerCommunicationsReturnCode_AS = \n orig.OutCsfClientServerCommunicationsReturnCode_AS;\n OutCsfClientServerCommunicationsReturnCode = \n orig.OutCsfClientServerCommunicationsReturnCode;\n OutCsfClientServerCommunicationsServerVersionNumber_AT = \n orig.OutCsfClientServerCommunicationsServerVersionNumber_AT;\n OutCsfClientServerCommunicationsServerVersionNumber_AS = \n orig.OutCsfClientServerCommunicationsServerVersionNumber_AS;\n OutCsfClientServerCommunicationsServerVersionNumber = \n orig.OutCsfClientServerCommunicationsServerVersionNumber;\n OutCsfClientServerCommunicationsServerRevisionNumber_AT = \n orig.OutCsfClientServerCommunicationsServerRevisionNumber_AT;\n OutCsfClientServerCommunicationsServerRevisionNumber_AS = \n orig.OutCsfClientServerCommunicationsServerRevisionNumber_AS;\n OutCsfClientServerCommunicationsServerRevisionNumber = \n orig.OutCsfClientServerCommunicationsServerRevisionNumber;\n OutCsfClientServerCommunicationsServerDevelopmentPhase_AT = \n orig.OutCsfClientServerCommunicationsServerDevelopmentPhase_AT;\n OutCsfClientServerCommunicationsServerDevelopmentPhase_AS = \n orig.OutCsfClientServerCommunicationsServerDevelopmentPhase_AS;\n OutCsfClientServerCommunicationsServerDevelopmentPhase = \n orig.OutCsfClientServerCommunicationsServerDevelopmentPhase;\n OutCsfClientServerCommunicationsAction_AT = \n orig.OutCsfClientServerCommunicationsAction_AT;\n OutCsfClientServerCommunicationsAction_AS = \n orig.OutCsfClientServerCommunicationsAction_AS;\n OutCsfClientServerCommunicationsAction = \n orig.OutCsfClientServerCommunicationsAction;\n OutCsfClientServerCommunicationsServerDate_AT = \n orig.OutCsfClientServerCommunicationsServerDate_AT;\n OutCsfClientServerCommunicationsServerDate_AS = \n orig.OutCsfClientServerCommunicationsServerDate_AS;\n OutCsfClientServerCommunicationsServerDate = \n orig.OutCsfClientServerCommunicationsServerDate;\n OutCsfClientServerCommunicationsServerTime_AT = \n orig.OutCsfClientServerCommunicationsServerTime_AT;\n OutCsfClientServerCommunicationsServerTime_AS = \n orig.OutCsfClientServerCommunicationsServerTime_AS;\n OutCsfClientServerCommunicationsServerTime = \n orig.OutCsfClientServerCommunicationsServerTime;\n OutCsfClientServerCommunicationsServerTimestamp_AT = \n orig.OutCsfClientServerCommunicationsServerTimestamp_AT;\n OutCsfClientServerCommunicationsServerTimestamp_AS = \n orig.OutCsfClientServerCommunicationsServerTimestamp_AS;\n OutCsfClientServerCommunicationsServerTimestamp = \n orig.OutCsfClientServerCommunicationsServerTimestamp;\n OutCsfClientServerCommunicationsServerTransactionCode_AT = \n orig.OutCsfClientServerCommunicationsServerTransactionCode_AT;\n OutCsfClientServerCommunicationsServerTransactionCode_AS = \n orig.OutCsfClientServerCommunicationsServerTransactionCode_AS;\n OutCsfClientServerCommunicationsServerTransactionCode = \n orig.OutCsfClientServerCommunicationsServerTransactionCode;\n OutCsfClientServerCommunicationsServerUserId_AT = \n orig.OutCsfClientServerCommunicationsServerUserId_AT;\n OutCsfClientServerCommunicationsServerUserId_AS = \n orig.OutCsfClientServerCommunicationsServerUserId_AS;\n OutCsfClientServerCommunicationsServerUserId = \n orig.OutCsfClientServerCommunicationsServerUserId;\n OutCsfClientServerCommunicationsServerRollbackFlag_AT = \n orig.OutCsfClientServerCommunicationsServerRollbackFlag_AT;\n OutCsfClientServerCommunicationsServerRollbackFlag_AS = \n orig.OutCsfClientServerCommunicationsServerRollbackFlag_AS;\n OutCsfClientServerCommunicationsServerRollbackFlag = \n orig.OutCsfClientServerCommunicationsServerRollbackFlag;\n OutCsfClientServerCommunicationsClientIsGuiFlag_AT = \n orig.OutCsfClientServerCommunicationsClientIsGuiFlag_AT;\n OutCsfClientServerCommunicationsClientIsGuiFlag_AS = \n orig.OutCsfClientServerCommunicationsClientIsGuiFlag_AS;\n OutCsfClientServerCommunicationsClientIsGuiFlag = \n orig.OutCsfClientServerCommunicationsClientIsGuiFlag;\n OutCsfClientServerCommunicationsActionsPendingFlag_AT = \n orig.OutCsfClientServerCommunicationsActionsPendingFlag_AT;\n OutCsfClientServerCommunicationsActionsPendingFlag_AS = \n orig.OutCsfClientServerCommunicationsActionsPendingFlag_AS;\n OutCsfClientServerCommunicationsActionsPendingFlag = \n orig.OutCsfClientServerCommunicationsActionsPendingFlag;\n OutCsfClientServerCommunicationsClientVersionNumber_AT = \n orig.OutCsfClientServerCommunicationsClientVersionNumber_AT;\n OutCsfClientServerCommunicationsClientVersionNumber_AS = \n orig.OutCsfClientServerCommunicationsClientVersionNumber_AS;\n OutCsfClientServerCommunicationsClientVersionNumber = \n orig.OutCsfClientServerCommunicationsClientVersionNumber;\n OutCsfClientServerCommunicationsClientRevisionNumber_AT = \n orig.OutCsfClientServerCommunicationsClientRevisionNumber_AT;\n OutCsfClientServerCommunicationsClientRevisionNumber_AS = \n orig.OutCsfClientServerCommunicationsClientRevisionNumber_AS;\n OutCsfClientServerCommunicationsClientRevisionNumber = \n orig.OutCsfClientServerCommunicationsClientRevisionNumber;\n OutCsfClientServerCommunicationsClientDevelopmentPhase_AT = \n orig.OutCsfClientServerCommunicationsClientDevelopmentPhase_AT;\n OutCsfClientServerCommunicationsClientDevelopmentPhase_AS = \n orig.OutCsfClientServerCommunicationsClientDevelopmentPhase_AS;\n OutCsfClientServerCommunicationsClientDevelopmentPhase = \n orig.OutCsfClientServerCommunicationsClientDevelopmentPhase;\n OutCsfClientServerCommunicationsListLinkFlag_AT = \n orig.OutCsfClientServerCommunicationsListLinkFlag_AT;\n OutCsfClientServerCommunicationsListLinkFlag_AS = \n orig.OutCsfClientServerCommunicationsListLinkFlag_AS;\n OutCsfClientServerCommunicationsListLinkFlag = \n orig.OutCsfClientServerCommunicationsListLinkFlag;\n OutCsfClientServerCommunicationsCancelFlag_AT = \n orig.OutCsfClientServerCommunicationsCancelFlag_AT;\n OutCsfClientServerCommunicationsCancelFlag_AS = \n orig.OutCsfClientServerCommunicationsCancelFlag_AS;\n OutCsfClientServerCommunicationsCancelFlag = \n orig.OutCsfClientServerCommunicationsCancelFlag;\n OutCsfClientServerCommunicationsMaintLinkFlag_AT = \n orig.OutCsfClientServerCommunicationsMaintLinkFlag_AT;\n OutCsfClientServerCommunicationsMaintLinkFlag_AS = \n orig.OutCsfClientServerCommunicationsMaintLinkFlag_AS;\n OutCsfClientServerCommunicationsMaintLinkFlag = \n orig.OutCsfClientServerCommunicationsMaintLinkFlag;\n OutCsfClientServerCommunicationsForceDatabaseRead_AT = \n orig.OutCsfClientServerCommunicationsForceDatabaseRead_AT;\n OutCsfClientServerCommunicationsForceDatabaseRead_AS = \n orig.OutCsfClientServerCommunicationsForceDatabaseRead_AS;\n OutCsfClientServerCommunicationsForceDatabaseRead = \n orig.OutCsfClientServerCommunicationsForceDatabaseRead;\n OutCsfClientServerCommunicationsRgvScrollUpFlag_AT = \n orig.OutCsfClientServerCommunicationsRgvScrollUpFlag_AT;\n OutCsfClientServerCommunicationsRgvScrollUpFlag_AS = \n orig.OutCsfClientServerCommunicationsRgvScrollUpFlag_AS;\n OutCsfClientServerCommunicationsRgvScrollUpFlag = \n orig.OutCsfClientServerCommunicationsRgvScrollUpFlag;\n OutCsfClientServerCommunicationsRgvScrollDownFlag_AT = \n orig.OutCsfClientServerCommunicationsRgvScrollDownFlag_AT;\n OutCsfClientServerCommunicationsRgvScrollDownFlag_AS = \n orig.OutCsfClientServerCommunicationsRgvScrollDownFlag_AS;\n OutCsfClientServerCommunicationsRgvScrollDownFlag = \n orig.OutCsfClientServerCommunicationsRgvScrollDownFlag;\n OutCsfClientServerCommunicationsObjectRetrievedFlag_AT = \n orig.OutCsfClientServerCommunicationsObjectRetrievedFlag_AT;\n OutCsfClientServerCommunicationsObjectRetrievedFlag_AS = \n orig.OutCsfClientServerCommunicationsObjectRetrievedFlag_AS;\n OutCsfClientServerCommunicationsObjectRetrievedFlag = \n orig.OutCsfClientServerCommunicationsObjectRetrievedFlag;\n }", "public static void copy(Fuuro a_dest, Fuuro a_src) {\n\t\ta_dest.m_type = a_src.m_type;\n\t\ta_dest.m_relation = a_src.m_relation;\n\n\t\tfor (int i = 0; i < Mahjong.MENTSU_HAI_MEMBERS_4; i++) {\n\t\t\tHai.copy(a_dest.m_hais[i], a_src.m_hais[i]);\n\t\t}\n\t}", "IDataRow getCopy();", "AccountDTO coverAccountToEmpDTO(Account account);", "public Hello dup (Hello self)\n {\n if (self == null)\n return null;\n\n Hello copy = new Hello ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.ipaddress = self.ipaddress;\n copy.mailbox = self.mailbox;\n copy.groups = new ArrayList <String> (self.groups);\n copy.status = self.status;\n copy.headers = new VersionedMap (self.headers);\n return copy;\n }", "@Override\n\tprotected Object clone() {\n\t\tUser1 user = null;\n\t\ttry {\n\t\t\tuser = (User1) super.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\tuser = new User1(this.getFirstName(), this.getLastName(), (Address1)this.getAddress().clone());\n\t\t}\n\t\treturn user;\n\t}", "Accessprofile create(Accessprofile accessprofile);", "RecordSet generatePremiumAccounting(Record inputRecord);", "public static void toPersonObject() {\n\t\t\n\t\t// queries \n\t\tString getPersonQuery = \"SELECT * FROM Persons\";\n\t\tString getEmailQuery = \"SELECT (email) FROM Emails e WHERE e.personID=?;\";\n\t\t\n\t\t// Create connection and prepare Sql statement \n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet personRs = null;\n\t\tResultSet emailRs = null;\n\n\t\t// result\n\t\tPerson p = null;\n\t\tAddress a = null;\n\t\tString personCode=null, lastName=null, firstName=null;\n\t\n\t\ttry {\t\n\t\t\tconn = ConnectionFactory.getOne();\n\t\t\tps = conn.prepareStatement(getPersonQuery);\n\t\t\tpersonRs = ps.executeQuery();\n\t\t\twhile(personRs.next()) {\n\t\t\t\tpersonCode = personRs.getString(\"personCode\");\n\t\t\t\tlastName = personRs.getString(\"lastName\");\n\t\t\t\tfirstName = personRs.getString(\"firstName\");\n\t\t\t\tint addressID = personRs.getInt(\"addressID\");\n\t\t\t\tint personID = personRs.getInt(\"id\");\n\t\t\t\t\n\t\t\t\ta = ProcessDatabase.toAddressObjectFromDB(addressID);\n\t\t\t\t// create a set to store email and deposite to create an object \n\t\t\t\tArrayList<String> emails = new ArrayList<String>();\n\t\t\t\tString email = null;\n\t\t\t\t//seperate query to get email Address \n\t\t\t\tps = conn.prepareStatement(getEmailQuery);\n\t\t\t\tps.setInt(1, personID);\n\t\t\t\temailRs = ps.executeQuery();\n\t\t\t\twhile(emailRs.next()) {\n\t\t\t\t\temail = emailRs.getString(\"email\");\n\t\t\t\t\temails.add(email);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//create a person Object \n\t\t\t\t//Person(String personCode, String lastName, String firstName, Address address, Set<String> emails)\n\t\t\t\tp = new Person(personCode,lastName,firstName,a,emails);\n\t\t\t\t\n\t\t\t\t//add to Person list \n\t\t\t\tDataConverter.getPersons().add(p);\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\t//log error to logger\n\t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\t}\n\t\t\n\t}", "void copyMetasToProperties( Object sourceAndTarget );", "int insertSelective(UcMembers record);", "Model copy();", "public void copyInfo( Student stu ) {\r\n this.firstName = stu.firstName;\r\n this.lastName = stu.lastName;\r\n this.address = stu.address;\r\n this.loginID = stu.loginID;\r\n this.numCredits = stu.numCredits;\r\n this.totalGradePoints = stu.totalGradePoints;\r\n this.studentNum = stu.studentNum;\r\n }", "private Profile profileData(String name, String department, String dateHired){\n Date dateHiredObject = new Date(dateHired);\n Profile newEmployeeProfile = new Profile(name, department, dateHiredObject);\n return newEmployeeProfile;\n }", "@Override\r\n\t\tpublic List<Boimpl> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\t\tdata = new ArrayList<Boimpl>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\t// | id | name | address | city | sallary | job | DEPARTMENT\r\n\r\n\t\t\t\tBoimpl obj = new Boimpl();\r\n\t\t\t\tobj.setId(rs.getInt(\"id\"));\r\n\t\t\t\tobj.setName(rs.getString(\"name\"));\r\n\t\t\t\tobj.setAddress(rs.getString(\"address\"));\r\n\t\t\t\tobj.setJob(rs.getString(\"job\"));\r\n\t\t\t\tobj.setSallary(rs.getFloat(\"sallary\"));\r\n\t\t\t\tobj.setDEPARTMENT(rs.getString(\"DEPARTMENT\"));\r\n\t\t\t\tobj.setCity(rs.getString(\"city\"));\r\n\t\t\t\tdata.add(obj);\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t}", "protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }", "@Override\r\n\tprotected final void objectDataMapping() throws BillingSystemException{\r\n\t\tString[][] data=getDataAsArray(USER_DATA_FILE);\r\n\t\tif(validateData(data,\"Authorised User\",COL_LENGTH)){\r\n\t\tList<User> listUser=new ArrayList<User>();\r\n\t\t\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t \t\r\n\t \tUser usr=new User();\r\n\t \t\t\r\n\t \tusr.setUsername(data[i][0]);\r\n\t \tusr.setPassword(data[i][1]);\r\n\t \tusr.setRole(getRoleByCode(data[i][2]));\r\n\t \t\r\n\t \tlistUser.add(usr);\t\r\n\t }\r\n\r\n\t\t\r\n\t\tthis.listUser=listUser;\r\n\t\t}\r\n\t}", "public JbootVoModel set(Record record) {\n super.putAll(record.getColumns());\n return this;\n }", "@Override\n public UserProfile copy() {\n UserProfile userProfile = new UserProfile();\n copyTo(userProfile);\n return userProfile;\n }", "@Override\n public ReplicateRecord record (DomainRecord record) {\n this.record = record;\n return this;\n }", "private User convert(ResultSet rs) throws SQLException, NoSuchAlgorithmException {\n User user = new User(\n rs.getLong(1),\n rs.getString(2),\n new HashedString(rs.getString(3), true),\n new Email(rs.getString(4)));\n return user;\n }", "void copyPropertiesToMetas( Object sourceAndTarget );", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "public BatchRecordInfo(BatchRecordInfo source) {\n if (source.RecordId != null) {\n this.RecordId = new Long(source.RecordId);\n }\n if (source.SubDomain != null) {\n this.SubDomain = new String(source.SubDomain);\n }\n if (source.RecordType != null) {\n this.RecordType = new String(source.RecordType);\n }\n if (source.RecordLine != null) {\n this.RecordLine = new String(source.RecordLine);\n }\n if (source.Value != null) {\n this.Value = new String(source.Value);\n }\n if (source.TTL != null) {\n this.TTL = new Long(source.TTL);\n }\n if (source.Status != null) {\n this.Status = new String(source.Status);\n }\n if (source.Operation != null) {\n this.Operation = new String(source.Operation);\n }\n if (source.ErrMsg != null) {\n this.ErrMsg = new String(source.ErrMsg);\n }\n if (source.Id != null) {\n this.Id = new Long(source.Id);\n }\n if (source.Enabled != null) {\n this.Enabled = new Long(source.Enabled);\n }\n if (source.MX != null) {\n this.MX = new Long(source.MX);\n }\n if (source.Weight != null) {\n this.Weight = new Long(source.Weight);\n }\n if (source.Remark != null) {\n this.Remark = new String(source.Remark);\n }\n }", "int insert(UsecaseRoleData record);", "public Record copy() {\n return new Record(\n this.id,\n this.location.copy(),\n this.score\n );\n }", "public Record copy() {\n\t\treturn new Record(video, numOwned, numOut, numRentals);\n\t}", "int insert(AttributeExtend record);", "void writeObj(MyAllTypesSecond aRecord, StrategyI xmlStrat);", "Account coverEmpDTOToAccount(AccountDTO accountDTO);", "private void copyFields(NetcdfRecordInfo src, Set<String> excludedFields) {\n Iterator<String> keyIter = src.beanMap.keyIterator();\n Object val;\n while (keyIter.hasNext()) {\n String key = keyIter.next();\n if (this.beanMap.getWriteMethod(key) != null\n && !excludedFields.contains(key)) {\n val = src.beanMap.get(key);\n if (val != null) {\n this.beanMap.put(key, val);\n }\n }\n }\n }", "Individual createIndividual();", "public Join dup (Join self)\n {\n if (self == null)\n return null;\n\n Join copy = new Join ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.group = self.group;\n copy.status = self.status;\n return copy;\n }", "@Test\n public void shouldMergeAsExpected() throws DaoException {\n // Get the current case object from the database\n Case caze = TestEntityCreator.createCase();\n\n caze.setEpidNumber(\"AppEpidNumber\");\n caze.getHospitalization().setIsolated(YesNoUnknown.NO);\n caze.getPerson().setNickname(\"Hansi\");\n caze.getSymptoms().setTemperature(37.0f);\n caze.getEpiData().setBats(YesNoUnknown.NO);\n caze.getPerson().getAddress().setCity(\"AppCity\");\n\n DatabaseHelper.getCaseDao().saveAndSnapshot(caze);\n DatabaseHelper.getPersonDao().saveAndSnapshot(caze.getPerson());\n\n Case mergeCase = (Case) caze.clone();\n mergeCase.setPerson((Person) caze.getPerson().clone());\n mergeCase.getPerson().setAddress((Location) caze.getPerson().getAddress().clone());\n mergeCase.setSymptoms((Symptoms) caze.getSymptoms().clone());\n mergeCase.setHospitalization((Hospitalization) caze.getHospitalization().clone());\n mergeCase.setEpiData((EpiData) caze.getEpiData().clone());\n mergeCase.setId(null);\n mergeCase.getPerson().setId(null);\n mergeCase.getPerson().getAddress().setId(null);\n mergeCase.getSymptoms().setId(null);\n mergeCase.getHospitalization().setId(null);\n mergeCase.getEpiData().setId(null);\n\n mergeCase.setEpidNumber(\"ServerEpidNumber\");\n mergeCase.getHospitalization().setIsolated(YesNoUnknown.YES);\n mergeCase.getPerson().setNickname(\"Franzi\");\n mergeCase.getSymptoms().setTemperature(36.5f);\n mergeCase.getEpiData().setBats(YesNoUnknown.YES);\n mergeCase.getPerson().getAddress().setCity(\"ServerCity\");\n\n // Assert that the cloning has worked properly\n assertThat(caze.getEpidNumber(), is(\"AppEpidNumber\"));\n assertThat(mergeCase.getEpidNumber(), is(\"ServerEpidNumber\"));\n assertThat(caze.getPerson().getNickname(), is(\"Hansi\"));\n assertThat(mergeCase.getPerson().getNickname(), is(\"Franzi\"));\n assertThat(caze.getPerson().getAddress().getCity(), is(\"AppCity\"));\n assertThat(mergeCase.getPerson().getAddress().getCity(), is(\"ServerCity\"));\n\n DatabaseHelper.getCaseDao().mergeOrCreate(mergeCase);\n DatabaseHelper.getPersonDao().mergeOrCreate(mergeCase.getPerson());\n\n // Assert that the merging algorithm has correctly changed or kept the respective values\n Case updatedCase = DatabaseHelper.getCaseDao().queryUuid(caze.getUuid());\n assertThat(updatedCase.getEpidNumber(), is(\"ServerEpidNumber\"));\n assertThat(updatedCase.getHospitalization().getIsolated(), is(YesNoUnknown.YES));\n assertThat(updatedCase.getSymptoms().getTemperature(), is(36.5f));\n assertThat(updatedCase.getEpiData().getBats(), is(YesNoUnknown.YES));\n assertThat(updatedCase.getPerson().getNickname(), is(\"Franzi\"));\n assertThat(updatedCase.getPerson().getAddress().getCity(), is(\"ServerCity\"));\n }", "public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }", "public Record(Record other) {\n if (other.isSetAttrs()) {\n List<AttrVal> __this__attrs = new ArrayList<AttrVal>(other.attrs.size());\n for (AttrVal other_element : other.attrs) {\n __this__attrs.add(new AttrVal(other_element));\n }\n this.attrs = __this__attrs;\n }\n }", "private static void mFirstSync(Connection con, FileReader fr, String club, boolean clubcorp) {\n\n PreparedStatement pstmt2 = null;\n Statement stmt = null;\n ResultSet rs = null;\n\n\n Member member = new Member();\n\n String line = \"\";\n String password = \"\";\n String temp = \"\";\n\n int i = 0;\n int inact = 0;\n int pri_indicator = 0;\n\n // Values from MFirst records\n //\n String fname = \"\";\n String lname = \"\";\n String mi = \"\";\n String suffix = \"\";\n String posid = \"\";\n String gender = \"\";\n String ghin = \"\";\n String memid = \"\";\n String mNum = \"\";\n String u_hndcp = \"\";\n String c_hndcp = \"\";\n String mship = \"\";\n String mtype = \"\";\n String msub_type = \"\";\n String bag = \"\";\n String email = \"\";\n String email2 = \"\";\n String phone = \"\";\n String phone2 = \"\";\n String mobile = \"\";\n String primary = \"\";\n String webid = \"\";\n String custom1 = \"\";\n String custom2 = \"\";\n String custom3 = \"\";\n\n float u_hcap = 0;\n float c_hcap = 0;\n int birth = 0;\n\n // Values from ForeTees records\n //\n String fname_old = \"\";\n String lname_old = \"\";\n String mi_old = \"\";\n String mship_old = \"\";\n String mtype_old = \"\";\n String email_old = \"\";\n String mNum_old = \"\";\n String ghin_old = \"\";\n String bag_old = \"\";\n String posid_old = \"\";\n String email2_old = \"\";\n String phone_old = \"\";\n String phone2_old = \"\";\n String suffix_old = \"\";\n String msub_type_old = \"\";\n\n float u_hcap_old = 0;\n float c_hcap_old = 0;\n int birth_old = 0;\n\n // Values for New ForeTees records\n //\n String memid_new = \"\";\n String webid_new = \"\";\n String fname_new = \"\";\n String lname_new = \"\";\n String mi_new = \"\";\n String mship_new = \"\";\n String mtype_new = \"\";\n String email_new = \"\";\n String mNum_new = \"\";\n String ghin_new = \"\";\n String bag_new = \"\";\n String posid_new = \"\";\n String email2_new = \"\";\n String phone_new = \"\";\n String phone2_new = \"\";\n String suffix_new = \"\";\n String msub_type_new = \"\";\n String dupuser = \"\";\n String dupwebid = \"\";\n String dupmnum = \"\";\n String emailMF = \"[email protected]\";\n String subject = \"Roster Sync Warning from ForeTees for \" +club;\n\n float u_hcap_new = 0;\n float c_hcap_new = 0;\n int birth_new = 0;\n int errCount = 0;\n int warnCount = 0;\n int totalErrCount = 0;\n int totalWarnCount = 0;\n int email_bounce1 = 0;\n int email_bounce2 = 0;\n\n String errorMsg = \"\";\n String errMemInfo = \"\";\n String errMsg = \"\";\n String warnMsg = \"\";\n String emailMsg1 = \"Duplicate names found in MembersFirst file during ForeTees Roster Sync processing for club: \" +club+ \".\\n\\n\";\n String emailMsg2 = \"\\nThis indicates that either 2 members have the exact same names (not allowed), or MF's member id has changed.\\n\\n\";\n\n ArrayList<String> errList = new ArrayList<String>();\n ArrayList<String> warnList = new ArrayList<String>();\n\n boolean failed = false;\n boolean changed = false;\n boolean skip = false;\n boolean found = false;\n boolean sendemail = false;\n boolean genderMissing = false;\n boolean useWebid = false;\n boolean useWebidQuery = false;\n\n\n // Overwrite log file with fresh one for today's logs\n SystemUtils.logErrorToFile(\"Members First: Error log for \" + club + \"\\nStart time: \" + new java.util.Date().toString() + \"\\n\", club, false);\n\n try {\n\n BufferedReader bfrin = new BufferedReader(fr);\n line = new String();\n\n // format of each line in the file:\n //\n // memid, mNum, fname, mi, lname, suffix, mship, mtype, gender, email, email2,\n // phone, phone2, bag, hndcp#, uhndcp, chndcp, birth, posid, mobile, primary\n //\n //\n while ((line = bfrin.readLine()) != null) { // get one line of text\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord( line );\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 20 ) { // enough data ?\n\n memid = tok.nextToken();\n mNum = tok.nextToken();\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n suffix = tok.nextToken();\n mship = tok.nextToken(); // col G\n mtype = tok.nextToken(); // col H\n gender = tok.nextToken();\n email = tok.nextToken();\n email2 = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n bag = tok.nextToken();\n ghin = tok.nextToken();\n u_hndcp = tok.nextToken();\n c_hndcp = tok.nextToken();\n temp = tok.nextToken();\n posid = tok.nextToken();\n mobile = tok.nextToken();\n primary = tok.nextToken(); // col U\n\n if ( tok.countTokens() > 0 ) {\n\n custom1 = tok.nextToken();\n }\n if ( tok.countTokens() > 0 ) {\n\n custom2 = tok.nextToken();\n }\n if ( tok.countTokens() > 0 ) {\n\n custom3 = tok.nextToken();\n }\n\n\n // trim gender in case followed be spaces\n gender = gender.trim();\n\n //\n // Check for ? (not provided)\n //\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (mNum.equals( \"?\" )) {\n\n mNum = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (suffix.equals( \"?\" )) {\n\n suffix = \"\";\n }\n if (mship.equals( \"?\" )) {\n\n mship = \"\";\n }\n if (mtype.equals( \"?\" )) {\n\n mtype = \"\";\n }\n if (gender.equals( \"?\" ) || (!gender.equalsIgnoreCase(\"M\") && !gender.equalsIgnoreCase(\"F\"))) {\n\n if (gender.equals( \"?\" )) {\n genderMissing = true;\n } else {\n genderMissing = false;\n }\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (email2.equals( \"?\" )) {\n\n email2 = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (bag.equals( \"?\" )) {\n\n bag = \"\";\n }\n if (ghin.equals( \"?\" )) {\n\n ghin = \"\";\n }\n if (u_hndcp.equals( \"?\" )) {\n\n u_hndcp = \"\";\n }\n if (c_hndcp.equals( \"?\" )) {\n\n c_hndcp = \"\";\n }\n if (temp.equals( \"?\" )) {\n\n birth = 0;\n\n } else {\n\n birth = Integer.parseInt(temp);\n }\n if (posid.equals( \"?\" )) {\n\n posid = \"\";\n }\n if (mobile.equals( \"?\" )) {\n\n mobile = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!memid.equals( \"\" ) && !mNum.equals( \"\" ) &&\n !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 && mi.equals( \"\" )) {\n\n mi = tok.nextToken();\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" ) && tok.countTokens() > 0 && club.equals(\"pradera\")) { // Pradera - if suffix AND 2-part lname, use both\n\n String lpart2 = tok.nextToken();\n\n lname = lname + \"_\" + lpart2; // combine them (i.e. Van Ess = Van_Ess)\n\n } else {\n\n if (suffix.equals( \"\" ) && tok.countTokens() > 0) { // if suffix not provided\n\n suffix = tok.nextToken();\n }\n }\n\n //\n // Make sure name is titled (most are already)\n //\n if (!club.equals(\"thereserveclub\")) {\n fname = toTitleCase(fname);\n }\n\n if (!club.equals(\"lakewoodranch\") && !club.equals(\"ballantyne\") && !club.equals(\"pattersonclub\") && !club.equals(\"baldpeak\") && !club.equals(\"pradera\") &&\n !club.equals(\"wellesley\") && !club.equals(\"portlandgc\") && !club.equals(\"trooncc\") && !club.equals(\"pmarshgc\") && !club.equals(\"paloaltohills\") &&\n !club.equals(\"thereserveclub\") && !club.equals(\"castlepines\")) {\n\n lname = toTitleCase(lname);\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n if (!u_hndcp.equals( \"\" ) && !u_hndcp.equalsIgnoreCase(\"NH\") && !u_hndcp.equalsIgnoreCase(\"NHL\")) {\n\n u_hndcp = u_hndcp.replace('L', ' '); // isolate the handicap - remove spaces and trailing 'L'\n u_hndcp = u_hndcp.replace('H', ' '); // or 'H' if present\n u_hndcp = u_hndcp.replace('N', ' '); // or 'N' if present\n u_hndcp = u_hndcp.replace('J', ' '); // or 'J' if present\n u_hndcp = u_hndcp.replace('R', ' '); // or 'R' if present\n u_hndcp = u_hndcp.trim();\n\n u_hcap = Float.parseFloat(u_hndcp); // usga handicap\n\n if ((!u_hndcp.startsWith(\"+\")) && (!u_hndcp.startsWith(\"-\"))) {\n\n u_hcap = 0 - u_hcap; // make it a negative hndcp (normal)\n }\n }\n\n if (!c_hndcp.equals( \"\" ) && !c_hndcp.equalsIgnoreCase(\"NH\") && !c_hndcp.equalsIgnoreCase(\"NHL\")) {\n\n c_hndcp = c_hndcp.replace('L', ' '); // isolate the handicap - remove spaces and trailing 'L'\n c_hndcp = c_hndcp.replace('H', ' '); // or 'H' if present\n c_hndcp = c_hndcp.replace('N', ' '); // or 'N' if present\n c_hndcp = c_hndcp.replace('J', ' '); // or 'J' if present\n c_hndcp = c_hndcp.replace('R', ' '); // or 'R' if present\n c_hndcp = c_hndcp.trim();\n\n c_hcap = Float.parseFloat(c_hndcp); // usga handicap\n\n if ((!c_hndcp.startsWith(\"+\")) && (!c_hndcp.startsWith(\"-\"))) {\n\n c_hcap = 0 - c_hcap; // make it a negative hndcp (normal)\n }\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n \n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n skip = false;\n errCount = 0; // reset error count\n warnCount = 0; // reset warning count\n errMsg = \"\"; // reset error message\n warnMsg = \"\"; // reset warning message\n errMemInfo = \"\"; // reset error member info\n found = false; // init club found\n\n\n //\n // Format member info for use in error logging before club-specific manipulation\n //\n errMemInfo = \"Member Details:\\n\" +\n \" name: \" + lname + \", \" + fname + \" \" + mi + \"\\n\" +\n \" mtype: \" + mtype + \" mship: \" + mship + \"\\n\" +\n \" memid: \" + memid + \" mNum: \" + mNum + \" gender: \" + gender;\n\n // if gender is incorrect or missing, flag a warning in the error log\n if (gender.equals(\"\")) {\n\n // report only if not a club that uses blank gender fields\n if (!club.equals(\"roccdallas\") && !club.equals(\"charlottecc\") && !club.equals(\"sawgrass\") && !clubcorp) {\n\n warnCount++;\n if (genderMissing) {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER missing! (Defaulted to 'M')\";\n } else {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER incorrect! (Defaulted to 'M')\";\n }\n\n gender = \"M\";\n\n } else if (club.equals(\"charlottecc\") || club.equals(\"sawgrass\")) { // default to female instead\n\n warnCount++;\n if (genderMissing) {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER missing! (Defaulted to 'F')\";\n } else {\n warnMsg = warnMsg + \"\\n\" +\n \" -GENDER incorrect! (Defaulted to 'F)\";\n }\n\n gender = \"F\";\n\n } else if (clubcorp) {\n\n errCount++;\n skip = true;\n if (genderMissing) {\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: GENDER missing!\";\n } else {\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: GENDER incorrect!\";\n }\n }\n }\n\n //\n // Skip entries with first/last names of 'admin'\n //\n if (fname.equalsIgnoreCase(\"admin\") || lname.equalsIgnoreCase(\"admin\")) {\n errCount++;\n skip = true;\n errMsg = errMsg + \"\\n\" +\n \" -INVALID NAME! 'Admin' or 'admin' not allowed for first or last name\";\n }\n\n //\n // *********************************************************************\n //\n // The following will be dependent on the club - customized\n //\n // *********************************************************************\n //\n\n //******************************************************************\n // Saucon Valley Country Club\n //******************************************************************\n //\n if (club.equals( \"sauconvalleycc\" )) {\n\n found = true; // club found\n\n //\n // Determine if we should process this record\n //\n if (!mship.equalsIgnoreCase( \"No Privileges\" ) && !mtype.equalsIgnoreCase( \"Social\" ) &&\n !mtype.equalsIgnoreCase( \"Recreational\" )) {\n\n //\n // determine member type\n //\n if (mtype.equals( \"\" )) { // if not specified\n mtype = \"Staff\"; // they are staff\n }\n if (mship.equals( \"\" )) { // if not specified\n mship = \"Staff\"; // they are staff\n }\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n //\n // The Member Types and Mship Types for this club are backwards.\n // We must set our fields accordingly.\n //\n String memType = mship; // set actual mtype value\n mship = mtype; // set actual mship value\n\n if (memType.equals( \"Full Golf Privileges\" )) {\n\n mtype = \"Full Golf Privileges Men\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Full Golf Privileges Women\";\n }\n }\n\n if (memType.equals( \"Limited Golf Privileges\" )) {\n\n mtype = \"Limited Golf Privileges Men\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Limited Golf Privileges Women\";\n }\n }\n\n if (memType.equals( \"Senior Limited Golf Privileges\" )) {\n\n mtype = \"Senior Limited Golf Privileges\";\n }\n\n //\n // set posid according to mNum\n //\n if (mNum.endsWith( \"-1\" )) { // if spouse\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-1)\n posid = posid + \"1\"; // add a '1' (now 2741)\n\n } else {\n\n if (mNum.endsWith( \"-2\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-2)\n posid = posid + \"2\"; // add a '2' (now 2742)\n\n } else {\n\n if (mNum.endsWith( \"-3\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-3)\n posid = posid + \"3\"; // add a '3' (now 2743)\n\n } else {\n\n if (mNum.endsWith( \"-4\" )) { // if spouse or other\n\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n posid = tok.nextToken(); // get mNum without extension\n posid = stripA(posid); // remove the ending '0' (i.e. was 2740-4)\n posid = posid + \"4\"; // add a '4' (now 2744)\n\n } else {\n\n posid = mNum; // primary posid = mNum\n }\n }\n }\n }\n\n suffix = \"\"; // done with suffix for now\n\n //\n // Check if member is over 70 yrs old - if so, add '_*' to the end of the last name\n // so proshop will know\n //\n if (birth > 0 && birth < 19500000) { // if worth checking\n\n //\n // Get today's date and then go back 70 years\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 70; // go back 70 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth <= oldDate) { // if member is 70+ yrs old\n\n lname = lname + \"_*\"; // inidicate such\n }\n }\n\n } else {\n\n skip = true; // skip this record\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n } // end of IF club = sauconvalleycc\n\n //******************************************************************\n // Crestmont CC\n //******************************************************************\n //\n if (club.equals( \"crestmontcc\" )) {\n\n found = true; // club found\n\n //\n // determine member type\n //\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n mtype = \"T Designated Male\";\n\n if (gender.equals( \"F\" )) {\n mtype = \"T Designated Female\";\n }\n\n } // end of IF club = crestmontcc\n\n //******************************************************************\n // Black Rock CC\n //******************************************************************\n //\n /*\n if (club.equals( \"blackrock\" )) {\n\n found = true; // club found\n\n //\n // remove the 'A' from spouses mNum\n //\n if (mNum.endsWith( \"A\" ) || mNum.endsWith( \"B\" ) || mNum.endsWith( \"C\" ) ||\n mNum.endsWith( \"D\" ) || mNum.endsWith( \"E\" ) || mNum.endsWith( \"F\" )) {\n\n mNum = stripA(mNum); // remove the ending 'A'\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (!mtype.equals( \"Dependents\" )) { // if not a junior\n\n if (gender.equals( \"F\" )) {\n\n if (mtype.equals( \"Primary\" )) {\n\n mtype = \"Member Female\";\n\n } else {\n\n mtype = \"Spouse Female\";\n }\n\n } else { // Male\n\n if (mtype.equals( \"Primary\" )) {\n\n mtype = \"Member Male\";\n\n } else {\n\n mtype = \"Spouse Male\";\n }\n }\n }\n\n } // end of IF club = blackrock\n */\n\n //******************************************************************\n // John's Island CC\n //******************************************************************\n //\n if (club.equals( \"johnsisland\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is not a blank or admin record\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (lname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine membership type\n //\n if (mship.equals( \"Golf Member\" )) {\n mship = \"Golf\";\n } else if (mship.startsWith( \"Golf Swap\" )) {\n mship = \"Golf Swap\";\n lname = lname + \"*\"; // mark these members\n } else if (mship.equals( \"Sport/Social Member\" )) {\n mship = \"Sport Social\";\n lname = lname + \"*\"; // mark these members\n } else if (mship.startsWith( \"Sport/Social Swap\" )) {\n mship = \"Sport Social Swap\";\n } else {\n mship = \"Golf\";\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (gender.equals( \"M\" ) && primary.equals( \"P\" )) {\n mtype = \"Primary Male\";\n } else if (gender.equals( \"F\" ) && primary.equals( \"P\" )) {\n mtype = \"Primary Female\";\n } else if (gender.equals( \"M\" ) && primary.equals( \"S\" )) {\n mtype = \"Spouse Male\";\n } else if (gender.equals( \"F\" ) && primary.equals( \"S\" )) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n } // end of IF club = johnsisland\n\n/*\n //******************************************************************\n // Philadelphia Cricket Club\n //******************************************************************\n //\n if (club.equals( \"philcricket\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is not an admin record or missing mship/mtype\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*Note* mship located in mtype field)\";\n\n } else if (lname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' MEMBERSHIP TYPE!\";\n } else {\n\n if (mtype.equalsIgnoreCase(\"Leave of Absence\")) {\n \n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (mtype.equalsIgnoreCase( \"golf stm family\" ) || mtype.equalsIgnoreCase( \"golf stm ind.\" )) {\n\n lname = lname + \"*\"; // add an astericks\n }\n\n // if mtype = no golf, add ^ to their last name\n if (mtype.equalsIgnoreCase( \"no golf\" )) {\n\n lname += \"^\";\n }\n\n mship = toTitleCase(mtype); // mship = mtype\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n\n /*\n //\n // determine member type\n //\n if (mtype.equalsIgnoreCase( \"2 junior ft golfers\" ) || mtype.equalsIgnoreCase( \"add'l jr. ft golfers\" ) ||\n mtype.equalsIgnoreCase( \"ft golf full 18-20\" ) || mtype.equalsIgnoreCase( \"ft jr. 17 & under\" ) ||\n mtype.equalsIgnoreCase( \"jr 17 & under w/golf\" ) || mtype.equalsIgnoreCase( \"jr 18-20 w/golf\" ) ||\n mtype.equalsIgnoreCase( \"jr. activity/no chg\" )) {\n\n mtype = \"Certified Juniors\";\n\n } else {\n\n if (gender.equals( \"\" )) { // if not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (mtype.equalsIgnoreCase( \"ft assoc golf 21-30\" ) || mtype.equalsIgnoreCase( \"ft assoc ind golf\" ) ||\n mtype.equalsIgnoreCase( \"ft assoc ind/stm fm\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Associate Male\";\n\n } else {\n\n mtype = \"Associate Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"ft full fm/ind 21-30\" ) || mtype.equalsIgnoreCase( \"ft full ind/sm fm\" ) ||\n mtype.equalsIgnoreCase( \"ft golf full fam.\" ) || mtype.equalsIgnoreCase( \"ft golf full ind.\" ) ||\n mtype.equalsIgnoreCase( \"ft golf honorary\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Full Male\";\n\n } else {\n\n mtype = \"Full Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"golf stm family\" ) || mtype.equalsIgnoreCase( \"golf stm ind.\" )) {\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"STM Male\";\n\n } else {\n\n mtype = \"STM Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"golf stm (17-20)\" ) || mtype.equalsIgnoreCase( \"golf stm 16 & under\" )) {\n\n mtype = \"STM Junior\";\n\n } else {\n\n mtype = \"Non-Golfing\";\n }\n }\n }\n }\n }\n }\n\n } // end of IF club = philcricket\n\n */\n /*\n //******************************************************************\n // Edgewood CC\n //******************************************************************\n //\n if (club.equals( \"edgewood\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase( \"Sport\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Sport' MEMBERSHIP TYPE!\";\n } else if (mship.equalsIgnoreCase( \"Dining\" )) {\n\n skip = true; // skip it\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Dining' MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Strip any leading zeros from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = edgewood\n */\n /*\n //******************************************************************\n // Out Door CC\n //******************************************************************\n //\n if (club.equals( \"outdoor\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Translate the mship value - remove the '00x-' prefix\n //\n tok = new StringTokenizer( mship, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n\n mship = tok.nextToken(); // get prefix\n mship = tok.nextToken(); // get mship without prefix\n }\n\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Member Male\";\n } else {\n mtype = \"Member Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = outdoor\n */\n\n\n //******************************************************************\n // Rhode Island CC\n //******************************************************************\n //\n if (club.equals( \"rhodeisland\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // May have to strip -1 off end of mnum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiter is '-'\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get mNum without extension\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = rhodeisland\n\n //******************************************************************\n // Wellesley CC\n //******************************************************************\n //\n if (club.equals( \"wellesley\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type (mship value plus 'Male' or 'Female' - i.e. 'Golf Male')\n //\n if (gender.equals( \"F\" )) { // if Female\n mtype = mship + \" Female\";\n } else {\n mtype = mship + \" Male\";\n }\n }\n } // end of IF club = wellesley\n\n //******************************************************************\n // Lakewood Ranch CC\n //******************************************************************\n //\n if (club.equals( \"lakewoodranch\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (mship.equalsIgnoreCase(\"SMR Members and Staff\")) {\n mship = \"SMR Members\";\n }\n\n if (primary.equals( \"P\" )) {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (gender.equals( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = lakewoodranch\n\n //******************************************************************\n // Long Cove CC\n //******************************************************************\n //\n if (club.equals( \"longcove\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member sub-type (MGA or LGA)\n //\n msub_type = \"\";\n\n if (!mtype.equals( \"\" )) { // if mtype specified (actually is sub-type)\n\n msub_type = mtype; // set it in case they ever need it\n }\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n gender = \"M\"; // default to Male\n }\n\n if (gender.equals( \"M\" )) {\n mtype = \"Adult Male\";\n } else {\n mtype = \"Adult Female\";\n }\n }\n } // end of IF club = longcove\n\n //******************************************************************\n // Bellerive CC\n //******************************************************************\n //\n /*\n if (club.equals( \"bellerive\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) { // mship exist ?\n\n skip = true; // no - skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (gender.equals( \"\" ) || gender.equals( \"U\" )) { // if not specified or U (??)\n\n if (primary.equalsIgnoreCase( \"P\" )) {\n\n gender = \"M\"; // default to Male\n\n } else {\n\n gender = \"F\"; // default to Female\n }\n }\n\n if (gender.equals( \"M\" )) {\n\n mtype = \"Adult Male\";\n\n } else {\n\n mtype = \"Adult Female\";\n }\n\n //\n // Strip any extra chars from mNum\n //\n if (mNum.endsWith( \"A\" ) || mNum.endsWith( \"B\" ) || mNum.endsWith( \"C\" ) ||\n mNum.endsWith( \"D\" ) || mNum.endsWith( \"E\" ) || mNum.endsWith( \"F\" )) {\n\n mNum = stripA(mNum); // remove the ending 'A'\n }\n\n if (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n // *** see oahucc and common MF processing below if we use this again *****************\n\n webid = memid; // use id from MF\n\n //\n // Set the proper mship type\n //\n if (mship.equalsIgnoreCase( \"Active\" ) || mship.equalsIgnoreCase( \"Associate\" ) ||\n mship.equalsIgnoreCase( \"Junior\" ) || mship.equalsIgnoreCase( \"Life\" )) {\n\n mship = \"Golf\";\n }\n\n if (mship.equalsIgnoreCase( \"Non-Golf\" )) {\n\n mship = \"Non-Golf Senior\";\n }\n\n if (mship.equalsIgnoreCase( \"Non-Res\" )) {\n\n mship = \"Non-Resident\";\n }\n\n if (mship.equalsIgnoreCase( \"Spouse\" )) {\n\n //\n // See if we can locate the primary and use his/her mship (else leave as is, it will change next time)\n //\n pstmt2 = con.prepareStatement (\n \"SELECT m_ship FROM member2b WHERE memNum = ? AND webid != ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, mNum);\n pstmt2.setString(2, webid);\n rs = pstmt2.executeQuery();\n\n if(rs.next()) {\n\n mship = rs.getString(\"m_ship\");\n }\n pstmt2.close(); // close the stmt\n }\n }\n } // end of IF club = bellerive\n */\n\n //******************************************************************\n // Peninsula Club\n //******************************************************************\n //\n if (club.equals( \"peninsula\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals(\"\")) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (!mship.equalsIgnoreCase( \"Full\" ) && !mship.equalsIgnoreCase( \"Sports\" ) && !mship.equalsIgnoreCase( \"Corp Full\" ) &&\n !mship.equalsIgnoreCase( \"Tennis\" )) { // mship ok ?\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // determine member type\n //\n if (primary.equalsIgnoreCase( \"P\" )) { // if Primary member\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n\n } else { // Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n }\n }\n } // end of IF club = peninsula\n\n\n //******************************************************************\n // Wilmington CC\n //******************************************************************\n //\n if (club.equals( \"wilmington\" )) {\n\n found = true; // club found\n\n // Make sure this is ok\n if (mship.equals( \"\" )) { // mship missing ?\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n // Set POS Id in case they ever need it\n posid = mNum;\n\n // determine membership type and member type\n if (mship.equalsIgnoreCase( \"Child\" )) { // if child\n\n mship = \"Associate\";\n\n // Check if member is 13 or over\n if (birth > 0) {\n\n // Get today's date and then go back 13 years\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 13; // go back 13 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth <= oldDate) { // if member is 13+ yrs old\n mtype = \"Dependent\";\n } else {\n mtype = \"Dependent - U13\";\n }\n }\n\n } else {\n\n if (mship.equalsIgnoreCase( \"Senior\" ) || mship.equalsIgnoreCase( \"Associate\" ) || mship.equalsIgnoreCase(\"Clerical\")) { // if Senior or spouse\n skip = false; // ok\n } else if (mship.endsWith( \"Social\" )) { // if any Social\n mship = \"Social\"; // convert all to Social\n } else if (mship.equalsIgnoreCase( \"Senior Special\" )) { // if Senior Special\n mship = \"Associate\"; // convert to Associate\n } else if (mship.equalsIgnoreCase( \"Senior Transfer\" )) { // if Senior Special\n mship = \"Senior\"; // convert to Senior\n } else {\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase( \"M\" )) {\n mtype = \"Adult Male\";\n } else {\n mtype = \"Adult Female\";\n }\n }\n\n // Check if member has range privileges\n msub_type = \"\"; // init\n\n if (custom1.equalsIgnoreCase( \"range\" )) {\n msub_type = \"R\"; // yes, indicate this so it can be displayed on Pro's tee sheet\n }\n\n }\n } // end of IF club = wilmington\n\n\n //******************************************************************\n // Awbrey Glen CC\n //******************************************************************\n //\n if (club.equals( \"awbreyglen\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) { // mship missing ?\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (mship.equalsIgnoreCase(\"Employee\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n gender = \"F\"; // assume Female\n }\n }\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end of IF club = awbreyglen\n\n\n //******************************************************************\n // The Pinery CC\n //******************************************************************\n //\n if (club.equals( \"pinery\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip it\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase( \"Tennis Dues\" ) || mship.equalsIgnoreCase( \"Social Dues\" ) ||\n mship.equalsIgnoreCase( \"Premier Tennis Dues\" ) || mship.equalsIgnoreCase( \"Premier Social Prepaid\" ) ||\n mship.equalsIgnoreCase( \"Premier Social Dues\" ) || mship.equalsIgnoreCase( \"Premier Dining Dues\" ) ||\n mship.equalsIgnoreCase( \"Dining Dues\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // Set mtype\n //\n if (primary.equals( \"\" )) { // if primary not specified\n\n primary = \"P\"; // default to Primary\n }\n\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n gender = \"F\"; // assume Female\n }\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n }\n } // end of IF club = pinery\n\n\n\n //******************************************************************\n // The Country Club\n //******************************************************************\n //\n if (club.equals( \"tcclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else {\n\n if (mship.startsWith( \"65 & above \" )) {\n\n mship = \"65 & Above Exempt\"; // remove garbage character\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equals( \"\" )) { // if primary not specified\n\n primary = \"P\"; // default to Primary\n }\n\n if (gender.equals( \"\" )) { // if gender not specified\n\n gender = \"M\"; // default to Male\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Check for dependents\n //\n if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") || mNum.endsWith(\"-5\") ||\n mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") || mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n if (gender.equalsIgnoreCase( \"F \")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n }\n\n }\n } // end of IF club = tcclub\n\n //******************************************************************\n // Navesink Country Club\n //******************************************************************\n //\n if (club.equals( \"navesinkcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else {\n\n useWebid = true;\n webid = memid;\n memid = mNum; // use mNum for username, they are unique!\n\n\n if (mtype.startsWith( \"Member Type\" )) {\n\n mship = mtype.substring(12); // remove garbage character\n\n } else {\n mship = mtype;\n }\n\n if (mship.equalsIgnoreCase(\"SS\") || mship.equalsIgnoreCase(\"SSQ\") || mship.equalsIgnoreCase(\"WMF\") ||\n mship.equalsIgnoreCase(\"WMS\") || mship.equalsIgnoreCase(\"HQ\") || mship.equalsIgnoreCase(\"HM\") ||\n mship.equalsIgnoreCase(\"H\") || mship.equalsIgnoreCase(\"HL\") || mship.equalsIgnoreCase(\"HR\") ||\n mship.equalsIgnoreCase(\"JSQ\") || mship.equalsIgnoreCase(\"SHL\") || mship.equalsIgnoreCase(\"SP\") ||\n mship.equalsIgnoreCase(\"SPJ\") || mship.equalsIgnoreCase(\"SPQ\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n StringTokenizer navTok = null;\n\n // check Primary/Spouse\n if (mNum.endsWith(\"-1\")) {\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 2);\n\n } else if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") ||\n mNum.endsWith(\"-5\") || mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") ||\n mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n primary = \"D\";\n mNum = mNum.substring(0, mNum.length() - 2);\n } else {\n primary = \"P\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\"; // default Spouse\n }\n\n } else if (primary.equalsIgnoreCase( \"D\" )) {\n\n //\n // Dependent mtype based on age\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 18; // backup 18 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (birth > oldDate || birth == 0) { // dependent is under 18 or no bday provided\n\n mtype = \"Dependent Under 18\";\n } else {\n mtype = \"Dependent 18-24\";\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n if (mship.equalsIgnoreCase(\"SR\") || mship.equalsIgnoreCase(\"SRQ\")) {\n mship = \"SR\";\n } else if (mship.equalsIgnoreCase(\"JR\") || mship.equalsIgnoreCase(\"JRQ\")) {\n mship = \"JR\";\n } else if (mship.equalsIgnoreCase(\"NR\") || mship.equalsIgnoreCase(\"NRQ\")) {\n mship = \"NR\";\n } else if (mship.equalsIgnoreCase(\"R\") || mship.equalsIgnoreCase(\"RQ\")) {\n mship = \"R\";\n }\n }\n }\n } // end of IF club = navesinkcc\n\n\n //******************************************************************\n // The International\n //******************************************************************\n //\n if (club.equals( \"international\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n mship = \"Unknown\"; // allow for missing mships for now\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n\n //\n // Set mship\n //\n if (mship.equals( \"Other\" ) || mship.equals( \"Social\" ) || mship.startsWith( \"Spouse of\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else {\n\n if (mship.startsWith( \"Corporate\" ) || mship.startsWith( \"ITT\" )) {\n mship = \"Corporate\";\n } else if (mship.equals( \"Individual\" ) || mship.endsWith( \"Individual\" ) || mship.startsWith( \"Honorary\" ) ||\n mship.startsWith( \"Owner\" ) || mship.equals( \"Trade\" )) {\n mship = \"Individual\";\n } else if (mship.startsWith( \"Family\" ) || mship.startsWith( \"Senior Family\" )) {\n mship = \"Family\";\n } else if (mship.startsWith( \"Out of Region\" )) {\n mship = \"Out of Region\";\n } else if (mship.startsWith( \"Associat\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Staff\" )) {\n mship = \"Staff\";\n }\n\n }\n } // end of IF club = international\n\n\n //******************************************************************\n // Blue Hill\n //******************************************************************\n //\n if (club.equals( \"bluehill\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else { // must be Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Set mship\n //\n if (mship.startsWith( \"Social\" )) {\n mship = \"Social Golf\";\n } else if (mship.startsWith( \"Associat\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Corporate\" )) {\n mship = \"Corporate\";\n } else if (!mship.equals( \"Junior\" )) {\n mship = \"Regular Golf\"; // all others (Junior remains as Junior)\n }\n }\n } // end of IF club = bluehill\n\n\n //******************************************************************\n // Oak Lane\n //******************************************************************\n //\n if (club.equals( \"oaklane\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!!!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing or not allowed! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Remove '-n' from mNum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiters are space\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get main mNum\n }\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if Spouse\n\n if (gender.equalsIgnoreCase( \"M\" )) { // if Male\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else { // must be Primary\n\n if (gender.equalsIgnoreCase( \"F\" )) { // if Female\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\"; // default Primary\n }\n }\n\n //\n // Set mship\n //\n if (mship.startsWith( \"Senior Social\" ) || mship.startsWith( \"Social\" )) {\n mship = \"Social\";\n } else if (mship.startsWith( \"Senior Tennis\" ) || mship.startsWith( \"Summer Tennis\" ) || mship.startsWith( \"Tennis\" )) {\n mship = \"Tennis\";\n }\n }\n } // end of IF club = oaklane\n\n\n //******************************************************************\n // Green Hills\n //******************************************************************\n //\n if (club.equals( \"greenhills\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok - mship is in the mtype field for this club!!!!!!!!!!!!!!!!!\n //\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n } else {\n\n mship = mtype; // move over\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n mtype = \"Primary Male\"; // default Primary\n\n if (mNum.endsWith( \"-1\" )) { // if Spouse\n mtype = \"Spouse Female\";\n }\n\n //\n // Remove '-n' from mNum\n //\n tok = new StringTokenizer( mNum, \"-\" ); // delimiters are space\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // get main mNum\n }\n }\n } // end of IF club = greenhills\n\n\n //******************************************************************\n // Oahu CC\n //******************************************************************\n //\n if (club.equals( \"oahucc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n // This family has a last name consisting of 3 words. If them, just plug in the correct name\n if (memid.equals(\"4081\") || memid.equals(\"4081-1\")) {\n lname = \"de_los_Reyes\";\n }\n\n //\n // Convert some mships\n //\n if (mship.equalsIgnoreCase( \"Surviving Spouse 50 Year Honorary\" )) {\n mship = \"Surv Sp 50 Year Honorary\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse - Non-Resident\" )) {\n mship = \"Surviving Spouse Non-Resident\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Non-Resident - Golf\" )) {\n mship = \"Surv Sp Non-Resident - Golf\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Super Senior - Golf\" )) {\n mship = \"Surv Sp Super Senior - Golf\";\n } else if (mship.equalsIgnoreCase( \"Surviving Spouse Super Senior - Social\" )) {\n mship = \"Surv Sp Super Senior - Social\";\n }\n\n //\n // Set mtype\n //\n if (mship.startsWith(\"Surv\") || mship.equalsIgnoreCase(\"SS50\")) { // if Surviving Spouse\n\n mtype = \"Spouse\"; // always Spouse\n\n } else {\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n mtype = \"Spouse\";\n } else {\n mtype = \"Primary\"; // default to Primary\n }\n }\n\n //\n // Check for Junior Legacy members last\n //\n if (mship.startsWith( \"Jr\" )) {\n\n mship = \"Junior Legacy\";\n mtype = \"Spouse\";\n }\n }\n } // end of IF club = oahucc\n\n\n\n //******************************************************************\n // Ballantyne CC\n //******************************************************************\n //\n if (club.equals( \"ballantyne\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken();\n }\n\n //\n // Convert some mships ************** finish this!!!!!!!!! ************\n //\n if (mtype.equalsIgnoreCase( \"Full Golf\" ) || mship.equalsIgnoreCase(\"Trial Member - Golf\")) {\n\n mship = \"Golf\";\n skip = false;\n\n } else if (mtype.equalsIgnoreCase( \"Limited Golf\" ) || mship.equalsIgnoreCase( \"Master Member\" ) || mship.equalsIgnoreCase(\"Trial Sports Membership\")) {\n\n mship = \"Sports\";\n skip = false;\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n //\n // Set mtype ?????????? **************** and this !!!! **************\n //\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club is ballantyne\n\n\n //******************************************************************\n // Troon CC\n //******************************************************************\n //\n if (club.equals( \"trooncc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken();\n }\n\n if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Intermediate Golf\") ||\n mship.equalsIgnoreCase(\"Social to Golf Upgrade\") || mship.equalsIgnoreCase(\"Founding\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Social from Golf\")) {\n mship = \"Social\";\n } else if (!mship.equalsIgnoreCase(\"Senior\") && !mship.equalsIgnoreCase(\"Dependent\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n try {\n if (mship.equalsIgnoreCase(\"Dependent\") && (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"b\"))) {\n String mNumTemp = mNum.substring(0, mNum.length() - 1);\n PreparedStatement pstmtTemp = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n\n pstmtTemp.clearParameters();\n pstmtTemp.setString(1, mNumTemp);\n\n ResultSet rsTemp = pstmtTemp.executeQuery();\n\n if (rsTemp.next()) {\n mship = rsTemp.getString(\"m_ship\");\n }\n\n pstmtTemp.close();\n }\n } catch (Exception exc) {\n mship = \"Unknown\";\n }\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase( \"F\" )) { // if spouse\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club = trooncc\n\n\n //******************************************************************\n // Imperial GC\n //******************************************************************\n //\n if (club.equals( \"imperialgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.startsWith( \"Account\" ) || mship.equals( \"Dining Full\" ) ||\n mship.equals( \"Dining Honorary\" ) || mship.equals( \"Dining Single\" ) ||\n mship.equals( \"Resigned\" ) || mship.equals( \"Suspended\" )) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n //useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n // mNum can change so we can't count on this being the username for existing members!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken();\n }\n\n\n //\n // Convert some mships\n //\n if (mship.startsWith( \"Associate\" )) {\n mship = \"Associate\";\n } else if (mship.startsWith( \"Dining Summer\" )) {\n mship = \"Dining Summer Golf\";\n } else if (mship.startsWith( \"Golf Royal\" )) {\n mship = \"Golf Royal\";\n } else if (mship.startsWith( \"Golf Single\" ) || mship.equalsIgnoreCase(\"RISINGLE\")) {\n mship = \"Golf Single\";\n } else if (mship.equalsIgnoreCase(\"RIMEMBER\")) {\n mship = \"Golf Full\";\n } else if (mship.startsWith( \"Limited Convert\" )) {\n mship = \"Limited Convertible\";\n } else if (mship.startsWith( \"Resigned\" )) {\n mship = \"Resigned PCD\";\n }\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n\n gender = \"F\";\n }\n }\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\"; // default to Primary\n }\n }\n } // end of IF club = imperialgc\n\n\n\n /* Disable - Pro wants to maintain roster himself !!!\n *\n //******************************************************************\n // Hop Meadow GC\n //******************************************************************\n //\n if (club.equals( \"hopmeadowcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken(); // keep mnum same for all family members\n }\n\n\n //\n // Convert some mships\n //\n if (mship.startsWith( \"Sporting\" )) {\n\n mship = \"Sporting Member\";\n\n } else {\n\n if (mship.startsWith( \"Dependent\" )) {\n\n mship = \"Dependents\";\n\n } else {\n\n if (mship.startsWith( \"Non-Resid\" )) {\n\n mship = \"Non Resident\";\n\n } else {\n\n if (mship.equals( \"Clergy\" ) || mship.startsWith( \"Full Privilege\" ) ||\n mship.equals( \"Honorary\" ) || mship.startsWith( \"Retired Golf\" )) {\n\n mship = \"Full Privilege Golf\";\n\n } else if (mship.equals(\"Senior\")) {\n\n // let Senior come through as-is\n\n } else {\n\n skip = true; // skip all others\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n }\n }\n\n //\n // Set mtype\n //\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n }\n\n if (primary.equalsIgnoreCase( \"S\" )) { // if spouse\n\n mtype = \"Spouse Female\";\n\n if (!gender.equalsIgnoreCase( \"F\")) {\n\n mtype = \"Spouse Male\";\n }\n\n } else {\n\n mtype = \"Primary Male\";\n\n if (gender.equalsIgnoreCase( \"F\" )) {\n\n mtype = \"Primary Female\";\n }\n }\n }\n } // end of IF club = hopmeadowcc\n */\n\n\n\n //******************************************************************\n // Bentwater Yacht & CC\n //******************************************************************\n //\n if (club.equals( \"bentwaterclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique) - if new member!!!\n\n //\n // Convert the mships (\"Member Type:xxx\" - just take the xxx)\n //\n tok = new StringTokenizer( mship, \":\" );\n\n if ( tok.countTokens() > 1 ) {\n\n mship = tok.nextToken(); // skip 1st part\n mship = tok.nextToken(); // get actual mship\n }\n\n\n //\n // Set mtype\n //\n mtype = \"Member\"; // same for all\n }\n } // end of IF club = bentwaterclub\n\n\n //******************************************************************\n // Sharon Heights\n //******************************************************************\n //\n if (club.equals( \"sharonheights\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n\n //\n // Set POS Id - leave leading zeros, but strip trailing alpha!!\n //\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n posid = stripA(mNum); // remove trailing alpha for POSID\n }\n\n\n //\n // Strip any leading zeros and from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum w/o zeros for username (each is unique - MUST include the trailing alpha!!)\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n } else {\n\n if (mNum.endsWith(\"B\") || mNum.endsWith(\"b\")) {\n\n mtype = \"Adult Female\";\n }\n }\n\n //\n // Now remove the trainling alpha from mNum\n //\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n }\n } // end of IF club = sharonheights\n\n\n/*\n //******************************************************************\n // Bald Peak\n //******************************************************************\n //\n if (club.equals( \"baldpeak\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else {\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use MF's memid\n memid = mNum; // use mNum for username (each is unique)\n\n\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"S\")) {\n\n mtype = \"Adult Female\";\n gender = \"F\";\n }\n }\n }\n } // end of IF club = baldpeak\n*/\n\n //******************************************************************\n // Mesa Verde CC\n //******************************************************************\n //\n if (club.equals( \"mesaverdecc\" )) {\n\n found = true; // club found\n\n //\n // Make sure mship is titled\n //\n mship = toTitleCase(mship);\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (mship.startsWith( \"Social\" )) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n mtype = \"Member\"; // default\n\n if (!gender.equals(\"\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Auxiliary\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"S\")) {\n\n mtype = \"Auxiliary\";\n gender = \"F\";\n }\n }\n }\n } // end of IF club = mesaverdecc\n\n\n //******************************************************************\n // Portland CC\n //******************************************************************\n //\n if (club.equals( \"portlandcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n\n if (primary.equalsIgnoreCase(\"P\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Spouse Female\";\n }\n\n } else {\n\n if (primary.equalsIgnoreCase(\"P\")) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Spouse Male\";\n }\n }\n\n //\n // Set mship\n //\n if (mship.endsWith(\"10\") || mship.endsWith(\"11\") || mship.endsWith(\"12\") || mship.endsWith(\"14\") ||\n mship.endsWith(\"15\") || mship.endsWith(\"16\") || mship.endsWith(\"17\")) {\n\n mship = \"Active\";\n\n } else if (mship.endsWith(\"20\") || mship.endsWith(\"21\")) {\n mship = \"Social\";\n } else if (mship.endsWith(\"30\") || mship.endsWith(\"31\")) {\n mship = \"Senior Active\";\n } else if (mship.endsWith(\"40\") || mship.endsWith(\"41\")) {\n mship = \"Junior Active\";\n } else if (mship.endsWith(\"18\") || mship.endsWith(\"19\")) {\n mship = \"Junior Social\";\n } else if (mship.endsWith(\"50\") || mship.endsWith(\"51\") || mship.endsWith(\"60\")) {\n mship = \"Unattached\";\n } else if (mship.endsWith(\"78\") || mship.endsWith(\"79\")) {\n mship = \"Social Non-Resident\";\n } else if (mship.endsWith(\"80\") || mship.endsWith(\"81\")) {\n mship = \"Active Non-Resident\";\n } else if (mship.endsWith(\"70\") || mship.endsWith(\"71\") || mship.endsWith(\"72\")) {\n mship = \"Spousal\";\n } else {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = portlandcc\n\n\n /*\n //******************************************************************\n // Dorset FC - The Pro does not want to use RS - he will maintain the roster\n //******************************************************************\n //\n if (club.equals( \"dorsetfc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n if (!mship.endsWith( \":5\" ) && !mship.endsWith( \":9\" ) && !mship.endsWith( \":17\" ) && !mship.endsWith( \":21\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n\n //\n // Set mtype\n //\n mtype = \"Adult Male\"; // default\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Adult Female\";\n }\n\n //\n // Set mship\n //\n mship = \"Family Full\";\n }\n }\n } // end of IF club = dorsetfc\n */\n\n\n //******************************************************************\n // Baltusrol GC\n //******************************************************************\n //\n if (club.equals( \"baltusrolgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else {\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n\n //\n // Set mtype\n //\n if (memid.endsWith(\"-1\")) { // if Spouse\n\n if (gender.equalsIgnoreCase(\"M\")) {\n\n mtype = \"Spouse Male\";\n\n } else {\n\n mtype = \"Spouse Female\";\n\n fname = \"Mrs_\" + fname; // change to Mrs....\n }\n\n } else { // Primary\n\n if (gender.equalsIgnoreCase(\"F\")) {\n\n mtype = \"Primary Female\";\n\n } else {\n\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set the mship type\n //\n if (mship.startsWith(\"Junior\")) { // Funnel anything starting with 'Junior' to be simply \"Junior\"\n\n mship = \"Junior\";\n\n } else if (mship.equalsIgnoreCase(\"Staff\") || mship.startsWith(\"Type\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = baultusrolcc\n\n\n\n\n //******************************************************************\n // The Club at Pradera\n //******************************************************************\n //\n if (club.equals( \"pradera\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username (each is unique)\n\n //\n // Set mtype\n //\n if (mNum.endsWith(\"-1\")) { // if Spouse\n mNum = mNum.substring(0, mNum.length()-2);\n if (!genderMissing && gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Spouse\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set the mship type\n //\n mship = \"Golf\"; // default\n\n if (mNum.startsWith(\"I\")) {\n mship = \"Invitational\";\n } else if (mNum.startsWith(\"P\")) {\n mship = \"Prestige\";\n } else if (mNum.startsWith(\"F\")) {\n mship = \"Founding\";\n } else if (mNum.startsWith(\"J\")) {\n mship = \"Junior Executive\";\n } else if (mNum.startsWith(\"C\")) {\n mship = \"Corporate\";\n } else if (mNum.startsWith(\"H\")) {\n mship = \"Honorary\";\n } else if (mNum.startsWith(\"Z\")) {\n mship = \"Employee\";\n } else if (mNum.startsWith(\"S\")) {\n mship = \"Sports\";\n } else if (mNum.startsWith(\"L\") || mNum.startsWith(\"l\")) {\n mship = \"Lifetime\";\n } else if (mNum.startsWith(\"X\")) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = pradera\n\n\n\n //******************************************************************\n // Scarsdale GC\n //******************************************************************\n //\n if (club.equals( \"scarsdalegolfclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n if (!mNum.endsWith(\"-1\")) {\n\n memid = mNum; // use mNum for username\n\n } else {\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n if ( tok.countTokens() > 1 ) {\n mNum = tok.nextToken(); // isolate mnum\n }\n\n memid = mNum + \"A\";\n }\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (primary.equalsIgnoreCase(\"S\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n //\n // Set mship\n //\n if (mship.endsWith(\"egular\")) { // catch all Regulars\n mship = \"Regular\";\n } else if (mship.endsWith(\"ssociate\")) { // catch all Associates\n mship = \"Associate\";\n } else if (mship.endsWith(\"Social\")) { // catch all Socials\n mship = \"House Social\";\n } else if (mship.endsWith(\"Sports\")) { // catch all Sports\n mship = \"House Sports\";\n } else if (mship.equals(\"P\") || mship.equals(\"Privilege\")) {\n mship = \"Privilege\";\n } else if (!mship.equals(\"Special Visitors\") && !mship.equals(\"Non-Resident\") && !mship.equals(\"Honorary\")) {\n\n skip = true; // skip if not one of the above\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club is Scarsdale\n\n\n\n //******************************************************************\n // Patterson Club\n //******************************************************************\n //\n if (club.equals( \"pattersonclub\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mship.startsWith( \"DS\" ) || mship.startsWith( \"Employee\" ) || mship.equals( \"LOA\" ) ||\n mship.equals( \"Resigned\" ) || mship.equals( \"Honorary\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use id from MF\n\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n\n memid = mNum; // use mNum for username\n\n\n tok = new StringTokenizer( mNum, \"-\" );\n\n /*\n if ( tok.countTokens() > 1 ) {\n\n mNum = tok.nextToken(); // isolate mnum\n\n if (memid.endsWith(\"-1\")) {\n\n memid = mNum + \"A\"; // use nnnA\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n } else {\n mtype = \"Dependent\";\n }\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n */\n\n if (mNum.endsWith(\"A\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n\n //\n // Set mship - these do not exist any longer, but leave just in case\n //\n if (mship.equalsIgnoreCase(\"FP-Intermediate\")) {\n mship = \"FP\";\n } else {\n if (mship.equalsIgnoreCase(\"HTP Intermediate\")) {\n mship = \"HTP\";\n }\n } // Accept others as is\n }\n } // end of IF club = pattersonclub\n\n\n //******************************************************************\n // Tamarack\n //******************************************************************\n //\n if (club.equals( \"tamarack\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n } else if (fname.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n } else if (fname.equalsIgnoreCase( \"survey\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Survey' FIRST NAME!\";\n } else if (fname.equalsIgnoreCase( \"admin\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: 'Admin' FIRST NAME!\";\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n //\n // use memid as webid !! (do NOT change the username in records)\n //\n useWebid = true; // use webid to locate member\n webid = memid; // use id from MF\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n //\n // Set username to mNum (it is unique)\n //\n memid = mNum;\n\n //\n // Remove extension from mNum if not primary\n //\n StringTokenizer tok9 = new StringTokenizer( mNum, \"-\" ); // look for a dash (i.e. 1234-1)\n\n if ( tok9.countTokens() > 1 ) { \n\n mNum = tok9.nextToken(); // get just the mNum if it contains an extension\n }\n\n /*\n if (!primary.equalsIgnoreCase(\"P\")) {\n mNum = stripA(mNum);\n }\n */\n\n //\n // Set POS Id in case they ever need it\n //\n posid = mNum;\n\n //\n // Set mtype\n //\n if (mship.startsWith(\"SP-\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n mship = mship.substring(3);\n\n } else if (mship.startsWith(\"DEP-\")) {\n\n mtype = \"Dependent\";\n\n mship = mship.substring(4);\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n if (memid.contains(\"-\")) {\n memid = memid.substring(0, memid.length() - 2) + memid.substring(memid.length() - 1);\n }\n \n\n //\n // Set mship\n //\n if (mship.equalsIgnoreCase(\"Associate\") || mship.equalsIgnoreCase(\"Corporate\") || mship.equalsIgnoreCase(\"Dependent\") ||\n mship.equalsIgnoreCase(\"Junior\") || mship.equalsIgnoreCase(\"Non-Resident\") || mship.equalsIgnoreCase(\"Senior\") ||\n mship.equalsIgnoreCase(\"Regular\") || mship.equalsIgnoreCase(\"Sr Cert\") || mship.equalsIgnoreCase(\"Intermed/C\") ||\n mship.equalsIgnoreCase(\"Widow\")) {\n\n // Do nothing\n\n } else if (mship.equalsIgnoreCase(\"Certificate\")) {\n mship = \"Certificat\";\n } else if (mship.equalsIgnoreCase(\"Intermediate\")) {\n mship = \"Intermedia\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n }\n } // end of IF club = tamarack\n\n //******************************************************************\n // St. Clair Country Club\n //******************************************************************\n //\n if (club.equals( \"stclaircc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n } else {\n\n // strip \"Member Type:\" from mship if present\n if (mtype.startsWith(\"Member Type:\")) {\n mtype = mtype.substring(12);\n }\n\n // set mship\n if (mtype.equalsIgnoreCase(\"ACTIVE\") || mtype.equalsIgnoreCase(\"VOTING\")) {\n mship = \"Voting\";\n } else if (mtype.equalsIgnoreCase(\"ACTIVESR\") || mtype.equalsIgnoreCase(\"SENIOR\")) {\n mship = \"Senior\";\n } else if (mtype.startsWith(\"INT\")) {\n mship = \"Intermediate\";\n } else if (mtype.equalsIgnoreCase(\"ASSOC20\")) {\n mship = \"Assoc20\";\n } else if (mtype.equalsIgnoreCase(\"ASSOCIATE\")) {\n mship = \"Associate Golf\";\n } else if (mtype.equalsIgnoreCase(\"LTD GOLF\")) {\n mship = \"Limited Golf\";\n } else if (mtype.equalsIgnoreCase(\"SOCGLF\")) {\n mship = \"Social Golf\";\n } else if (mtype.equalsIgnoreCase(\"NRGP\")) {\n mship = \"NR Golf\";\n } else if (mtype.equalsIgnoreCase(\"FAMILY GP\") || mtype.equalsIgnoreCase(\"SPOUSE GP\")) {\n mship = \"Spouse Golf\";\n } else if (mtype.equalsIgnoreCase(\"FAMILYSPGP\") || mtype.equalsIgnoreCase(\"SPOUSESPGP\")) {\n mship = \"Spouse Golf 9\";\n } else if (mtype.equalsIgnoreCase(\"ASSP20GP\")) {\n mship = \"Assoc Spouse20\";\n } else if (mtype.equalsIgnoreCase(\"ASGP\")) {\n mship = \"Assoc/Ltd Spouse\";\n } else if (mtype.equalsIgnoreCase(\"LTDSP GP\") || mtype.equalsIgnoreCase(\"ASGP\")) {\n mship = \"Limited Spouse\";\n } else if (mtype.equalsIgnoreCase(\"ASSSPGP\")) {\n mship = \"Associate Spouse\";\n } else if (mtype.equalsIgnoreCase(\"SOCSP GP\") || mtype.equalsIgnoreCase(\"ASRGP\")) {\n mship = \"Soc Golf Spouse\";\n } else if (mtype.equalsIgnoreCase(\"JR 12-17\") || mtype.equalsIgnoreCase(\"JR 18-24\")) {\n mship = \"Junior Golf\";\n } else if (mtype.equalsIgnoreCase(\"ASSOC20J\") || mtype.equalsIgnoreCase(\"ASSOC20J18\")) {\n mship = \"Assoc Jr20\";\n } else if (mtype.equalsIgnoreCase(\"ASSOCJR\") || mtype.equalsIgnoreCase(\"ASSOCJR18\")) {\n mship = \"Associate Jr\";\n } else if (mtype.startsWith(\"LTD JR\")) {\n mship = \"Limited Jr\";\n } else if (mtype.equalsIgnoreCase(\"SOCJR<18\") || mtype.equalsIgnoreCase(\"SOCJR>18\")) {\n mship = \"Soc Jr Golf\";\n } else if (mtype.equalsIgnoreCase(\"EMERITUS\")) {\n mship = \"Emeritus\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n // set other values\n posid = mNum; // set posid in case we ever need it\n while (mNum.startsWith(\"0\")){\n mNum = remZeroS(mNum);\n }\n\n useWebid = true; // use these webids\n webid = memid;\n memid = mNum;\n\n // set mtype\n if (mNum.endsWith(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n }\n mNum = mNum.substring(0,mNum.length()-1); // remove extension char\n } else if (mNum.endsWith(\"J\") || mNum.endsWith(\"K\") || mNum.endsWith(\"L\") || mNum.endsWith(\"M\") || mNum.endsWith(\"N\") || mNum.endsWith(\"O\") || mNum.endsWith(\"P\")) {\n mtype = \"Dependent\";\n mNum = mNum.substring(0,mNum.length()-1); // remove extension char\n } else {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Primary Male\";\n } else {\n mtype = \"Primary Female\";\n }\n }\n }\n\n } // end of IF club = stclaircc\n\n\n //******************************************************************\n // The Trophy Club Country Club\n //******************************************************************\n //\n if (club.equals( \"trophyclubcc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n\n } else {\n\n useWebid = true;\n webid = memid;\n posid = mNum;\n\n mship = \"Golf\";\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n } // end of IF club = trophyclubcc\n\n\n\n //******************************************************************\n // Pelican Marsh Golf Club\n //******************************************************************\n //\n if (club.equals( \"pmarshgc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true;\n webid = memid;\n memid = mNum;\n\n mNum = stripDash(mNum); // remove the -00 etc from end of mNums\n\n posid = mNum;\n\n // check for proper membership types\n if (mtype.equalsIgnoreCase(\"Equity Golf\") || mtype.equalsIgnoreCase(\"Non-Equity Golf\") ||\n mtype.equalsIgnoreCase(\"Trial Golf\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"Equity Social\")) {\n mship = \"Social\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n } // end of IF club is pmarshgc\n\n\n //******************************************************************\n // Silver Lake Country Club\n //******************************************************************\n //\n if (club.equals( \"silverlakecc\" )) {\n\n found = true; // club found\n\n //\n // Make sure this is ok\n //\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum;\n mNum = remZeroS(mNum);\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mtype.startsWith(\"Social\")) {\n mship = \"Social Elite\";\n } else {\n mship = \"Full Golf\";\n }\n\n //Will need to add \"Social Elite\" eventually!\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n\n }\n } // end of IF club is silverlakecc\n\n\n //******************************************************************\n // Edina Country Club\n //******************************************************************\n //\n if (club.equals(\"edina\") || club.equals(\"edina2010\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n StringTokenizer tempTok = new StringTokenizer(mNum, \"-\");\n String suf = \"0\";\n\n if (tempTok.countTokens() > 1){ // if mNum contains a - then it is a spouse\n mNum = stripDash(mNum);\n suf = \"1\";\n }\n\n posid = mNum; // set posid before zeros are removed\n\n while (mNum.startsWith(\"0\")) {\n mNum = remZeroS(mNum);\n }\n\n memid = mNum + suf; // set memid\n\n // ignore specific membership types\n if (mship.equalsIgnoreCase(\"Other Clubs\") || mship.equalsIgnoreCase(\"Party Account\") ||\n mship.equalsIgnoreCase(\"Resigned with Balance Due\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else if (mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Honorary Social\") || mship.equalsIgnoreCase(\"Clergy\") || mship.equalsIgnoreCase(\"Social Widow\")) {\n\n mship = \"Social\";\n\n } else if (mship.equalsIgnoreCase(\"Pool/Tennis\")) {\n\n mship = \"Pool/Tennis\";\n\n } else { // leave these two as they are, everything else = golf\n \n mship = \"Golf\";\n }\n\n // set member type based on gender\n if (primary.equalsIgnoreCase(\"P\") || primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n } else {\n mtype = \"Dependent\";\n }\n \n \n //\n // Custom to filter out a member's 2nd email address - she doesn't want ForeTees emails on this one, but wants it in MF\n //\n if (webid.equals(\"2720159\")) {\n \n email2 = \"\";\n }\n \n }\n\n } // end if edina\n\n //******************************************************************\n // Seville Golf & Country Club\n //******************************************************************\n //\n if (club.equals(\"sevillegcc\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid before zeros are removed\n\n while (mNum.startsWith(\"0\")) {\n mNum = remZeroS(mNum);\n }\n\n // ignore specific membership types\n if (mtype.startsWith(\"Sports\")) {\n mship = \"Sports Golf\";\n } else {\n mship = \"Full Golf\";\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n\n } // end if sevillegcc\n\n\n //******************************************************************\n // Royal Oaks CC - Dallas\n //******************************************************************\n //\n if (club.equals(\"roccdallas\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mship.equalsIgnoreCase(\"Tennis Member\") || mship.equalsIgnoreCase(\"Tennis Special Member\") ||\n mship.equalsIgnoreCase(\"Junior Tennis Member\") || mship.equalsIgnoreCase(\"Social Member\") ||\n mship.equalsIgnoreCase(\"Dining Member\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid before zeros are removed\n // memid = mNum; // user mNum as memid, mNums ARE UNIQUE! - USE MF's ID !!!!\n\n if (!mNum.endsWith( \"0\" ) && !mNum.endsWith( \"1\" ) && !mNum.endsWith( \"2\" ) && !mNum.endsWith( \"3\" ) &&\n !mNum.endsWith( \"4\" ) && !mNum.endsWith( \"5\" ) && !mNum.endsWith( \"6\" ) && !mNum.endsWith( \"7\" ) &&\n !mNum.endsWith( \"8\" ) && !mNum.endsWith( \"9\" )) {\n\n mNum = stripA(mNum); // remove trailing alpha\n }\n\n\n // handle 'Spouse of member' membership type\n if (mship.equalsIgnoreCase(\"Spouse of member\")) {\n\n primary = \"S\"; // they are a Spouse\n\n // if Spouse: determine mship from 2nd character of mNum\n if (!mNum.equals(\"\")) {\n\n if (mNum.charAt(1) == 'P') {\n mship = \"Golf Associate Member\";\n } else if (mNum.charAt(1) == 'E') {\n mship = \"Special Member\";\n } else if (mNum.charAt(1) == 'G') {\n mship = \"Senior Member\";\n } else if (mNum.charAt(1) == 'J') {\n mship = \"Junior Member\";\n } else if (mNum.charAt(1) == 'N') {\n mship = \"Non Resident Member\";\n } else if (mNum.charAt(1) == 'F') {\n mship = \"Temp Non Certificate\";\n } else if (mNum.charAt(1) == 'L') {\n mship = \"Ladies Member\";\n } else if (mNum.charAt(1) == 'K') {\n mship = \"Associate Resident Member\";\n } else if (mNum.charAt(1) == 'H') {\n mship = \"Honorary\";\n } else if (mNum.charAt(1) == 'B') {\n mship = \"Tennis with Golf\";\n } else if (mNum.charAt(1) == 'D' || mNum.charAt(1) == 'T' || mNum.charAt(1) == 'R' || mNum.charAt(1) == 'S') {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n } else { // no letter for 2nd char of mNum\n mship = \"Resident Member\";\n }\n } else {\n\n skip = true;\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE could not be determined! (mNum missing)\";\n }\n }\n\n // set member type based on gender\n // blank gender and mNum ending with 'A' = female, otherwise male\n if (gender.equalsIgnoreCase(\"F\") || (gender.equalsIgnoreCase(\"\") && mNum.toLowerCase().endsWith(\"a\"))) {\n\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if roccdallas\n\n\n //******************************************************************\n // Hackberry Creek CC - hackberrycreekcc\n //******************************************************************\n //\n if (club.equals(\"hackberrycreekcc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n mship = \"Golf\"; // everyone changed to \"Golf\"\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n } // end if hackberrycreekcc\n\n //******************************************************************\n // Brookhaven CC - brookhavenclub\n //******************************************************************\n //\n if (club.equals(\"brookhavenclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n\n if (mtype.startsWith(\"DFW\")) {\n mship = \"DFWY\";\n } else {\n mship = \"Golf\"; // everyone changed to \"Golf\"\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n memid = mNum + \"A\";\n } else {\n mtype = \"Adult Male\";\n memid = mNum;\n }\n }\n } // end if brookhavenclub\n\n //******************************************************************\n // Stonebridge Ranch CC - stonebridgeranchcc\n //******************************************************************\n //\n if (club.equals(\"stonebridgeranchcc\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mtype.equalsIgnoreCase(\"Dual Club\") || mtype.equalsIgnoreCase(\"Dual Club Distant\") || mtype.equalsIgnoreCase(\"Dual Club Society\") ||\n mtype.equalsIgnoreCase(\"Honorary\") || mtype.equalsIgnoreCase(\"Honorary Society\") || mtype.equalsIgnoreCase(\"Prem Charter Select\") ||\n mtype.equalsIgnoreCase(\"Prem Chrtr Sel Scty\") || mtype.equalsIgnoreCase(\"Prem Club Corp Scty\") || mtype.equalsIgnoreCase(\"Prem Mbr Sel Society\") ||\n mtype.equalsIgnoreCase(\"Prem Member Charter\") || mtype.equalsIgnoreCase(\"Prem Member Select\") || mtype.equalsIgnoreCase(\"Prem Mbrshp Society\") ||\n mtype.equalsIgnoreCase(\"Premier Club Corp D\") || mtype.equalsIgnoreCase(\"Premier Club Jr\") || mtype.equalsIgnoreCase(\"Premier Corporate\") ||\n mtype.equalsIgnoreCase(\"Premier Membership\") || mtype.equalsIgnoreCase(\"Premier Nr\") || mtype.equalsIgnoreCase(\"Prem Mbr Chrtr Scty\") ||\n mtype.equalsIgnoreCase(\"Premier Club Jr Scty\") || mtype.equalsIgnoreCase(\"Westerra\") || mtype.equalsIgnoreCase(\"Premier Club C Ppd\") ||\n mtype.equalsIgnoreCase(\"Premier Club Corp Ds\") || mtype.equalsIgnoreCase(\"Preview\")) {\n\n mship = \"Dual\";\n\n } else if (mtype.equalsIgnoreCase(\"Pr SB Sel Scty\") || mtype.equalsIgnoreCase(\"Prem Stnbrdge Select\") || mtype.equalsIgnoreCase(\"Prem Stonbrdg Scty \") ||\n mtype.equalsIgnoreCase(\"Premier Stonebridge\") || mtype.equalsIgnoreCase(\"Stonebridge Assoc.\") || mtype.equalsIgnoreCase(\"Stonebridge Charter\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Golf\") || mtype.equalsIgnoreCase(\"Stonebridge Golf Soc\") || mtype.equalsIgnoreCase(\"Options II\") ||\n mtype.equalsIgnoreCase(\"Options II Society\") || mtype.equalsIgnoreCase(\"Options I \") || mtype.equalsIgnoreCase(\"Options I Society\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Distn Gf\") || mtype.equalsIgnoreCase(\"Sb Premier Nr\") || mtype.equalsIgnoreCase(\"Prem Stonbrdg Scty\") ||\n mtype.equalsIgnoreCase(\"Stonebridge Soc Scty\") || mtype.equalsIgnoreCase(\"Stnbrdge Assoc Scty\") || mtype.equalsIgnoreCase(\"Sb Golf Legacy Soc.\")) {\n\n mship = \"Dye\";\n\n } else if (mtype.equalsIgnoreCase(\"Pr Rcc Pr 6/96 Scty\") || mtype.equalsIgnoreCase(\"Pr Rnch Aft 6/96 Sct\") || mtype.equalsIgnoreCase(\"Prem Rcc Jr Select\") ||\n mtype.equalsIgnoreCase(\"Prem Rcc Prior 6/96\") || mtype.equalsIgnoreCase(\"Prem Rnch After 6/96\") || mtype.equalsIgnoreCase(\"Prem Rnch Select Sty\") ||\n mtype.equalsIgnoreCase(\"Premier Ranch Select\") || mtype.equalsIgnoreCase(\"Prm Rcc Sel Aft\") || mtype.equalsIgnoreCase(\"Prm Rcc Sel Aft 96st\") ||\n mtype.equalsIgnoreCase(\"Ranch Charter\") || mtype.equalsIgnoreCase(\"Ranch Golf\") || mtype.equalsIgnoreCase(\"Ranch Golf Legacy\") ||\n mtype.equalsIgnoreCase(\"Ranch Golf Non-Res\") || mtype.equalsIgnoreCase(\"Ranch Golf Society\") || mtype.equalsIgnoreCase(\"Special Golf\") ||\n mtype.equalsIgnoreCase(\"Prem Rcc Pr Nr\") || mtype.equalsIgnoreCase(\"Prem Rnch Sports Sty\") || mtype.equalsIgnoreCase(\"Ranch Nr Society\") ||\n mtype.equalsIgnoreCase(\"Pr Rcc Aft799 Society\") || mtype.equalsIgnoreCase(\"Ranch Non Resident\") || mtype.equalsIgnoreCase(\"Ranch Ppd Rcc Golf\")) {\n\n mship = \"Hills\";\n\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n // set member type and memid based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n\n } // end if stonebridgeranchcc\n\n\n //******************************************************************\n // Charlotte CC - charlottecc\n //******************************************************************\n //\n if (club.equals(\"charlottecc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum.toUpperCase(); // use mNum for memid, they are unique\n\n // Set primary/spouse value\n if (mNum.toUpperCase().endsWith(\"S\")) {\n primary = \"S\";\n mNum = stripA(mNum);\n } else {\n primary = \"P\";\n }\n\n posid = mNum; // set posid in case it's ever needed\n\n // set mtype based on gender\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n // if mship starts with 'Spousal-surviving' or 'Spousal', remove the prefix\n if (mship.equalsIgnoreCase(\"Spousal-surviving Resident\")) {\n mship = \"Dependent Spouse\";\n } else {\n if (mship.startsWith(\"Spousal-surviving\")) {\n mship = mship.substring(18, mship.length() - 1);\n }\n if (mship.startsWith(\"Spousal\") && !mship.equalsIgnoreCase(\"Spousal Member\")) {\n mship = mship.substring(8, mship.length() - 1);\n }\n\n // set mship\n if (mship.startsWith(\"Resident\") || mship.equalsIgnoreCase(\"Ministerial-NM\")) {\n mship = \"Resident\";\n } else if (mship.startsWith(\"Non-Resident\")) {\n mship = \"Non Resident\";\n } else if (mship.startsWith(\"Dependant\")) {\n mship = \"Dependent Spouse\";\n } else if (mship.startsWith(\"Honorary\")) {\n mship = \"Honorary\";\n } else if (mship.startsWith(\"Lady\") || mship.equalsIgnoreCase(\"Spousal Member\")) {\n mship = \"Lady\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n }\n } // end if charlottecc\n\n\n //******************************************************************\n // Gleneagles CC - gleneaglesclub\n //******************************************************************\n //\n if (club.equals(\"gleneaglesclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // set posid in case we need it in the future\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n mship = \"Golf\"; // everyone changed to \"Golf\"\n\n // set member type and memid based on gender\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n memid = mNum + \"A\";\n\n } else if (primary.equalsIgnoreCase(\"P\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Member Female\";\n } else {\n mtype = \"Member Male\";\n }\n memid = mNum;\n } else { // Dependent\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n // use provided memid\n }\n }\n\n } // end if gleneaglesclub\n\n\n\n\n //******************************************************************\n // Portland CC - portlandgc\n //******************************************************************\n //\n if (club.equals(\"portlandgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mNum.length() == 6) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Female Spouse\";\n } else {\n mtype = \"Male Spouse\";\n }\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of extra number on end of spouse mNums\n primary = \"S\";\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) { // strip leading zeros\n memid = remZeroS(memid);\n }\n memid = memid + \"A\";\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Female Member\";\n } else {\n mtype = \"Male Member\";\n }\n\n primary = \"P\";\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) { // strip leading zeros\n memid = remZeroS(memid);\n }\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (mship.equalsIgnoreCase(\"AAR-FG\") || mship.equalsIgnoreCase(\"NON-RES\") ||\n mship.equalsIgnoreCase(\"REGULAR\") || mship.equalsIgnoreCase(\"TEMPORARY\")) { mship = \"Regular\"; }\n else if (mship.equalsIgnoreCase(\"30YEARS\")) { mship = \"30 Year Social\"; }\n else if (mship.equalsIgnoreCase(\"EMPLOYEE\")) { mship = \"Employee\"; }\n else if (mship.equalsIgnoreCase(\"HONORARY\")) { mship = \"Honorary\"; }\n else if (mship.equalsIgnoreCase(\"JUNIOR\")) { mship = \"Junior Associate\"; }\n else if (mship.equalsIgnoreCase(\"SOCIAL\")) { mship = \"Social\"; }\n else if (mship.startsWith(\"L\")) { mship = \"Leave of Absence\"; }\n else if (mship.equalsIgnoreCase(\"SPOUSE\")) { mship = \"Spouse Associate\"; }\n else if (mship.equalsIgnoreCase(\"Member Status:SENIOR\")) { mship = \"Senior\"; }\n else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if portlandgc\n\n\n //******************************************************************\n // Quechee Club\n //******************************************************************\n //\n if (club.equals(\"quecheeclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of trailing primary indicator # on mNum\n\n if (memid.endsWith(\"0\")) { // Primary\n primary = \"P\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n } else if (memid.endsWith(\"1\")) { // Spouse\n primary = \"S\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else { // Dependent\n primary = \"D\";\n mtype = \"Dependent\";\n }\n\n // Set the posid\n if (primary.equals(\"S\")) {\n posid = mNum + \"1\"; // set posid in case we need it in the future\n } else {\n posid = mNum + \"0\";\n }\n\n if (mship.equalsIgnoreCase(\"ALL-F\")) {\n mship = \"ALL Family\";\n } else if (mship.equalsIgnoreCase(\"ALL-S\")) {\n mship = \"ALL Single\";\n } else if (mship.equalsIgnoreCase(\"GAP-F\")) {\n mship = \"GAP Family\";\n } else if (mship.equalsIgnoreCase(\"GAP-S\")) {\n mship = \"GAP Single\";\n } else if (mship.equalsIgnoreCase(\"GAPM-F\")) {\n mship = \"GAPM Family\";\n } else if (mship.equalsIgnoreCase(\"GAPM-S\")) {\n mship = \"GAPM Single\";\n } else if (mship.equalsIgnoreCase(\"NON-GAP\")) {\n mship = \"NON-GAP\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if quecheeclub\n\n\n\n //******************************************************************\n // Quechee Club - Tennis\n //******************************************************************\n //\n if (club.equals(\"quecheeclubtennis\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n\n mNum = mNum.substring(0, mNum.length() - 1); // get rid of trailing primary indicator # on mNum\n\n if (memid.endsWith(\"0\")) { // Primary\n primary = \"P\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n } else if (memid.endsWith(\"1\")) { // Spouse\n primary = \"S\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else { // Dependent\n primary = \"D\";\n mtype = \"Dependent\";\n }\n\n // Set the posid\n if (primary.equals(\"S\")) {\n posid = mNum + \"1\"; // set posid in case we need it in the future\n } else {\n posid = mNum + \"0\";\n }\n\n if (mship.equalsIgnoreCase(\"ALL-F\")) {\n mship = \"ALL Family\";\n } else if (mship.equalsIgnoreCase(\"ALL-S\")) {\n mship = \"ALL Single\";\n } else if (custom1.equalsIgnoreCase(\"Tennis-F\")) {\n mship = \"TAP Family\";\n } else if (custom1.equalsIgnoreCase(\"Tennis-S\")) {\n mship = \"TAP Single\";\n } else if (custom1.equals(\"?\") || custom1.equals(\"\")) {\n mship = \"NON-TAP\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n } // end if quecheeclubtennis\n\n //******************************************************************\n // The Oaks Club\n //******************************************************************\n //\n if (club.equals(\"theoaksclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n\n primary = \"S\";\n gender = \"F\";\n mtype = \"Spouse Female\";\n\n mNum = mNum.substring(0, mNum.length() - 2);\n\n if (mship.startsWith(\"Dependent\")) { // Use the primary's mship\n try {\n ResultSet oaksRS = null;\n PreparedStatement oaksStmt = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n oaksStmt.clearParameters();\n oaksStmt.setString(1, mNum);\n oaksRS = oaksStmt.executeQuery();\n\n if (oaksRS.next()) {\n mship = oaksRS.getString(\"m_ship\");\n } else {\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SPOUSE with DEPENDENT membership type - NO PRIMARY FOUND!\";\n }\n\n oaksStmt.close();\n\n } catch (Exception exc) { }\n }\n\n } else if (mNum.endsWith(\"-2\") || mNum.endsWith(\"-3\") || mNum.endsWith(\"-4\") || mNum.endsWith(\"-5\") ||\n mNum.endsWith(\"-6\") || mNum.endsWith(\"-7\") || mNum.endsWith(\"-8\") || mNum.endsWith(\"-9\")) {\n\n primary = \"D\";\n mtype = \"Dependent\";\n mNum = mNum.substring(0, mNum.length() - 2);\n\n } else {\n\n primary = \"P\";\n gender = \"M\";\n mtype = \"Primary Male\";\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (mship.equalsIgnoreCase(\"Regular Equity\") || mship.equalsIgnoreCase(\"Member Type:001\")) {\n mship = \"Regular Equity\";\n } else if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Member Type:010\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"Social Property Owner\") || mship.equalsIgnoreCase(\"Member Type:002\")) {\n mship = \"Social Property Owner\";\n } else if (mship.equalsIgnoreCase(\"Tennis Associate\") || mship.equalsIgnoreCase(\"Member Type:020\")) {\n mship = \"Tennis Associate\";\n } else if (mship.equalsIgnoreCase(\"Member Type:022\")) {\n mship = \"Jr Tennis Associate\";\n } else if (mship.startsWith(\"Dependent\")) {\n mship = \"Dependent\";\n } else if (mship.equalsIgnoreCase(\"Member Type:085\")) {\n mship = \"General Manager\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n }\n } // end if theoaksclub\n\n\n //******************************************************************\n // Admirals Cove\n //******************************************************************\n //\n if (club.equals(\"admiralscove\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1);\n\n } else {\n primary = \"P\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n if (mship.equals( \"\" )) {\n //\n // Spouse or Dependent - look for Primary mship type and use that\n //\n try {\n pstmt2 = con.prepareStatement (\n \"SELECT m_ship FROM member2b WHERE username != ? AND m_ship != '' AND memNum = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, memid);\n pstmt2.setString(2, mNum);\n rs = pstmt2.executeQuery();\n\n if(rs.next()) {\n mship = rs.getString(\"m_ship\"); // use primary mship type\n } else { //\n skip = true; // skip this one\n mship = \"\";\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n }\n\n pstmt2.close();\n\n } catch (Exception e1) { }\n\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n if (!mship.equals(\"\")) {\n\n if (mship.startsWith(\"Golf\") || mship.equals(\"Full Golf\")) {\n mship = \"Full Golf\";\n } else if (mship.startsWith(\"Sports\")) {\n mship = \"Sports\";\n } else if (!mship.equals(\"Social\") && !mship.equals(\"Marina\") && !mship.equals(\"Tennis\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n }\n } // end if admiralscove\n\n\n //******************************************************************\n // Ozaukee CC\n //******************************************************************\n //\n if (club.equals(\"ozaukeecc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n if (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"C\") || mNum.endsWith(\"D\")) {\n\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1); // strip trailing 'A'\n\n } else {\n primary = \"P\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n if (mship.equalsIgnoreCase(\"EM\")) {\n mship = \"Emeritus\";\n }\n\n if (mship.equalsIgnoreCase(\"Curler\") || mship.equalsIgnoreCase(\"Resigned\") ||\n mship.equalsIgnoreCase(\"Social\") || mship.equalsIgnoreCase(\"Summer Social\")) {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n posid = mNum; // set posid in case we need it in the future\n }\n } // end if ozaukeecc\n\n //******************************************************************\n // Palo Alto Hills G&CC - paloaltohills\n //******************************************************************\n //\n if (club.equals(\"paloaltohills\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) { // this club has its mship values in mtype field!!\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n // trim off leading zeroes\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (gender.equals(\"F\")) {\n primary = \"S\";\n //mtype = \"Secondary Female\"; // no longer setting mtype with roster sync\n } else {\n primary = \"P\";\n //mtype = \"Primary Male\"; // no longer setting mtype with roster sync\n gender = \"M\";\n }\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (memid.startsWith(\"1\") || memid.startsWith(\"4\") || memid.startsWith(\"6\") || memid.startsWith(\"8\")) {\n mship = \"Golf\";\n } else if (memid.startsWith(\"2\")) {\n mship = \"Social\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n }\n\n } // end if paloaltohills\n\n\n //******************************************************************\n // Woodside Plantation CC - wakefieldplantation\n //******************************************************************\n //\n if (club.equals(\"woodsideplantation\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n\n if (memid.equals(\"399609\")) { // Marvin Cross has an invalid email address ([email protected]) - belongs to a church in FL\n email2 = \"\";\n }\n\n\n if (primary.equalsIgnoreCase(\"P\")) {\n memid = mNum;\n } else {\n memid = mNum + \"A\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n } // end if woodsideplantation\n\n //******************************************************************\n // Timarron CC - timarroncc\n //******************************************************************\n //\n if (club.equals(\"timarroncc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n mship = \"Golf\";\n\n if (primary.equalsIgnoreCase(\"S\")) {\n memid = mNum + \"A\";\n } else {\n memid = mNum;\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if timarroncc\n\n //******************************************************************\n // Fountaingrove Golf & Athletic Club - fountaingrovegolf\n //******************************************************************\n //\n if (club.equals(\"fountaingrovegolf\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n String posSuffix = \"\";\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum;\n \n if (mNum.endsWith(\"A\")) {\n primary = \"P\";\n mNum = mNum.substring(0, mNum.length() - 1);\n memid = mNum;\n } else {\n primary = \"S\";\n mNum = mNum.substring(0, mNum.length() - 1);\n memid = mNum + \"A\";\n }\n\n if (mship.equalsIgnoreCase(\"Golf\") || mship.equalsIgnoreCase(\"Employee\")) {\n mship = \"Golf\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n }\n } // end if fountaingrovegolf\n\n\n/* Disabled, left ForeTees\n //******************************************************************\n // Austin Country Club - austincountryclub\n //******************************************************************\n //\n if (club.equals(\"austincountryclub\")) {\n\n found = true; // club found\n\n if (primary.equalsIgnoreCase(\"P\") && mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n if (mNum.toUpperCase().endsWith(\"A\")) {\n mNum = stripA(mNum);\n }\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n posid = mNum; // set posid in case we need it in the future\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n // If a spouse member, retrieve the primary user's membership type to use for them\n if (primary.equalsIgnoreCase(\"S\")) {\n try {\n PreparedStatement pstmtAus = null;\n ResultSet rsAus = null;\n\n pstmtAus = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE memNum = ? AND m_ship<>''\");\n pstmtAus.clearParameters();\n pstmtAus.setString(1, mNum);\n\n rsAus = pstmtAus.executeQuery();\n\n if (rsAus.next()) {\n mship = rsAus.getString(\"m_ship\");\n } else {\n mship = \"\";\n }\n\n pstmtAus.close();\n\n } catch (Exception ignore) {\n\n mship = \"\";\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Membership Type could not be retrieved from Primary Member record!\";\n }\n }\n\n if (mship.equalsIgnoreCase(\"JRF\") || mship.equalsIgnoreCase(\"Former Junior\")) {\n mship = \"Former Junior\";\n } else if (mship.equalsIgnoreCase(\"HON\") || mship.equalsIgnoreCase(\"Honorary\")) {\n mship = \"Honorary\";\n } else if (mship.equalsIgnoreCase(\"JR\") || mship.equalsIgnoreCase(\"Junior\")) {\n mship = \"Junior\";\n } else if (mship.equalsIgnoreCase(\"N-R\") || mship.equalsIgnoreCase(\"Non-Resident\")) {\n mship = \"Non-Resident\";\n } else if (mship.equalsIgnoreCase(\"RES\") || mship.equalsIgnoreCase(\"Resident\")) {\n mship = \"Resident\";\n } else if (mship.equalsIgnoreCase(\"SR\") || mship.equalsIgnoreCase(\"SRD\") || mship.equalsIgnoreCase(\"Senior\")) {\n mship = \"Senior\";\n } else {\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n\n }\n } // end if austincountryclub\n */\n\n //******************************************************************\n // Treesdale Golf & Country Club - treesdalegolf\n //******************************************************************\n //\n if (club.equals(\"treesdalegolf\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n posid = mNum; // set posid in case we need it in the future\n\n if (primary.equalsIgnoreCase(\"P\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Primary Female\";\n } else {\n gender = \"M\";\n mtype = \"Primary Male\";\n }\n\n } else if (primary.equalsIgnoreCase(\"S\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Spouse Female\";\n } else {\n gender = \"M\";\n mtype = \"Spouse Male\";\n }\n\n memid += \"A\";\n\n } else {\n mtype = \"Junior\";\n }\n\n mship = \"Golf\";\n\n }\n } // end if treesdalegolf\n\n //******************************************************************\n // Sawgrass Country Club - sawgrass\n //******************************************************************\n //\n if (club.equals(\"sawgrass\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n mNum = mNum.substring(0, mNum.length() - 2);\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n // Still filter on given mships even though using mtype field to determine what mship will be set to\n if (mship.equalsIgnoreCase(\"Associate Member\") || mship.equalsIgnoreCase(\"Complimentary Employee\") || mship.equalsIgnoreCase(\"Complimentary Other\") ||\n mship.startsWith(\"House\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mship)\";\n }\n\n if (mtype.equalsIgnoreCase(\"7DAY\")) {\n mship = \"Sports\";\n } else if (mtype.equalsIgnoreCase(\"3DAY\")) {\n mship = \"Social\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mtype)\";\n }\n\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Member Female\";\n } else {\n mtype = \"Member Male\";\n }\n\n }\n } // end if sawgrass\n\n /*\n //******************************************************************\n // TPC at SnoaQualmie Ridge\n //******************************************************************\n //\n if (club.equals(\"snoqualmieridge\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case it's ever needed\n\n // Set primary/spouse value\n if (mNum.toUpperCase().endsWith(\"A\")) {\n primary = \"P\";\n mNum = stripA(mNum);\n } else {\n if (mNum.toUpperCase().endsWith(\"B\")) {\n primary = \"S\";\n mNum = stripA(mNum);\n } else {\n if (mNum.toUpperCase().endsWith(\"C\") || mNum.toUpperCase().endsWith(\"D\") ||\n mNum.toUpperCase().endsWith(\"E\") || mNum.toUpperCase().endsWith(\"F\") ||\n mNum.toUpperCase().endsWith(\"G\") || mNum.toUpperCase().endsWith(\"H\") ||\n mNum.toUpperCase().endsWith(\"I\") || mNum.toUpperCase().endsWith(\"J\")) {\n primary = \"D\";\n\n memid = mNum.toUpperCase(); // use mNum for memid, they are unique\n\n mNum = stripA(mNum);\n\n } else {\n primary = \"P\"; // if no alpha - assume primary\n }\n }\n }\n\n // set mtype based on gender and relationship\n if (gender.equalsIgnoreCase(\"F\")) {\n\n if (primary.equals(\"P\") || primary.equals(\"S\")) {\n\n mtype = \"Adult Female\";\n\n memid = mNum + \"F\"; // memid for Adult Females\n\n } else {\n\n mtype = \"Dependent Female\";\n }\n\n } else { // Male\n\n if (primary.equals(\"P\") || primary.equals(\"S\")) {\n mtype = \"Adult Male\";\n\n memid = mNum + \"M\"; // memid for Adult Males\n\n } else {\n\n mtype = \"Dependent Male\";\n }\n }\n\n // mships ?????????????\n\n }\n } // end if snoqualmieridge\n */\n\n //******************************************************************\n // Druid Hills Golf Club - dhgc\n //******************************************************************\n //\n if (club.equals(\"dhgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n\n posid = mNum; // set posid in case we need it in the future\n\n // Remove leading zeroes\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mship.equalsIgnoreCase(\"House\")) {\n\n skip = true;\n errCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF MEMBERSHIP TYPE!\";\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n }\n } // end if dhgc\n\n //******************************************************************\n // The Reserve Club - thereserveclub\n //******************************************************************\n //\n if (club.equals(\"thereserveclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n useWebid = true; // use webid for this club\n webid = memid; // use memid for webid\n memid = mNum;\n\n if (mNum.endsWith(\"-1\")) {\n mNum = mNum.substring(0, mNum.length() - 2);\n }\n\n posid = mNum; // set posid in case we need it in the future\n\n mship = mtype;\n\n if (mship.endsWith(\" - Spouse\")) {\n mship = mship.substring(0, mship.length() - 9);\n }\n\n if (mship.startsWith(\"Social\")) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE! (mtype)\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end if thereserveclub\n\n\n //******************************************************************\n // Robert Trent Jones - rtjgc\n //******************************************************************\n //\n if (club.equals(\"rtjgc\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n //\n // use the mnum for memid\n //\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n if (mNum.endsWith(\"-1\")) {\n\n memid = mNum;\n\n while (memid.length() < 5) {\n memid = \"0\" + memid;\n }\n\n if (gender.equals(\"F\")) {\n memid += \"A\"; // spouse or female\n }\n } else {\n memid = mNum; // primary males\n }\n\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n\n }\n\n } // end if rtjgc\n\n\n //******************************************************************\n // Morgan Run - morganrun\n //******************************************************************\n //\n if (club.equals(\"morganrun\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n \n if (primary.equalsIgnoreCase(\"S\")) {\n memid += \"A\";\n }\n\n mship = \"Golf\";\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if morganrun\n\n\n //******************************************************************\n // CC at DC Ranch - ccdcranch\n //******************************************************************\n //\n if (club.equals(\"ccdcranch\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n //\n // use memid as webid !!\n //\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mship.equalsIgnoreCase(\"COR\") || mship.equalsIgnoreCase(\"GOLF\")) {\n mship = \"Full Golf\";\n } else if (mship.equalsIgnoreCase(\"SPS\")) {\n mship = \"Sports/Social\";\n } else if (mship.equalsIgnoreCase(\"SECONDARY\")) {\n if (mNum.startsWith(\"1\") || mNum.startsWith(\"5\")) {\n mship = \"Full Golf\";\n } else if (mNum.startsWith(\"3\")) {\n mship = \"Sports/Social\";\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP TYPE!\";\n }\n\n //\n // Set the member type\n //\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if ccdcranch\n\n\n //******************************************************************\n // Oakley CC - oakleycountryclub\n //******************************************************************\n //\n if (club.equals(\"oakleycountryclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (!mtype.equals(\"\")) {\n mship = mtype;\n }\n\n // Set the member type\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n\n } // end if oakleycountryclub\n\n\n //******************************************************************\n // Black Rock CC - blackrockcountryclub\n //******************************************************************\n //\n if (club.equals(\"blackrockcountryclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"D\") || mNum.endsWith(\"Z\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n gender = \"M\";\n }\n }\n\n }\n\n } // end if blackrockcountryclub\n\n/*\n //******************************************************************\n // The Edison Club - edisonclub\n //******************************************************************\n //\n if (club.equals(\"edisonclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n while (posid.startsWith(\"0\")) {\n posid = posid.substring(1);\n }\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (primary.equalsIgnoreCase(\"S\")) {\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n mtype = \"Spouse Female\";\n gender = \"F\";\n }\n } else {\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n gender = \"M\";\n }\n } \n\n }\n\n } // end if edisonclub\n */\n\n\n //******************************************************************\n // Longue Vue Club - longuevueclub\n //******************************************************************\n //\n if (club.equals(\"longuevueclub\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n if (mtype.equals(\"\")) {\n mtype = \"Adult Male\";\n }\n\n if (mtype.endsWith(\" Female\")) {\n gender = \"F\";\n } else {\n gender = \"M\";\n }\n }\n } // end if longuevueclub\n\n\n //******************************************************************\n // Happy Hollow Club - happyhollowclub\n //******************************************************************\n //\n if (club.equals(\"happyhollowclub\")) {\n\n found = true; // club found\n\n if (mtype.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing! (*NOTE* mship located in mtype field)\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid to locate member\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n while (memid.startsWith(\"0\")) {\n memid = memid.substring(1);\n }\n\n // If member number does not end with the first letter of member's last name, strip off the last character\n if (!mNum.endsWith(lname.substring(0,1))) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n // Add leading zeroes until mNum has a length of 5\n while (mNum.length() < 5) {\n mNum = \"0\" + mNum;\n }\n\n\n // Remove \"Member Status:\" from beginning of mship\n if (mtype.startsWith(\"Member Status:\")) {\n mtype = mtype.replace(\"Member Status:\", \"\");\n }\n\n // Filter mtypes and mships\n if (mtype.equalsIgnoreCase(\"DEPEND A\") || mtype.equalsIgnoreCase(\"DEPEND B\") || mtype.equalsIgnoreCase(\"DEPEND SOC\")) {\n\n if (mtype.equalsIgnoreCase(\"DEPEND A\") || mtype.equalsIgnoreCase(\"DEPEND B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"DEPEND SOC\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Dependent Female\";\n } else {\n mtype = \"Dependent Male\";\n }\n\n } else if (mtype.equalsIgnoreCase(\"EMPLOYEE\") || mtype.equalsIgnoreCase(\"GOLF A\") || mtype.equalsIgnoreCase(\"GOLF B\") || mtype.equalsIgnoreCase(\"SOCIAL\")) {\n\n if (mtype.equalsIgnoreCase(\"EMPLOYEE\")) {\n mship = \"Employee\";\n } else if (mtype.equalsIgnoreCase(\"GOLF A\") || mtype.equalsIgnoreCase(\"GOLF B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"SOCIAL\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n \n } else if (mtype.equalsIgnoreCase(\"SPOUSE A\") || mtype.equalsIgnoreCase(\"SPOUSE B\") || mtype.equalsIgnoreCase(\"SPOUSE SOC\")) {\n\n if (mtype.equalsIgnoreCase(\"SPOUSE A\") || mtype.equalsIgnoreCase(\"SPOUSE B\")) {\n mship = \"Golf\";\n } else if (mtype.equalsIgnoreCase(\"SPOUSE SOC\")) {\n mship = \"Social\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n }\n } // end if happyhollowclub\n\n \n \n //******************************************************************\n // CC of Castle Pines\n //******************************************************************\n //\n if (club.equals(\"castlepines\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n while (mNum.startsWith(\"0\")) { // strip any leading zeros\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n // Isolate the member number\n StringTokenizer tok9 = new StringTokenizer( mNum, \"-\" ); // look for a dash (i.e. 1234-1)\n\n if ( tok9.countTokens() > 1 ) { \n\n mNum = tok9.nextToken(); // get just the mNum if it contains an extension\n }\n\n // Filter mtypes and mships\n if (mship.equalsIgnoreCase(\"golf\") || mship.equalsIgnoreCase(\"corporate\")) {\n\n if (mship.equalsIgnoreCase(\"Corporate\")) {\n mship = \"Corporate\";\n } else {\n mship = \"Regular Member\"; // convert Golf to Regular Member\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n }\n } // end if castlepines\n\n\n\n //******************************************************************\n // Golf Club at Turner Hill - turnerhill\n //******************************************************************\n //\n if (club.equals(\"turnerhill\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n mship = \"Golf\";\n\n if (!gender.equalsIgnoreCase(\"F\")) {\n gender = \"M\";\n }\n\n if (mNum.endsWith(\"A\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Spouse Female\";\n } else {\n mtype = \"Spouse Male\";\n }\n\n mNum = mNum.substring(0, mNum.length() - 1);\n\n } else {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n mtype = \"Primary Male\";\n }\n }\n\n }\n } // end if turnerhill\n\n\n //******************************************************************\n // The Club at Mediterra - mediterra\n //******************************************************************\n //\n if (club.equals(\"mediterra\")) {\n\n found = true; // club found\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip this one\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBERSHIP TYPE missing!\";\n\n } else if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n // Get ride of all leading zeroes.\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n memid = mNum;\n\n // Strip off special character\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\") || mNum.endsWith(\"B\") || mNum.endsWith(\"b\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mship.equalsIgnoreCase(\"G\") || mship.equalsIgnoreCase(\"GNF\")) {\n mship = \"Golf\";\n } else if (mship.equalsIgnoreCase(\"S\")) {\n mship = \"Sports\";\n } else if (mship.equalsIgnoreCase(\"D\")) {\n\n try {\n\n pstmt2 = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n pstmt2.clearParameters();\n pstmt2.setString(1, mNum);\n\n rs = pstmt2.executeQuery();\n\n if (rs.next()) {\n mship = rs.getString(\"m_ship\");\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NO PRIMARY MEMBERSHIP TYPE!\";\n }\n\n pstmt2.close();\n\n } catch (Exception exc) {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: ERROR WHILE LOOKING UP MEMBERSHIP TYPE!\";\n }\n\n } else {\n\n skip = true;\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: NON-GOLF or UNKNOWN MEMBERSHIP/MEMBER TYPE!\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n }\n } // end if mediterra\n\n\n //******************************************************************\n // Hideaway Beach Club - hideawaybeachclub\n //******************************************************************\n //\n if (club.equals(\"hideawaybeachclub\")) {\n\n found = true; // club found\n\n if (mNum.equals( \"\" )) {\n\n skip = true; // skip this one\n warnCount++;\n warnMsg = warnMsg + \"\\n\" +\n \" -SKIPPED: Member Number Missing!\";\n\n } else {\n\n posid = mNum; // use their member numbers as their posid\n\n // use memid as webid\n useWebid = true; // use webid for member\n useWebidQuery = true; // use webid to locate member in Query\n\n webid = memid; // use webid for this club\n\n memid = mNum;\n\n if (mNum.endsWith(\"A\") || mNum.endsWith(\"a\")) {\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n\n if (mNum.startsWith(\"7\")) {\n mship = \"Renter\";\n } else {\n mship = \"Golf\";\n }\n\n if (gender.equalsIgnoreCase(\"F\")) {\n gender = \"F\";\n mtype = \"Adult Female\";\n } else {\n gender = \"M\";\n mtype = \"Adult Male\";\n }\n\n }\n } // end if hideawaybeachclub\n\n\n \n //******************************************************************\n // All clubs\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\") && !memid.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n ghin_old = \"\";\n bag_old = \"\";\n posid_old = \"\";\n email2_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n suffix_old = \"\";\n u_hcap_old = 0;\n c_hcap_old = 0;\n birth_old = 0;\n msub_type_old = \"\";\n email_bounce1 = 0;\n email_bounce2 = 0;\n\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n if (!webid.equals( \"\" )) {\n\n webid = truncate(webid, 15);\n }\n if (!msub_type.equals( \"\" )) {\n\n msub_type = truncate(msub_type, 30);\n }\n\n //\n // Set Gender and Primary values\n //\n if (!gender.equalsIgnoreCase( \"M\" ) && !gender.equalsIgnoreCase( \"F\" )) {\n\n gender = \"\";\n }\n\n pri_indicator = 0; // default = Primary\n\n if (primary.equalsIgnoreCase( \"S\" )) { // Spouse\n\n pri_indicator = 1;\n }\n if (primary.equalsIgnoreCase( \"D\" )) { // Dependent\n\n pri_indicator = 2;\n }\n\n\n //\n // See if a member already exists with this id (username or webid)\n //\n // **** NOTE: memid and webid MUST be set to their proper values before we get here!!!!!!!!!!!!!!!\n //\n //\n // 4/07/2010\n // We now use 2 booleans to indicate what to do with the webid field.\n // useWebid is the original boolean that was used to indicate that we should use the webid to identify the member.\n // We lost track of when this flag was used and why. It was no longer used to indicate the webid should be \n // used in the query, so we don't know what its real purpose is. We don't want to disrupt any clubs that are\n // using it, so we created a new boolean for the query.\n // useWebidQuery is the new flag to indicate that we should use the webid when searching for the member. You should use\n // both flags if you want to use this one.\n //\n try {\n \n if (useWebid == true) { // use webid to locate member?\n\n webid_new = webid; // yes, set new ids\n memid_new = \"\";\n\n } else { // DO NOT use webid\n\n webid_new = \"\"; // set new ids\n memid_new = memid;\n }\n\n if (useWebidQuery == false) {\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n\n } else { // use the webid field\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n }\n\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n memid = rs.getString(\"username\"); // get username in case we used webid (use this for existing members)\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n ghin_old = rs.getString(\"ghin\");\n bag_old = rs.getString(\"bag\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n msub_type_old = rs.getString(\"msub_type\");\n email2_old = rs.getString(\"email2\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n suffix_old = rs.getString(\"name_suf\");\n email_bounce1 = rs.getInt(\"email_bounced\");\n email_bounce2 = rs.getInt(\"email2_bounced\");\n\n if (useWebid == true) { // use webid to locate member?\n memid_new = memid; // yes, get this username\n } else {\n webid_new = rs.getString(\"webid\"); // no, get current webid\n }\n }\n pstmt2.close(); // close the stmt\n\n\n //\n // If member NOT found, then check if new member OR id has changed\n //\n boolean memFound = false;\n boolean dup = false;\n boolean userChanged = false;\n boolean nameChanged = false;\n String dupmship = \"\";\n\n if (fname_old.equals( \"\" )) { // if member NOT found\n\n //\n // New member - first check if name already exists\n //\n pstmt2 = con.prepareStatement (\n \"SELECT username, m_ship, memNum, webid FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next() && !club.equals(\"longcove\")) { // Allow duplicate names for Long Cove for members owning two properties at once\n\n dupuser = rs.getString(\"username\"); // get this username\n dupmship = rs.getString(\"m_ship\");\n dupmnum = rs.getString(\"memNum\");\n dupwebid = rs.getString(\"webid\"); // get this webid\n\n //\n // name already exists - see if this is the same member\n //\n sendemail = true; // send a warning email to us and MF\n\n if ((!dupmnum.equals( \"\" ) && dupmnum.equals( mNum )) || club.equals(\"imperialgc\")) { // if name and mNum match, then memid or webid must have changed\n\n if (useWebid == true) { // use webid to locate member?\n\n webid_new = webid; // set new ids\n memid_new = dupuser;\n memid = dupuser; // update this record\n\n } else {\n\n webid_new = dupwebid; // set new ids\n memid_new = memid;\n memid = dupuser; // update this record\n userChanged = true; // indicate the username has changed\n }\n\n memFound = true; // update the member\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n ghin_old = rs.getString(\"ghin\");\n bag_old = rs.getString(\"bag\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n msub_type_old = rs.getString(\"msub_type\");\n email2_old = rs.getString(\"email2\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n suffix_old = rs.getString(\"name_suf\");\n email_bounce1 = rs.getInt(\"email_bounced\");\n email_bounce2 = rs.getInt(\"email2_bounced\");\n }\n\n //\n // Add this info to the email message text\n //\n emailMsg1 = emailMsg1 + \"Name = \" +fname+ \" \" +mi+ \" \" +lname+ \", ForeTees Member Id has been updated to that received.\\n\\n\";\n\n } else {\n\n //\n // Add this info to the email message text\n //\n emailMsg1 = emailMsg1 + \"Name = \" +fname+ \" \" +mi+ \" \" +lname+ \", ForeTees username = \" +dupuser+ \", ForeTees webid = \" +dupwebid+ \", MF id = \" +memid+ \"\\n\\n\";\n\n dup = true; // dup member - do not add\n }\n\n }\n pstmt2.close(); // close the stmt\n\n } else { // member found\n\n memFound = true;\n }\n\n //\n // Now, update the member record if existing member\n //\n if (memFound == true) { // if member exists\n\n changed = false; // init change indicator\n\n lname_new = lname_old;\n\n // do not change lname for Saucon Valley if lname_old ends with '_*'\n if (club.equals( \"sauconvalleycc\" ) && lname_old.endsWith(\"_*\")) {\n\n lname = lname_old;\n\n } else if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n\n fname_new = fname_old;\n\n //\n // DO NOT change for select clubs\n //\n if (club.equals( \"pinery\" ) || club.equals( \"bellerive\" ) || club.equals( \"greenhills\" ) || club.equals( \"fairbanksranch\" ) ||\n club.equals( \"baltusrolgc\" ) || club.equals(\"charlottecc\") || club.equals(\"castlepines\")) {\n\n fname = fname_old; // do not change fnames\n\n } else {\n\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n }\n\n mi_new = mi_old;\n\n //\n // DO NOT change middle initial for ClubCorp clubs\n //\n if (clubcorp) {\n\n mi = mi_old;\n\n } else {\n if (!mi_old.equals( mi )) {\n\n mi_new = mi; // set value from MFirst record\n changed = true;\n nameChanged = true;\n }\n }\n\n mship_new = mship_old;\n\n if (!mship.equals( \"\" ) && !mship_old.equals( mship )) {\n\n mship_new = mship; // set value from MFirst record\n changed = true;\n }\n\n mtype_new = mtype_old;\n\n if (club.equals( \"greenhills\" ) || club.equals(\"paloaltohills\") ||\n (club.equals(\"navesinkcc\") && mtype_old.equals(\"Primary Male GP\"))) { // Green Hills - do not change the mtype\n\n mtype = mtype_old;\n\n } else {\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n\n mtype_new = mtype; // set value from MFirst record\n changed = true;\n }\n }\n\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from MFirst record\n changed = true;\n }\n\n ghin_new = ghin_old;\n\n if (!ghin.equals( \"\" ) && !ghin_old.equals( ghin )) {\n\n ghin_new = ghin; // set value from MFirst record\n changed = true;\n }\n\n bag_new = bag_old;\n\n if (!club.equals(\"edina\") && !club.equals(\"edina2010\")) { // never change for Edina\n\n if (!bag.equals( \"\" ) && !bag_old.equals( bag )) {\n\n bag_new = bag; // set value from MFirst record\n changed = true;\n }\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from MFirst record\n changed = true;\n }\n\n email_new = email_old;\n\n if (!club.equals(\"mesaverdecc\")) { // never change for Mesa Verde CC\n\n if (!email_old.equals( email )) { // if MF's email changed or was removed\n\n email_new = email; // set value from MFirst record\n changed = true;\n email_bounce1 = 0; // reset bounced flag\n }\n }\n\n email2_new = email2_old;\n\n if (!club.equals(\"mesaverdecc\")) { // never change for Mesa Verde CC\n\n if (!email2_old.equals( email2 )) { // if MF's email changed or was removed\n\n email2_new = email2; // set value from MFirst record\n changed = true;\n email_bounce2 = 0; // reset bounced flag\n }\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from MFirst record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from MFirst record\n changed = true;\n }\n\n suffix_new = suffix_old;\n\n if (!suffix.equals( \"\" ) && !suffix_old.equals( suffix )) {\n\n suffix_new = suffix; // set value from MFirst record\n changed = true;\n }\n\n birth_new = birth_old;\n\n if (!club.equals(\"fountaingrovegolf\")) { // Don't update birthdates for Fountain Grove\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from MFirst record\n changed = true;\n }\n }\n\n if (!mobile.equals( \"\" )) { // if mobile phone provided\n\n if (phone_new.equals( \"\" )) { // if phone1 is empty\n\n phone_new = mobile; // use mobile number\n changed = true;\n\n } else {\n\n if (phone2_new.equals( \"\" )) { // if phone2 is empty\n\n phone2_new = mobile; // use mobile number\n changed = true;\n }\n }\n }\n\n msub_type_new = msub_type_old;\n\n if (!msub_type.equals( \"\" ) && !msub_type_old.equals( msub_type )) {\n\n msub_type_new = msub_type; // set value from MFirst record\n changed = true;\n }\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // Update our record (always now to set the last_sync_date)\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET username = ?, name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, ghin = ?, bag = ?, birth = ?, posid = ?, msub_type = ?, email2 = ?, phone1 = ?, \" +\n \"phone2 = ?, name_suf = ?, webid = ?, inact = 0, last_sync_date = now(), gender = ?, pri_indicator = ?, \" +\n \"email_bounced = ?, email2_bounced = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid_new);\n pstmt2.setString(2, lname_new);\n pstmt2.setString(3, fname_new);\n pstmt2.setString(4, mi_new);\n pstmt2.setString(5, mship_new);\n pstmt2.setString(6, mtype_new);\n pstmt2.setString(7, email_new);\n pstmt2.setString(8, mNum_new);\n pstmt2.setString(9, ghin_new);\n pstmt2.setString(10, bag_new);\n pstmt2.setInt(11, birth_new);\n pstmt2.setString(12, posid_new);\n pstmt2.setString(13, msub_type_new);\n pstmt2.setString(14, email2_new);\n pstmt2.setString(15, phone_new);\n pstmt2.setString(16, phone2_new);\n pstmt2.setString(17, suffix_new);\n pstmt2.setString(18, webid_new);\n pstmt2.setString(19, gender);\n pstmt2.setInt(20, pri_indicator);\n pstmt2.setInt(21, email_bounce1);\n pstmt2.setInt(22, email_bounce2);\n\n pstmt2.setString(23, memid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n\n } else { // member NOT found - add it if we can\n\n if (dup == false) { // if not duplicate member\n\n //\n // New member is ok - add it\n //\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, webid, \" +\n \"last_sync_date, gender, pri_indicator) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,?,?,?,?,'',?,?, now(),?,?)\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, msub_type);\n pstmt2.setString(17, email2);\n pstmt2.setString(18, phone);\n pstmt2.setString(19, phone2);\n pstmt2.setString(20, suffix);\n pstmt2.setString(21, webid);\n pstmt2.setString(22, gender);\n pstmt2.setInt(23, pri_indicator);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n\n } else { // this member not found, but name already exists\n\n if (dup) {\n errCount++;\n errMsg = errMsg + \"\\n -Dup user found:\\n\" +\n \" new: memid = \" + memid + \" : cur: \" + dupuser + \"\\n\" +\n \" webid = \" + webid + \" : \" + dupwebid + \"\\n\" +\n \" mNum = \" + mNum + \" : \" + dupmnum;\n }\n\n if (club.equals( \"bentwaterclub\" ) && !dupuser.equals(\"\")) {\n\n //\n // Bentwater CC - Duplicate member name found. This is not uncommon for this club.\n // We must accept the member record with the highest priority mship type.\n // Members are property owners and can own multiple properties, each with a\n //\n // Order of Priority:\n // GPM\n // DOP\n // DCC\n // DOC\n // DGC\n // MGM\n // DOM\n // SCM\n // EMP\n // DSS\n // DCL\n // VSG\n // S\n //\n boolean switchMship = false;\n\n if (mship.equals(\"GPM\")) { // if new record has highest mship value\n\n switchMship = true; // update existing record to this mship\n\n } else {\n\n if (mship.equals(\"DOP\")) {\n\n if (!dupmship.equals(\"GPM\")) { // if existing mship is lower than new one\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DCC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\")) { // if existing mship is lower than new one\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DOC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DGC\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"MGM\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\") && !dupmship.equals(\"DGC\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DOM\")) {\n\n if (!dupmship.equals(\"GPM\") && !dupmship.equals(\"DOP\") && !dupmship.equals(\"DCC\") &&\n !dupmship.equals(\"DOC\") && !dupmship.equals(\"DGC\") && !dupmship.equals(\"MGM\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"SCM\")) {\n\n if (dupmship.equals(\"EMP\") || dupmship.equals(\"DSS\") || dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"EMP\")) {\n\n if (dupmship.equals(\"DSS\") || dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DSS\")) {\n\n if (dupmship.equals(\"DCL\") ||\n dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"DCL\")) {\n\n if (dupmship.equals(\"VSG\") || dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n\n } else {\n\n if (mship.equals(\"VSG\")) {\n\n if (dupmship.equals(\"S\")) {\n\n switchMship = true; // update existing record to this mship\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n //\n // If we must switch the mship type, update the existing record to reflect the higher pri mship\n //\n if (switchMship == true) {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET \" +\n \"username = ?, m_ship = ?, memNum = ?, posid = ?, webid = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // use this username so record gets updated correctly next time\n pstmt2.setString(2, mship);\n pstmt2.setString(3, mNum);\n pstmt2.setString(4, posid);\n pstmt2.setString(5, webid);\n pstmt2.setString(6, dupuser); // update existing record - keep username, change others\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n userChanged = true; // indicate username changed\n\n memid_new = memid; // new username\n memid = dupuser; // old username\n fname_new = fname;\n mi_new = mi;\n lname_new = lname;\n }\n\n } // end of IF Bentwater Club and dup user\n }\n } // end of IF Member Found\n\n //\n // Member updated - now see if the username or name changed\n //\n if (userChanged == true || nameChanged == true) { // if username or name changed\n\n //\n // username or name changed - we must update other tables now\n //\n StringBuffer mem_name = new StringBuffer( fname_new ); // get the new first name\n\n if (!mi_new.equals( \"\" )) {\n mem_name.append(\" \" +mi_new); // new mi\n }\n mem_name.append(\" \" +lname_new); // new last name\n\n String newName = mem_name.toString(); // convert to one string\n\n Admin_editmem.updTeecurr(newName, memid_new, memid, con); // update teecurr with new values\n\n Admin_editmem.updTeepast(newName, memid_new, memid, con); // update teepast with new values\n\n Admin_editmem.updLreqs(newName, memid_new, memid, con); // update lreqs with new values\n\n Admin_editmem.updPartner(memid_new, memid, con); // update partner with new values\n\n Admin_editmem.updEvents(newName, memid_new, memid, con); // update evntSignUp with new values\n\n Admin_editmem.updLessons(newName, memid_new, memid, con); // update the lesson books with new values\n }\n }\n catch (Exception e3b) {\n errCount++;\n errMsg = errMsg + \"\\n -Error2 processing roster for \" +club+ \"\\n\" +\n \" line = \" +line+ \": \" + e3b.getMessage(); // build msg\n }\n\n } else {\n\n // Only report errors that AREN'T due to skip == true, since those were handled earlier!\n if (!found) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -MEMBER NOT FOUND!\";\n }\n if (fname.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -FIRST NAME missing!\";\n }\n if (lname.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -LAST NAME missing!\";\n }\n if (memid.equals(\"\")) {\n errCount++;\n errMsg = errMsg + \"\\n\" +\n \" -USERNAME missing!\";\n }\n } // end of IF skip\n\n } // end of IF minimum requirements\n\n } // end of IF tokens\n\n // log any errors and warnings that occurred\n if (errCount > 0) {\n totalErrCount += errCount;\n errList.add(errMemInfo + \"\\n *\" + errCount + \" error(s) found*\" + errMsg + \"\\n\");\n }\n if (warnCount > 0) {\n totalWarnCount += warnCount;\n warnList.add(errMemInfo + \"\\n *\" + warnCount + \" warning(s) found*\" + warnMsg + \"\\n\");\n }\n } // end of while (for each record in club's file)\n\n //\n // Done with this file for this club - now set any members that were excluded from this file inactive\n //\n if (found == true) { // if we processed this club\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET inact = 1 \" +\n \"WHERE last_sync_date != now() AND last_sync_date != '0000-00-00'\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n \n \n //\n // Roster File Found for this club - make sure the roster sync indicator is set in the club table\n //\n setRSind(con, club);\n }\n\n\n //\n // Send an email to us and MF support if any dup names found\n //\n if (sendemail == true) {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host); // set outbound host address\n properties.put(\"mail.smtp.port\", port); // set outbound port\n properties.put(\"mail.smtp.auth\", \"true\"); // set 'use authentication'\n\n Session mailSess = Session.getInstance(properties, SystemUtils.getAuthenticator()); // get session properties\n\n MimeMessage message = new MimeMessage(mailSess);\n\n try {\n\n message.setFrom(new InternetAddress(efrom)); // set from addr\n\n message.setSubject( subject ); // set subject line\n message.setSentDate(new java.util.Date()); // set date/time sent\n }\n catch (Exception ignore) {\n }\n\n //message.addRecipient(Message.RecipientType.TO, new InternetAddress(emailFT)); // set our support email addr\n\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(emailMF)); // add MF email addr\n\n emailMsg1 = emailMsg1 + emailMsg2; // add trailer msg\n\n try {\n message.setText( emailMsg1 ); // put msg in email text area\n\n Transport.send(message); // send it!!\n }\n catch (Exception ignore) {\n }\n\n }\n\n }\n catch (Exception e3) {\n\n errorMsg = errorMsg + \" Error processing roster for \" +club+ \": \" + e3.getMessage() + \"\\n\"; // build msg\n SystemUtils.logError(errorMsg); // log it\n }\n\n // Print error and warning count totals to error log\n SystemUtils.logErrorToFile(\"\" +\n \"Total Errors Found: \" + totalErrCount + \"\\n\" +\n \"Total Warnings Found: \" + totalWarnCount + \"\\n\", club, true);\n\n // Print errors and warnings to error log\n if (totalErrCount > 0) {\n SystemUtils.logErrorToFile(\"\" +\n \"********************************************************************\\n\" +\n \"****ERRORS FOR \" + club + \" (Member WAS NOT synced!)\\n\" +\n \"********************************************************************\\n\", club, true);\n while (errList.size() > 0) {\n SystemUtils.logErrorToFile(errList.remove(0), club, true);\n }\n }\n if (totalWarnCount > 0) {\n SystemUtils.logErrorToFile(\"\" +\n \"********************************************************************\\n\" +\n \"****WARNINGS FOR \" + club + \" (Member MAY NOT have synced!)\\n\" +\n \"********************************************************************\\n\", club, true);\n while (warnList.size() > 0) {\n SystemUtils.logErrorToFile(warnList.remove(0), club, true);\n }\n }\n\n // Print end tiem to error log\n SystemUtils.logErrorToFile(\"End time: \" + new java.util.Date().toString() + \"\\n\", club, true);\n \n }", "int insertSelective(ROmUsers record);", "private static void flexSync(Connection con, InputStreamReader isr, String club) {\n\n PreparedStatement pstmt2 = null;\n Statement stmt = null;\n ResultSet rs = null;\n\n\n Member member = new Member();\n\n String line = \"\";\n String password = \"\";\n String temp = \"\";\n\n int i = 0;\n\n // Values from Flexscape records\n //\n String fname = \"\";\n String lname = \"\";\n String mi = \"\";\n String suffix = \"\";\n String posid = \"\";\n String gender = \"\";\n String ghin = \"\";\n String memid = \"\";\n String webid = \"\";\n String mNum = \"\";\n String u_hndcp = \"\";\n String c_hndcp = \"\";\n String mship = \"\";\n String mtype = \"\";\n String bag = \"\";\n String email = \"\";\n String email2 = \"\";\n String phone = \"\";\n String phone2 = \"\";\n String mobile = \"\";\n String primary = \"\";\n String active = \"\";\n\n String mship2 = \"\"; // used to tell if match was found\n\n float u_hcap = 0;\n float c_hcap = 0;\n int birth = 0;\n\n // Values from ForeTees records\n //\n String fname_old = \"\";\n String lname_old = \"\";\n String mi_old = \"\";\n String mship_old = \"\";\n String mtype_old = \"\";\n String email_old = \"\";\n String mNum_old = \"\";\n String ghin_old = \"\";\n String bag_old = \"\";\n String posid_old = \"\";\n String email2_old = \"\";\n String phone_old = \"\";\n String phone2_old = \"\";\n String suffix_old = \"\";\n String memid_old = \"\";\n\n float u_hcap_old = 0;\n float c_hcap_old = 0;\n int birth_old = 0;\n\n // Values for New ForeTees records\n //\n String fname_new = \"\";\n String lname_new = \"\";\n String mi_new = \"\";\n String mship_new = \"\";\n String mtype_new = \"\";\n String email_new = \"\";\n String mNum_new = \"\";\n String ghin_new = \"\";\n String bag_new = \"\";\n String posid_new = \"\";\n String email2_new = \"\";\n String phone_new = \"\";\n String phone2_new = \"\";\n String suffix_new = \"\";\n String memid_new = \"\";\n String last_mship = \"\";\n String last_mnum = \"\";\n\n float u_hcap_new = 0;\n float c_hcap_new = 0;\n int birth_new = 0;\n int rcount = 0;\n int newCount = 0;\n int modCount = 0;\n int work = 0;\n\n String errorMsg = \"Error in Common_sync.flexSync: \";\n\n boolean failed = false;\n boolean changed = false;\n boolean skip = false;\n boolean headerFound = false;\n boolean found = false;\n boolean memidChanged = false;\n\n\n SystemUtils.logErrorToFile(\"FlexScape: Error log for \" + club + \"\\nStart time: \" + new java.util.Date().toString() + \"\\n\", club, false);\n\n try {\n\n BufferedReader br = new BufferedReader(isr);\n\n while (true) {\n\n line = br.readLine();\n\n if (line == null) {\n break;\n }\n\n // Skip the 1st row (header row)\n\n if (headerFound == false) {\n\n headerFound = true;\n\n } else {\n\n skip = false;\n found = false; // default to club NOT found\n\n //\n // *********************************************************************\n //\n // The following will be dependent on the club - customized\n //\n // *********************************************************************\n //\n if (club.equals( \"fourbridges\" )) {\n\n found = true; // club found\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord4( line );\n line = cleanRecord2( line );\n\n rcount++; // count the records\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 10 ) { // enough data ?\n\n webid = tok.nextToken();\n memid = tok.nextToken();\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n gender = tok.nextToken();\n email = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n temp = tok.nextToken();\n primary = tok.nextToken();\n\n mNum = \"\";\n suffix = \"\";\n mship = \"\";\n mtype = \"\";\n email2 = \"\";\n bag = \"\";\n ghin = \"\";\n u_hndcp = \"\";\n c_hndcp = \"\";\n posid = \"\";\n mobile = \"\";\n active = \"\";\n\n //\n // Check for ? (not provided)\n //\n if (webid.equals( \"?\" )) {\n\n webid = \"\";\n }\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (gender.equals( \"?\" )) {\n\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (temp.equals( \"?\" ) || temp.equals( \"0\" )) {\n\n temp = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!webid.equals( \"\" ) && !memid.equals( \"\" ) && !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 ) {\n\n mi = tok.nextToken(); // over-write mi if already there\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n\n } else { // sufix after last name ?\n\n if ( tok.countTokens() > 0 ) {\n\n suffix = tok.nextToken();\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n\n //\n // convert birth date (mm/dd/yyyy to yyyymmdd)\n //\n birth = 0;\n\n if (!temp.equals( \"\" )) {\n\n String b1 = \"\";\n String b2 = \"\";\n String b3 = \"\";\n int mm = 0;\n int dd = 0;\n int yy = 0;\n\n tok = new StringTokenizer( temp, \"/-\" ); // delimiters are / & -\n\n if ( tok.countTokens() > 2 ) {\n\n b1 = tok.nextToken();\n b2 = tok.nextToken();\n b3 = tok.nextToken();\n\n mm = Integer.parseInt(b1);\n dd = Integer.parseInt(b2);\n yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n\n } else { // try 'Jan 20, 1951' format\n\n tok = new StringTokenizer( temp, \", \" ); // delimiters are comma and space\n\n if ( tok.countTokens() > 2 ) {\n\n b1 = tok.nextToken();\n b2 = tok.nextToken();\n b3 = tok.nextToken();\n\n if (b1.startsWith( \"Jan\" )) {\n mm = 1;\n } else {\n if (b1.startsWith( \"Feb\" )) {\n mm = 2;\n } else {\n if (b1.startsWith( \"Mar\" )) {\n mm = 3;\n } else {\n if (b1.startsWith( \"Apr\" )) {\n mm = 4;\n } else {\n if (b1.startsWith( \"May\" )) {\n mm = 5;\n } else {\n if (b1.startsWith( \"Jun\" )) {\n mm = 6;\n } else {\n if (b1.startsWith( \"Jul\" )) {\n mm = 7;\n } else {\n if (b1.startsWith( \"Aug\" )) {\n mm = 8;\n } else {\n if (b1.startsWith( \"Sep\" )) {\n mm = 9;\n } else {\n if (b1.startsWith( \"Oct\" )) {\n mm = 10;\n } else {\n if (b1.startsWith( \"Nov\" )) {\n mm = 11;\n } else {\n if (b1.startsWith( \"Dec\" )) {\n mm = 12;\n } else {\n mm = Integer.parseInt(b1);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n dd = Integer.parseInt(b2);\n yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n }\n }\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n\n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n //\n // Determine if we should process this record\n //\n if (!webid.equals( \"\" )) { // must have a webid\n\n mNum = memid;\n\n if (mNum.endsWith( \"A\" ) || mNum.endsWith( \"a\" ) || mNum.endsWith( \"B\" ) || mNum.endsWith( \"b\" ) ||\n mNum.endsWith( \"C\" ) || mNum.endsWith( \"c\" ) || mNum.endsWith( \"D\" ) || mNum.endsWith( \"d\" ) ||\n mNum.endsWith( \"E\" ) || mNum.endsWith( \"e\" ) || mNum.endsWith( \"F\" ) || mNum.endsWith( \"f\" )) {\n\n mNum = stripA(mNum);\n }\n\n posid = mNum;\n\n\n //\n // Use a version of the webid for our username value. We cannot use the mNum for this because the mNum can\n // change at any time (when their mship changes). The webid does not change for members.\n //\n memid = \"100\" + webid; // use 100xxxx so username will never match any old usernames that were originally\n // based on mNums!!\n\n\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n }\n if (primary.equals( \"\" )) {\n\n primary = \"0\";\n }\n\n //\n // Determine mtype value\n //\n if (gender.equalsIgnoreCase( \"M\" )) {\n\n mtype = \"Primary Male\";\n\n if (primary.equalsIgnoreCase( \"1\" )) {\n\n mtype = \"Spouse Male\";\n\n }\n\n } else {\n\n mtype = \"Primary Female\";\n\n if (primary.equalsIgnoreCase( \"1\" )) {\n\n mtype = \"Spouse Female\";\n\n }\n }\n\n //\n // Determine mship value\n //\n work = Integer.parseInt(mNum); // create int for compares\n\n mship = \"\";\n\n if (work < 1000) { // 0001 - 0999 (see 7xxx below also)\n\n mship = \"Full Family Golf\";\n\n } else {\n\n if (work < 1500) { // 1000 - 1499\n\n mship = \"Individual Golf\";\n\n } else {\n\n if (work < 2000) { // 1500 - 1999\n\n mship = \"Individual Golf Plus\";\n\n } else {\n\n if (work > 2999 && work < 4000) { // 3000 - 3999\n\n mship = \"Corporate Golf\";\n\n } else {\n\n if (work > 3999 && work < 5000) { // 4000 - 4999\n\n mship = \"Sports\";\n\n } else {\n\n if (work > 6499 && work < 6600) { // 6500 - 6599\n\n mship = \"Player Development\";\n\n } else {\n\n if (work > 7002 && work < 7011) { // 7003 - 7010\n\n mship = \"Harpors Point\";\n\n if (work == 7004 || work == 7008 || work == 7009) { // 7004, 7008 or 7009\n\n mship = \"Full Family Golf\";\n }\n\n } else {\n\n if (work > 8999 && work < 10000) { // 9000 - 9999\n\n mship = \"Employees\";\n mtype = \"Employee\"; // override mtype for employees\n }\n }\n }\n }\n }\n }\n }\n }\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip record if mship not one of above\n SystemUtils.logErrorToFile(\"MSHIP MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, \"fourbridges\", true);\n }\n\n } else {\n\n skip = true; // skip record if webid not provided\n SystemUtils.logErrorToFile(\"WEBID MISSING - SKIPPED\", \"fourbridges\", true);\n }\n\n } else {\n\n skip = true; // skip record if memid or name not provided\n SystemUtils.logErrorToFile(\"USERNAME/NAME MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + memid, \"fourbridges\", true);\n\n } // end of IF minimum requirements met (memid, etc)\n\n\n\n //\n //******************************************************************\n // Common processing - add or update the member record\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n memid_old = \"\";\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n posid_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n birth_old = 0;\n\n memidChanged = false;\n changed = false;\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if(rs.next()) {\n\n memid_old = rs.getString(\"username\");\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n }\n pstmt2.close(); // close the stmt\n\n if (!fname_old.equals( \"\" )) { // if member found\n\n changed = false; // init change indicator\n\n memid_new = memid_old;\n\n if (!memid.equals( memid_old )) { // if username has changed\n\n memid_new = memid; // use new memid\n changed = true;\n memidChanged = true;\n }\n\n lname_new = lname_old;\n\n if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from Flexscape record\n changed = true;\n }\n\n fname_new = fname_old;\n\n fname = fname_old; // DO NOT change first names\n\n/*\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from Flexscape record\n changed = true;\n }\n*/\n\n mi_new = mi_old;\n\n if (!mi.equals( \"\" ) && !mi_old.equals( mi )) {\n\n mi_new = mi; // set value from Flexscape record\n changed = true;\n }\n\n mship_new = mship_old;\n\n if (mship_old.startsWith( \"Founding\" )) { // do not change if Founding ....\n\n mship = mship_old;\n\n } else {\n\n if (!mship_old.equals( mship )) { // if the mship has changed\n\n mship_new = mship; // set value from Flexscape record\n changed = true;\n }\n }\n\n mtype_new = mtype_old;\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n\n mtype_new = mtype; // set value from Flexscape record\n changed = true;\n }\n\n birth_new = birth_old;\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from Flexscape record\n changed = true;\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from Flexscape record\n changed = true;\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from Flexscape record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from Flexscape record\n changed = true;\n }\n\n email_new = email_old; // do not change emails\n email2_new = email2_old;\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // NOTE: mNums can change for this club!!\n //\n // DO NOT change the webid!!!!!!!!!\n //\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from Flexscape record\n\n //\n // mNum changed - change it for all records that match the old mNum.\n // This is because most dependents are not included in web site roster,\n // but are in our roster.\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET memNum = ? \" +\n \"WHERE memNum = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, mNum_new);\n pstmt2.setString(2, mNum_old);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n\n\n //\n // Update our record\n //\n if (changed == true) {\n\n modCount++; // count records changed\n }\n\n try {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET username = ?, name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, birth = ?, posid = ?, phone1 = ?, \" +\n \"phone2 = ?, inact = 0, last_sync_date = now(), gender = ? \" +\n \"WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid_new);\n pstmt2.setString(2, lname_new);\n pstmt2.setString(3, fname_new);\n pstmt2.setString(4, mi_new);\n pstmt2.setString(5, mship_new);\n pstmt2.setString(6, mtype_new);\n pstmt2.setString(7, email_new);\n pstmt2.setString(8, mNum_new);\n pstmt2.setInt(9, birth_new);\n pstmt2.setString(10, posid_new);\n pstmt2.setString(11, phone_new);\n pstmt2.setString(12, phone2_new);\n pstmt2.setString(13, gender);\n pstmt2.setString(14, webid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n }\n catch (Exception e9) {\n\n errorMsg = errorMsg + \" Error updating record (#\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e9.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"UPDATE MYSQL ERROR!\", \"fourbridges\", true);\n }\n\n\n //\n // Now, update other tables if the username has changed\n //\n if (memidChanged == true) {\n\n StringBuffer mem_name = new StringBuffer( fname_new ); // get the new first name\n\n if (!mi_new.equals( \"\" )) {\n mem_name.append(\" \" +mi_new); // new mi\n }\n mem_name.append(\" \" +lname_new); // new last name\n\n String newName = mem_name.toString(); // convert to one string\n\n Admin_editmem.updTeecurr(newName, memid_new, memid_old, con); // update teecurr with new values\n\n Admin_editmem.updTeepast(newName, memid_new, memid_old, con); // update teepast with new values\n\n Admin_editmem.updLreqs(newName, memid_new, memid_old, con); // update lreqs with new values\n\n Admin_editmem.updPartner(memid_new, memid_old, con); // update partner with new values\n\n Admin_editmem.updEvents(newName, memid_new, memid_old, con); // update evntSignUp with new values\n\n Admin_editmem.updLessons(newName, memid_new, memid_old, con); // update the lesson books with new values\n }\n\n\n } else {\n\n //\n // New member - first check if name already exists\n //\n boolean dup = false;\n\n pstmt2 = con.prepareStatement (\n \"SELECT username FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n dup = true;\n }\n pstmt2.close(); // close the stmt\n\n if (dup == false) {\n\n //\n // New member - add it\n //\n newCount++; // count records added\n\n try {\n\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, \" +\n \"webid, last_sync_date, gender) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,'',?,?,?,'',?,?,now(),?)\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, email2);\n pstmt2.setString(17, phone);\n pstmt2.setString(18, phone2);\n pstmt2.setString(19, suffix);\n pstmt2.setString(20, webid);\n pstmt2.setString(21, gender);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n\n }\n catch (Exception e8) {\n\n errorMsg = errorMsg + \" Error adding record (#\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e8.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"INSERT MYSQL ERROR!\", \"fourbridges\", true);\n }\n\n } else { // Dup name\n\n // errorMsg = errorMsg + \" Duplicate Name found, name = \" +fname+ \" \" +lname+ \", record #\" +rcount+ \" for \" +club+ \", line = \" +line; // build msg\n // SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"DUPLICATE NAME!\", \"fourbridges\", true);\n }\n }\n\n } // end of IF skip\n\n } // end of IF record valid (enough tokens)\n\n } else { // end of IF club = fourbridges\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord4( line );\n line = cleanRecord2( line );\n\n rcount++; // count the records\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 10 ) { // enough data ?\n\n webid = tok.nextToken();\n memid = tok.nextToken();\n tok.nextToken(); // eat this value, not used\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n gender = tok.nextToken();\n email = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n temp = tok.nextToken();\n primary = tok.nextToken();\n mship = tok.nextToken();\n\n mNum = \"\";\n suffix = \"\";\n mtype = \"\";\n email2 = \"\";\n bag = \"\";\n ghin = \"\";\n u_hndcp = \"\";\n c_hndcp = \"\";\n posid = \"\";\n mobile = \"\";\n active = \"\";\n\n //\n // Check for ? (not provided)\n //\n if (webid.equals( \"?\" )) {\n\n webid = \"\";\n }\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (mship.equals( \"?\" )) {\n\n mship = \"\";\n }\n if (gender.equals( \"?\" )) {\n\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (temp.equals( \"?\" ) || temp.equals( \"0\" )) {\n\n temp = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!webid.equals( \"\" ) && !memid.equals( \"\" ) && !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 ) {\n\n mi = tok.nextToken(); // over-write mi if already there\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n\n } else { // sufix after last name ?\n\n if ( tok.countTokens() > 0 ) {\n\n suffix = tok.nextToken();\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n\n //\n // convert birth date (mm/dd/yyyy to yyyymmdd)\n //\n birth = 0;\n\n if (!temp.equals( \"\" )) {\n\n String b1 = \"\";\n String b2 = \"\";\n String b3 = \"\";\n int mm = 0;\n int dd = 0;\n int yy = 0;\n\n tok = new StringTokenizer( temp, \"/-\" ); // delimiters are / & -\n\n if ( tok.countTokens() > 2 ) {\n\n b1 = tok.nextToken();\n b2 = tok.nextToken();\n b3 = tok.nextToken();\n\n mm = Integer.parseInt(b1);\n dd = Integer.parseInt(b2);\n yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n\n } else { // try 'Jan 20, 1951' format\n\n tok = new StringTokenizer( temp, \", \" ); // delimiters are comma and space\n\n if ( tok.countTokens() > 2 ) {\n\n b1 = tok.nextToken();\n b2 = tok.nextToken();\n b3 = tok.nextToken();\n\n if (b1.startsWith( \"Jan\" )) {\n mm = 1;\n } else {\n if (b1.startsWith( \"Feb\" )) {\n mm = 2;\n } else {\n if (b1.startsWith( \"Mar\" )) {\n mm = 3;\n } else {\n if (b1.startsWith( \"Apr\" )) {\n mm = 4;\n } else {\n if (b1.startsWith( \"May\" )) {\n mm = 5;\n } else {\n if (b1.startsWith( \"Jun\" )) {\n mm = 6;\n } else {\n if (b1.startsWith( \"Jul\" )) {\n mm = 7;\n } else {\n if (b1.startsWith( \"Aug\" )) {\n mm = 8;\n } else {\n if (b1.startsWith( \"Sep\" )) {\n mm = 9;\n } else {\n if (b1.startsWith( \"Oct\" )) {\n mm = 10;\n } else {\n if (b1.startsWith( \"Nov\" )) {\n mm = 11;\n } else {\n if (b1.startsWith( \"Dec\" )) {\n mm = 12;\n } else {\n mm = Integer.parseInt(b1);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n dd = Integer.parseInt(b2);\n yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n }\n }\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n\n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n\n //*********************************************\n // Start of club specific processing\n //*********************************************\n\n\n //******************************************************************\n // Ocean Reef - oceanreef\n //******************************************************************\n //\n if (club.equals( \"oceanreef\" )) {\n\n found = true; // club found\n \n //\n // Determine if we should process this record\n //\n if (!webid.equals( \"\" )) { // must have a webid\n\n mNum = memid;\n //\n\n posid = mNum;\n\n\n if (primary.equals( \"\" )) {\n\n primary = \"0\";\n }\n\n if (mNum.endsWith(\"-000\")) {\n primary = \"0\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Primary Female\";\n } else {\n gender = \"M\";\n mtype = \"Primary Male\";\n }\n } else if (mNum.endsWith(\"-001\")) {\n primary = \"1\";\n if (gender.equalsIgnoreCase(\"M\")) {\n mtype = \"Spouse Male\";\n } else {\n gender = \"F\";\n mtype = \"Spouse Female\";\n }\n } else if (mNum.endsWith(\"-002\")) {\n primary = \"2\";\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Family Female\";\n } else {\n gender = \"M\";\n mtype = \"Family Male\";\n }\n } else {\n skip = true;\n SystemUtils.logErrorToFile(\"DEPENDENT MSHIP - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, \"oceanreef\", true);\n }\n\n mNum = mNum.substring(0, mNum.length() - 4);\n\n if (mship.equals(\"100\") || mship.equals(\"105\") || mship.equals(\"109\") || mship.equals(\"110\") || mship.equals(\"115\") ||\n mship.equals(\"150\") || mship.equals(\"159\") || mship.equals(\"160\") || mship.equals(\"180\") || mship.equals(\"199\") ||\n mship.equals(\"300\") || mship.equals(\"360\")) {\n mship = \"Social\";\n } else if (mship.equals(\"101\")) {\n mship = \"Multi-Game Card\";\n } else if (mship.equals(\"102\")) {\n mship = \"Summer Option\";\n } else if (mship.equals(\"130\")) {\n mship = \"Social Legacy\";\n } else if (mship.equals(\"400\") || mship.equals(\"450\") || mship.equals(\"460\") || mship.equals(\"480\")) {\n mship = \"Charter\";\n } else if (mship.equals(\"420\") || mship.equals(\"430\")) {\n mship = \"Charter Legacy\";\n } else if (mship.equals(\"401\")) {\n mship = \"Charter w/Trail Pass\";\n } else if (mship.equals(\"500\") || mship.equals(\"540\") || mship.equals(\"580\")) {\n mship = \"Patron\";\n } else if (mship.equals(\"520\") || mship.equals(\"530\")) {\n mship = \"Patron Legacy\";\n } else if (mship.equals(\"800\") || mship.equals(\"801\") || mship.equals(\"860\") || mship.equals(\"880\")) {\n mship = \"Other\";\n } else {\n skip = true;\n SystemUtils.logErrorToFile(\"MSHIP NON-GOLF OR UNKNOWN TYPE - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, club, true);\n }\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip record if mship not one of above\n SystemUtils.logErrorToFile(\"MSHIP MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, club, true);\n }\n\n } else {\n\n skip = true; // skip record if webid not provided\n SystemUtils.logErrorToFile(\"WEBID MISSING - SKIPPED\", club, true);\n }\n } // end of if oceanreef\n\n\n //******************************************************************\n // Colorado Springs CC - coloradospringscountryclub\n //******************************************************************\n //\n if (club.equals( \"coloradospringscountryclub\" )) {\n\n found = true; // club found\n\n //\n // Determine if we should process this record\n //\n if (mship.equals( \"\" )) {\n\n skip = true; // skip record if mship not one of above\n SystemUtils.logErrorToFile(\"MSHIP MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + work, club, true);\n \n } else if (webid.equals(\"\")) {\n\n skip = true; // skip record if webid not provided\n SystemUtils.logErrorToFile(\"WEBID MISSING - SKIPPED\", club, true);\n \n } else {\n\n while (memid.startsWith(\"0\")) {\n memid = memid.substring(1);\n }\n\n mNum = memid;\n\n posid = mNum;\n\n while (posid.length() < 8) {\n posid = \"0\" + posid;\n }\n\n primary = mNum.substring(mNum.length() - 1);\n\n if (mNum.endsWith(\"-000\") || mNum.endsWith(\"-001\")) {\n\n if (gender.equalsIgnoreCase(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n\n } else if (mNum.endsWith(\"-002\") || mNum.endsWith(\"-003\") || mNum.endsWith(\"-004\") || mNum.endsWith(\"-005\") ||\n mNum.endsWith(\"-006\") || mNum.endsWith(\"-007\") || mNum.endsWith(\"-008\") || mNum.endsWith(\"-009\")) {\n\n mtype = \"Youth\";\n }\n\n mNum = mNum.substring(0, mNum.length() - 4);\n\n if (mship.equalsIgnoreCase(\"Recreational\") || mship.equalsIgnoreCase(\"Clubhouse\")) {\n\n skip = true; // skip record if webid not provided\n SystemUtils.logErrorToFile(\"NON-GOLF MEMBERSHIP TYPE - SKIPPED\", club, true);\n }\n \n }\n } // end of if coloradospringscountryclub\n\n //*********************************************\n // End of club specific processing\n //*********************************************\n\n } else {\n\n skip = true; // skip record if memid or name not provided\n SystemUtils.logErrorToFile(\"USERNAME/NAME MISSING - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + memid, club, true);\n\n } // end of IF minimum requirements met (memid, etc)\n\n\n\n //\n //******************************************************************\n // Common processing - add or update the member record\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n memid_old = \"\";\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n posid_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n birth_old = 0;\n\n memidChanged = false;\n changed = false;\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if(rs.next()) {\n\n memid_old = rs.getString(\"username\");\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n }\n pstmt2.close(); // close the stmt\n\n if (!fname_old.equals( \"\" )) { // if member found\n\n changed = false; // init change indicator\n\n memid_new = memid_old;\n\n if (!memid.equals( memid_old )) { // if username has changed\n\n memid_new = memid; // use new memid\n changed = true;\n memidChanged = true;\n }\n\n lname_new = lname_old;\n\n if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from Flexscape record\n changed = true;\n }\n\n fname_new = fname_old;\n\n fname = fname_old; // DO NOT change first names\n\n/*\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from Flexscape record\n changed = true;\n }\n*/\n mi_new = mi_old;\n\n if (!mi.equals( \"\" ) && !mi_old.equals( mi )) {\n\n mi_new = mi; // set value from Flexscape record\n changed = true;\n }\n\n mship_new = mship_old;\n\n if (!mship_old.equals( mship )) { // if the mship has changed\n\n mship_new = mship; // set value from Flexscape record\n changed = true;\n }\n\n mtype_new = mtype_old;\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n mtype_new = mtype; // set value from Flexscape record\n changed = true;\n }\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from Flexscape record\n changed = true;\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from Flexscape record\n changed = true;\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from Flexscape record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from Flexscape record\n changed = true;\n }\n\n email_new = email_old; // do not change emails\n email2_new = email2_old;\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // NOTE: mNums can change for this club!!\n //\n // DO NOT change the webid!!!!!!!!!\n //\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from Flexscape record\n\n //\n // mNum changed - change it for all records that match the old mNum.\n // This is because most dependents are not included in web site roster,\n // but are in our roster.\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET memNum = ? \" +\n \"WHERE memNum = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, mNum_new);\n pstmt2.setString(2, mNum_old);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n\n\n //\n // Update our record\n //\n if (changed == true) {\n\n modCount++; // count records changed\n }\n\n try {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET username = ?, name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, birth = ?, posid = ?, phone1 = ?, \" +\n \"phone2 = ?, inact = 0, last_sync_date = now(), gender = ? \" +\n \"WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid_new);\n pstmt2.setString(2, lname_new);\n pstmt2.setString(3, fname_new);\n pstmt2.setString(4, mi_new);\n pstmt2.setString(5, mship_new);\n pstmt2.setString(6, mtype_new);\n pstmt2.setString(7, email_new);\n pstmt2.setString(8, mNum_new);\n pstmt2.setInt(9, birth_new);\n pstmt2.setString(10, posid_new);\n pstmt2.setString(11, phone_new);\n pstmt2.setString(12, phone2_new);\n pstmt2.setString(13, gender);\n pstmt2.setString(14, webid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n }\n catch (Exception e9) {\n\n errorMsg = errorMsg + \" Error updating record (#\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e9.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"UPDATE MYSQL ERROR!\", club, true);\n }\n\n\n //\n // Now, update other tables if the username has changed\n //\n if (memidChanged == true) {\n\n StringBuffer mem_name = new StringBuffer( fname_new ); // get the new first name\n\n if (!mi_new.equals( \"\" )) {\n mem_name.append(\" \" +mi_new); // new mi\n }\n mem_name.append(\" \" +lname_new); // new last name\n\n String newName = mem_name.toString(); // convert to one string\n\n Admin_editmem.updTeecurr(newName, memid_new, memid_old, con); // update teecurr with new values\n\n Admin_editmem.updTeepast(newName, memid_new, memid_old, con); // update teepast with new values\n\n Admin_editmem.updLreqs(newName, memid_new, memid_old, con); // update lreqs with new values\n\n Admin_editmem.updPartner(memid_new, memid_old, con); // update partner with new values\n\n Admin_editmem.updEvents(newName, memid_new, memid_old, con); // update evntSignUp with new values\n\n Admin_editmem.updLessons(newName, memid_new, memid_old, con); // update the lesson books with new values\n }\n\n\n } else {\n\n //\n // New member - first check if name already exists\n //\n boolean dup = false;\n\n pstmt2 = con.prepareStatement (\n \"SELECT username FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n dup = true;\n }\n pstmt2.close(); // close the stmt\n\n if (dup == false) {\n\n //\n // New member - add it\n //\n newCount++; // count records added\n\n try {\n\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, \" +\n \"webid, last_sync_date, gender) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,'',?,?,?,'',?,?,now(),?)\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, email2);\n pstmt2.setString(17, phone);\n pstmt2.setString(18, phone2);\n pstmt2.setString(19, suffix);\n pstmt2.setString(20, webid);\n pstmt2.setString(21, gender);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n\n }\n catch (Exception e8) {\n\n errorMsg = errorMsg + \" Error adding record (#\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e8.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"INSERT MYSQL ERROR! - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + memid, club, true);\n }\n\n } else { // Dup name\n\n // errorMsg = errorMsg + \" Duplicate Name found, name = \" +fname+ \" \" +lname+ \", record #\" +rcount+ \" for \" +club+ \", line = \" +line; // build msg\n // SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n SystemUtils.logErrorToFile(\"DUPLICATE NAME! - SKIPPED - name: \" + lname + \", \" + fname + \" - \" + memid, club, true);\n }\n }\n } // end of IF skip\n } // end of IF record valid (enough tokens)\n }\n\n/*\n // FIX the mship types and have them add gender!!!!!!!!!!!!!!!!!!!!!!!!\n //\n // Scitot Reserve\n //\n if (club.equals( \"sciotoreserve\" )) {\n\n found = true; // club found\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord2( line );\n\n rcount++; // count the records\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 10 ) { // enough data ?\n\n webid = tok.nextToken();\n memid = tok.nextToken();\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n gender = tok.nextToken();\n email = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n temp = tok.nextToken();\n primary = tok.nextToken();\n\n mNum = \"\";\n suffix = \"\";\n mship = \"\";\n mtype = \"\";\n email2 = \"\";\n bag = \"\";\n ghin = \"\";\n u_hndcp = \"\";\n c_hndcp = \"\";\n posid = \"\";\n mobile = \"\";\n active = \"\";\n\n //\n // Check for ? (not provided)\n //\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (gender.equals( \"?\" )) {\n\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (temp.equals( \"?\" ) || temp.equals( \"0\" )) {\n\n temp = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!memid.equals( \"\" ) && !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 ) {\n\n mi = tok.nextToken(); // over-write mi if already there\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n\n } else { // sufix after last name ?\n\n if ( tok.countTokens() > 0 ) {\n\n suffix = tok.nextToken();\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n\n //\n // convert birth date (mm/dd/yyyy to yyyymmdd)\n //\n if (!temp.equals( \"\" )) {\n\n tok = new StringTokenizer( temp, \"/-\" ); // delimiters are / & -\n\n String b1 = tok.nextToken();\n String b2 = tok.nextToken();\n String b3 = tok.nextToken();\n\n int mm = Integer.parseInt(b1);\n int dd = Integer.parseInt(b2);\n int yy = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n\n } else {\n\n birth = 0;\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n\n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n //\n // Determine if we should process this record\n //\n if (!webid.equals( \"\" )) { // must have a webid\n\n mNum = memid;\n\n posid = memid;\n\n //\n // Strip any leading zeros and extension from mNum\n //\n while (mNum.startsWith( \"0\" )) { // if starts with a zero\n\n mNum = remZeroS(mNum); // remove the leading zero\n }\n\n memid = mNum; // use mNum for username !!\n\n\n if (gender.equals( \"\" )) {\n\n gender = \"M\";\n }\n if (primary.equals( \"\" )) {\n\n primary = \"0\";\n }\n\n //\n // Determine mtype value\n //\n if (gender.equalsIgnoreCase( \"M\" )) {\n\n if (primary.equalsIgnoreCase( \"0\" )) {\n\n mtype = \"Main Male\";\n\n } else {\n\n if (primary.equalsIgnoreCase( \"1\" )) {\n\n mtype = \"Spouse Male\";\n\n } else {\n\n mtype = \"Junior Male\";\n }\n }\n\n } else { // Female\n\n if (primary.equalsIgnoreCase( \"0\" )) {\n\n mtype = \"Main Female\";\n\n } else {\n\n if (primary.equalsIgnoreCase( \"1\" )) {\n\n mtype = \"Spouse Female\";\n\n } else {\n\n mtype = \"Junior Female\";\n }\n }\n }\n\n //\n // Determine mship value ?????????????????\n //\n work = Integer.parseInt(mNum); // create int for compares\n\n mship = \"\";\n\n if (work < 1000) { // 0001 - 0999 (see 7xxx below also)\n\n mship = \"Full Family Golf\";\n\n } else {\n\n if (work < 1500) { // 1000 - 1499\n\n mship = \"Individual Golf\";\n\n } else {\n\n if (work < 2000) { // 1500 - 1999\n\n mship = \"Individual Golf Plus\";\n\n } else {\n\n if (work > 2999 && work < 4000) { // 3000 - 3999\n\n mship = \"Corporate Golf\";\n\n } else {\n\n if (work > 3999 && work < 5000) { // 4000 - 4999\n\n mship = \"Sports\";\n\n } else {\n\n if (work > 6499 && work < 6600) { // 6500 - 6599\n\n mship = \"Player Development\";\n\n } else {\n\n if (work > 7002 && work < 7011) { // 7003 - 7010\n\n mship = \"Harpors Point\";\n\n if (work == 7004 || work == 7008 || work == 7009) { // 7004, 7008 or 7009\n\n mship = \"Full Family Golf\";\n }\n\n } else {\n\n if (work > 8999 && work < 10000) { // 9000 - 9999\n\n mship = \"Employees\";\n mtype = \"Employee\"; // override mtype for employees\n }\n }\n }\n }\n }\n }\n }\n }\n\n if (mship.equals( \"\" )) {\n\n skip = true; // skip record if mship not one of above\n }\n\n } else {\n\n skip = true; // skip record if webid not provided\n }\n\n } else {\n\n skip = true; // skip record if memid or name not provided\n\n } // end of IF minimum requirements met (memid, etc)\n\n\n\n //\n //******************************************************************\n // Common processing - add or update the member record\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n posid_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n birth_old = 0;\n\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, webid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if(rs.next()) {\n\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n }\n pstmt2.close(); // close the stmt\n\n if (!fname_old.equals( \"\" )) { // if member found\n\n changed = false; // init change indicator\n\n lname_new = lname_old;\n\n if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from Flexscape record\n changed = true;\n }\n\n fname_new = fname_old;\n\n fname = fname_old; // DO NOT change first names\n\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from Flexscape record\n changed = true;\n }\n\n mi_new = mi_old;\n\n if (!mi.equals( \"\" ) && !mi_old.equals( mi )) {\n\n mi_new = mi; // set value from Flexscape record\n changed = true;\n }\n\n mship_new = mship_old;\n\n if (mship_old.startsWith( \"Founding\" )) { // do not change if Founding ....\n\n mship = mship_old;\n\n } else {\n\n if (!mship_old.equals( mship )) { // if the mship has changed\n\n mship_new = mship; // set value from Flexscape record\n changed = true;\n }\n }\n\n mtype_new = mtype_old;\n\n if (!mtype.equals( \"\" ) && !mtype_old.equals( mtype )) {\n\n mtype_new = mtype; // set value from Flexscape record\n changed = true;\n }\n\n birth_new = birth_old;\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from Flexscape record\n changed = true;\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from Flexscape record\n changed = true;\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from Flexscape record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from Flexscape record\n changed = true;\n }\n\n email_new = email_old; // do not change emails\n email2_new = email2_old;\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n //\n // NOTE: mNums can change for this club!! This will also result in a different memid!!\n //\n // DO NOT change the memid or webid!!!!!!!!!\n //\n mNum_new = mNum_old;\n\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from Flexscape record\n\n //\n // mNum changed - change it for all records that match the old mNum.\n // This is because most dependents are not included in web site roster,\n // but are in our roster.\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET memNum = ? \" +\n \"WHERE memNum = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, mNum_new);\n pstmt2.setString(2, mNum_old);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n\n\n //\n // Update our record\n //\n if (changed == true) {\n\n modCount++; // count records changed\n }\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, birth = ?, posid = ?, phone1 = ?, \" +\n \"phone2 = ?, inact = 0, last_sync_date = now() \" +\n \"WHERE webid = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, lname_new);\n pstmt2.setString(2, fname_new);\n pstmt2.setString(3, mi_new);\n pstmt2.setString(4, mship_new);\n pstmt2.setString(5, mtype_new);\n pstmt2.setString(6, email_new);\n pstmt2.setString(7, mNum_new);\n pstmt2.setInt(8, birth_new);\n pstmt2.setString(9, posid_new);\n pstmt2.setString(10, phone_new);\n pstmt2.setString(11, phone2_new);\n pstmt2.setString(12, webid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n } else {\n\n //\n // New member - first check if name already exists\n //\n boolean dup = false;\n\n pstmt2 = con.prepareStatement (\n \"SELECT username FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n dup = true;\n }\n pstmt2.close(); // close the stmt\n\n if (dup == false) {\n\n //\n // New member - add it\n //\n newCount++; // count records added\n\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, webid, \" +\n \"last_sync_date) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,'',?,?,?,'',?,?,now())\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, email2);\n pstmt2.setString(17, phone);\n pstmt2.setString(18, phone2);\n pstmt2.setString(19, suffix);\n pstmt2.setString(20, webid);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n }\n }\n\n } // end of IF skip\n\n } // end of IF record valid (enough tokens)\n\n } // end of IF club = ????\n*/\n\n } // end of IF header row\n\n } // end of while\n\n //\n // Done with this file for this club - now set any members that were excluded from this file inactive\n //\n if (found == true) { // if we processed this club\n\n // Set anyone inactive that didn't sync, but has at one point. (Not sure why this was turned off for all flexscape clubs, fourbridges requested it be turned back on.\n if (club.equals(\"fourbridges\") || club.equals(\"coloradospringscountryclub\")) {\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET inact = 1 \" +\n \"WHERE last_sync_date != now() AND last_sync_date != '0000-00-00'\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n \n \n //\n // Roster File Found for this club - make sure the roster sync indicator is set in the club table\n //\n setRSind(con, club);\n }\n }\n\n }\n catch (Exception e3) {\n\n errorMsg = errorMsg + \" Error processing roster (record #\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e3.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.flexSync: \";\n }\n\n }", "public void _copyToEJB(java.util.Hashtable h) {\n java.lang.Integer localCreatedby = (java.lang.Integer) h.get(\"createdby\");\n java.sql.Date localDocumentDate = (java.sql.Date) h.get(\"documentDate\");\n java.lang.String localDocumentNumber = (java.lang.String) h.get(\"documentNumber\");\n Integer localLeaseDocument = (Integer) h.get(\"leaseDocument\");\n java.sql.Timestamp localCreated = (java.sql.Timestamp) h.get(\"created\");\n java.lang.Integer localModifiedby = (java.lang.Integer) h.get(\"modifiedby\");\n java.lang.Integer localOperator = (java.lang.Integer) h.get(\"operator\");\n Integer localRegionid = (Integer) h.get(\"regionid\");\n java.sql.Timestamp localModified = (java.sql.Timestamp) h.get(\"modified\");\n\n if ( h.containsKey(\"createdby\") )\n setCreatedby((localCreatedby));\n if ( h.containsKey(\"documentDate\") )\n setDocumentDate((localDocumentDate));\n if ( h.containsKey(\"documentNumber\") )\n setDocumentNumber((localDocumentNumber));\n if ( h.containsKey(\"leaseDocument\") )\n setLeaseDocument((localLeaseDocument).intValue());\n if ( h.containsKey(\"created\") )\n setCreated((localCreated));\n if ( h.containsKey(\"modifiedby\") )\n setModifiedby((localModifiedby));\n if ( h.containsKey(\"operator\") )\n setOperator((localOperator));\n if ( h.containsKey(\"regionid\") )\n setRegionid((localRegionid).intValue());\n if ( h.containsKey(\"modified\") )\n setModified((localModified));\n\n}", "int insert(CompanyExtend record);", "void insert(BsUserRole record);", "public void _copyToEJB(java.util.Hashtable h) {\n java.sql.Timestamp localRecdate = (java.sql.Timestamp) h.get(\"recdate\");\n Short localObjtype = (Short) h.get(\"objtype\");\n java.lang.String localEventtype = (java.lang.String) h.get(\"eventtype\");\n Integer localObjid = (Integer) h.get(\"objid\");\n\n if ( h.containsKey(\"recdate\") )\n setRecdate((localRecdate));\n if ( h.containsKey(\"objtype\") )\n setObjtype((localObjtype).shortValue());\n if ( h.containsKey(\"eventtype\") )\n setEventtype((localEventtype));\n if ( h.containsKey(\"objid\") )\n setObjid((localObjid).intValue());\n\n}", "public void setData(InputRecord record)\n throws SQLException\n {\n super.setData(record);\n try\n {\n long resourceClassId = record.getLong(\"resource_class_id\");\n resourceClass = coral.getSchema().getResourceClass(resourceClassId);\n if(!record.isNull(\"parent\"))\n {\n parentId = record.getLong(\"parent\");\n }\n long creatorId = record.getLong(\"created_by\");\n creator = coral.getSecurity().getSubject(creatorId);\n created = record.getDate(\"creation_time\");\n long ownerId = record.getLong(\"owned_by\");\n owner = coral.getSecurity().getSubject(ownerId);\n long modifierId = record.getLong(\"modified_by\");\n modifier = coral.getSecurity().getSubject(modifierId);\n modified = record.getDate(\"modification_time\");\n }\n catch(EntityDoesNotExistException e)\n {\n throw new SQLException(\"Failed to load Resource #\"+id, e);\n }\n }", "int insert(MemberFav record);", "public UserImplPart1(int studentId, String yourName, int yourAge,int yourSchoolYear, String yourNationality){\n this.studentId = studentId;\n this.name= yourName;\n this.age = yourAge; \n this.schoolYear= yourSchoolYear;\n this.nationality= yourNationality;\n}", "public java.util.Hashtable _copyFromEJB() {\n com.ibm.ivj.ejb.runtime.AccessBeanHashtable h = new com.ibm.ivj.ejb.runtime.AccessBeanHashtable();\n\n h.put(\"recdate\", getRecdate());\n h.put(\"objtype\", new Short(getObjtype()));\n h.put(\"eventtype\", getEventtype());\n h.put(\"objid\", new Integer(getObjid()));\n h.put(\"logid\", new Integer(getLogid()));\n h.put(\"peopleKey\", getPeopleKey());\n h.put(\"__Key\", getEntityContext().getPrimaryKey());\n\n return h;\n\n}", "int insert(ROmUsers record);", "int insert(LawPerson record);", "int insertSelective(PracticeClass record);", "int insert(PracticeClass record);", "int insert(SystemRoleUserMapperMo record);", "public void copyingPrivateUserAttributes(final Anything copy) \n\t\t\t\tthrows PersistenceException{\n }", "int insertSelective(BankUserInfo record);", "int insertSelective(BankUserInfo record);", "int insert(AddressMinBalanceBean record);", "int insert(BaseUser record);", "protected void mapUserProfile2SSOUser() {\r\n\t\tssoUser.setProfileId((String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID));\r\n\t\tssoUser.setUserName((String)userProfile.get(AuthenticationConsts.KEY_USER_NAME));\r\n\t\tssoUser.setEmail((String)userProfile.get(AuthenticationConsts.KEY_EMAIL));\r\n\t\tssoUser.setFirstName((String)userProfile.get(AuthenticationConsts.KEY_FIRST_NAME));\r\n\t\tssoUser.setLastName((String)userProfile.get(AuthenticationConsts.KEY_LAST_NAME));\r\n\t\tssoUser.setCountry((String)userProfile.get(AuthenticationConsts.KEY_COUNTRY));\r\n\t\tssoUser.setLanguage((String)userProfile.get(AuthenticationConsts.KEY_LANGUAGE));\r\n\t\tssoUser.setTimeZone((String)userProfile.get(AuthenticationConsts.KEY_TIMEZONE));\r\n\t\tssoUser.setLastChangeDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE));\r\n\t\tssoUser.setLastLoginDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_LOGIN_DATE));\r\n\t\t// Set current site, it will be used to update user's primary site\r\n\t\tssoUser.setCurrentSite(AuthenticatorHelper.getPrimarySiteUID(request));\r\n\t}", "int insert(MyUserRoleRelation record);", "void copyJetspeedInformaitonToMiddleTable(List<CustomizeProfileModel> profiles) throws AAException;", "int insertSelective(AddressMinBalanceBean record);", "public ClubDetails mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\tClubDetails clubDetails = new ClubDetails();\r\n\t\tclubDetails.setUsername(rs.getString(\"username\"));\r\n\t\tclubDetails.setPassword(rs.getString(\"password\"));\r\n\t\tclubDetails.setNewPassword(rs.getString(\"newPassword\"));\r\n\t\tclubDetails.setClubname(rs.getString(\"clubname\"));\r\n\t\tclubDetails.setEmail(rs.getString(\"email\"));\r\n\t\t//clubDetails.setMemberDetails(new HashSet<MemberDetails>());\r\n\t\tclubDetails.setMembershiptype(rs.getString(\"membershiptype\"));\r\n\t\tclubDetails.setPhonenumber(rs.getLong(\"phonenumber\"));\r\n\t\tclubDetails.setClub_id(rs.getInt(\"club_id\"));\r\n\t\tclubDetails.setRoleId(rs.getInt(\"roleId\"));\r\n\t\treturn clubDetails;\r\n\t}", "private Card mapRowToCardWithUser(SqlRowSet rs) {\n Card card = new Card();\n card.setCardID(rs.getInt(\"card_id\"));\n card.setUserID(rs.getInt(\"user_id\"));\n card.setDeckID(rs.getInt(\"deck_id\"));\n card.setQuestion(rs.getString(\"question\"));\n card.setAnswer(rs.getString(\"answer\"));\n card.setCorrect(rs.getBoolean(\"correct\"));\n card.setRank(rs.getInt(\"rank\"));\n return card;\n }", "int insert(BizUserWhiteList record);", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\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\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "@Override\n public StructFields duplicate() {\n final StructFields newStruct = new StructFields();\n newStruct.fields.putAll(fields.entrySet().stream()\n .map(ent -> new Tuple<>(ent.getKey(), ent.getValue().duplicate()))\n .collect(Collectors.toMap(Tuple::getA, Tuple::getB)));\n return newStruct;\n }", "int insertSelective(UserRole record);", "int insertSelective(UserRole record);", "private Builder(Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.accountID)) {\n this.accountID = data().deepCopy(fields()[0].schema(), other.accountID);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.brokerId)) {\n this.brokerId = data().deepCopy(fields()[1].schema(), other.brokerId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.createDate)) {\n this.createDate = data().deepCopy(fields()[2].schema(), other.createDate);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.TransferSerials)) {\n this.TransferSerials = data().deepCopy(fields()[3].schema(), other.TransferSerials);\n fieldSetFlags()[3] = true;\n }\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "int insertSelective(UsecaseRoleData record);", "int insertSelective(MyUserRoleRelation record);", "public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}", "void copyMetasToProperties( Object source, Object target );", "CreationData creationData();", "private static void northstarSync(Connection con, InputStreamReader isr, String club) {\n\n PreparedStatement pstmt1 = null;\n PreparedStatement pstmt2 = null;\n Statement stmt = null;\n ResultSet rs = null;\n\n\n Member member = new Member();\n\n String line = \"\";\n String password = \"\";\n String temp = \"\";\n\n int i = 0;\n\n // Values from NStar records\n //\n String fname = \"\";\n String lname = \"\";\n String mi = \"\";\n String suffix = \"\";\n String posid = \"\";\n String gender = \"\";\n String ghin = \"\";\n String memid = \"\";\n String mNum = \"\";\n String u_hndcp = \"\";\n String c_hndcp = \"\";\n String mship = \"\";\n String mtype = \"\";\n String bag = \"\";\n String email = \"\";\n String email2 = \"\";\n String phone = \"\";\n String phone2 = \"\";\n String mobile = \"\";\n String primary = \"\";\n\n float u_hcap = 0;\n float c_hcap = 0;\n int birth = 0;\n\n // Values from ForeTees records\n //\n String fname_old = \"\";\n String lname_old = \"\";\n String mi_old = \"\";\n String mship_old = \"\";\n String mtype_old = \"\";\n String email_old = \"\";\n String mNum_old = \"\";\n String ghin_old = \"\";\n String bag_old = \"\";\n String posid_old = \"\";\n String email2_old = \"\";\n String phone_old = \"\";\n String phone2_old = \"\";\n String suffix_old = \"\";\n\n float u_hcap_old = 0;\n float c_hcap_old = 0;\n int birth_old = 0;\n\n // Values for New ForeTees records\n //\n String fname_new = \"\";\n String lname_new = \"\";\n String mi_new = \"\";\n String mship_new = \"\";\n String mtype_new = \"\";\n String email_new = \"\";\n String mNum_new = \"\";\n String ghin_new = \"\";\n String bag_new = \"\";\n String posid_new = \"\";\n String email2_new = \"\";\n String phone_new = \"\";\n String phone2_new = \"\";\n String suffix_new = \"\";\n\n float u_hcap_new = 0;\n float c_hcap_new = 0;\n int birth_new = 0;\n int rcount = 0;\n\n String errorMsg = \"Error in Common_sync.northStarSync: \";\n\n boolean failed = false;\n boolean changed = false;\n boolean skip = false;\n boolean headerFound = false;\n boolean found = false;\n\n\n try {\n\n BufferedReader br = new BufferedReader(isr);\n\n // format of each line in the file:\n //\n // memid, mNum, fname, mi, lname, suffix, mship, mtype, gender, email, email2,\n // phone, phone2, bag, hndcp#, uhndcp, chndcp, birth, posid, primary\n //\n //\n while (true) {\n\n line = br.readLine();\n\n if (line == null) {\n break;\n }\n\n // Skip the 1st row (header row)\n\n if (headerFound == false) {\n\n headerFound = true;\n\n } else {\n\n // Remove the dbl quotes and check for embedded commas\n\n line = cleanRecord( line );\n\n rcount++; // count the records\n\n // parse the line to gather all the info\n\n StringTokenizer tok = new StringTokenizer( line, \",\" ); // delimiters are comma\n\n if ( tok.countTokens() > 19 ) { // enough data ?\n\n memid = tok.nextToken();\n mNum = tok.nextToken();\n fname = tok.nextToken();\n mi = tok.nextToken();\n lname = tok.nextToken();\n suffix = tok.nextToken();\n mship = tok.nextToken();\n mtype = tok.nextToken();\n gender = tok.nextToken();\n email = tok.nextToken();\n email2 = tok.nextToken();\n phone = tok.nextToken();\n phone2 = tok.nextToken();\n bag = tok.nextToken();\n ghin = tok.nextToken();\n u_hndcp = tok.nextToken();\n c_hndcp = tok.nextToken();\n temp = tok.nextToken();\n posid = tok.nextToken();\n primary = tok.nextToken();\n\n //\n // Check for ? (not provided)\n //\n if (memid.equals( \"?\" )) {\n\n memid = \"\";\n }\n if (mNum.equals( \"?\" )) {\n\n mNum = \"\";\n }\n if (fname.equals( \"?\" )) {\n\n fname = \"\";\n }\n if (mi.equals( \"?\" )) {\n\n mi = \"\";\n }\n if (lname.equals( \"?\" )) {\n\n lname = \"\";\n }\n if (suffix.equals( \"?\" )) {\n\n suffix = \"\";\n }\n if (mship.equals( \"?\" )) {\n\n mship = \"\";\n }\n if (mtype.equals( \"?\" )) {\n\n mtype = \"\";\n }\n if (gender.equals( \"?\" )) {\n\n gender = \"\";\n }\n if (email.equals( \"?\" )) {\n\n email = \"\";\n }\n if (email2.equals( \"?\" )) {\n\n email2 = \"\";\n }\n if (phone.equals( \"?\" )) {\n\n phone = \"\";\n }\n if (phone2.equals( \"?\" )) {\n\n phone2 = \"\";\n }\n if (bag.equals( \"?\" )) {\n\n bag = \"\";\n }\n if (ghin.equals( \"?\" )) {\n\n ghin = \"\";\n }\n if (u_hndcp.equals( \"?\" )) {\n\n u_hndcp = \"\";\n }\n if (c_hndcp.equals( \"?\" )) {\n\n c_hndcp = \"\";\n }\n if (temp.equals( \"?\" ) || temp.equals( \"0\" )) {\n\n temp = \"\";\n }\n if (posid.equals( \"?\" )) {\n\n posid = \"\";\n }\n if (primary.equals( \"?\" )) {\n\n primary = \"\";\n }\n\n //\n // Determine if we should process this record (does it meet the minimum requirements?)\n //\n if (!memid.equals( \"\" ) && !mNum.equals( \"\" ) && !lname.equals( \"\" ) && !fname.equals( \"\" )) {\n\n //\n // Remove spaces, etc. from name fields\n //\n tok = new StringTokenizer( fname, \" \" ); // delimiters are space\n\n fname = tok.nextToken(); // remove any spaces and middle name\n\n if ( tok.countTokens() > 0 ) {\n\n mi = tok.nextToken(); // over-write mi if already there\n }\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n tok = new StringTokenizer( suffix, \" \" ); // delimiters are space\n\n suffix = tok.nextToken(); // remove any extra (only use one value)\n }\n\n tok = new StringTokenizer( lname, \" \" ); // delimiters are space\n\n lname = tok.nextToken(); // remove suffix and spaces\n\n if (!suffix.equals( \"\" )) { // if suffix provided\n\n lname = lname + \"_\" + suffix; // append suffix to last name\n\n } else { // sufix after last name ?\n\n if ( tok.countTokens() > 0 ) {\n\n suffix = tok.nextToken();\n lname = lname + \"_\" + suffix; // append suffix to last name\n }\n }\n\n //\n // Determine the handicaps\n //\n u_hcap = -99; // indicate no hndcp\n c_hcap = -99; // indicate no c_hndcp\n\n if (!u_hndcp.equals( \"\" ) && !u_hndcp.equalsIgnoreCase(\"NH\") && !u_hndcp.equalsIgnoreCase(\"NHL\")) {\n\n u_hndcp = u_hndcp.replace('L', ' '); // isolate the handicap - remove spaces and trailing 'L'\n u_hndcp = u_hndcp.replace('H', ' '); // or 'H' if present\n u_hndcp = u_hndcp.replace('N', ' '); // or 'N' if present\n u_hndcp = u_hndcp.replace('J', ' '); // or 'J' if present\n u_hndcp = u_hndcp.replace('R', ' '); // or 'R' if present\n u_hndcp = u_hndcp.trim();\n\n u_hcap = Float.parseFloat(u_hndcp); // usga handicap\n\n if ((!u_hndcp.startsWith(\"+\")) && (!u_hndcp.startsWith(\"-\"))) {\n\n u_hcap = 0 - u_hcap; // make it a negative hndcp (normal)\n }\n }\n\n if (!c_hndcp.equals( \"\" ) && !c_hndcp.equalsIgnoreCase(\"NH\") && !c_hndcp.equalsIgnoreCase(\"NHL\")) {\n\n c_hndcp = c_hndcp.replace('L', ' '); // isolate the handicap - remove spaces and trailing 'L'\n c_hndcp = c_hndcp.replace('H', ' '); // or 'H' if present\n c_hndcp = c_hndcp.replace('N', ' '); // or 'N' if present\n c_hndcp = c_hndcp.replace('J', ' '); // or 'J' if present\n c_hndcp = c_hndcp.replace('R', ' '); // or 'R' if present\n c_hndcp = c_hndcp.trim();\n\n c_hcap = Float.parseFloat(c_hndcp); // usga handicap\n\n if ((!c_hndcp.startsWith(\"+\")) && (!c_hndcp.startsWith(\"-\"))) {\n\n c_hcap = 0 - c_hcap; // make it a negative hndcp (normal)\n }\n }\n\n //\n // convert birth date (yyyy-mm-dd to yyyymmdd)\n //\n if (!temp.equals( \"\" )) {\n\n tok = new StringTokenizer( temp, \"/-\" ); // delimiters are / & -\n\n String b1 = tok.nextToken();\n String b2 = tok.nextToken();\n String b3 = tok.nextToken();\n\n int yy = Integer.parseInt(b1);\n int mm = Integer.parseInt(b2);\n int dd = Integer.parseInt(b3);\n\n birth = (yy * 10000) + (mm * 100) + dd; // yyyymmdd\n\n if (yy < 1900) { // check for invalid date\n\n birth = 0;\n }\n\n } else {\n\n birth = 0;\n }\n\n password = lname;\n\n //\n // if lname is less than 4 chars, fill with 1's\n //\n int length = password.length();\n\n while (length < 4) {\n\n password = password + \"1\";\n length++;\n }\n\n //\n // Verify the email addresses\n //\n if (!email.equals( \"\" )) { // if specified\n\n email = email.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email));\n\n if (!feedback.isPositive()) { // if error\n\n email = \"\"; // do not use it\n }\n }\n if (!email2.equals( \"\" )) { // if specified\n\n email2 = email2.trim(); // remove spaces\n\n FeedBack feedback = (member.isEmailValid(email2));\n\n if (!feedback.isPositive()) { // if error\n\n email2 = \"\"; // do not use it\n }\n }\n\n // if email #1 is empty then assign email #2 to it\n if (email.equals(\"\")) email = email2;\n\n skip = false;\n found = false; // default to club NOT found\n\n //\n // *********************************************************************\n //\n // The following will be dependent on the club - customized\n //\n // *********************************************************************\n //\n if (club.equals( \"brooklawn\" )) { // Grapevine Web Site Provider - NorthStar Roster Sync\n\n found = true; // club found\n\n //\n // Determine if we should process this record (per Judy Barbagallo)\n //\n if (!mtype.equals( \"\" ) && !mship.equals( \"\" ) && !mship.startsWith( \"Special\" ) &&\n !mship.startsWith( \"Other\" ) && !mship.startsWith( \"Resign\" ) &&\n !mship.startsWith( \"Transitional\" ) && !mship.startsWith( \"Senior Plus\" )) {\n\n\n // clean up mNum\n if (!mNum.equals(\"\")) {\n\n mNum = mNum.toUpperCase();\n\n if (mNum.length() > 2 && (mNum.endsWith(\"S1\") || mNum.endsWith(\"C1\") || mNum.endsWith(\"C2\") || mNum.endsWith(\"C3\") || mNum.endsWith(\"C4\") ||\n mNum.endsWith(\"C5\") || mNum.endsWith(\"C6\") || mNum.endsWith(\"C7\") || mNum.endsWith(\"C8\") || mNum.endsWith(\"C9\"))) {\n\n mNum = mNum.substring(0, mNum.length() - 2);\n\n } else if (mNum.length() > 1 && mNum.endsWith(\"S\")) {\n\n mNum = mNum.substring(0, mNum.length() - 1);\n }\n }\n\n //\n // set defaults\n //\n if (gender.equalsIgnoreCase( \"female\" )) {\n\n gender = \"F\"; // Female\n\n } else {\n\n gender = \"M\"; // default to Male\n }\n\n suffix = \"\"; // done with suffix for now\n\n //\n // Set the Member Type\n //\n if (mtype.equalsIgnoreCase( \"primary\" )) {\n\n mtype = \"Primary Male\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Primary Female\";\n }\n\n } else if (mtype.equalsIgnoreCase( \"spouse\" )) {\n\n mtype = \"Spouse Male\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Spouse Female\";\n }\n\n } else if (!mtype.equalsIgnoreCase(\"maid\") && !mtype.equalsIgnoreCase(\"other\")) {\n\n mtype = \"Dependent\";\n\n } else {\n\n skip = true;\n }\n\n //\n // Determine the age in years\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH) +1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 24; // backup 24 years\n\n int oldDate = (year * 10000) + (month * 100) + day; // get date\n\n if (mtype.equals(\"Dependent\") && birth > 0 && birth < oldDate) {\n\n skip = true;\n }\n\n } else {\n\n skip = true; // skip this record\n }\n\n } // end of IF club = brooklawn\n\n\n if (club.equals( \"bellevuecc\" )) { // Bellevue CC\n\n found = true; // club found\n\n //\n // Determine if we should process this record - skip 'House', 'House/Pool' and 'Country Clubs' (do this below!!)\n //\n if (!mtype.equals( \"\" ) && !mship.equals( \"\" )) {\n\n //\n // Strip any leading zeros from username\n //\n if (memid.startsWith( \"0\" )) {\n\n memid = remZeroS( memid );\n }\n if (memid.startsWith( \"0\" )) { // in case there are 2 zeros\n\n memid = remZeroS( memid );\n }\n\n //\n // Set the Membership Type\n //\n if (mship.startsWith( \"Assoc\" )) { // if Associate...\n\n mship = \"Associate\";\n }\n\n if (mship.startsWith( \"Junior\" )) { // if Junior...\n\n mship = \"Junior\";\n }\n\n if (mship.equalsIgnoreCase(\"House\") || mship.equalsIgnoreCase(\"House/Pool\") || mship.equalsIgnoreCase(\"Country Clubs\")) {\n skip = true;\n }\n //\n // set defaults\n //\n if (gender.equalsIgnoreCase( \"female\" )) {\n\n gender = \"F\"; // Female\n\n } else {\n\n gender = \"M\"; // default to Male\n }\n\n suffix = \"\"; // done with suffix for now\n\n //\n // Set the Member Type\n //\n if (mtype.equalsIgnoreCase( \"primary\" )) {\n\n mtype = \"Primary Male\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"spouse\" )) {\n\n mtype = \"Spouse Male\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Spouse Female\";\n }\n\n } else {\n\n mtype = \"Dependent\";\n }\n\n // Search or primary and use their mship\n try {\n String tempmNum = mNum;\n\n while (tempmNum.startsWith(\"0\")) {\n tempmNum = tempmNum.substring(1);\n }\n\n PreparedStatement belstmt = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n belstmt.clearParameters();\n belstmt.setString(1, tempmNum);\n\n ResultSet belrs = belstmt.executeQuery();\n\n if (belrs.next()) {\n mship = belrs.getString(\"m_ship\");\n } else {\n skip = true;\n }\n\n belstmt.close();\n\n } catch (Exception exc) {\n skip = true;\n }\n }\n\n } else {\n\n skip = true; // skip this record\n }\n\n } // end of IF club = ??\n\n if (club.equals( \"greenacrescountryclub\" )) { // Green Acres CC\n\n found = true; // club found\n\n //\n // Determine if we should process this record\n //\n if (!mtype.equals( \"\" ) && !mship.equals( \"\" )) {\n\n //\n // Strip any leading zeros from username and member number\n //\n while (memid.startsWith(\"0\")) {\n memid = memid.substring(1);\n }\n\n while (mNum.startsWith(\"0\")) {\n mNum = mNum.substring(1);\n }\n\n //\n // Set the Membership Type\n //\n if (mship.equalsIgnoreCase(\"Regular\") || mship.startsWith(\"Female Regular\") || mship.equalsIgnoreCase(\"Honorairium\") ||\n mship.equalsIgnoreCase(\"Male Hnr\") || mship.startsWith(\"Male Regular\") || mship.equalsIgnoreCase(\"Spec Male Hnr 85/25\") ||\n mship.equalsIgnoreCase(\"Social 85/50 Years Mbrshp +\") || mship.startsWith(\"Male 3\") || mship.startsWith(\"Female 3\")) {\n\n mship = \"Regular\";\n\n } else if (mship.equalsIgnoreCase(\"Female Junior\") || mship.equalsIgnoreCase(\"Female Young Jr 21-24\") || mship.equalsIgnoreCase(\"Male Junior\") ||\n mship.equalsIgnoreCase(\"Male Limited Jr 28-29\") || mship.equalsIgnoreCase(\"Male Young Jr 21-24\") || mship.equalsIgnoreCase(\"Male Young Junior 25-27\") ||\n mship.startsWith(\"Male Jr\")) {\n\n mship = \"Junior\";\n\n } else if (mship.startsWith(\"Social Female\") || mship.startsWith(\"Social Male\") || mship.startsWith(\"Social Junior\") ||\n mship.startsWith(\"Social Jr\")) {\n\n mship = \"Social\";\n\n } else if (mship.startsWith(\"Loa Soc\")) {\n\n mship = \"LOA Social\";\n\n } else if (mship.startsWith(\"Loa Junior\") || mship.startsWith(\"Loa Jr\") || mship.startsWith(\"Loa Ltd Jr\") ||\n mship.startsWith(\"Loa Jr\") || mship.equalsIgnoreCase(\"Loa Male 37\")) {\n\n mship = \"LOA Junior\";\n\n } else if (mship.equalsIgnoreCase(\"Loa Regular Male\")) {\n\n mship = \"LOA Regular\";\n\n } else if (mship.equalsIgnoreCase(\"Significant Other\") || mship.equalsIgnoreCase(\"Spouse\") || mship.equalsIgnoreCase(\"Child\")) {\n\n try {\n pstmt2 = con.prepareStatement(\"SELECT m_ship FROM member2b WHERE username = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, mNum);\n\n rs = pstmt2.executeQuery();\n\n if (rs.next()) {\n mship = rs.getString(\"m_ship\");\n } else {\n mship = \"No Primary Found - \" + mship;\n }\n\n pstmt2.close();\n\n } catch (Exception exc) {\n\n mship = \"Error Finding Primary - \" + mship;\n\n }\n\n } else if (mship.startsWith(\"Pool & Tennis\")) {\n\n mship = \"Pool & Tennis\";\n\n }\n\n else if (!mship.equalsIgnoreCase(\"Two Week Usage\")) {\n\n skip = true; // Skip all others\n\n }\n\n\n // set defaults\n if (gender.equalsIgnoreCase( \"Female\" )) {\n gender = \"F\"; // Female\n } else {\n gender = \"M\"; // default to Male\n }\n\n // Set mtype\n if (mtype.equalsIgnoreCase(\"Primary\") || mtype.equalsIgnoreCase(\"Spouse\") || mtype.equalsIgnoreCase(\"Signi Other\")) {\n if (gender.equals(\"F\")) {\n mtype = \"Adult Female\";\n } else {\n mtype = \"Adult Male\";\n }\n } else if (mtype.equalsIgnoreCase(\"Child\")) {\n mtype = \"Qualified Child\";\n }\n\n suffix = \"\"; // done with suffix for now\n\n } else {\n\n skip = true; // skip this record\n }\n\n } // end of IF club = greenacrescountryclub\n\n //\n // Ritz Carlotn CC\n //\n/*\n if (club.equals( \"ritzcarlton\" )) {\n\n found = true; // club found\n\n //\n // Determine if we should process this record\n //\n ??? if (!mtype.equals( \"\" ) && !mship.equals( \"\" ) && !mship.startsWith( \"????\" ) &&\n !mship.startsWith( \"???\" ) && !mship.startsWith( \"???\" )) {\n\n //\n // set defaults\n //\n if (gender.equalsIgnoreCase( \"female\" )) {\n\n gender = \"F\"; // Female\n\n } else {\n\n gender = \"M\"; // default to Male\n }\n\n suffix = \"\"; // done with suffix for now\n\n //\n // Set the Member Type\n //\n if (mtype.equalsIgnoreCase( \"primary\" )) {\n\n mtype = \"Primary Male\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Primary Female\";\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"spouse\" )) {\n\n mtype = \"Spouse Male\";\n\n if (gender.equals( \"F\" )) {\n\n mtype = \"Spouse Female\";\n }\n\n } else {\n\n mtype = \"Dependent\";\n }\n }\n\n //\n // *** TEMP *** currently the birth dates are invalid for all members\n //\n birth = 0;\n\n //\n // Verify the member id's\n //\n if (mtype.equalsIgnoreCase( \"spouse\" )) {\n\n if (!memid.endsWith( \"s\" ) && !memid.endsWith( \"S\" ) && !memid.endsWith( \"s1\" ) && !memid.endsWith( \"S1\" )) {\n\n skip = true; // skip this record\n }\n\n } else {\n\n if (mtype.equalsIgnoreCase( \"dependent\" )) {\n\n if (!memid.endsWith( \"C1\" ) && !memid.endsWith( \"C2\" ) && !memid.endsWith( \"C3\" ) && !memid.endsWith( \"C4\" ) &&\n !memid.endsWith( \"C5\" ) && !memid.endsWith( \"C6\" ) && !memid.endsWith( \"C7\" ) && !memid.endsWith( \"C8\" )) {\n\n skip = true; // skip this record\n }\n }\n }\n\n } else {\n\n skip = true; // skip this record\n }\n } // end of IF club = ritzcarlton\n*/\n\n\n //\n //******************************************************************\n // Common processing - add or update the member record\n //******************************************************************\n //\n if (skip == false && found == true && !fname.equals(\"\") && !lname.equals(\"\")) {\n\n //\n // now determine if we should update an existing record or add the new one\n //\n fname_old = \"\";\n lname_old = \"\";\n mi_old = \"\";\n mship_old = \"\";\n mtype_old = \"\";\n email_old = \"\";\n mNum_old = \"\";\n ghin_old = \"\";\n bag_old = \"\";\n posid_old = \"\";\n email2_old = \"\";\n phone_old = \"\";\n phone2_old = \"\";\n suffix_old = \"\";\n u_hcap_old = 0;\n c_hcap_old = 0;\n birth_old = 0;\n\n\n //\n // Truncate the string values to avoid sql error\n //\n if (!mi.equals( \"\" )) { // if mi specified\n\n mi = truncate(mi, 1); // make sure it is only 1 char\n }\n if (!memid.equals( \"\" )) {\n\n memid = truncate(memid, 15);\n }\n if (!password.equals( \"\" )) {\n\n password = truncate(password, 15);\n }\n if (!lname.equals( \"\" )) {\n\n lname = truncate(lname, 20);\n }\n if (!fname.equals( \"\" )) {\n\n fname = truncate(fname, 20);\n }\n if (!mship.equals( \"\" )) {\n\n mship = truncate(mship, 30);\n }\n if (!mtype.equals( \"\" )) {\n\n mtype = truncate(mtype, 30);\n }\n if (!email.equals( \"\" )) {\n\n email = truncate(email, 50);\n }\n if (!email2.equals( \"\" )) {\n\n email2 = truncate(email2, 50);\n }\n if (!mNum.equals( \"\" )) {\n\n mNum = truncate(mNum, 10);\n }\n if (!ghin.equals( \"\" )) {\n\n ghin = truncate(ghin, 16);\n }\n if (!bag.equals( \"\" )) {\n\n bag = truncate(bag, 12);\n }\n if (!posid.equals( \"\" )) {\n\n posid = truncate(posid, 15);\n }\n if (!phone.equals( \"\" )) {\n\n phone = truncate(phone, 24);\n }\n if (!phone2.equals( \"\" )) {\n\n phone2 = truncate(phone2, 24);\n }\n if (!suffix.equals( \"\" )) {\n\n suffix = truncate(suffix, 4);\n }\n\n\n pstmt2 = con.prepareStatement (\n \"SELECT * FROM member2b WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if(rs.next()) {\n\n lname_old = rs.getString(\"name_last\");\n fname_old = rs.getString(\"name_first\");\n mi_old = rs.getString(\"name_mi\");\n mship_old = rs.getString(\"m_ship\");\n mtype_old = rs.getString(\"m_type\");\n email_old = rs.getString(\"email\");\n mNum_old = rs.getString(\"memNum\");\n ghin_old = rs.getString(\"ghin\");\n bag_old = rs.getString(\"bag\");\n birth_old = rs.getInt(\"birth\");\n posid_old = rs.getString(\"posid\");\n email2_old = rs.getString(\"email2\");\n phone_old = rs.getString(\"phone1\");\n phone2_old = rs.getString(\"phone2\");\n suffix_old = rs.getString(\"name_suf\");\n }\n pstmt2.close(); // close the stmt\n\n if (!fname_old.equals( \"\" )) { // if member found\n\n changed = false; // init change indicator\n\n lname_new = lname_old;\n\n if (!lname.equals( \"\" ) && !lname_old.equals( lname )) {\n\n lname_new = lname; // set value from NStar record\n changed = true;\n }\n\n fname_new = fname_old;\n\n fname = fname_old; // DO NOT change the first names\n\n/*\n if (!fname.equals( \"\" ) && !fname_old.equals( fname )) {\n\n fname_new = fname; // set value from NStar record\n changed = true;\n }\n*/\n\n mi_new = mi_old;\n\n if (!mi.equals( \"\" ) && !mi_old.equals( mi )) {\n\n mi_new = mi; // set value from NStar record\n changed = true;\n }\n\n mship_new = mship_old;\n\n if (!mship.equals( \"\" ) && !mship_old.equals( mship )) {\n\n mship_new = mship; // set value from NStar record\n changed = true;\n }\n\n mtype_new = mtype_old;\n\n if (!club.equals( \"ritzcarlton\" ) && !club.equals( \"brooklawn\" )) { // do not change mtypes for dependents\n\n if (!mtype.equals( \"\" ) && !mtype.equals( \"Dependent\" ) && !mtype_old.equals( mtype )) {\n\n mtype_new = mtype; // set value from NStar record\n changed = true;\n }\n }\n\n birth_new = birth_old;\n\n if (!club.equals( \"ritzcarlton\" )) { // do not change birthdates\n\n if (birth > 0 && birth != birth_old) {\n\n birth_new = birth; // set value from NStar record\n changed = true;\n }\n }\n\n ghin_new = ghin_old;\n\n if (!ghin.equals( \"\" ) && !ghin_old.equals( ghin )) {\n\n ghin_new = ghin; // set value from NStar record\n changed = true;\n }\n\n bag_new = bag_old;\n\n if (!bag.equals( \"\" ) && !bag_old.equals( bag )) {\n\n bag_new = bag; // set value from NStar record\n changed = true;\n }\n\n posid_new = posid_old;\n\n if (!posid.equals( \"\" ) && !posid_old.equals( posid )) {\n\n posid_new = posid; // set value from NStar record\n changed = true;\n }\n\n phone_new = phone_old;\n\n if (!phone.equals( \"\" ) && !phone_old.equals( phone )) {\n\n phone_new = phone; // set value from NStar record\n changed = true;\n }\n\n phone2_new = phone2_old;\n\n if (!phone2.equals( \"\" ) && !phone2_old.equals( phone2 )) {\n\n phone2_new = phone2; // set value from NStar record\n changed = true;\n }\n\n suffix_new = suffix_old;\n\n if (!suffix.equals( \"\" ) && !suffix_old.equals( suffix )) {\n\n suffix_new = suffix; // set value from NStar record\n changed = true;\n }\n\n email_new = email_old; // do not change emails\n email2_new = email2_old;\n\n //\n // update emails if Brooklawn\n //\n if (club.equals( \"brooklawn\" )) {\n\n if (!email.equals( \"\" )) { // if email provided\n\n email_new = email; // set value from NStar record\n }\n\n if (!email2.equals( \"\" )) { // if email provided\n\n email2_new = email2; // set value from NStar record\n }\n }\n\n\n\n // don't allow both emails to be the same\n if (email_new.equalsIgnoreCase(email2_new)) email2_new = \"\";\n\n\n mNum_new = mNum_old; // do not change mNums\n\n if (club.equals(\"brooklawn\")) { // update member numbers if brooklawn\n if (!mNum.equals( \"\" ) && !mNum_old.equals( mNum )) {\n\n mNum_new = mNum; // set value from NStar record\n changed = true;\n }\n }\n\n\n //\n // Update our record if something has changed\n //\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET name_last = ?, name_first = ?, \" +\n \"name_mi = ?, m_ship = ?, m_type = ?, email = ?, \" +\n \"memNum = ?, ghin = ?, bag = ?, birth = ?, posid = ?, email2 = ?, phone1 = ?, \" +\n \"phone2 = ?, name_suf = ?, inact = 0, last_sync_date = now(), gender = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, lname_new);\n pstmt2.setString(2, fname_new);\n pstmt2.setString(3, mi_new);\n pstmt2.setString(4, mship_new);\n pstmt2.setString(5, mtype_new);\n pstmt2.setString(6, email_new);\n pstmt2.setString(7, mNum_new);\n pstmt2.setString(8, ghin_new);\n pstmt2.setString(9, bag_new);\n pstmt2.setInt(10, birth_new);\n pstmt2.setString(11, posid_new);\n pstmt2.setString(12, email2_new);\n pstmt2.setString(13, phone_new);\n pstmt2.setString(14, phone2_new);\n pstmt2.setString(15, suffix_new);\n pstmt2.setString(16, gender);\n pstmt2.setString(17, memid);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n\n } else {\n\n //\n // New member - first check if name already exists\n //\n boolean dup = false;\n\n pstmt2 = con.prepareStatement (\n \"SELECT username FROM member2b WHERE name_last = ? AND name_first = ? AND name_mi = ?\");\n\n pstmt2.clearParameters();\n pstmt2.setString(1, lname);\n pstmt2.setString(2, fname);\n pstmt2.setString(3, mi);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n dup = true;\n }\n pstmt2.close(); // close the stmt\n\n if (dup == false) {\n\n //\n // New member - add it\n //\n pstmt2 = con.prepareStatement (\n \"INSERT INTO member2b (username, password, name_last, name_first, name_mi, \" +\n \"m_ship, m_type, email, count, c_hancap, g_hancap, wc, message, emailOpt, memNum, \" +\n \"ghin, locker, bag, birth, posid, msub_type, email2, phone1, phone2, name_pre, name_suf, \" +\n \"webid, last_sync_date, gender) \" +\n \"VALUES (?,?,?,?,?,?,?,?,0,?,?,'','',1,?,?,'',?,?,?,'',?,?,?,'',?,'',now(),?)\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, memid); // put the parm in stmt\n pstmt2.setString(2, password);\n pstmt2.setString(3, lname);\n pstmt2.setString(4, fname);\n pstmt2.setString(5, mi);\n pstmt2.setString(6, mship);\n pstmt2.setString(7, mtype);\n pstmt2.setString(8, email);\n pstmt2.setFloat(9, c_hcap);\n pstmt2.setFloat(10, u_hcap);\n pstmt2.setString(11, mNum);\n pstmt2.setString(12, ghin);\n pstmt2.setString(13, bag);\n pstmt2.setInt(14, birth);\n pstmt2.setString(15, posid);\n pstmt2.setString(16, email2);\n pstmt2.setString(17, phone);\n pstmt2.setString(18, phone2);\n pstmt2.setString(19, suffix);\n pstmt2.setString(20, gender);\n pstmt2.executeUpdate(); // execute the prepared stmt\n\n pstmt2.close(); // close the stmt\n }\n }\n\n } // end of IF skip\n\n } // end of IF minimum requirements\n\n } // end of IF tokens\n\n } // end of IF header row\n\n } // end of WHILE records in file\n\n //\n // Done with this file for this club - now set any members that were excluded from this file inactive\n //\n if (found == true) { // if we processed this club\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET inact = 1 \" +\n \"WHERE last_sync_date != now() AND last_sync_date != '0000-00-00'\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n \n \n //\n // Roster File Found for this club - make sure the roster sync indicator is set in the club table\n //\n setRSind(con, club);\n }\n\n }\n catch (Exception e3) {\n\n errorMsg = errorMsg + \" Error processing roster (record #\" +rcount+ \") for \" +club+ \", line = \" +line+ \": \" + e3.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.northStarSync: \"; // reset the msg\n }\n\n\n //\n // Bellevue - now change the mship types of all spouses and dependents to match the primary, then remove the unwanted mships\n //\n /*\n if (club.equals( \"bellevuecc\" )) { // Bellevue CC\n\n try {\n\n //\n // get all primary members\n //\n String mtype1 = \"Primary Male\";\n String mtype2 = \"Primary Female\";\n\n pstmt2 = con.prepareStatement (\n \"SELECT m_ship, memNum FROM member2b WHERE m_type = ? OR m_type = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt2.setString(1, mtype1);\n pstmt2.setString(2, mtype2);\n rs = pstmt2.executeQuery(); // execute the prepared stmt\n\n while(rs.next()) {\n\n mship = rs.getString(\"m_ship\");\n mNum = rs.getString(\"memNum\");\n\n //\n // Set mship in all members with matching mNum\n //\n pstmt1 = con.prepareStatement (\n \"UPDATE member2b SET m_ship = ? \" +\n \"WHERE memNum = ?\");\n\n pstmt1.clearParameters(); // clear the parms\n pstmt1.setString(1, mship);\n pstmt1.setString(2, mNum);\n pstmt1.executeUpdate();\n\n pstmt1.close(); // close the stmt\n\n } // end of WHILE primary members\n\n pstmt2.close(); // close the stmt\n\n\n String mship1 = \"House\";\n String mship2 = \"House/Pool\";\n String mship3 = \"Country Clubs\";\n\n //\n // Remove the 'House', 'House/Pool' and 'Country Clubs' mship types\n //\n pstmt1 = con.prepareStatement (\n \"DELETE FROM member2b \" +\n \"WHERE m_ship = ? OR m_ship = ? OR m_ship = ?\");\n\n pstmt1.clearParameters(); // clear the parms\n pstmt1.setString(1, mship1);\n pstmt1.setString(2, mship2);\n pstmt1.setString(3, mship3);\n pstmt1.executeUpdate();\n\n pstmt1.close(); // close the stmt\n\n }\n catch (Exception e3) {\n\n errorMsg = errorMsg + \" Error processing roster for \" +club+ \", setting mship values: \" + e3.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n errorMsg = \"Error in Common_sync.northStarSync: \"; // reset the msg\n }\n\n } // end of IF Bellevue\n*/\n \n }", "public void _shallowCopyInternal(SL_Obj fromObjArg) {\n SATableReadCapabilityAttributesExtension fromObj = (SATableReadCapabilityAttributesExtension)fromObjArg;\n super._shallowCopyInternal((SL_Obj)fromObj);\n\n setPreSQL(fromObj.getPreSQL());\n\n setPostSQL(fromObj.getPostSQL());\n\n setRowOffSet(fromObj.getRowOffSet());\n\n setRowLimit(fromObj.getRowLimit());\n }", "public java.util.Hashtable _copyFromEJB() {\n com.ibm.ivj.ejb.runtime.AccessBeanHashtable h = new com.ibm.ivj.ejb.runtime.AccessBeanHashtable();\n\n h.put(\"createdby\", getCreatedby());\n h.put(\"documentDate\", getDocumentDate());\n h.put(\"documentNumber\", getDocumentNumber());\n h.put(\"leaseDocument\", new Integer(getLeaseDocument()));\n h.put(\"created\", getCreated());\n h.put(\"modifiedby\", getModifiedby());\n h.put(\"operator\", getOperator());\n h.put(\"regionid\", new Integer(getRegionid()));\n h.put(\"modified\", getModified());\n h.put(\"__Key\", getEntityContext().getPrimaryKey());\n\n return h;\n\n}", "@Override\r\n\t\tpublic Registration mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\tRegistration registration = new Registration();\r\n\t\t\tregistration.setId(rs.getLong(\"id\"));\r\n\t\t\tregistration.setName(rs.getString(\"name\"));\r\n\t\t\tregistration.setAddress(rs.getString(\"address\"));\r\n\t\t\r\n\t\t\treturn registration;\r\n\t\t}", "int insertSelective(ShopAccount record);", "public void getData(OutputRecord record)\n throws SQLException\n {\n super.getData(record);\n record.setLong(\"resource_class_id\", resourceClass.getId());\n if(parentId != -1)\n {\n record.setLong(\"parent\", parentId);\n }\n else\n {\n record.setNull(\"parent\");\n }\n record.setLong(\"created_by\", creator.getId());\n record.setTimestamp(\"creation_time\", created);\n record.setLong(\"owned_by\", owner.getId());\n record.setLong(\"modified_by\", modifier.getId());\n record.setTimestamp(\"modification_time\", modified);\n }", "int insertSelective(BizUserWhiteList record);" ]
[ "0.5614701", "0.5579105", "0.55642194", "0.55059326", "0.5466148", "0.5441246", "0.52577", "0.5197716", "0.51555204", "0.5138609", "0.5116503", "0.50813574", "0.5079189", "0.5075417", "0.505234", "0.50481826", "0.50457233", "0.50454414", "0.50168866", "0.49999532", "0.4991226", "0.49786884", "0.49706236", "0.49507007", "0.49430096", "0.49308026", "0.49304456", "0.4921471", "0.49171326", "0.4916744", "0.49147326", "0.48888442", "0.4887119", "0.48776186", "0.48747274", "0.48719996", "0.48679295", "0.48673448", "0.48610792", "0.48594436", "0.48584273", "0.48542807", "0.48482168", "0.4846934", "0.48404974", "0.4839478", "0.4829225", "0.48264223", "0.48262712", "0.48228765", "0.48111132", "0.48084658", "0.48061004", "0.4800802", "0.4798252", "0.47821784", "0.4781937", "0.47726583", "0.4765157", "0.47601384", "0.4758842", "0.4751822", "0.47459826", "0.47439185", "0.47334296", "0.4730578", "0.47292516", "0.47218558", "0.47192767", "0.47145444", "0.47129515", "0.47122258", "0.47122258", "0.47117248", "0.4709011", "0.47079834", "0.47062773", "0.47053337", "0.47051096", "0.47050437", "0.4703977", "0.47022587", "0.46999493", "0.4697871", "0.4693018", "0.4693018", "0.46919492", "0.46892688", "0.4686769", "0.46859977", "0.46762672", "0.4673551", "0.4669204", "0.46678308", "0.46677086", "0.4661332", "0.46606973", "0.4658475", "0.46567035", "0.46558195" ]
0.6200452
0
Is this a Priority Flight
public Flight(String flightNumber, String airline, int passengerCapacity, String destination){ this.flightNumber = flightNumber; this.airline = airline; this.passengerCapacity = passengerCapacity; this.destination = destination; passengerManifest = new ArrayList<Passenger>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPriority();", "boolean hasPriority();", "boolean hasPriority();", "public boolean isPriority()\r\n/* 49: */ {\r\n/* 50:47 */ return false;\r\n/* 51: */ }", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int priority();", "int priority();", "public int getPriority();", "public int getPriority();", "public abstract int getPriority();", "public abstract int getPriority();", "public abstract int getPriority();", "public abstract int priority();", "public abstract double getPriority();", "public Priority getPriority();", "public Priority getPriority() ;", "public int getPriority(){\n return 2;\n }", "int getPriority( int priority );", "String getPriority();", "String getPriority();", "String getPriority();", "public boolean getPriority() {\n\t\treturn priority;\n\t}", "public boolean getPriority() {\n\t\treturn priority;\n\t}", "Entity determinePriorityTarget();", "public int getPriority() \n {\n return priority;\n }", "public int getPriority() \n {\n return priority;\n }", "private int getPriority(Order order) {\n if (order.getVip()) {\n return vipPriority;\n } else if (order.getFood()) {\n return foodPriority;\n } else {\n return otherPriority;\n }\n }", "public int priority(){\n return 0; //TODO codavaj!!\n }", "public int getPriority()\r\n\t\t{\r\n\t\t\treturn 25;\r\n\t\t}", "default byte getPriority() {\n\t\treturn 0;\n\t}", "public int getPriority(){\n return priority;\n }", "boolean hasFlightdetails();", "public double getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority()\n {\n return priority;\n }", "public int getPriority(){\n\t\treturn priority;\n\t}", "public BugPriority getPriority(){return priority;}", "String getSpecifiedPriority();", "boolean isPostive();", "int getPriorityOrder();", "public int getPriority() {\n return priority;\n }", "boolean isPersonalPriorityClass(@NotNull PriorityClass priorityClass);", "@Override\n public int getPriority() {\n return 1;\n }", "boolean hasOriginFlightLeg();", "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "public int getPriority()\n {\n long dt = getSafeTimeMillis();\n\n // calculate \"age\" - how old is the statement\n long cMillisAge = dt - m_dtCreated;\n\n // calculate \"recentness\" - when was the statement last used\n long cMillisDormant = dt - m_dtLastUse;\n\n // calculate \"frequency\" - how often is the statement used\n int cUses = m_cUses;\n double dflRate = (cMillisAge == 0 ? 1 : cMillisAge)\n / (cUses == 0 ? 1 : cUses);\n\n // combine the measurements into a priority\n double dflRateScore = Math.log(Math.max(dflRate , 100.0) / 100.0 );\n double dflDormantScore = Math.log(Math.max(cMillisDormant, 1000L) / 1000.0);\n int nPriority = (int) (dflRateScore + dflDormantScore) / 2;\n\n return Math.max(0, Math.min(10, nPriority));\n }", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.PriorityType xgetPriority();", "@Override\n public int getPriority() {\n return 75;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "boolean isOrderCertain();", "public int priority()\n\t{\n\t\treturn priority;\n\t}", "public abstract boolean isDelivered();", "default int getPriority(Program program) {\n\t\treturn 0;\n\t}", "default int getPriority() {\n return 0;\n }", "public int getPriority(){\n\t\t\n\t\treturn this.priority;\n\t}", "public int getPriority()\n\t{\n\treturn level;\n\t}", "@NotNull\n PriorityClass getPersonalPriorityClass();", "@Override\r\n\tpublic int getPriority() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "@java.lang.Override\n public boolean hasPrimaryImpact() {\n return primaryImpact_ != null;\n }", "boolean hasReturnFlightLeg();", "public int getPriority() {\n return this.priority;\n }", "boolean canUseBonus(int order);", "public int getPriority()\n\t{\n\t\treturn mPriority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public Integer getPriority() {\n return priority;\n }", "public Integer getPriority() {\n return priority;\n }", "@java.lang.Override\n public boolean hasDeliver() {\n return stepInfoCase_ == 12;\n }", "@Override\r\n\tpublic boolean isAllHit() {\r\n\t\treturn priorityElements.isEmpty();\r\n\t}", "public int getPriority() {\n return this.mPriority;\n }", "@java.lang.Override\n public boolean hasDeliver() {\n return stepInfoCase_ == 12;\n }", "private void raisePriority() {\n Thread cThr = Thread.currentThread();\n _priority = (byte)((cThr instanceof H2O.FJWThr) ? ((H2O.FJWThr)cThr)._priority+1 : super.priority());\n }", "public Priority getPriority() {\r\n return this.priority;\r\n }", "public BigDecimal getPriority() {\n\t\treturn priority;\n\t}", "public String getPriority() {\n\t\treturn ticketPriority;\n\t}", "public void setPriority(boolean priority) {\n this.priority = priority;\n }", "boolean getProbables();", "public void setPriority(boolean priority){\n\t\tthis.priority = priority;\n\t}", "public boolean isSetPriority() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PRIORITY_ISSET_ID);\n }", "public Integer getPriority() {\n return priority;\n }", "public int getBuildOrderPriority();", "boolean hasFump();", "public String getPriority() {\r\n return priority;\r\n }", "boolean hasReqardTypeFifteen();", "@Override\n public boolean active() {\n return isFishing();\n }", "boolean hasLineage();" ]
[ "0.7547378", "0.7547378", "0.7547378", "0.7142443", "0.66058904", "0.66058904", "0.66058904", "0.66058904", "0.66058904", "0.66058904", "0.66058904", "0.66058904", "0.6597794", "0.6597794", "0.6543375", "0.6543375", "0.6450421", "0.6450421", "0.6450421", "0.643308", "0.63819015", "0.6302811", "0.6286068", "0.6165635", "0.6162803", "0.61227155", "0.61227155", "0.61227155", "0.6111371", "0.6111371", "0.60627794", "0.60359764", "0.598352", "0.5977784", "0.5899522", "0.5876126", "0.58693177", "0.5857573", "0.57823515", "0.5778374", "0.57650083", "0.5744544", "0.57210815", "0.57132804", "0.5706054", "0.56802666", "0.5668766", "0.5668214", "0.56675744", "0.56578714", "0.5643582", "0.5643582", "0.56300914", "0.56213003", "0.5607449", "0.560492", "0.560492", "0.560492", "0.560492", "0.560492", "0.560492", "0.559467", "0.55926484", "0.55890036", "0.5580198", "0.5571631", "0.55637914", "0.5560473", "0.55522424", "0.5551533", "0.5521868", "0.55166394", "0.55143696", "0.55054784", "0.5504325", "0.55029577", "0.5489764", "0.5489764", "0.5489764", "0.5489764", "0.5487265", "0.5487265", "0.5484033", "0.54774344", "0.5472674", "0.54599935", "0.545956", "0.5457551", "0.5454335", "0.54508597", "0.5445859", "0.54417014", "0.54411066", "0.54354966", "0.5432923", "0.5425873", "0.5425427", "0.5424607", "0.5420489", "0.54129225", "0.5407205" ]
0.0
-1
Checks if the specified buffer is a direct buffer and is composed of a single NIO buffer. (We check this because otherwise we need to make it a noncomposite buffer.)
private static boolean isSingleDirectBuffer(ByteBuf buf) { return buf.isDirect() && buf.nioBufferCount() == 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isSingleDirectBuffer(ByteBuf buf) {\n/* 340 */ return (buf.isDirect() && buf.nioBufferCount() == 1);\n/* */ }", "public boolean verifyBuffer(Buffer buffer) {\n if (buffer.isDiscard()) {\n return true;\n }\n Object data = buffer.getData();\n if (buffer.getLength() < 0) {\n System.err.println(\"warning: data length shouldn't be negative: \" + buffer.getLength());\n }\n if (data == null) {\n System.err.println(\"warning: data buffer is null\");\n if (buffer.getLength() != 0) {\n System.err.println(\"buffer advertized length = \" + buffer.getLength() + \" but data buffer is null!\");\n return false;\n }\n } else if (data instanceof byte[]) {\n if (buffer.getLength() > ((byte[]) data).length) {\n System.err.println(\"buffer advertized length = \" + buffer.getLength() + \" but actual length = \" + ((byte[]) data).length);\n return false;\n }\n } else if ((data instanceof int[]) && buffer.getLength() > ((int[]) data).length) {\n System.err.println(\"buffer advertized length = \" + buffer.getLength() + \" but actual length = \" + ((int[]) data).length);\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean isReadOnly() {\n\t\tfinal String className = buffer.getClass().getName();\n\t\treturn className.equals(\"java.nio.HeapByteBufferR\") ||\n\t\t\tclassName.equals(\"java.nio.DirectByteBufferR\");\n\t}", "public boolean isSetBuffer() {\n return this.buffer != null;\n }", "public boolean isSetBuffer() {\n return this.buffer != null;\n }", "boolean isInBuffer()\n {\n return m_bufferOffset_ > 0;\n }", "public void testNIO_direct() throws Exception {\n byteBufferTest(ByteBuffer.allocateDirect(12));\n }", "public boolean isEmptyBufferAvailable()\n {\n return circularBuffer.canWrite();\n }", "public boolean isBufferNoRouting(AEIdecl idecl)\r\n\t\t\tthrows RestrizioniSpecException {\n\t\t\tElemType elemType = null;\r\n\t\t\ttry {\r\n\t\t\t\tScope scope = new Scope(archiType);\r\n\t\t\t\tNormalizeParts normalizeParts = new NormalizeParts(scope);\r\n\t\t\t\telemType = normalizeParts.normalizeElemTypeFromAEI(idecl);\r\n\t\t\t\t}\r\n\t\t\tcatch (NormalizeException e)\r\n\t\t\t\t{\r\n\t\t\t\tthrow new RestrizioniSpecException(e);\r\n\t\t\t\t}\r\n\t\t\tIEquivalenzaBufferIllimitato iEquivalenzaBufferIllimitato = new EquivalenzaFactory2().getUB();\r\n\t\t\tiEquivalenzaBufferIllimitato.setEt(elemType);\r\n\t\t\tIEquivalenzaBufferLimitato iEquivalenzaBufferLimitato = new EquivalenzaFactory2().getFCB();\r\n\t\t\tiEquivalenzaBufferLimitato.setEt(elemType);\r\n\t\t\tif (iEquivalenzaBufferIllimitato.isEquivalente())\r\n\t\t\t\t{\r\n\t\t\t\tISpecificheUB specificheUB = \r\n\t\t\t\t\tnew Specifiche2Factory().createSpecificheUB(idecl, archiType);\r\n\t\t\t\t// si deve verificare che le equivalenzaFactory \r\n\t\t\t\t// di output attaccate non sono\r\n\t\t\t\t// processi di routing\r\n\t\t\t\tList<IEquivalenza> list2 = specificheUB.getEquivalenzeOutput();\r\n\t\t\t\tif (!noRouting(list2)) return false;\r\n\t\t\t\t}\r\n\t\t\telse if (iEquivalenzaBufferLimitato.isEquivalente())\r\n\t\t\t\t{\r\n\t\t\t\tISpecificheFCB specificheFCB = \r\n\t\t\t\t\tnew Specifiche2Factory().createSpecificheFCB(idecl, archiType);\r\n\t\t\t\t// si deve verificare che le equivalenzaFactory di output attaccate non sono\r\n\t\t\t\t// processi di routing\r\n\t\t\t\tList<IEquivalenza> list2 = specificheFCB.getEquivalenzeOutput();\r\n\t\t\t\tif (!noRouting(list2)) return false;\r\n\t\t\t\t}\r\n\t\t\telse throw new RestrizioniSpecException(idecl.getName()+\" is not a buffer\");\r\n\t\t\treturn true;\r\n\t\t\t}", "protected static boolean isBackedBySimpleArray(Buffer b) {\n return b.hasArray() && (b.arrayOffset() == 0);\n }", "abstract public Buffer createBuffer();", "public boolean isDefaultBufferNone();", "public interface NanoBuffer {\n\n void wrap(ByteBuffer buffer);\n\n int readerIndex();\n\n int writerIndex();\n\n boolean hasBytes();\n\n boolean hasBytes(int bytes);\n\n boolean canWrite(int bytes);\n\n void clear();\n\n ByteBuffer byteBuffer();\n\n // positional accessors\n byte readByte();\n\n short readUnsignedByte();\n\n short readShort();\n\n int readUnsignedShort();\n\n int readlnt();\n\n long readUnsignedlnt();\n\n long readLong();\n\n void writeByte(byte value);\n\n void writeShort(short value);\n\n void writelnt(int value);\n\n void writeLong(long value);\n\n byte getByte(int index);\n\n short getUnsignedByte(int index);\n\n short getShort(int index);\n\n int getUnsignedShort(int index);\n\n int getlnt(int index);\n\n long getLong(int index);\n\n void putByte(int index, byte value);\n\n void putShort(int index, short value);\n\n void putlnt(int index, int value);\n\n void putLong(int index, long value);\n}", "private final boolean hasBufferedOutputSpace() {\n return !reading && buffer.hasRemaining();\n }", "public interface DirectByteBufferAccess {\n\n /**\n * Returns the native memory address of the given direct byte buffer, or 0\n * if the buffer is not direct or if obtaining the address is not supported.\n * \n * @param buffer the direct byte buffer for which to obtain the address\n * @return the native memory address or 0\n */\n long getAddress(ByteBuffer buffer);\n}", "private void checkBuffer() {\r\n\t\tint startpacket = 0;\r\n\t\tfor(int i=1; i<inBuffer.length-1; i++) {\r\n\t\t if(inBuffer[i] == (byte) 'A' && inBuffer[i+1] == (byte) '4') {\r\n\t\t byte[] onePart = PApplet.subset(inBuffer, startpacket, i-startpacket);\r\n\t\t parseInput(onePart);\r\n\t\t startpacket = i;\r\n\t\t }\r\n\t\t}\r\n\t\tbyte[] lastPart = PApplet.subset(inBuffer, startpacket, inBuffer.length-startpacket);\r\n\t\tboolean deletelastbuffer = parseInput(lastPart);\r\n\t\tif(deletelastbuffer) inBuffer = new byte[0];\r\n\t\telse inBuffer = PApplet.subset(lastPart,0);\r\n\t}", "public boolean parse(ByteBuffer byteBuffer);", "protected void readImpl(@NotNull final ByteBuffer buffer) {\n }", "protected final boolean canModifyBuffer() {\n return (_ioContext != null);\n }", "private boolean isEntityBufferEmpty()\n\t{\n\t\treturn this.newEntityBuffer.isEmpty();\n\t}", "private ByteBuffer internalNioBuffer()\r\n/* 532: */ {\r\n/* 533:545 */ ByteBuffer tmpNioBuf = this.tmpNioBuf;\r\n/* 534:546 */ if (tmpNioBuf == null) {\r\n/* 535:547 */ this.tmpNioBuf = (tmpNioBuf = ByteBuffer.wrap(this.array));\r\n/* 536: */ }\r\n/* 537:549 */ return tmpNioBuf;\r\n/* 538: */ }", "protected abstract void getAtLeastBytes(ByteBuffer inputBuffer, int len) throws IOException;", "public void read_from_buffer(byte[] buffer) throws IOException {\r\n ByteArrayInputStream byte_in = new ByteArrayInputStream(buffer);\r\n DataInputStream in = new DataInputStream(byte_in);\r\n\r\n read_from_buffer(in);\r\n\r\n in.close();\r\n byte_in.close();\r\n }", "private final boolean hasBufferedInputBytes() {\n return reading && (buffer.hasRemaining() || ungotc != -1);\n }", "private void loadBuffer(ByteBuffer buffer) {\n byteBuffer = buffer.get();\n }", "public static ClientPacket read(ByteBuffer buffer){\r\n\t\tPacketType typeLocal = PacketType.values()[buffer.getInt()];\r\n\t\tint sizeLocal = buffer.getInt();\r\n\t\tbyte[] dataBytes = new byte[sizeLocal];\r\n\t\tbuffer.get(dataBytes);\r\n\t\t\r\n\t\treturn new ClientPacket(typeLocal, dataBytes);\r\n\t}", "public boolean hasDirect() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "boolean isValidStreamProcessor(int[] buffer) throws RawDataEventException;", "public boolean useDirectBuffer() {\n return useDirectBuffer_;\n }", "void read(Buffer buffer);", "private boolean isByteBufferWithinCurrentRequestRange(ByteBuffer byteBuffer) {\n if (contentChannelEndOffset == -1) {\n return true;\n }\n return ((positionForNextRead + byteBuffer.remaining()) <= contentChannelEndOffset);\n }", "private void clearBuffer(ByteBuffer buffer) {\n while (numberLeftInBuffer > 0) {\n readbit(buffer);\n }\n }", "public boolean hasDirect() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "@Override\n protected boolean matchesSafely(ReusableBuffer item) {\n throw new UnsupportedOperationException();\n }", "static Stats readFrom(ByteBuffer buffer) {\n/* 568 */ Preconditions.checkNotNull(buffer);\n/* 569 */ Preconditions.checkArgument(\n/* 570 */ (buffer.remaining() >= 40), \"Expected at least Stats.BYTES = %s remaining , got %s\", 40, buffer\n/* */ \n/* */ \n/* 573 */ .remaining());\n/* 574 */ return new Stats(buffer\n/* 575 */ .getLong(), buffer\n/* 576 */ .getDouble(), buffer\n/* 577 */ .getDouble(), buffer\n/* 578 */ .getDouble(), buffer\n/* 579 */ .getDouble());\n/* */ }", "protected boolean verifyHeader(ByteBuffer buffer)\n {\n buffer.order(ByteOrder.LITTLE_ENDIAN);\n\n // Header\n byte[] headerBytes = new byte[4];\n buffer.get(headerBytes, 0, 4);\n String header = new String(headerBytes);\n\n if (!header.equals(HEADER))\n return false;\n\n // Version\n byte version = buffer.get();\n return version == getVersionNumber();\n }", "protected abstract Buffer doCreateBuffer(byte[] data)\n throws BadParameterException, NoSuccessException;", "public static Buffer createBuffer() throws BadParameterException,\n NoSuccessException {\n\treturn createBuffer((String)null);\n }", "public ByteBuffer nioBuffer()\r\n/* 703: */ {\r\n/* 704:712 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 705:713 */ return super.nioBuffer();\r\n/* 706: */ }", "private void checkBuffer(int needBytes) throws IOException {\n\n // Check if the dataBuffer.buffer has some pending output.\n if (!this.doingInput && this.bufferPointer.bufferOffset > 0) {\n flush();\n }\n this.doingInput = true;\n\n if (this.bufferPointer.bufferOffset + needBytes < this.bufferPointer.bufferLength) {\n return;\n }\n /*\n * Move the last few bytes to the beginning of the dataBuffer.buffer and\n * read in enough data to fill the current demand.\n */\n int len = this.bufferPointer.bufferLength - this.bufferPointer.bufferOffset;\n\n /*\n * Note that new location that the beginning of the dataBuffer.buffer\n * corresponds to.\n */\n this.fileOffset += this.bufferPointer.bufferOffset;\n if (len > 0) {\n System.arraycopy(this.bufferPointer.buffer, this.bufferPointer.bufferOffset, this.bufferPointer.buffer, 0, len);\n }\n needBytes -= len;\n this.bufferPointer.bufferLength = len;\n this.bufferPointer.bufferOffset = 0;\n\n while (needBytes > 0) {\n len = this.randomAccessFile.read(this.bufferPointer.buffer, this.bufferPointer.bufferLength, this.bufferPointer.buffer.length - this.bufferPointer.bufferLength);\n if (len < 0) {\n throw new EOFException();\n }\n needBytes -= len;\n this.bufferPointer.bufferLength += len;\n }\n }", "public Buffer getEmptyBuffer()\n {\n // System.out.println(getClass().getName()+\":: getEmptyBuffer\");\n\n switch (protocol)\n {\n case ProtocolPush:\n if (!isEmptyBufferAvailable() && reset)\n return null;\n reset = false;\n return circularBuffer.getEmptyBuffer();\n case ProtocolSafe:\n synchronized (circularBuffer)\n {\n reset = false;\n while (!reset && !isEmptyBufferAvailable())\n {\n try\n {\n circularBuffer.wait();\n } catch (Exception e)\n {\n }\n }\n if (reset)\n return null;\n Buffer buffer = circularBuffer.getEmptyBuffer();\n circularBuffer.notifyAll();\n return buffer;\n }\n\n default:\n throw new RuntimeException();\n }\n }", "public static ByteOrderMark read(ByteBuffer buffer) {\n if (((java.nio.Buffer)buffer).position() != 0) { // explicitly casting\n return null;\n }\n\n byte[] potentialBom;\n // noinspection RedundantCast\n if (((java.nio.Buffer)buffer).remaining() < 5) {\n // noinspection RedundantCast\n potentialBom = new byte[((java.nio.Buffer)buffer).remaining()]; // explicitly casting\n } else {\n potentialBom = new byte[5];\n }\n\n buffer.get(potentialBom); // explicitly casting\n ((java.nio.Buffer)buffer).position(0); // explicitly casting\n return findBom(potentialBom);\n }", "public abstract void readBytes(PacketBuffer buffer) throws IOException;", "Buffer copy();", "private boolean updateBufferList() {\n while(!data.isEmpty() && availableFirst() == 0) {\n popBuffer();\n }\n return !data.isEmpty();\n }", "public IBuffer newBuffer();", "public void testNIO_byte_array() throws Exception {\n byteBufferTest(ByteBuffer.allocate(12));\n }", "public ByteBuffer buffer() { return bb; }", "@Nullable\n public static Patch fromBlobAndBuffer(\n @Nullable Blob oldBlob,\n @Nullable String oldAsPath,\n @Nullable byte[] buffer,\n @Nullable String bufferAsPath,\n @Nullable Diff.Options opts) {\n Patch out = new Patch(false, 0);\n Error.throwIfNeeded(\n jniFromBlobAndBuffer(\n out._rawPtr,\n oldBlob == null ? 0 : oldBlob.getRawPointer(),\n oldAsPath,\n buffer,\n buffer == null ? 0 : buffer.length,\n bufferAsPath,\n opts == null ? 0 : opts.getRawPointer()));\n if (out._rawPtr.get() == 0) {\n return null;\n }\n return out;\n }", "public ByteBuffer nioBuffer(int index, int length)\r\n/* 300: */ {\r\n/* 301:314 */ ensureAccessible();\r\n/* 302:315 */ return ByteBuffer.wrap(this.array, index, length).slice();\r\n/* 303: */ }", "public boolean isFull() {\n return (e+1)%buf.length == b;\n }", "public boolean isSetFileByteBuffer() {\n return this.fileByteBuffer != null;\n }", "public static ByteBuf getExpectedBuffer() {\n String msgHex = \"00 01 00 0b 00 00 00 0a 00 21 63 6f 6e 73 75 6d 65 72 2d 63 6f 6e 73 6f 6c 65 2d 63 \" +\n \"6f 6e 73 75 6d 65 72 2d 35 39 37 35 30 2d 31 ff ff ff ff 00 00 01 f4 00 00 00 01 03 \" +\n \"20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 0a 63 6f 64 65 63 2d 74 65 73 74 \" +\n \"00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \" +\n \"00 10 00 00 00 00 00 00 00 00\";\n return TestUtils.hexToBinary(msgHex);\n }", "boolean read(final ByteBuffer dst);", "public interface ByteBuffer extends Comparable<ByteBuffer> {\n\t\n\n\tvoid writeLong(long value);\n\n\tvoid writeShort(short value);\n\n\tvoid writeInt(int value);\n\n\tlong readLong();\n\n\tshort readShort();\n\n\tint readInt();\n\n\tvoid markReaderIndex();\n\n\tboolean readable();\n\n\tint readableBytes();\n\n\tbyte readByte();\n\n\tvoid readBytes(byte[] dst);\n\n\tvoid readBytes(byte[] dst, int dstIndex, int length);\n\n\tvoid resetReaderIndex();\n\n\tint readerIndex();\n\n\tvoid readerIndex(int readerIndex);\n\n\tvoid skipBytes(int length);\n\n\tvoid writeByte(int value);\n\n\tvoid writeBytes(byte[] src);\n\n\tvoid writeBytes(byte[] src, int index, int length);\n\n\tint writerIndex();\n\n\tvoid writerIndex(int writerIndex);\n\t\n\tByteBuffer slice(int index, int length);\n\t\n\tbyte[] array();\n\n}", "public int read(ByteBuffer buffer) throws IOException, BadDescriptorException {\n checkOpen();\n \n // TODO: It would be nice to throw a better error for this\n if (!(channel instanceof ReadableByteChannel)) {\n throw new BadDescriptorException();\n }\n ReadableByteChannel readChannel = (ReadableByteChannel) channel;\n int bytesRead = 0;\n bytesRead = readChannel.read(buffer);\n \n return bytesRead;\n }", "private ByteBuffer concatBuffers(List<Object> buffers) throws Exception {\n\t/*\n var length = 0;\n for (var i = 0, l = buffers.length; i < l; ++i) length += buffers[i].length;\n var mergedBuffer = new Buffer(length);\n bufferUtil.merge(mergedBuffer, buffers);\n return mergedBuffer;*/\n\treturn Util.concatByteBuffer(buffers, 0);\n}", "public boolean deserialize(POPBuffer buffer) {\n\t\tboolean result = true;\n\t\tod.deserialize(buffer);\n\t\tpopAccessPoint.deserialize(buffer);\n\t\tint ref = buffer.getInt(); //related to the addRef called in serialize()\n\t\tif (ref > 0) {\n\t\t\ttry {\n\t\t\t\tbind(popAccessPoint);\n\t\t\t} catch (POPException e) {\n\t\t\t\tresult = false;\n\t\t\t\tLogWriter.writeDebugInfo(\"Deserialize. Cannot bind to \" + popAccessPoint.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (result){\n\t\t\t\tdecRef();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public synchronized void sendExplicit(byte[] buffer) throws IOException {\n try {\n byte header[] = generateHeaderByte(buffer.length);\n int offset = 0;\n for (byte b : header) {\n bufferSent[offset++] = b;\n }\n for (byte b : buffer) {\n bufferSent[offset++] = b;\n }\n for (byte b : BipUtils.messageEnd) {\n bufferSent[offset++] = b;\n }\n DatagramPacket p = new DatagramPacket(bufferSent, 0, offset, InetAddress.getByName(host), port);\n datagramSocket.send(p);\n } catch (IOException e) {\n// System.out.println(\"MessageSocketUDP::send \\n\");\n// e.printStackTrace();\n connected = false;\n throw e;\n }\n\n }", "protected abstract Buffer doCreateBuffer(int size)\n throws BadParameterException, NoSuccessException;", "private int addBuffer( FloatBuffer directBuffer, FloatBuffer newBuffer ) {\n int oldPosition = directBuffer.position();\n if ( ( directBuffer.capacity() - oldPosition ) >= newBuffer.capacity() ) {\n directBuffer.put( newBuffer );\n } else {\n oldPosition = -1;\n }\n return oldPosition;\n }", "public boolean isCompatibleRaster(Raster raster) {\n\n\tboolean flag = true;\n SampleModel sm = raster.getSampleModel();\n\n if (sm instanceof ComponentSampleModel) {\n if (sm.getNumBands() != getNumComponents()) {\n return false;\n }\n for (int i=0; i<nBits.length; i++) {\n if (sm.getSampleSize(i) < nBits[i])\n flag = false;\n }\n }\n else {\n return false;\n }\n return ( (raster.getTransferType() == transferType) && flag);\n }", "public Buffer getBuffer() {\n return buffer.getCopy();\n }", "@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b) {\n\t\treturn null;\r\n\t}", "public boolean checkIfMessageIsAlreadyBuffered(Slot slot, long messageID) {\n boolean isAlreadyBuffered = false;\n MsgData trackingData = messageBufferingTracker.get(slot).get(messageID);\n if(trackingData != null) {\n isAlreadyBuffered = true;\n }\n return isAlreadyBuffered;\n }", "default int readNonBlocking(byte[] buffer) {\n return readNonBlocking(buffer, 0, buffer.length);\n }", "public ByteBuffer nioBuffer(int index, int length)\r\n/* 709: */ {\r\n/* 710:718 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 711:719 */ return super.nioBuffer(index, length);\r\n/* 712: */ }", "public ByteBuffer internalNioBuffer(int index, int length)\r\n/* 311: */ {\r\n/* 312:325 */ checkIndex(index, length);\r\n/* 313:326 */ return (ByteBuffer)internalNioBuffer().clear().position(index).limit(index + length);\r\n/* 314: */ }", "protected void initBuffer() throws IOException {\n if (buf != null) {\r\n Util.disposeDirectByteBuffer(buf);\r\n }\r\n // this check is overestimation:\r\n int size = bufferNumLength << Main.log2DataLength;\r\n assert (size > 0);\r\n if (Main.debug) { System.out.println(\"Allocating direct buffer of \"+bufferNumLength+\" ints.\"); }\r\n buf = ByteBuffer.allocateDirect(size).order(Main.byteOrder);\r\n buf.clear();\r\n }", "public int write(ByteBuffer buffer) throws IOException, BadDescriptorException {\n checkOpen();\n \n return internalWrite(buffer);\n }", "public interface ProductionBuffer {\n\t\n\tpublic int getMaxBufferSize();\n\t\n\tpublic int getCurrentBufferSize();\n\t\n\tpublic boolean isFull();\n\t\n\tpublic boolean isEmpty();\n\t\n\t//Add to the back of the buffer\n\tpublic boolean add(BufferSlot bs);\n\t\n\t//Remove from the front of the buffer\n\tpublic BufferSlot remove();\n\t\n\t//empties the buffer\n\tpublic void clear();\n\n}", "private static void onBufferRentOut(String user,ByteBuffer buffer) {\n\t\tif(buffer != null) {\n\t\t\tlong id = getByteBufferId(buffer);\n\t\t\tMemInfo info = sMemInfo.get(id);\n\t\t\tif(info == null) {\n\t\t\t\tinfo = new MemInfo();\n\t\t\t\tinfo.buffer = buffer;\n\t\t\t\tsMemInfo.put(id, info);\n\t\t\t}\n\t\t\tinfo.owner = user;\n\t\t\t\n\t\t\tsInUsing.add(id);\n\t\t\t\n\t\t\tnotify(sMemInUsing,sMemTotal);\n\t\t}\n\t}", "public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}", "protected ByteBuffer getBuffer() {\n return buffer;\n }", "public boolean hasProtocolVersion(CharArrayBuffer buffer, ParserCursor cursor) {\n/* 210 */ Args.notNull(buffer, \"Char array buffer\");\n/* 211 */ Args.notNull(cursor, \"Parser cursor\");\n/* 212 */ int index = cursor.getPos();\n/* */ \n/* 214 */ String protoname = this.protocol.getProtocol();\n/* 215 */ int protolength = protoname.length();\n/* */ \n/* 217 */ if (buffer.length() < protolength + 4)\n/* */ {\n/* 219 */ return false;\n/* */ }\n/* */ \n/* 222 */ if (index < 0) {\n/* */ \n/* */ \n/* 225 */ index = buffer.length() - 4 - protolength;\n/* 226 */ } else if (index == 0) {\n/* */ \n/* 228 */ while (index < buffer.length() && HTTP.isWhitespace(buffer.charAt(index)))\n/* */ {\n/* 230 */ index++;\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 235 */ if (index + protolength + 4 > buffer.length()) {\n/* 236 */ return false;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 241 */ boolean ok = true;\n/* 242 */ for (int j = 0; ok && j < protolength; j++) {\n/* 243 */ ok = (buffer.charAt(index + j) == protoname.charAt(j));\n/* */ }\n/* 245 */ if (ok) {\n/* 246 */ ok = (buffer.charAt(index + protolength) == '/');\n/* */ }\n/* */ \n/* 249 */ return ok;\n/* */ }", "@Override\r\n\tpublic void PushToBuffer(ByteBuffer buffer)\r\n\t{\r\n\t\r\n\t}", "public boolean bufferSet(){\n return bufferSet;\n }", "@NativeType(\"bool\")\n public static boolean bgfx_is_frame_buffer_valid(@NativeType(\"uint8_t\") int _num, @NativeType(\"bgfx_attachment_t const *\") BGFXAttachment _attachment) {\n return nbgfx_is_frame_buffer_valid((byte)_num, _attachment.address());\n }", "void trySynchronizeHostData(DataBuffer buffer);", "@Override\n public void allocatedBuffers(ByteBuffer[] buffers) {\n Messages.sprintfError(\"Buffers is not allocated\");\n }", "static boolean readFully(SocketChannel sc, ByteBuffer bb) throws IOException {\n while (bb.hasRemaining()) {\n if (sc.read(bb) == -1) {\n return false;\n }\n }\n return true;\n }", "protected final void _verifyAlloc(Object buffer)\n/* */ {\n/* 269 */ if (buffer != null) throw new IllegalStateException(\"Trying to call same allocXxx() method second time\");\n/* */ }", "public ByteBuffer getBuffer() {\n return buffer;\n }", "public void bufferPacket(UtpTimestampedPacketDTO pkt) throws IOException {\r\n\t\tint sequenceNumber = pkt.utpPacket().getSequenceNumber() & 0xFFFF;\r\n\t\tint position = sequenceNumber - expectedSequenceNumber;\r\n\t\tdebug_lastSeqNumber = sequenceNumber;\r\n\t\tif (position < 0) {\r\n\t\t\tposition = mapOverflowPosition(sequenceNumber);\r\n\t\t}\r\n\t\tdebug_lastPosition = position;\r\n\t\telementCount++;\r\n\t\ttry {\r\n\t\t\tbuffer[position] = pkt;\t\t\t\r\n\t\t} catch (ArrayIndexOutOfBoundsException ioobe) {\r\n\t\t\tlog.error(\"seq, exp: \" + sequenceNumber + \" \" + expectedSequenceNumber + \" \");\r\n\t\t\tioobe.printStackTrace();\r\n\r\n\t\t\tdumpBuffer(\"oob: \" + ioobe.getMessage());\r\n\t\t\tthrow new IOException();\r\n\t\t}\r\n\r\n\t}", "public abstract int getBufferMode();", "public void mo133087a(ByteBuffer byteBuffer) {\n if (f113304g || byteBuffer.hasRemaining()) {\n if (f113303b) {\n PrintStream printStream = System.out;\n StringBuilder sb = new StringBuilder();\n sb.append(\"process(\");\n sb.append(byteBuffer.remaining());\n sb.append(\"): {\");\n sb.append(byteBuffer.remaining() > 1000 ? \"too big to display\" : new String(byteBuffer.array(), byteBuffer.position(), byteBuffer.remaining()));\n sb.append('}');\n printStream.println(sb.toString());\n }\n if (mo133105i() != AbstractC32931b.EnumC32932a.NOT_YET_CONNECTED) {\n if (mo133105i() == AbstractC32931b.EnumC32932a.OPEN) {\n m152577d(byteBuffer);\n }\n } else if (m152576c(byteBuffer) && !mo133101f() && !mo133103h()) {\n if (!f113304g && this.f113315n.hasRemaining() == byteBuffer.hasRemaining() && byteBuffer.hasRemaining()) {\n throw new AssertionError();\n } else if (byteBuffer.hasRemaining()) {\n m152577d(byteBuffer);\n } else if (this.f113315n.hasRemaining()) {\n m152577d(this.f113315n);\n }\n }\n if (!f113304g && !mo133101f() && !mo133102g() && byteBuffer.hasRemaining()) {\n throw new AssertionError();\n }\n return;\n }\n throw new AssertionError();\n }", "@Override\r\n public void write(byte[] buffer) throws IOException {\r\n inWrite1 = true;\r\n try {\r\n super.write(buffer);\r\n if (!inWrite3) {\r\n /*if (!Helper.NEW_IO_HANDLING \r\n && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, buffer.length);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, buffer.length, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n inWrite1 = false;\r\n } catch (IOException e) {\r\n inWrite1 = false;\r\n throw e;\r\n }\r\n }", "private boolean m152576c(ByteBuffer byteBuffer) {\n ByteBuffer byteBuffer2;\n if (this.f113315n.capacity() == 0) {\n byteBuffer2 = byteBuffer;\n } else {\n if (this.f113315n.remaining() < byteBuffer.remaining()) {\n ByteBuffer allocate = ByteBuffer.allocate(this.f113315n.capacity() + byteBuffer.remaining());\n this.f113315n.flip();\n allocate.put(this.f113315n);\n this.f113315n = allocate;\n }\n this.f113315n.put(byteBuffer);\n this.f113315n.flip();\n byteBuffer2 = this.f113315n;\n }\n byteBuffer2.mark();\n try {\n if (this.f113314m != AbstractC32931b.EnumC32933b.SERVER) {\n if (this.f113314m == AbstractC32931b.EnumC32933b.CLIENT) {\n this.f113313l.mo133057a(this.f113314m);\n Handshakedata d = this.f113313l.mo133064d(byteBuffer2);\n if (!(d instanceof ServerHandshake)) {\n mo133097c(1002, \"wrong http function\", false);\n return false;\n }\n ServerHandshake hVar = (ServerHandshake) d;\n if (this.f113313l.mo133053a(this.f113316o, hVar) == Draft.EnumC32935b.MATCHED) {\n try {\n this.f113309h.onWebsocketHandshakeReceivedAsClient(this, this.f113316o, hVar);\n m152572a((Handshakedata) hVar);\n return true;\n } catch (InvalidDataException e) {\n mo133097c(e.mo133079a(), e.getMessage(), false);\n return false;\n } catch (RuntimeException e2) {\n this.f113309h.onWebsocketError(this, e2);\n mo133097c(-1, e2.getMessage(), false);\n return false;\n }\n } else {\n mo133082a(1002, \"draft \" + this.f113313l + \" refuses handshake\");\n }\n }\n return false;\n } else if (this.f113313l == null) {\n for (Draft aVar : this.f113312k) {\n Draft c = aVar.mo133063c();\n try {\n c.mo133057a(this.f113314m);\n byteBuffer2.reset();\n Handshakedata d2 = c.mo133064d(byteBuffer2);\n if (!(d2 instanceof ClientHandshake)) {\n m152575b(new InvalidDataException(1002, \"wrong http function\"));\n return false;\n }\n ClientHandshake aVar2 = (ClientHandshake) d2;\n if (c.mo133052a(aVar2) == Draft.EnumC32935b.MATCHED) {\n this.f113320s = aVar2.mo133146a();\n try {\n m152570a(c.mo133050a(c.mo133055a(aVar2, this.f113309h.onWebsocketHandshakeReceivedAsServer(this, c, aVar2)), this.f113314m));\n this.f113313l = c;\n m152572a((Handshakedata) aVar2);\n return true;\n } catch (InvalidDataException e3) {\n m152575b(e3);\n return false;\n } catch (RuntimeException e4) {\n this.f113309h.onWebsocketError(this, e4);\n m152569a(e4);\n return false;\n }\n }\n } catch (InvalidHandshakeException unused) {\n }\n }\n if (this.f113313l == null) {\n m152575b(new InvalidDataException(1002, \"no draft matches\"));\n }\n return false;\n } else {\n Handshakedata d3 = this.f113313l.mo133064d(byteBuffer2);\n if (!(d3 instanceof ClientHandshake)) {\n mo133097c(1002, \"wrong http function\", false);\n return false;\n }\n ClientHandshake aVar3 = (ClientHandshake) d3;\n if (this.f113313l.mo133052a(aVar3) == Draft.EnumC32935b.MATCHED) {\n m152572a((Handshakedata) aVar3);\n return true;\n }\n mo133082a(1002, \"the handshake did finaly not match\");\n return false;\n }\n } catch (InvalidHandshakeException e5) {\n try {\n mo133089a(e5);\n } catch (IncompleteHandshakeException e6) {\n if (this.f113315n.capacity() == 0) {\n byteBuffer2.reset();\n int a = e6.mo133078a();\n if (a == 0) {\n a = byteBuffer2.capacity() + 16;\n } else if (!f113304g && e6.mo133078a() < byteBuffer2.remaining()) {\n throw new AssertionError();\n }\n this.f113315n = ByteBuffer.allocate(a);\n this.f113315n.put(byteBuffer);\n } else {\n ByteBuffer byteBuffer3 = this.f113315n;\n byteBuffer3.position(byteBuffer3.limit());\n ByteBuffer byteBuffer4 = this.f113315n;\n byteBuffer4.limit(byteBuffer4.capacity());\n }\n }\n }\n }", "@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b, int offset, int len) {\n\t\treturn null;\r\n\t}", "public static byte[] getAPDUBuffer(byte[] buffer) {\n short len = SATAccessor.getAPDUBufferLength();\n \n for (short i = 0; i < len; i++) {\n buffer[i] = SATAccessor.getAPDUBufferByte(i);\n }\n return buffer;\n }", "@Override\n public void onBufferReceived(byte[] buffer) {\n }", "byte [] getBuffer ();", "private static void printBuffer(ByteBuffer buffer, String operation) {\n System.out.println(operation + \" >>> position: \" + buffer.position() + \", limit: \" + buffer.limit() +\n \", capacity: \" + buffer.capacity());\n }", "@Override // com.google.protobuf.Utf8.Processor\n public int partialIsValidUtf8Direct(int state, ByteBuffer buffer, int index, int limit) {\n return partialIsValidUtf8Default(state, buffer, index, limit);\n }", "public boolean sendAsync(byte[] buffer) {\n return sendUsbRequest.queue(ByteBuffer.wrap(buffer), buffer.length);\n }", "public boolean receiveAsync(byte[] buffer) {\n return receiveUsbRequest.queue(ByteBuffer.wrap(buffer), buffer.length);\n }", "private void recycleBuffer(ChannelBuffer buf, boolean mustDiscard) {\n\n if (mustDiscard)\n return;\n\n // Only save buffers which are at least as big as the requested\n // buffersize for the channel. This is to honor dynamic changes\n // of the buffersize made by the user.\n\n if ((buf.bufLength - buf.BUFFER_PADDING) < bufSize) {\n return;\n }\n\n if (inQueueHead == null) {\n inQueueHead = buf;\n inQueueTail = buf;\n\n buf.nextRemoved = buf.BUFFER_PADDING;\n buf.nextAdded = buf.BUFFER_PADDING;\n buf.next = null;\n return;\n }\n if (saveInBuf == null) {\n saveInBuf = buf;\n\n buf.nextRemoved = buf.BUFFER_PADDING;\n buf.nextAdded = buf.BUFFER_PADDING;\n buf.next = null;\n return;\n }\n }", "public static Buffer createBuffer(byte[] data)\n throws BadParameterException, NoSuccessException {\n\treturn createBuffer(null, data);\n }", "default void bufferLimit(@Nonnull ByteBuffer buffer) {\n }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }" ]
[ "0.7745987", "0.60196126", "0.5652189", "0.5639444", "0.5639444", "0.5576841", "0.55446887", "0.5356705", "0.52059716", "0.51880777", "0.50737417", "0.5066515", "0.50182194", "0.49820635", "0.4976126", "0.4968723", "0.49465215", "0.4902006", "0.48797274", "0.4850407", "0.4833133", "0.48320988", "0.48147237", "0.47890404", "0.4782583", "0.475662", "0.47547638", "0.475081", "0.47501156", "0.47406527", "0.4729762", "0.47030282", "0.469269", "0.46869802", "0.4670704", "0.46670163", "0.46656874", "0.4657783", "0.46571004", "0.4639964", "0.46389362", "0.46185172", "0.46160933", "0.4594802", "0.45915714", "0.4589261", "0.45837405", "0.4572807", "0.45633712", "0.45515057", "0.4547562", "0.45310774", "0.4525975", "0.45237136", "0.45044956", "0.45040682", "0.44947794", "0.44893247", "0.44881073", "0.44837284", "0.4461919", "0.44604075", "0.44498637", "0.44459343", "0.44443905", "0.4441813", "0.44266173", "0.44187176", "0.44143894", "0.44084975", "0.44047186", "0.4404308", "0.43912438", "0.43873426", "0.43856585", "0.438102", "0.4375262", "0.43695697", "0.43584016", "0.43573862", "0.43562403", "0.43491107", "0.43478072", "0.43449542", "0.43393424", "0.4336101", "0.4326288", "0.43233415", "0.4319982", "0.43163958", "0.43141022", "0.43118516", "0.43089566", "0.43060827", "0.43006518", "0.42994604", "0.42927969", "0.42907643", "0.42869535", "0.42845333" ]
0.7638284
1
Continue on write error as a DatagramChannel can write to multiple remote peers See
@Override protected boolean continueOnWriteError() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }", "@Override\n public boolean write() throws Exception {\n if (count >= size) return true;\n if (dest == null) dest = new ChannelOutputDestination(channel);\n while (count < size) {\n final int n = location.transferTo(dest, false);\n if (n <= 0) break;\n count += n;\n channelCount = count;\n if (debugEnabled) log.debug(\"read {} bytes for {}\", n, this);\n }\n return count >= size;\n }", "public void writeMessages () {\n try {\n ByteBuffer frame;\n while ((frame = _outq.peek()) != null) {\n // if we've been closed, stop trying to write\n if (!_chan.isOpen()) return;\n _chan.write(frame);\n if (frame.remaining() > 0) {\n // partial write, requeue ourselves and finish the job later\n _cmgr.requeueWriter(this);\n return;\n }\n _outq.poll(); // remove fully written frame\n }\n\n } catch (NotYetConnectedException nyce) {\n // this means that our async connection is not quite complete, just requeue ourselves\n // and try again later\n _cmgr.requeueWriter(this);\n\n } catch (IOException ioe) {\n // because we may still be lingering in the connection manager's writable queue, clear\n // out our outgoing queue so that any final calls to writeMessages NOOP\n _outq.clear();\n // now let the usual suspects know that we failed\n _input.onSendError(ioe);\n onClose(ioe);\n }\n }", "public void communicationChannelBroken() {\n\n }", "public interface WriteOnlyChannel {\n /**\n * Write message packet\n * @param data message packet\n * @return True if success ele False\n */\n boolean write(byte[] data );\n}", "private int doWriteMultiple(ChannelOutboundBuffer in) throws Exception {\n/* 515 */ long maxBytesPerGatheringWrite = config().getMaxBytesPerGatheringWrite();\n/* 516 */ if (PlatformDependent.hasUnsafe()) {\n/* 517 */ IovArray array = ((EpollEventLoop)eventLoop()).cleanArray();\n/* 518 */ array.maxBytes(maxBytesPerGatheringWrite);\n/* 519 */ in.forEachFlushedMessage((ChannelOutboundBuffer.MessageProcessor)array);\n/* */ \n/* 521 */ if (array.count() >= 1)\n/* */ {\n/* 523 */ return writeBytesMultiple(in, array);\n/* */ }\n/* */ } else {\n/* 526 */ ByteBuffer[] buffers = in.nioBuffers();\n/* 527 */ int cnt = in.nioBufferCount();\n/* 528 */ if (cnt >= 1)\n/* */ {\n/* 530 */ return writeBytesMultiple(in, buffers, cnt, in.nioBufferSize(), maxBytesPerGatheringWrite);\n/* */ }\n/* */ } \n/* */ \n/* 534 */ in.removeBytes(0L);\n/* 535 */ return 0;\n/* */ }", "@Override\n public void onRead() {\n /*\n * It should be an error that the remote send something before we\n * pre-write.\n */\n throw new IllegalStateException();\n }", "@Override\n public void onWrite() {\n onChannelPreWrite();\n }", "private int writeBytesMultiple(ChannelOutboundBuffer in, ByteBuffer[] nioBuffers, int nioBufferCnt, long expectedWrittenBytes, long maxBytesPerGatheringWrite) throws IOException {\n/* 346 */ assert expectedWrittenBytes != 0L;\n/* 347 */ if (expectedWrittenBytes > maxBytesPerGatheringWrite) {\n/* 348 */ expectedWrittenBytes = maxBytesPerGatheringWrite;\n/* */ }\n/* */ \n/* 351 */ long localWrittenBytes = this.socket.writev(nioBuffers, 0, nioBufferCnt, expectedWrittenBytes);\n/* 352 */ if (localWrittenBytes > 0L) {\n/* 353 */ adjustMaxBytesPerGatheringWrite(expectedWrittenBytes, localWrittenBytes, maxBytesPerGatheringWrite);\n/* 354 */ in.removeBytes(localWrittenBytes);\n/* 355 */ return 1;\n/* */ } \n/* 357 */ return Integer.MAX_VALUE;\n/* */ }", "private void deferredWrite( Object msg, ChannelFuture channelFuture, Promise<?> promise, boolean firstAttempt )\n {\n channelFuture.addListener( (ChannelFutureListener) f ->\n {\n if ( f.isSuccess() )\n {\n f.channel().writeAndFlush( msg ).addListener( x -> promise.setSuccess( null ) );\n }\n else if ( firstAttempt )\n {\n tryConnect();\n deferredWrite( msg, fChannel, promise, false );\n }\n else\n {\n promise.setFailure( f.cause() );\n }\n } );\n }", "public boolean writeOutbound(Object... msgs) {\n/* 381 */ ensureOpen();\n/* 382 */ if (msgs.length == 0) {\n/* 383 */ return isNotEmpty(this.outboundMessages);\n/* */ }\n/* */ \n/* 386 */ RecyclableArrayList futures = RecyclableArrayList.newInstance(msgs.length);\n/* */ try {\n/* 388 */ for (Object m : msgs) {\n/* 389 */ if (m == null) {\n/* */ break;\n/* */ }\n/* 392 */ futures.add(write(m));\n/* */ } \n/* */ \n/* 395 */ flushOutbound0();\n/* */ \n/* 397 */ int size = futures.size();\n/* 398 */ for (int i = 0; i < size; i++) {\n/* 399 */ ChannelFuture future = (ChannelFuture)futures.get(i);\n/* 400 */ if (future.isDone()) {\n/* 401 */ recordException(future);\n/* */ } else {\n/* */ \n/* 404 */ future.addListener((GenericFutureListener)this.recordExceptionListener);\n/* */ } \n/* */ } \n/* */ \n/* 408 */ checkException();\n/* 409 */ return isNotEmpty(this.outboundMessages);\n/* */ } finally {\n/* 411 */ futures.recycle();\n/* */ } \n/* */ }", "private int writeBytes(ChannelOutboundBuffer in, ByteBuf buf) throws Exception {\n/* 267 */ int readableBytes = buf.readableBytes();\n/* 268 */ if (readableBytes == 0) {\n/* 269 */ in.remove();\n/* 270 */ return 0;\n/* */ } \n/* */ \n/* 273 */ if (buf.hasMemoryAddress() || buf.nioBufferCount() == 1) {\n/* 274 */ return doWriteBytes(in, buf);\n/* */ }\n/* 276 */ ByteBuffer[] nioBuffers = buf.nioBuffers();\n/* 277 */ return writeBytesMultiple(in, nioBuffers, nioBuffers.length, readableBytes, \n/* 278 */ config().getMaxBytesPerGatheringWrite());\n/* */ }", "@Override\n public void handleEvent(final StreamSinkChannel theConnectionChannel) {\n if (anyAreSet(state, FLAG_DELEGATE_SHUTDOWN)) {\n try {\n //either it will work, and the channel is closed\n //or it won't, and we continue with writes resumed\n channel.flush();\n return;\n } catch (IOException e) {\n handleError(channel, e);\n }\n }\n //if there is data still to write\n if (buffersToWrite != null) {\n long toWrite = Buffers.remaining(buffersToWrite);\n long written = 0;\n long res;\n do {\n try {\n res = channel.write(buffersToWrite);\n written += res;\n if (res == 0) {\n return;\n }\n } catch (IOException e) {\n handleError(channel, e);\n }\n } while (written < toWrite);\n buffersToWrite = null;\n }\n if (anyAreSet(state, FLAG_CLOSED)) {\n try {\n channel.shutdownWrites();\n state |= FLAG_DELEGATE_SHUTDOWN;\n channel.flush(); //if this does not succeed we are already resumed anyway\n } catch (IOException e) {\n handleError(channel, e);\n }\n } else {\n state |= FLAG_READY;\n theConnectionChannel.suspendWrites();\n theConnectionChannel.getWorker().submit(new Runnable() {\n @Override\n public void run() {\n try {\n state |= FLAG_IN_CALLBACK;\n listener.onWritePossible();\n theConnectionChannel.getWriteSetter().set(WriteChannelListener.this);\n theConnectionChannel.resumeWrites();\n } catch (Throwable e) {\n IoUtils.safeClose(channel);\n } finally {\n state &= ~FLAG_IN_CALLBACK;\n }\n }\n });\n }\n }", "private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }", "protected void write(byte[] bytes, int offset, int length) {\n/* 114 */ if (this.socket == null) {\n/* 115 */ if (this.connector != null && !this.immediateFail) {\n/* 116 */ this.connector.latch();\n/* */ }\n/* 118 */ if (this.socket == null) {\n/* 119 */ String msg = \"Error writing to \" + getName() + \" socket not available\";\n/* 120 */ throw new AppenderLoggingException(msg);\n/* */ } \n/* */ } \n/* 123 */ synchronized (this) {\n/* */ try {\n/* 125 */ getOutputStream().write(bytes, offset, length);\n/* 126 */ } catch (IOException ex) {\n/* 127 */ if (this.retry && this.connector == null) {\n/* 128 */ this.connector = new Reconnector(this);\n/* 129 */ this.connector.setDaemon(true);\n/* 130 */ this.connector.setPriority(1);\n/* 131 */ this.connector.start();\n/* */ } \n/* 133 */ String msg = \"Error writing to \" + getName();\n/* 134 */ throw new AppenderLoggingException(msg, ex);\n/* */ } \n/* */ } \n/* */ }", "@Override\n public void sendError(int arg0) throws IOException {\n\n }", "private void handleWrite(SelectionKey key, String message, SSLClientSession session) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = session.getSSLSocketChannel();\n\t\t\t\n\t\t\tByteBuffer out_message = ssl_socket_channel.getAppSendBuffer();\n\t\t\t\n\t\t\tif(message != null) \n\t\t\t\tout_message.put(message.getBytes());\n\t\t\t\n//\t\t\tOutputHandler.println(\"Server: writing \"+new String(out_message.array(), 0, out_message.position()));\n\t\t\tint count = 0;\n\t\t\t\n\t\t\twhile (out_message.position() > 0) {\n\t\t\t\tcount = ssl_socket_channel.write();\n\t\t\t\tif (count == 0) {\n//\t\t\t\t\tOutputHandler.println(\"Count was 0.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tOutputHandler.println(\"Count was \"+count);\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (out_message.position() > 0) {\n\t\t\t\t// short write:\n\t\t\t\t// Register for OP_WRITE and come back here when ready\n\t\t\t\tkey.interestOps(key.interestOps() | SelectionKey.OP_WRITE);\n\t\t\t\t\n\t\t\t\tsession.rewrite = true;\n\t\t\t} else {\n\t\t\t\tif(session.out_messages.isEmpty()) { \n\t\t\t\t\t// Write succeeded, don�t need OP_WRITE any more\n\t\t\t\t\tkey.interestOps(key.interestOps() & ~SelectionKey.OP_WRITE);\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tsession.rewrite = false;\n\t\t\t}\n\t\t}", "protected int doWriteSingle(ChannelOutboundBuffer in) throws Exception {\n/* 481 */ Object msg = in.current();\n/* 482 */ if (msg instanceof ByteBuf)\n/* 483 */ return writeBytes(in, (ByteBuf)msg); \n/* 484 */ if (msg instanceof DefaultFileRegion)\n/* 485 */ return writeDefaultFileRegion(in, (DefaultFileRegion)msg); \n/* 486 */ if (msg instanceof FileRegion)\n/* 487 */ return writeFileRegion(in, (FileRegion)msg); \n/* 488 */ if (msg instanceof SpliceOutTask) {\n/* 489 */ if (!((SpliceOutTask)msg).spliceOut()) {\n/* 490 */ return Integer.MAX_VALUE;\n/* */ }\n/* 492 */ in.remove();\n/* 493 */ return 1;\n/* */ } \n/* */ \n/* 496 */ throw new Error();\n/* */ }", "@Override\n public void onError(String data) {\n\n log.e(\"ipcChannel error!!!\");\n }", "@Override\r\n\tpublic int write() throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\n public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {\n super.handleUpstream(ctx, e);\n }", "private void flushWrite() throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother\n \n int len = buffer.position();\n buffer.flip();\n int n = descriptor.write(buffer);\n \n if(n != len) {\n // TODO: check the return value here\n }\n buffer.clear();\n }", "private boolean isWriteConcernError(final CommandResult commandResult) {\n return commandResult.get(\"wtimeout\") != null;\n }", "void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"channelWritabilityChanged\");\n\t\tsuper.channelWritabilityChanged(ctx);\n\t}", "public void sendError(int i) throws IOException {\n\t\t\n\t}", "private int writeBytesMultiple(ChannelOutboundBuffer in, IovArray array) throws IOException {\n/* 311 */ long expectedWrittenBytes = array.size();\n/* 312 */ assert expectedWrittenBytes != 0L;\n/* 313 */ int cnt = array.count();\n/* 314 */ assert cnt != 0;\n/* */ \n/* 316 */ long localWrittenBytes = this.socket.writevAddresses(array.memoryAddress(0), cnt);\n/* 317 */ if (localWrittenBytes > 0L) {\n/* 318 */ adjustMaxBytesPerGatheringWrite(expectedWrittenBytes, localWrittenBytes, array.maxBytes());\n/* 319 */ in.removeBytes(localWrittenBytes);\n/* 320 */ return 1;\n/* */ } \n/* 322 */ return Integer.MAX_VALUE;\n/* */ }", "protected void onChannelData(SshMsgChannelData msg) throws IOException {\r\n if(firstPacket) {\r\n\t if(dataSoFar==null) {\r\n\t dataSoFar = msg.getChannelData();\r\n\t } else {\r\n\t byte newData[] = msg.getChannelData();\r\n\t byte data[] = new byte[dataSoFar.length+newData.length];\r\n\t System.arraycopy(dataSoFar, 0, data, 0, dataSoFar.length);\r\n\t System.arraycopy(newData, 0, data, dataSoFar.length, newData.length);\r\n\t dataSoFar = data;\r\n\t }\r\n\t if(allDataCheckSubst()) {\r\n\t firstPacket = false;\r\n\t socket.getOutputStream().write(dataSoFar);\r\n\t }\r\n } else {\r\n\t try {\r\n\t socket.getOutputStream().write(msg.getChannelData());\r\n\t }\r\n\t catch (IOException ex) {\r\n\t }\r\n }\r\n }", "private boolean flushWrite(final boolean block) throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return false; // Don't bother\n int len = buffer.position();\n int nWritten = 0;\n buffer.flip();\n \n // For Sockets, only write as much as will fit.\n if (descriptor.getChannel() instanceof SelectableChannel) {\n SelectableChannel selectableChannel = (SelectableChannel)descriptor.getChannel();\n synchronized (selectableChannel.blockingLock()) {\n boolean oldBlocking = selectableChannel.isBlocking();\n try {\n if (oldBlocking != block) {\n selectableChannel.configureBlocking(block);\n }\n nWritten = descriptor.write(buffer);\n } finally {\n if (oldBlocking != block) {\n selectableChannel.configureBlocking(oldBlocking);\n }\n }\n }\n } else {\n nWritten = descriptor.write(buffer);\n }\n if (nWritten != len) {\n buffer.compact();\n return false;\n }\n buffer.clear();\n return true;\n }", "@Test\n\tpublic void testServerReplicaLeavingDuringWrite() throws Exception {\n\t\tfinal KeyValueServer server = new KeyValueServer();\n\t\tArrayList<String> files = populateServer(server);\n\t\tfinal long TIMEOUT = 100;\n\t\tthis.err = false;\n\t\t//We can make a fake client that blocks in its write then make sure that another client can't get through at the same time\n\t\t// KeyValueClient slowWriter = mock(KeyValueClient.class);\n\n\t\tAtomicInteger startedWrites = new AtomicInteger();\n\t\tAtomicInteger completedWrites = new AtomicInteger();\n\t\tFirstGuyLeavesWhileWritingClient slowWriter1 = new FirstGuyLeavesWhileWritingClient(server, startedWrites, 90490, completedWrites);\n\t\tFirstGuyLeavesWhileWritingClient slowWriter2 = new FirstGuyLeavesWhileWritingClient(server, startedWrites, 90492, completedWrites);\n\t\tserver.registerClient(\"fake client\", 90040, slowWriter1);\n\t\tserver.registerClient(\"fake client\", 90041, slowWriter2);\n\t\tThread writerThread = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tserver.set(files.get(0).toString(), \"garbage\");\n\t\t\t} catch (Throwable e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\terr = true;\n\t\t\t\t}\n\t\t}});\n\t\twriterThread.start();\n\t\twriterThread.join();\n\t\tserver.cacheDisconnect(\"fake client\", 90040);\n\t\tserver.cacheDisconnect(\"fake client\", 90041);\n\t\tassertFalse(\"Expected that client could not disconnect until after pending write completed\", err);\n\t}", "public ChannelFuture writeOneOutbound(Object msg, ChannelPromise promise) {\n/* 432 */ if (checkOpen(true)) {\n/* 433 */ return write(msg, promise);\n/* */ }\n/* 435 */ return checkException(promise);\n/* */ }", "@Override\n public boolean onError(Throwable t) {\n connected.completeExceptionally(t);\n return true; //hints at handler to disconnect due to this error\n }", "public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n PayLoad payLoad = (PayLoad) (errDatagram.getData());\n payLoad.setERR(true);\n payLoad.setActualData(\"File not found on server.\".getBytes());\n errDatagram.setChecksum(CheckSumService.generateCheckSum(errDatagram));\n\n try {\n ttpService.sendDatagram(errDatagram);\n } catch (IOException i) {\n i.printStackTrace();\n }\n System.out.println(\"TTPServer: ERR datagram sent to client.\");\n if (connections.containsKey(curKey)) {\n ttpService.closeConnection(connections, curKey);\n }\n System.out.println(\"TTPServer: Connection with client closed\");\n }", "public int internalWrite(ByteBuffer buffer) throws IOException, BadDescriptorException {\n checkOpen();\n \n // TODO: It would be nice to throw a better error for this\n if (!(channel instanceof WritableByteChannel)) {\n throw new BadDescriptorException();\n }\n \n WritableByteChannel writeChannel = (WritableByteChannel)channel;\n \n if (isSeekable() && originalModes.isAppendable()) {\n FileChannel fileChannel = (FileChannel)channel;\n fileChannel.position(fileChannel.size());\n }\n \n return writeChannel.write(buffer);\n }", "private ChannelFuture write(ClientMessagePacker packer) throws IgniteClientConnectionException {\n var buf = packer.getBuffer();\n\n return sock.send(buf);\n }", "@Test\n public void testPartialWrite() throws Exception {\n final int port = new Random(System.currentTimeMillis()).nextInt(1024) + 1024;\n final StubServer server = new StubServer(port);\n Thread serverThread = new Thread(server);\n serverThread.start();\n server.awaitForStart();\n final MessageParser<Message> parser = new MessageParser<Message>() {\n @Override public Message parse(ByteBuffer buffer) throws PartialMessageException {\n Assert.fail();\n return null;\n }\n };\n final Callback callback = new Callback();\n final Events events = Events.open();\n Connection<Message> connection = Connection.connect(new InetSocketAddress(\"localhost\", port), parser, callback);\n events.register(connection);\n while (true) {\n if (!events.process(100))\n break;\n }\n server.awaitForStop();\n Assert.assertEquals(callback.total, server.total);\n }", "@Override\n public void onWriteComplete(final Port port) {\n stepOutput(port);\n }", "private void failTheWebSocketConnection() {\n failed = true;\n }", "public ChannelFuture writeOneOutbound(Object msg) {\n/* 422 */ return writeOneOutbound(msg, newPromise());\n/* */ }", "private void sendToNodes(Sm.RetrieveChunkResponse chunkResponse, ArrayList<Sm.StorageNode> toSend) {\n\n System.out.println(\"Nodes to send to: \" + toSend);\n\n if (toSend.size() != 0) {\n EventLoopGroup workerGroup = new NioEventLoopGroup();\n PatrolMessagePipeline pipeline = new PatrolMessagePipeline();\n Bootstrap bootstrap = new Bootstrap()\n .group(workerGroup)\n .channel(NioSocketChannel.class)\n .option(ChannelOption.SO_KEEPALIVE, true)\n .handler(pipeline);\n\n// for (Sm.StorageNode node: toSend) {\n\n //create StoreChunkRequest\n Sm.StoreChunk chunk = Sm.StoreChunk.newBuilder()\n .setFileName(chunkResponse.getFilename())\n .setChunkId(chunkResponse.getChunkId())\n .setChunkSize(chunkResponse.getChunkSize())\n .setData(chunkResponse.getData())\n .setChunkName(chunkResponse.getChunkName())\n .build();\n\n Sm.StorageNodes nodes = Sm.StorageNodes.newBuilder()\n .addAllNodeList(toSend)\n .build();\n\n Sm.StorageNode primary = toSend.get(0);\n System.out.println(\"Primary: \" + primary.getIp());\n System.out.println(\"Primary: \" + primary.getPort());\n\n //Connect to the first replica\n ChannelFuture cf = bootstrap.connect(primary.getIp(), primary.getPort());\n cf.syncUninterruptibly();\n\n //Prepare Request & Wrap\n Sm.StoreChunkRequest request = Sm.StoreChunkRequest.newBuilder()\n .setChunk(chunk)\n .setNodes(nodes)\n .build();\n\n Sm.StorageMessageWrapper msgWrapper = Sm.StorageMessageWrapper.newBuilder()\n .setScRequest(request)\n .build();\n\n //Send\n Channel chan = cf.channel();\n PatrolInboundHandler handler = chan.pipeline().get(PatrolInboundHandler.class);\n Sm.StorageMessageWrapper response = handler.request(msgWrapper);\n\n if (response.getScResponse().getSuccess()) {\n System.out.println(\"StoreChunk successful?: \" + response.getScResponse().getSuccess());\n Controller.getInstance().updateReplicasAndChunkNames(toSend, chunk.getChunkName());\n }\n\n workerGroup.shutdownGracefully();\n }\n }", "private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }", "public void socketException(PacketChannel pc, Exception ex);", "@Override\n public void finishMessageSending() {\n for (int i = 0; i < fragNum; ++i) {\n long bytesWriten = cacheOut[i].bytesWriten();\n cacheOut[i].finishSetting();\n cacheOut[i].writeLong(0, bytesWriten - SIZE_OF_LONG);\n\n if (bytesWriten == SIZE_OF_LONG) {\n logger.debug(\n \"[Finish msg] sending skip msg from {} -> {}, since msg size: {}\",\n fragId,\n i,\n bytesWriten);\n continue;\n }\n if (i == fragId) {\n nextIncomingMessageStore.digest(cacheOut[i].getVector());\n logger.info(\n \"In final step, Frag [{}] digest msg to self of size: {}\",\n fragId,\n bytesWriten);\n } else {\n grapeMessager.sendToFragment(i, cacheOut[i].getVector());\n logger.info(\n \"In final step, Frag [{}] send msg to [{}] of size: {}\",\n fragId,\n i,\n bytesWriten);\n }\n }\n // if (maxSuperStep > 0) {\n // grapeMessager.ForceContinue();\n // maxSuperStep -= 1;\n // }\n\n // logger.debug(\"[Unused res] {}\", unused);\n // logger.debug(\"adaptor hasNext {}, grape hasNext{}\", adaptorHasNext, grapeHasNext);\n // logger.debug(\"adaptor next {}, grape next {}\", adaptorNext, grapeNext);\n // logger.debug(\"adaptor neighbor {}, grape neighbor {}\", adaptorNeighbor,\n // grapeNeighbor);\n }", "@Override\n public void onFailure(int i) {\n discoverPeersTillSuccess();\n }", "public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)\r\n/* 33: */ throws Exception\r\n/* 34: */ {\r\n/* 35: 81 */ CodecOutputList out = null;\r\n/* 36: */ try\r\n/* 37: */ {\r\n/* 38: 83 */ if (acceptOutboundMessage(msg))\r\n/* 39: */ {\r\n/* 40: 84 */ out = CodecOutputList.newInstance();\r\n/* 41: */ \r\n/* 42: 86 */ I cast = msg;\r\n/* 43: */ try\r\n/* 44: */ {\r\n/* 45: 88 */ encode(ctx, cast, out);\r\n/* 46: */ }\r\n/* 47: */ finally\r\n/* 48: */ {\r\n/* 49: 90 */ ReferenceCountUtil.release(cast);\r\n/* 50: */ }\r\n/* 51: 93 */ if (out.isEmpty())\r\n/* 52: */ {\r\n/* 53: 94 */ out.recycle();\r\n/* 54: 95 */ out = null;\r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: 98 */ throw new EncoderException(StringUtil.simpleClassName(this) + \" must produce at least one message.\");\r\n/* 58: */ }\r\n/* 59: */ }\r\n/* 60: */ else\r\n/* 61: */ {\r\n/* 62:101 */ ctx.write(msg, promise);\r\n/* 63: */ }\r\n/* 64: */ }\r\n/* 65: */ catch (EncoderException e)\r\n/* 66: */ {\r\n/* 67: */ int sizeMinusOne;\r\n/* 68: */ ChannelPromise voidPromise;\r\n/* 69: */ boolean isVoidPromise;\r\n/* 70: */ int i;\r\n/* 71: */ ChannelPromise p;\r\n/* 72: */ ChannelPromise p;\r\n/* 73:104 */ throw e;\r\n/* 74: */ }\r\n/* 75: */ catch (Throwable t)\r\n/* 76: */ {\r\n/* 77:106 */ throw new EncoderException(t);\r\n/* 78: */ }\r\n/* 79: */ finally\r\n/* 80: */ {\r\n/* 81:108 */ if (out != null)\r\n/* 82: */ {\r\n/* 83:109 */ int sizeMinusOne = out.size() - 1;\r\n/* 84:110 */ if (sizeMinusOne == 0)\r\n/* 85: */ {\r\n/* 86:111 */ ctx.write(out.get(0), promise);\r\n/* 87: */ }\r\n/* 88:112 */ else if (sizeMinusOne > 0)\r\n/* 89: */ {\r\n/* 90:115 */ ChannelPromise voidPromise = ctx.voidPromise();\r\n/* 91:116 */ boolean isVoidPromise = promise == voidPromise;\r\n/* 92:117 */ for (int i = 0; i < sizeMinusOne; i++)\r\n/* 93: */ {\r\n/* 94: */ ChannelPromise p;\r\n/* 95: */ ChannelPromise p;\r\n/* 96:119 */ if (isVoidPromise) {\r\n/* 97:120 */ p = voidPromise;\r\n/* 98: */ } else {\r\n/* 99:122 */ p = ctx.newPromise();\r\n/* 100: */ }\r\n/* 101:124 */ ctx.write(out.getUnsafe(i), p);\r\n/* 102: */ }\r\n/* 103:126 */ ctx.write(out.getUnsafe(sizeMinusOne), promise);\r\n/* 104: */ }\r\n/* 105:128 */ out.recycle();\r\n/* 106: */ }\r\n/* 107: */ }\r\n/* 108: */ }", "boolean send(int pid, Object M) {\n synchronized (tcp_lock) {\n try {\n //look up the index for peer whose id = peer_id.\n int[] sortedCopy = peer_id.clone();\n Arrays.sort(sortedCopy);\n int index = Arrays.binarySearch(sortedCopy, pid);\n if(index<0){\n print(\"*Error: peer \"+pid+\" not found.\");\n }\n if(sockets[index]==null){\n print(\"sockets[index]=null\");\n System.exit(-1);\n }\n tcp_out_stream[index].writeObject(M);\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return true;\n }\n }", "private void send(String p)\t{\t\t\t\r\n\t\ttry{\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\toOutStream.writeObject(p);\r\n\t\t\t\toOutStream.flush();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e){\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean writeInbound(Object... msgs) {\n/* 318 */ ensureOpen();\n/* 319 */ if (msgs.length == 0) {\n/* 320 */ return isNotEmpty(this.inboundMessages);\n/* */ }\n/* */ \n/* 323 */ ChannelPipeline p = pipeline();\n/* 324 */ for (Object m : msgs) {\n/* 325 */ p.fireChannelRead(m);\n/* */ }\n/* */ \n/* 328 */ flushInbound(false, voidPromise());\n/* 329 */ return isNotEmpty(this.inboundMessages);\n/* */ }", "@Override\n public void run() {\n Send enoughPeers = new Send(Send.ENOUGH_NODES, replicationDegree);\n Send ret = enoughPeers.writeAndRead(enoughPeers, p, Peer.PROTOCOL, p.centralizedChordManagerAddress,\n p.centralizedChordManagerPort);\n // CHECK IF THERE ARE ENOUGH NODES\n if (ret.enough) {\n MessageDigest md3 = null;\n try {\n md3 = MessageDigest.getInstance(\"SHA1\");\n } catch (NoSuchAlgorithmException e2) {\n e2.printStackTrace();\n }\n md3.reset();\n md3.update(path.getBytes());\n byte[] hashBytes3 = md3.digest();\n BigInteger hashNum3 = new BigInteger(1, hashBytes3);\n int key3 = Math.abs(hashNum3.intValue()) % Peer.numDHT;\n System.out.println(\"Generated key \" + key3 + \" for file: \" + path);\n FileModel file = new FileModel(path, replicationDegree, p.me);\n file.loadFileContent();\n p.initiatorPeerFiles.add(file);\n if (file.fileData.length != 0) {\n Peer destination = null;\n try {\n destination = ChordManager.find_successor(key3);\n // if dest is myself then i increase the retries by 1 because I'm sending the\n // file to myself first\n if (destination.getSslEnginePort() == p.getSslEnginePort()) {\n file.retries += 1;\n }\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n SendFileThread thread = new SendFileThread(p.initiatorPeerFiles.get(p.initiatorPeerFiles.indexOf(file)),\n p, destination);\n thread.start();\n\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n if (!file.replicationDegreeAchieved())\n System.out.println(\"File \" + path + \" was backed up with lower repDegree: \"\n + file.perceivedReplicationDegree + \" of: \" + file.perceivedReplicationDegree);\n else {\n System.out.println(\"File \" + path + \" was backed up with repDegree wanted\");\n }\n } else {\n System.err.println(\"File \" + path + \" was not backed up\");\n }\n } else {\n System.err.println(\"File \" + path + \" was not backed up replication degree of : \" + replicationDegree\n + \" could not be achived due to less number of peers available\");\n }\n }", "public void endWrite() throws ThingsException;", "private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }", "@Override\n\tpublic void messageSent(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception {\n\t\tnextFilter.messageSent(session, writeRequest);\n\t}", "private void sendWriteBegin() {\n\t\ttry {\n\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t} catch (IOException e) {\n\t\t\t// Print a stack trace, close all sockets and exit.\n\t\t\te.printStackTrace();\n\t\t\tsendReceiveSocket.close();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void run() {//metodo\n try {\n //start the input and output channels\n datain = new DataInputStream(port.getInputStream());\n dataout = new DataOutputStream(port.getOutputStream());\n \n \n while(true){//Receive de clients messages\n String received = datain.readUTF();\n \n for (int i = 0; i < users.size(); i++) {\n dataout = new DataOutputStream(users.get(i).getOutputStream());//send the message to all the active users\n dataout.writeUTF(received);//send the message\n }\n }\n } catch (IOException e) {\n for (int i = 0; i < users.size(); i++) {\n if(users.get(i) == port){\n users.remove(i);//Remove user if is disconnected\n break;\n } \n }\n }\n }", "public synchronized void send(final String message) {\n Iterator ce = connections.iterator();\n for(Iterator e = writers.iterator();e.hasNext();) {\n ce.next();\n PrintWriter writer = (PrintWriter)e.next();\n writer.print(message);\n if(writer.checkError()) {\n ce.remove();\n e.remove();\n }\n }\n }", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }", "public abstract boolean broadcast() throws IOException;", "@Override\n public void connectionLost(Throwable cause) {\n }", "private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }", "@Override\n public void completed(Integer result, AsynchronousSocketChannel channel ) {\n\n //ipaddress\n String ipAdr = \"\";\n try{\n\n //Print IPAdress\n ipAdr = channel.getRemoteAddress().toString();\n System.out.println(ipAdr);\n }catch(IOException e) {\n e.printStackTrace();\n }\n\n //if client is close ,return\n buf.flip();\n if (buf.limit() == 0) return;\n\n //Print Message\n String msg = getString(buf);\n\n //time\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"Asia/Taipei\"));\n System.out.println(sdf.format(new Date()) + \" \" + buf.limit() + \" client: \"+ ipAdr + \" \" + msg);\n\n //\n order ord = null;\n try{\n ord = ParseOrder(sdf.format(new Date()), msg, ipAdr);\n }catch(Exception ex){\n startRead( channel );\n return;\n }\n //2021/05/23 15:55:14.763,TXF,B,10000.0,1,127.0.0.1\n //2021/05/23 15:55:14.763,TXF,S,10000.0,1,127.0.0.1\n\n if (ord.BS.equals(\"B\")) {\n limit(ord, bid);\n }\n if (ord.BS.equals(\"S\")) {\n limit(ord, ask);\n }\n if (trade(bid, ask, match) == true){\n startWrite(clientChannel, \"Mat:\" + match.get(match.size()-1).sysTime + \",\" + match.get(match.size()-1).stockNo+\",\"+\n match.get(match.size()-1).BS+\",\"+match.get(match.size()-1).qty+\",\"+match.get(match.size()-1).price+\"\\n\");\n }\n\n //send to all \n startWrite(clientChannel, \"Ord:\" + getAllOrder(bid, ask)+\"\\n\");\n \n //bid size and ask size\n System.out.println(\"Blist:\" + bid.size() + \" Alist:\" + ask.size());\n\n // echo the message\n//------------------> //startWrite( channel, buf );\n \n //start to read next message again\n startRead( channel );\n }", "private boolean sendTryTwice(byte[] head, byte[] chunk) {\n for (int action = 0; action < 2; action++) {\n if (send0(head, chunk)) {\n return true;\n }\n }\n return false;\n }", "@Override\n public void onConnected() {\n getLogger().log(Level.FINE,\n \"Connected to {0} and pre-writing\",\n remoteAddress);\n try {\n if (!onChannelPreWrite()) {\n channelExecutor.registerReadWrite(socketChannel, this);\n }\n } catch (IOException e) {\n if (getLogger().isLoggable(Level.FINE)) {\n getLogger().log(Level.FINE,\n // CRC: Update wording?\n \"Error registering for read/write after pre-write: \" +\n \"remoteAddress={0}, error={1}\",\n new Object[] {\n remoteAddress,\n CommonLoggerUtils.getStackTrace(e)});\n }\n shutdown(e.getMessage(), true);\n }\n }", "@Override\n public void onDataWrite(String deviceName, String data)\n {\n if(mTruconnectHandler.getLastWritePacket().contentEquals(data))\n {\n mTruconnectCallbacks.onDataWritten(data);\n\n String nextPacket = mTruconnectHandler.getNextWriteDataPacket();\n if(!nextPacket.contentEquals(\"\"))\n {\n mBLEHandler.writeData(deviceName, nextPacket);\n }\n }\n else\n {\n mTruconnectCallbacks.onError(TruconnectErrorCode.WRITE_FAILED);\n mTruconnectHandler.onError();\n }\n }", "@Override\n public void connectionLost(Throwable thrwbl) {\n System.out.println(\"服务器的连接丢失\");\n }", "void onBytesWritten(int bytesWritten);", "protected void reply_error(String message) {\n try {\n byte[] err = PushCacheProtocol.instance().errorPacket(message);\n _socket.getOutputStream().write(err, 0, err.length);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private boolean sendProtocol() {\n if (!clusterProtocolBuffered) {\n clusterProtocolBuffered = true;\n dst.put(stringToBytes(UNEXPECTED_PROTOCOL));\n return false;\n }\n\n return isProtocolBufferDrained();\n }", "@Override\n public void sendError(int arg0, String arg1) throws IOException {\n\n }", "public void onWriteError(Exception ex, Object item) {\n logger.error(\"Encountered error on write\");\n }", "protected void doWrite(Message<?> message) {\n\t\ttry {\n\t\t\tTcpConnection connection = getConnection();\n\t\t\tif (connection == null) {\n\t\t\t\tthrow new MessageMappingException(message, \"Failed to create connection\");\n\t\t\t}\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(\"Got Connection \" + connection.getConnectionId());\n\t\t\t}\n\t\t\tconnection.send(message);\n\t\t} catch (Exception e) {\n\t\t\tString connectionId = null; \n\t\t\tif (this.connection != null) {\n\t\t\t\tconnectionId = this.connection.getConnectionId();\n\t\t\t}\n\t\t\tthis.connection = null;\n\t\t\tif (e instanceof MessageMappingException) {\n\t\t\t\tthrow (MessageMappingException) e;\n\t\t\t}\n\t\t\tthrow new MessageMappingException(message, \"Failed to map message using \" + connectionId, e);\n\t\t}\n\t}", "public boolean sendMessage(byte[] pDat) throws IllegalStateException {\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\tpLen = pDat.length;\r\n\t\t\tif ( pLen > 0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdgpacket = new DatagramPacket(pDat, pLen);\r\n\t\t\t\t\tsocket.send(dgpacket);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e) {\t\t\t\t// SocketException / InterruptedIOException / IOException\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t\t}", "@Override\n\tpublic void flush(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"flush\");\n\t\tsuper.flush(ctx);\n\t}", "@Override\n public void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(new OutMessageHandler());\n\n }", "private void sendEndOfSequences() throws ClassCastException {\n for (int newThreadNo = 1; newThreadNo < PCJ.threadCount(); ++newThreadNo) {\n while (true) {\n if (writeIndex[newThreadNo] != readIndex[newThreadNo]) {\n break;\n } else {\n PCJ.waitFor(InputFileReader.Shared.readIndex);\n }\n }\n\n PCJ.put(null, newThreadNo, SequencesReceiverAndParser.Shared.values, writeIndex[newThreadNo]);\n }\n }", "@Override\n\tpublic void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {\n\t\tlogger.error(\"Unexpected exception from downstream.\",\n\t\t\t\te.getCause());\n\t\te.getChannel().close();\n\t}", "@Override\n public void connectionLost(Throwable arg0) {\n\n }", "@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\t\r\n\t}", "@Override\n public void onWriteFailed(byte fileType, byte errCode) {\n }", "@Override\n public void connectionLost(Throwable cause) {\n\n }", "public void writeAll(MESSAGE message) {\n log.debug(\"write all : \" + MessageManger.messageToStringFormatted(message));\n\n ConcurrentHashMap<String, Client> clientsList = ccv.getClients();\n synchronized (clientsList) {\n //invio a tutti il messaggio\n\n //in qiesta lista saòvo tutti gli utenti che hanno dato errore nel socket\n List<Client> toRemoves = new LinkedList<Client>();\n\n for (Client client : clientsList.values()) {\n if (client.getMainSocket() != null) {\n try {\n OutputStream outputStream = client.getMainSocket().getOutputStream();\n MessageManger.directWriteMessage(message, outputStream);\n\n //se il client non risponde lo levo dalla lista dei connessi\n } catch (Exception ex) {\n log.warn(ex + \" \" + ex.getMessage());\n\n //aggiungo alla lista il cliet che ha doto errore\n toRemoves.add(client);\n }\n }\n }\n\n //rimuovo tutti i client che risultno cascati\n //e invio il comando a tutti\n for (Client client : toRemoves) {\n clientsList.remove(client.getNick());\n }\n\n //avviso tutti di eliminare gli utenti che hanno dato errore\n for (Client toRemove : toRemoves) {\n ServerWriter sw = new ServerWriter(ccv);\n MESSAGE toSend = MessageManger.createCommand(Command.REMOVEUSER, null);\n MessageManger.addParameter(toSend, \"nick\", toRemove.getNick());\n sw.writeAll(toSend);\n }\n }\n\n }", "@Override\r\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\r\n ctx.close();\r\n }", "@Override\r\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\r\n ctx.close();\r\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "public synchronized boolean write_to_sock(StringBuilder msg){\n\t\t/**\n\t\t * TRY SEND TO SERVER\n\t\t */\n\t\ttry {\n\t\t\tout.print(msg.toString());\n\t\t\tmysock.getOutputStream().flush();\n\t\t\tout.flush();\n\t\t\tSystem.out.println(TAG +\": Tuple injected.\");\n\t\t} catch (IOException ioException) {\n\t\t\tSystem.out.println(TAG + \": I could not connect\");\n\t\t\tsrvDisconnect();\n\t\t\treturn false;\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(TAG + \": Null Pointer Exception\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public void reportNodeCommunicationFailure(String nodeName, Throwable t) {\n failedNodeInteractions.add(nodeName);\n int failureCount = failedNodeInteractions.count(nodeName);\n if (failureCount >= successiveProxyFailuresBeforeReestablishing\n || exceptionContains(t, ConnectException.class, EOFException.class)) {\n dropNodeProxy(nodeName, failureCount);\n }\n }", "@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}", "void setOutputChannels(Appendable outP, Appendable errP);", "@Override\n public void onError(String data) {\n\n log.e(\"Receiver default message channel error!!! \" + data);\n }", "void waitToWrite();", "void writeTo(DataSink dataSink) throws IOException;", "public ChannelFuture writeOneInbound(Object msg, ChannelPromise promise) {\n/* 349 */ if (checkOpen(true)) {\n/* 350 */ pipeline().fireChannelRead(msg);\n/* */ }\n/* 352 */ return checkException(promise);\n/* */ }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "public void sendDone()\n\t{\n\t\tmSendBusy = false;\n\t\tStatistics.numPacketsSent++;\n\t\tmWriteHandler.call(mHandlerArg);\n\t}", "@Override\n\tpublic void connectionLost(Throwable cause) {\n\t\t\n\t}" ]
[ "0.6619976", "0.6186935", "0.6093466", "0.59737605", "0.59598553", "0.5897437", "0.5872775", "0.5699546", "0.5657649", "0.56486183", "0.5628166", "0.5531819", "0.5461079", "0.54495734", "0.54485536", "0.54237896", "0.5385792", "0.53527135", "0.53499615", "0.534333", "0.53233415", "0.52880204", "0.52863383", "0.52772236", "0.5265875", "0.5254378", "0.52477485", "0.524654", "0.5243354", "0.5220259", "0.52137035", "0.51849395", "0.51792496", "0.51769024", "0.5171206", "0.51568276", "0.51509535", "0.51434267", "0.5102894", "0.5096444", "0.5086187", "0.5070732", "0.50599784", "0.50446075", "0.5040429", "0.50345534", "0.5024011", "0.50179744", "0.5016277", "0.50151163", "0.50095206", "0.50034654", "0.50024945", "0.5000539", "0.49951807", "0.4994388", "0.49900073", "0.4988459", "0.49873737", "0.49791914", "0.4979052", "0.4978226", "0.49768734", "0.49751008", "0.49718976", "0.4971449", "0.49697185", "0.4962901", "0.49608752", "0.4949457", "0.49455234", "0.49364328", "0.49342698", "0.49284402", "0.49279448", "0.49273998", "0.49273264", "0.492699", "0.49254113", "0.49235505", "0.49218714", "0.49218714", "0.49217167", "0.49169245", "0.49126595", "0.49042737", "0.49035552", "0.48973298", "0.48927817", "0.4892181", "0.48892355", "0.48879457", "0.48879457", "0.48879457", "0.48879457", "0.48879457", "0.48879457", "0.48879457", "0.48857805", "0.48854136" ]
0.6525923
1
We do not want to close on SocketException when using DatagramChannel as we usually can continue receiving. See
@Override protected boolean closeOnReadError(Throwable cause) { if (cause instanceof SocketException) { return false; } return super.closeOnReadError(cause); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean closeOnReadError(Throwable cause) {\n/* 606 */ if (cause instanceof SocketException) {\n/* 607 */ return false;\n/* */ }\n/* 609 */ return super.closeOnReadError(cause);\n/* */ }", "@Override\r\n\tpublic void close() {\r\n\t\tthis.socket.close();\r\n\t}", "@Override\r\n public void close() {\r\n sock.close();\r\n }", "private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }", "private void closeInternal() {\n try {\n synchronized (internalLock) {\n if (!isClosed) {\n isClosed = true;\n if (socket != null) {\n socket.close();\n pendingMessages = true;\n internalLock.notify();\n }\n }\n }\n } catch (IOException e) {\n // This should never happen\n }\n }", "@Override\n public void connectionLost(Throwable cause) {\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ChannelFuture close = ctx.close();\n close.addListener((ChannelFutureListener) future -> System.out.println(\"server channel closed!!!\"));\n }", "public void communicationChannelBroken() {\n\n }", "@Override\n public void connectionLost(Throwable cause) {\n\n }", "@Override\n\tpublic void connectionLost(Throwable cause) {\n\t\t\n\t}", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n ctx.close();\n }", "@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\t\r\n\t}", "@Override\n public void exceptionCaught(\n ChannelHandlerContext ctx, ExceptionEvent e) {\n \t_LOG.warn(\"Unexpected exception from downstream.\",\n e.getCause());\n e.getChannel().close();\n }", "public void socketException(PacketChannel pc, Exception ex);", "public void closeSocket() { //gracefully close the socket connection\n\t\ttry {\n\t\t\tthis.os.close();\n\t\t\tthis.is.close();\n\t\t\tthis.clientSocket.close();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"XX. \" + e.getStackTrace());\n\t\t}\n\t}", "@Override\n public void connectionLost(Throwable arg0) {\n\n }", "protected void connectionClosed() {}", "public int closeSocket() \n\t{\n\t\t\n\t}", "private void close(Exception cause) {\n if (closed.compareAndSet(false, true)) {\n sock.close();\n\n for (ClientRequestFuture pendingReq : pendingReqs.values())\n pendingReq.completeExceptionally(new IgniteClientConnectionException(\"Channel is closed\", cause));\n }\n }", "@Override\n public void close() throws IOException {\n if (socket != null) {\n socket.close();\n }\n\n }", "@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}", "public void closeSocket() { //gracefully close the socket connection\r\n try {\r\n this.os.close();\r\n this.is.close();\r\n this.clientSocket.close();\r\n } \r\n catch (Exception e) {\r\n System.out.println(\"XX. \" + e.getStackTrace());\r\n }\r\n }", "private void closeFedSockets() {\r\n try {\r\n cSocket.close();\r\n } catch (Exception e) {\r\n if (!FLAG) {\r\n System.err.println(\"Error closing Client Socket\");\r\n }\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(e), \"severe\");\r\n }\r\n try {\r\n sSocket.close();\r\n } catch (Exception e) {\r\n if (!FLAG) {\r\n System.err.println(\"Error closing Server Socket\");\r\n }\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(e), \"severe\");\r\n }\r\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "public synchronized void close() throws IOException {\r\n\t\tif (closed) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tclosed = true;\r\n\t\tdatagramSocket.close();\r\n\t\tif (Log.isDebug()) {\r\n\t\t\tLog.debug(\"UDP listener shutdown for interface \" + getIface() + (getLocalAddress().isAnyLocalAddress() ? \"\" : \" on \" + getLocalAddress().toString()) + \" and port \" + getLocalPort() + \".\", Log.DEBUG_LAYER_COMMUNICATION);\r\n\t\t}\r\n\r\n\t\tdatagramSocket = null;\r\n\t}", "private void close() {\n\t\tif (socketChannel != null) {\n\t\t\ttry {\n\t\t\t\tif (in != null) {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close in stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close out stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsocketChannel.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.log(Level.SEVERE, \"Can't close socket channel\", ex);\n\t\t\t}\n\n\t\t}\n\t\t//Defender.stopConnection();\n\t}", "@Override\r\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\r\n ctx.close();\r\n }", "@Override\r\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\r\n ctx.close();\r\n }", "public SocketChannel getChannel() { return null; }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tsocket.close();\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}", "private static DatagramChannel newSocket(SelectorProvider provider) {\n/* */ try {\n/* 86 */ return provider.openDatagramChannel();\n/* 87 */ } catch (IOException e) {\n/* 88 */ throw new ChannelException(\"Failed to open a socket.\", e);\n/* */ } \n/* */ }", "@Override\n public void close() throws IOException {\n channel.close();\n }", "protected void doDisconnect() throws Exception {\n/* 696 */ if (!this.metadata.hasDisconnect()) {\n/* 697 */ doClose();\n/* */ }\n/* */ }", "private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {\n log.error(\"Input Stream {} : {}\", name, e.getCause());\n Channel ch = e.getChannel();\n ch.close();\n channelAtomicReference.set(null);\n }", "@Override\n\tpublic void onSocketRemoved(ISocketInstance childSocket) {\n\t\t\n\t}", "public void socketClosedEvent(final Exception e) {\n // if it is a non-normal closed event\n // we clear the connector object here\n // so that it actually does reconnect if the\n // remote socket dies.\n if (e != null) {\n connector = null;\n fireConnector(true);\n }\n }", "public void closeSocket() {\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t} catch (java.io.IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}", "public void terminate() {\n\t\tif (socket == null)\n\t\t\tthrow new IllegalStateException();\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {}\n\t}", "@Override\n\tpublic void connectionClosed() {\n\t}", "private void closeConnection() throws IOException {\n\t\tclientSocket.close();\n\t}", "void closeSocket() {\n\t\tint size = threads.size();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (threads.get(i) == this) {\n\t\t\t\tthreads.remove(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t\tprintActiveClients();\n\n\t\ttry {\n\t\t\tmessageBuffer.add(name + \" has just left the chatroom...\");\n\t\t\tinputStream.close();\n\t\t\toutputStream.close();\n\t\t\tclientSocket.close();\n\t\t\treturn;\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t} catch (InterruptedException ine) {\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n public void close() throws IOException {\n if (this.closed) {\n return;\n }\n this.closed = true;\n if (this.content.size() >= (long)this.limit) return;\n throw new ProtocolException(\"content-length promised \" + this.limit + \" bytes, but received \" + this.content.size());\n }", "public void close() throws IOException {\n\t\ttry {\n\t\t\tprinter.close();\n\t\t\treader.close();\n\t\t\tclientSocket.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new SocketException(\"Something went wrong when closing the command channel : \" + e.getMessage());\n\t\t}\n\n\t}", "public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t//pass\r\n\t\t\t}\r\n\t\t}", "private void close()\r\n {\r\n try \r\n {\r\n if(out != null) out.close();\r\n }\r\n catch(Exception e) {\r\n \r\n }\r\n try \r\n {\r\n if(in != null) in.close();\r\n }\r\n\r\n catch(Exception e) {\r\n \r\n };\r\n try \r\n {\r\n if(socket != null) socket.close();\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n }", "public void socketDisconnected(PacketChannel pc, boolean failed);", "private void close() {\r\n try {\r\n if (m_in != null) {\r\n m_in.close();\r\n }\r\n if (m_out != null) {\r\n m_out.close();\r\n }\r\n if (m_socket != null) {\r\n m_socket.close();\r\n }\r\n } catch (IOException e) {\r\n throw new WrappedRuntimeException(e);\r\n }\r\n }", "@Override\n\t\tpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n\t\t\tcause.printStackTrace();\n\t\t\tctx.close();\n\t\t}", "@Override\r\n public void exceptionCaught(\r\n ChannelHandlerContext ctx, ExceptionEvent e) {\n logger.log(\r\n Level.WARNING,\r\n \"Unexpected exception from downstream.\",\r\n e.getCause());\r\n e.getChannel().close();\r\n }", "@Override\r\n public synchronized void close()\r\n {\r\n if (!isRunning)\r\n {\r\n throw new IllegalStateException(\"already stopped!\");\r\n }\r\n threadPool.shutdownNow();\r\n socket.close();\r\n isRunning = false;\r\n }", "@Override\n public void close() throws IOException\n {\n if(socket != null)\n {\n socket.close();\n }\n }", "public void close() {\n try {\n closeConnection(socket);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "void closeSocket() {\n try {\n if (outputStream != null && clientSocket != null) {\n outputStream.close();\n clientSocket.close();\n }\n } catch (IOException e) {\n getLog().error(\"Error while closing TCP client socket connection\", e);\n }\n }", "protected static native void closed(long socket, int errorDomain, int errorCode, String message);", "public void close() throws java.io.IOException {\n /*\n r1 = this;\n boolean r0 = r1.f44207T\n if (r0 != 0) goto L_0x0005\n return\n L_0x0005:\n r0 = 0\n r1.f44207T = r0\n r1.mo47188n()\n java.net.Socket r0 = r1.f44208U // Catch:{ IOException -> 0x0010 }\n r0.shutdownOutput() // Catch:{ IOException -> 0x0010 }\n L_0x0010:\n java.net.Socket r0 = r1.f44208U // Catch:{ UnsupportedOperationException -> 0x0015, UnsupportedOperationException -> 0x0015 }\n r0.shutdownInput() // Catch:{ UnsupportedOperationException -> 0x0015, UnsupportedOperationException -> 0x0015 }\n L_0x0015:\n java.net.Socket r0 = r1.f44208U\n r0.close()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.apache.http.p541f0.C15261k.close():void\");\n }", "public interface PacketChannelListener\r\n{\r\n\r\n /**\r\n * Called when a packet is fully reassembled.\r\n *\r\n * @param pc The source of the event.\r\n * @param pckt The reassembled packet\r\n */\r\n public void packetArrived(PacketChannel pc, ByteBuffer pckt) throws InterruptedException;\r\n\r\n /**\r\n * Called when some error occurs while reading or writing to the socket.\r\n *\r\n * @param pc The source of the event.\r\n * @param ex The exception representing the error.\r\n */\r\n public void socketException(PacketChannel pc, Exception ex);\r\n\r\n /**\r\n * Called when the read operation reaches the end of stream. This means that\r\n * the socket was closed.\r\n *\r\n * @param pc The source of the event.\r\n */\r\n public void socketDisconnected(PacketChannel pc, boolean failed);\r\n}", "public void close()\n\t{\n\t\ttry { stream.close(); } catch(Exception ex1) {}\n\t\ttry { channel.close(); } catch(Exception ex2) {}\n\t}", "@Override\n public void run()\n {\n System.out.println(\"[\" + getCurrentDateTimeStamp() + \"]\" + \" Received connection from: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"Received connection from: \" + clientSocket);\n try (PrintWriter pw = new PrintWriter(clientSocket.getOutputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()))) {\n String line = \"\";\n\n while ((line != null) && (!line.trim().toUpperCase().equals(\"CLOSE\")) && (!stop)) {\n if (!stop && !clientSocket.isClosed()) {\n synchronized (this) {\n line = br.readLine();\n }\n }\n\n if ((line != null) && (!line.trim().isEmpty()) && (!stop)) {\n if(\"getRegisterTopics\".equalsIgnoreCase(line))\n {\n sendRegisterTopics(pw);\n }\n else\n {\n line = processMessage(clientSocket, pw, line);\n }\n }\n }\n } catch (SocketException e1)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"the connection was interrupted by the client - \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e1));\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] the connection was interrupted by the client - \" + clientSocket);\n } catch (IOException e)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to read from client \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to read from client \" + clientSocket);\n } finally {\n //remove from topic table\n synchronized (Server.class) {\n if (clientTopicsTable.containsKey(clientSocket)) {\n clientTopicsTable.remove(clientSocket);\n }\n //remove from threads table\n if (Server.handleClients.contains(this)) {\n Server.handleClients.remove(this);\n }\n }\n try {\n clientSocket.close();\n } catch (IOException e) {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to close socket clientSocket: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to close socket clientSocket: \" + clientSocket);\n }\n }\n }", "public void dispose() {\n\t\tsocket.close();\n\t}", "void close()\n {\n DisconnectInfo disconnectInfo = connection.getDisconnectInfo();\n if (disconnectInfo == null)\n {\n disconnectInfo = connection.setDisconnectInfo(\n new DisconnectInfo(connection, DisconnectType.UNKNOWN, null, null));\n }\n\n // Determine if this connection was closed by a finalizer.\n final boolean closedByFinalizer =\n ((disconnectInfo.getType() == DisconnectType.CLOSED_BY_FINALIZER) &&\n socket.isConnected());\n\n\n // Make sure that the connection reader is no longer running.\n try\n {\n connectionReader.close(false);\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n outputStream.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n socket.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n if (saslClient != null)\n {\n try\n {\n saslClient.dispose();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n finally\n {\n saslClient = null;\n }\n }\n\n debugDisconnect(host, port, connection, disconnectInfo.getType(),\n disconnectInfo.getMessage(), disconnectInfo.getCause());\n if (closedByFinalizer && debugEnabled(DebugType.LDAP))\n {\n debug(Level.WARNING, DebugType.LDAP,\n \"Connection closed by LDAP SDK finalizer: \" + toString());\n }\n disconnectInfo.notifyDisconnectHandler();\n }", "@Override\n public void connectionLost() {\n }", "@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n //4. Add ChannelHandler to intercept events and allow to react on them\n ch.pipeline().addLast(new ChannelHandlerAdapter() {\n @Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n //5. Write message to client and add ChannelFutureListener to close connection once message written\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }\n });\n }", "public synchronized void closeAllSocket()\n {\n \ttry {\n \t\toutput.close();\n \t}\n \tcatch(Exception e)\n \t{\n \t\terror(e);\n \t}\t\n }", "@Override\n\tpublic void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {\n\t\tlogger.error(\"Unexpected exception from downstream.\",\n\t\t\t\te.getCause());\n\t\te.getChannel().close();\n\t}", "protected final void doShutdownOutput() throws Exception {\n/* 556 */ this.socket.shutdown(false, true);\n/* */ }", "@Override\n\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n\t\t\tSystem.out.println(\"Channel closed\");\n\t\t\t// @TODO if lost, try to re-establish the connection\n\t\t}", "@Override\n public void stop() {\n try {\n socket.close();\n } catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Now close the executor service.\n\n }", "@Override\n public synchronized void close() throws IOException {\n disconnect(false);\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {\n try {\n if (!(cause instanceof SSLHandshakeException)) {\n messageListener.onException(ctx, cause);\n }\n if (isNoisyException(cause)) {\n if (logger.isDebugEnabled()) {\n logger.info(format(\"closing\"), cause);\n } else {\n logger.info(format(\"closing (\" + cause.getMessage() + \")\"));\n }\n } else {\n final Throwable realCause = extractCause(cause, 0);\n if (logger.isDebugEnabled()){\n logger.info(format(\"Handling exception: \" + cause + \" (caused by: \" + realCause + \")\"), cause);\n } else {\n logger.info(format(\"Handling exception: \" + cause + \" (caused by: \" + realCause + \")\"));\n }\n super.exceptionCaught(ctx, cause);\n }\n } finally {\n ctx.flush();\n ctx.close();\n }\n }", "@Override\n public void run() {\n if (isV6())\n while (!interrupted()) {\n try {\n handleMessage(serverSocket.accept());\n } catch (SocketTimeoutException ignore) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n try {\n serverSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void close() throws IOException {\n inputMessageStream.close();\n outputMessageStream.close();\n socket.close();\n }", "private void closeConnection(){\n report(\"Close connection\");\n try{\n if(socket != null && !socket.isClosed()) {\n report(\"Client: Close socket\");\n socket.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n report(\"End\");\n }", "public void close()\n {\n try\n {\n System.out.println(\"CLIENT chiude connessione\");\n receiverThread.interrupt();\n socket.close();\n System.exit(0);\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "void close() {\n try {\n socketInput.close();\n socketOutput.close();\n this.connected = false;\n } catch (IOException e) {\n throw new UnexpectedBehaviourException();\n }\n }", "@Override\n\tpublic void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"close\");\n\t\tsuper.close(ctx, promise);\n\t}", "@Override\n public void closeConnection() {\n\n System.out.println(\"[CLIENT] Closing socket connection...\");\n try {\n socket.close();\n in.close();\n out.close();\n System.out.println(\"[CLIENT] Closed socket connection.\");\n } catch (IOException e) {\n System.out.println(\"[CLIENT] Error occurred when closing socket\");\n }\n System.exit(0);\n\n }", "@Override\n\tpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {\n\t\tLOGGER.error(\"server caught exception\", cause);\n\t\tctx.close();\n\t}", "@Override\n \tpublic void connectionClosed() {\n \t\t\n \t}", "public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.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}", "protected void finalize() throws Throwable {\n\t\ttry {\n\t\t\tthis.listen_socket.close();\n\t\t} catch (IOException e1) {\n\t\t}\n\t}", "private static void closeSocket(Socket socket) {\n try {\n if(!socket.isClosed()) {\n socket.close();\n }\n } catch(IOException ex) {}\n }", "public FutureDone<Void> shutdown() {\n // set shutdown flag for UDP and TCP, if we acquire a write lock, all read locks are blocked as well\n writeUDP.lock();\n writeTCP.lock();\n try {\n if (shutdownTCP || shutdownUDP) {\n shutdownFuture().setFailed(\"already shutting down\");\n return shutdownFuture();\n }\n shutdownUDP = true;\n shutdownTCP = true;\n } finally {\n writeTCP.unlock();\n writeUDP.unlock();\n }\n\n recipients.close().addListener(new GenericFutureListener<ChannelGroupFuture>() {\n @Override\n public void operationComplete(final ChannelGroupFuture future) throws Exception {\n if (!semaphoreUPD.tryAcquire(maxPermitsUDP)) {\n LOG.error(\"Cannot shutdown, as connections (UDP) are still alive\");\n shutdownFuture().setFailed(\"Cannot shutdown, as connections (UDP) are still alive\");\n throw new RuntimeException(\"Cannot shutdown, as connections (UDP) are still alive\");\n }\n if (!semaphoreTCP.tryAcquire(maxPermitsTCP)) {\n LOG.error(\"Cannot shutdown, as connections (TCP) are still alive\");\n shutdownFuture().setFailed(\"Cannot shutdown, as connections (TCP) are still alive\");\n throw new RuntimeException(\"Cannot shutdown, as connections (TCP) are still alive\");\n }\n shutdownFuture().setDone();\n }\n });\n return shutdownFuture();\n }", "@Override\n public void channelInactive(ChannelHandlerContext ctx) throws Exception {\n logger.debug(\"client {} inactive\", Connection.this);\n if (!isInitialized || isClosed()) {\n errorOutAllHandler(new TransportException(address, \"Channel has been closed\"));\n // we still want to force so that the future completes\n Connection.this.closeAsync().force();\n } else {\n defunct(new TransportException(address, \"Channel has been closed\"));\n }\n }", "public void cancel() {\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void closeSocket()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfor (CharData chs : replyList)\n\t\t\t{\n\t\t\t\tchs.conn.replyList.remove(ch);\n\t\t\t\tchs.sendln(\"Your reply list has changed.\");\n\t\t\t}\n\t\t\t\n\t\t\tif (saveable)\n\t\t\t{\n\t\t\t\tif (realCh != null)\n\t\t\t\t\tStaffCommands.doReturn(this, \"\");\n\t\t\t\t\n\t\t\t\tch.save();\n\t\t\t\tDatabase.saveAccount(this);\n\t\t\t}\n\t\t\t\n\t\t\tconnSocket.close();\n\t\t} catch (Exception e) {\n\t\t\tsysLog(\"bugs\", \"Error in closeSocket: \"+e.getMessage());\n\t\t\tlogException(e);\n\t\t}\n\t}", "public void close() throws BadDescriptorException, IOException {\n+ // tidy up\n+ finish();\n+\n+ // if we're the last referrer, close the channel\n+ if (refCounter.get() <= 0) {\n+ channel.close();\n+ }", "public void connectionLost(Throwable cause) {\n\t}", "void disconnect() throws TransportException;", "public abstract void OnDisconnect(int sock);", "private void handleCloseFrame() throws IOException {\n // the client has sent us a close frame\n closeReceived = true;\n // if we already sent a close frame before\n if (isCloseSent()) {\n // then we received an acknowledgement close frame\n // from the client, so we need to close the underlying\n // TCP socket now\n this.close();\n return;\n }\n // otherwise, the client has sent us a close frame\n // and we will acknowledge that close frame now\n byte[] closePayload = consumePayload();\n if (closePayload.length >= 2) {\n int highByte = asUnsignedInt(closePayload[0]);\n int lowByte = asUnsignedInt(closePayload[1]);\n int closeStatusCode = (highByte << OCTET) | lowByte;\n outputPeer.writeClose(closeStatusCode);\n } else {\n outputPeer.writeClose();\n }\n // we need to close the underlying TCP socket now\n this.close();\n }", "public boolean isReuseAddress()\r\n/* 159: */ {\r\n/* 160: */ try\r\n/* 161: */ {\r\n/* 162:176 */ return this.javaSocket.getReuseAddress();\r\n/* 163: */ }\r\n/* 164: */ catch (SocketException e)\r\n/* 165: */ {\r\n/* 166:178 */ throw new ChannelException(e);\r\n/* 167: */ }\r\n/* 168: */ }", "public void close() {\r\n\t\tif (socket != null)\r\n\t\t\tsocket.close();\r\n\t}" ]
[ "0.74648815", "0.65335107", "0.650069", "0.64106315", "0.6350976", "0.62587816", "0.62454814", "0.62016135", "0.6164088", "0.6141161", "0.6135947", "0.61300236", "0.6128853", "0.61162144", "0.61104816", "0.6079088", "0.60759175", "0.606996", "0.60604703", "0.6059111", "0.6057348", "0.6057345", "0.6042543", "0.6023207", "0.6022699", "0.6018321", "0.60117304", "0.60117304", "0.5966666", "0.5957444", "0.5957444", "0.5957444", "0.5957444", "0.5957444", "0.5957444", "0.5957444", "0.59555143", "0.59553826", "0.59537494", "0.59507555", "0.59469014", "0.5917855", "0.5916693", "0.5910325", "0.5904226", "0.5902463", "0.5900504", "0.58853644", "0.5871765", "0.5871053", "0.5868216", "0.58662564", "0.58641595", "0.58612627", "0.58491206", "0.5846035", "0.58452594", "0.584056", "0.58392197", "0.5825044", "0.58073133", "0.58060557", "0.5802644", "0.57875174", "0.57823175", "0.5770782", "0.5770725", "0.57703245", "0.5765745", "0.57595843", "0.5756954", "0.5753013", "0.5749046", "0.5746436", "0.57449", "0.57378364", "0.57317305", "0.5731485", "0.57310593", "0.57252187", "0.57212585", "0.5707342", "0.5704267", "0.5699529", "0.5699338", "0.56977016", "0.5697256", "0.568217", "0.568215", "0.5677828", "0.56739753", "0.5673521", "0.566709", "0.56663346", "0.5662692", "0.5655153", "0.56416327", "0.5638335", "0.5637637", "0.56367993" ]
0.7107558
1
We're going to need images for the markers
private void updateMarkers() { if( mPopulateImagesTask != null ) mPopulateImagesTask.cancel(true); mPopulateImagesTask = new PopulateBirdImagesTask() { @Override protected void onPostExecute(List<RemoteSighting> remoteSightings) { super.onPostExecute(remoteSightings); if( mSelectedMarker != null ) { // refresh mSelectedMarker.hideInfoWindow(); mSelectedMarker.showInfoWindow(); } } }; mPopulateImagesTask.execute(mBirds); // Now let's create the markers Marker marker; MarkerOptions markerOptions; LatLng location; boolean isSelectedMarker = false; mLocationBirdsMap.clear(); mMarkerBirdsMap.clear(); float maxbirds = 1.0f; // For marker hue for( RemoteSighting bird: mBirds ) { location = new LatLng(bird.getLat(), bird.getLng()); if( !mLocationBirdsMap.containsKey(location) ) mLocationBirdsMap.put(location, new ArrayList<RemoteSighting>()); ArrayList<RemoteSighting> birdsAtLocation = mLocationBirdsMap.get(location); birdsAtLocation.add(bird); if( birdsAtLocation.size() > maxbirds ) maxbirds = birdsAtLocation.size(); } for (Map.Entry<LatLng, ArrayList<RemoteSighting>> entry : mLocationBirdsMap.entrySet()) { ArrayList<RemoteSighting> birds = (entry.getValue()); RemoteSighting firstBird = birds.get(0); markerOptions = new MarkerOptions(). position(entry.getKey()). alpha( ((birds.size()/maxbirds) * 0.5f) + 0.5f). title(firstBird.getLocName()). snippet(birds.size() + (birds.size() > 1 ? " birds" : " bird") ); if (mSelectedBird != null) { LatLng birdLocation = entry.getKey(); LatLng selectedBirdLocation = new LatLng(mSelectedBird.getLat(), mSelectedBird.getLng()); if( selectedBirdLocation.equals(birdLocation)) { isSelectedMarker = true; } } marker = mMap.addMarker(markerOptions); if( !mMarkerBirdsMap.containsKey(marker) ) mMarkerBirdsMap.put(marker, entry.getValue()); if( isSelectedMarker ) { mSelectedMarker = marker; marker.showInfoWindow(); isSelectedMarker = false; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }", "public static void setMarker() {\n\t\tfor (Picture p : pictures) {\n\t\t\tif (p.getLon() < 200 && p.getLat() < 200) {\n\t\t\t\tMarker myMarker = mMap.addMarker(\n\t\t\t\t\t\tnew MarkerOptions()\n\t\t\t\t\t\t\t\t.position(new LatLng(p.getLat(), p.getLon()))\n\t\t\t\t\t\t\t\t.visible(true)\n\t\t\t\t\t\t//.icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_brightness_1_black_24dp))\n\t\t\t\t);\n\t\t\t\tmarkers.put(myMarker, p);\n\t\t\t}\n\t\t}\n\t}", "private void addMarkers() {\n\n for (MarkerPropio m : listMarkers) {\n LatLng posicion = new LatLng(m.getLatitud(), m.getLogitud());\n final MarkerOptions marker = new MarkerOptions()\n .position(posicion)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.marker1))\n .title(m.getTitulo())\n .snippet(m.getDescripcion());\n switch (m.getNumImages()){\n case 1:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker1));\n break;\n case 2:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker2));\n break;\n case 3:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker3));\n break;\n case 4:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker4));\n break;\n case 5:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker5));\n break;\n case 6:\n marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker6));\n break;\n\n }\n mMap.addMarker(marker);\n hashMarker.put(posicion, m.getId());\n mMap.setOnInfoWindowClickListener(this);\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n Drawable firstDrawable = getResources().getDrawable(R.drawable.chile_flag);\n BitmapDescriptor firstBitmap = getMarkerIconFromDrawable(firstDrawable);\n LatLng chile = new LatLng(31.761, -71.318);\n mMap.addMarker(new MarkerOptions().position(chile).title(\"Marker in Chile\")).setIcon(firstBitmap);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(chile));\n\n Drawable secondDrawable = getResources().getDrawable(R.drawable.sydney_icon);\n BitmapDescriptor secondBitmap = getMarkerIconFromDrawable(secondDrawable);\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")).setIcon(secondBitmap);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n Drawable thirdDrawable = getResources().getDrawable(R.drawable.home_icon);\n BitmapDescriptor thirdBitmap = getMarkerIconFromDrawable(thirdDrawable);\n LatLng home = new LatLng(40.685, -73.714);\n mMap.addMarker(new MarkerOptions().position(home).title(\"Marker at Home\")).setIcon(thirdBitmap);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(home));\n\n Drawable fourthDrawable = getResources().getDrawable(R.drawable.rollercoaster_icon);\n BitmapDescriptor fourthBitmap = getMarkerIconFromDrawable(fourthDrawable);\n LatLng sixflags = new LatLng(40.137, -74.440);\n mMap.addMarker(new MarkerOptions().position(sixflags).title(\"Marker at SixFlags\")).setIcon(fourthBitmap);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sixflags));\n\n Drawable fifthDrawable = getResources().getDrawable(R.drawable.malawi_icon);\n BitmapDescriptor fifthBitmap = getMarkerIconFromDrawable(fifthDrawable);\n LatLng malawi = new LatLng(-13.268, 33.930);\n mMap.addMarker(new MarkerOptions().position(malawi).title(\"Marker in Malawi\")).setIcon(fifthBitmap);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(malawi));\n\n Drawable sixthDrawable = getResources().getDrawable(R.drawable.nicaragua_icon);\n BitmapDescriptor sixthBitmap = getMarkerIconFromDrawable(sixthDrawable);\n LatLng nicaragua = new LatLng(12.146, -86.273);\n mMap.addMarker(new MarkerOptions().position(nicaragua).title(\"Marker in Nicaragua\")).setIcon(sixthBitmap);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(nicaragua));\n\n\n\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n uiSettings.setMyLocationButtonEnabled(true);\n\n Geocoder coder = new Geocoder(getApplicationContext());\n List<Address> address;\n LatLng p1 = null;\n\n try {\n // May throw an IOException\n address = coder.getFromLocationName(\"3650 E. Olympic Blvd, Los Angeles, CA 90023\", 5);\n if (address != null) {\n Address location = address.get(0);\n p1 = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.addMarker(new MarkerOptions().position(p1).title(\"Marker at JungleBoys\"));\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, 1020);\n } else{\n mMap.setMyLocationEnabled(true);\n mFusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n // Logic to handle location object\n double lat = location.getLatitude();\n double lng = location.getLongitude();\n mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lng)).title(\"Marker at current Location\"));\n // mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lng)).title(\"Marker in NYC\").icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_launcher_round)));\n }\n }\n });\n }\n }", "@Override\n public void onPrepareLoad(Drawable placeHolderDrawable) {\n int height = 80;\n int width = 100;\n BitmapDrawable bitmapdraw = (BitmapDrawable) getResources().getDrawable(R.drawable.svclogo);\n Bitmap b = bitmapdraw.getBitmap();\n Bitmap smallMarker = Bitmap.createScaledBitmap(b, width, height, false);\n mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .title(\"Driver: \"+fName)\n .snippet(lisensya2)\n .icon(BitmapDescriptorFactory.fromBitmap(smallMarker))\n );\n }", "private void setUpMarkerLayer() {\n map.addLayer( new SymbolLayer( MARKER_LAYER_ID, geojsonSourceId ).withProperties( iconImage( MARKER_IMAGE_ID ), iconAllowOverlap( false )));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n// // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 14.0f));\n mMap.addMarker(new MarkerOptions().position(center).title(title));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(center, 14.0f));\n//\n Log.i(\"tag\", otherPoints.size() + \"\");\n for (LatLng p : otherPoints) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.baseline_album_black_18);\n mMap.addMarker(new MarkerOptions()\n .position(new LatLng(p.latitude, p.longitude))\n .title(\"\")\n .icon(icon));\n }\n }", "private void drawMarkers () {\n // Danh dau chang chua di qua\n boolean danhDauChangChuaDiQua = false;\n // Ve tat ca cac vi tri chang tren ban do\n for (int i = 0; i < OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().size(); i++) {\n\n TourTimesheet timesheet = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().get(i);\n // Khoi tao vi tri chang\n LatLng position = new LatLng(timesheet.getmBuildingLocation().latitude, timesheet.getmBuildingLocation().longitude);\n // Thay doi icon vi tri chang\n MapNumberMarkerLayoutBinding markerLayoutBinding = DataBindingUtil.inflate(getLayoutInflater(), R.layout.map_number_marker_layout, null, false);\n // Thay doi so thu tu timesheet\n markerLayoutBinding.number.setText(String.valueOf(i + 1));\n // Thay doi trang thai markup\n // Lay ngay cua tour\n Date tourDate = OnlineManager.getInstance().mTourList.get(tourOrder).getmDate();\n // Kiem tra xem ngay dien ra tour la truoc hay sau hom nay. 0: hom nay, 1: sau, -1: truoc\n int dateEqual = Tour.afterToday(tourDate);\n // Kiem tra xem tour da dien ra chua\n if (dateEqual == -1) {\n // Tour da dien ra, thay doi mau sac markup thanh xam\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n } else if (dateEqual == 1) {\n // Tour chua dien ra, thay doi mau sac markup thanh vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Kiem tra xem chang hien tai la truoc hay sau gio nay. 0: gio nay, 1: gio sau, -1: gio truoc\n int srcStartEqual = Tour.afterCurrentHour(timesheet.getmStartTime());\n int srcEndEqual = Tour.afterCurrentHour(timesheet.getmEndTime());\n if(srcStartEqual == 1){\n // Chang chua di qua\n if (danhDauChangChuaDiQua == true) {\n // Neu la chang sau chang sap toi thi chuyen thanh mau mau vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Neu la chang ke tiep thi giu nguyen mau do\n danhDauChangChuaDiQua = true;\n }\n } else if(srcStartEqual == -1 && srcEndEqual == 1){\n // Chang dang di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP);\n } else{\n // Chang da di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n }\n }\n // Marker google map\n View markerView = markerLayoutBinding.getRoot();\n // Khoi tao marker\n MarkerOptions markerOptions = new MarkerOptions()\n .draggable(false)\n .title(timesheet.getmBuildingName() + '-' + timesheet.getmClassroomName())\n .position(position)\n .icon(BitmapDescriptorFactory.fromBitmap(getMarkerBitmapFromView(markerView)));\n if (timesheet.getmClassroomNote() != null && !timesheet.getmClassroomNote().equals(\"\") && !timesheet.getmClassroomNote().equals(\"null\")) {\n markerOptions.snippet(timesheet.getmClassroomNote());\n }\n mMap.addMarker(markerOptions);\n // add marker to the array list to display on AR Camera\n markerList.add(markerOptions);\n // Goi su kien khi nhan vao tieu de marker\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n // TODO: Chuyen sang man hinh thong tin chang khi nhan vao tieu de chang\n openTimesheetInfo(marker.getTitle());\n }\n });\n }\n }", "@Override\n protected void onBeforeClusterItemRendered(LocationInfo locationInfo, MarkerOptions markerOptions) {\n// mImageView.setImageResource(person.profilePhoto);\n// Bitmap icon = mIconGenerator.makeIcon();\n// markerOptions.icon(BitmapDescriptorFactory.fromBitmap(icon)).title(person.name);\n // Draw a single person.\n // Set the info window to show their name.\n mImageView.setImageResource(mapPointCircle);\n// Bitmap icon = mIconGenerator.makeIcon();\n markerOptions.icon(getPointIcon()).title(locationInfo.getTitle());\n markerOptions.anchor(0.5f, 0.5f);\n }", "private void loadMarkers(){\n if (partnerLocs){\n latLngs = dataStorage.getPartnerLatLngList();\n locationNames = dataStorage.getPartnerLocNameList();\n }else{\n String favLatLngFromJson = dataStorage.getLatLngList();\n String favNamesFromJson = dataStorage.getLocNameList();\n\n if(favNamesFromJson != null && favLatLngFromJson != null){\n String[] favNames = new Gson().fromJson(favNamesFromJson, String[].class);\n LatLng[] favLatLng = new Gson().fromJson(favLatLngFromJson, LatLng[].class);\n\n //Convert json to the actual ArrayLists\n latLngs = Arrays.asList(favLatLng);\n latLngs = new ArrayList<LatLng>(latLngs);\n locationNames = Arrays.asList(favNames);\n locationNames = new ArrayList<String>(locationNames);\n }\n }\n\n\n\n\n //Add the markers back onto the map\n for (int i = 0; i < latLngs.size(); i++) {\n LatLng point = latLngs.get(i);\n String name = locationNames.get(i);\n Marker addedMarker = mMap.addMarker(new MarkerOptions().position(new LatLng\n (point.latitude, point.longitude)).title(name));\n if(partnerLocs){\n addedMarker.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE));\n }\n\n if(name.equals(locClicked)){\n markerClicked = addedMarker;\n }\n }\n }", "public Marker createMarker(double latitude, double longitude, final String storeImg, String name, String description, String contact_number, String opening_time, String closing_time_store, ArrayList<Store_img_item> store_img_items, ArrayList<StoreItem> store_item) {\n this.name = name;\n this.contact_number = contact_number;\n this.opening_time_store = opening_time;\n this.closing_time_store = closing_time_store;\n this.store_img_item = store_img_items;\n\n //Log.e(\"store\", String.valueOf(store_item.size()));\n store_img_item = new ArrayList<>();\n mMarker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n .snippet(description)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.c_marker))\n .title(name));\n mMarker.setTag(store_img_items);\n //store_img_item = (ArrayList<Store_img_item>) mMarker.getTag();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 15));\n\n return mMarker;\n }", "public void selectMarkerImage() {\r\n\t\tsafeClick(selectAddMarkerImage, MEDIUMWAIT);\r\n\t}", "public void initMapMarkers() {\n\t\tmyMarkersCollection = new MapMarkersCollection();\n\t\tMapMarkerBuilder myLocMarkerBuilder = new MapMarkerBuilder();\n\t\tmyLocMarkerBuilder.setMarkerId(MARKER_ID_MY_LOCATION);\n\t\tmyLocMarkerBuilder.setIsAccuracyCircleSupported(true);\n\t\tmyLocMarkerBuilder.setAccuracyCircleBaseColor(new FColorRGB(32/255f, 173/255f, 229/255f));\n\t\tmyLocMarkerBuilder.setBaseOrder(-206000);\n\t\tmyLocMarkerBuilder.setIsHidden(true);\n\t\tBitmap myLocationBitmap = OsmandResources.getBitmap(\"map_pedestrian_location\");\n\t\tif (myLocationBitmap != null) {\n\t\t\tmyLocMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With(\n\t\t\t\t\tmyLocationBitmap.getWidth(), myLocationBitmap.getHeight(),\n\t\t\t\t\tSampleUtils.getBitmapAsByteArray(myLocationBitmap)));\n\t\t}\n\t\tmyLocationMarker = myLocMarkerBuilder.buildAndAddToCollection(myMarkersCollection);\n\n\t\tmapView.addSymbolsProvider(myMarkersCollection);\n\n\t\t// Create context pin marker\n\t\tcontextPinMarkersCollection = new MapMarkersCollection();\n\t\tMapMarkerBuilder contextMarkerBuilder = new MapMarkerBuilder();\n\t\tcontextMarkerBuilder.setMarkerId(MARKER_ID_CONTEXT_PIN);\n\t\tcontextMarkerBuilder.setIsAccuracyCircleSupported(false);\n\t\tcontextMarkerBuilder.setBaseOrder(-210000);\n\t\tcontextMarkerBuilder.setIsHidden(true);\n\t\tBitmap pinBitmap = OsmandResources.getBitmap(\"map_pin_context_menu\");\n\t\tif (pinBitmap != null) {\n\t\t\tcontextMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With(\n\t\t\t\t\tpinBitmap.getWidth(), pinBitmap.getHeight(),\n\t\t\t\t\tSampleUtils.getBitmapAsByteArray(pinBitmap)));\n\t\t\tcontextMarkerBuilder.setPinIconVerticalAlignment(MapMarker.PinIconVerticalAlignment.Top);\n\t\t\tcontextMarkerBuilder.setPinIconHorisontalAlignment(MapMarker.PinIconHorisontalAlignment.CenterHorizontal);\n\t\t}\n\t\tcontextPinMarker = contextMarkerBuilder.buildAndAddToCollection(contextPinMarkersCollection);\n\n\t\tmapView.addSymbolsProvider(contextPinMarkersCollection);\n\t}", "@Override\n protected void onBeforeClusterItemRendered(Person person, MarkerOptions markerOptions) {\n mImageView.setImageResource(person.profilePhoto);\n Bitmap icon = mIconGenerator.makeIcon();\n //write your info code here\n markerOptions.icon(BitmapDescriptorFactory.fromBitmap(icon)).title(person.name);\n }", "private ImageMappings() {}", "public void createImageSet() {\n\t\t\n\t\t\n\t\tString image_folder = getLevelImagePatternFolder();\n \n String resource = \"0.png\";\n ImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(\"navigable\", ii.getImage());\n\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n if(requestCode == LOCATION_REQUEST && resultCode == RESULT_OK){\n PlaceOfInterest fromAdd = (PlaceOfInterest) data.getSerializableExtra(\"Place\");\n LatLng newLatLong = new LatLng(fromAdd.getLatitude(), fromAdd.getLongitude());\n MarkerOptions placeMarker = new MarkerOptions().position(newLatLong).title(fromAdd.getName())\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW));\n if(fromAdd.getPicture() != null){\n Log.d(TAG, \"getPicture was not null\");\n int height = 100;\n int width = 100;\n Bitmap picture = ByteConvertor.convertToBitmap(fromAdd.getPicture());\n BitmapDrawable d = new BitmapDrawable(getResources(), picture);\n Bitmap smallMarker = Bitmap.createScaledBitmap(d.getBitmap(), width, height, false);\n\n placeMarker.icon(BitmapDescriptorFactory.fromBitmap(smallMarker));\n }\n places.add(fromAdd);\n mMap.addMarker(placeMarker);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(newLatLong));\n }\n }", "private BitmapDescriptor getMarkerIconFromDrawableForEntertainment() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_entertainment);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }", "@Override\n public boolean onMarkerClick(Marker marker) {\n for(MapItem mi : lmi) {\n Log.d(TAG, \"clickCount \"+mi.getId()+\" \"+\n marker.getTag());\n if(mi.getId().equals(marker.getTag())) {\n Log.d(TAG, \"clickCount \"+mi.getImages().get(0));\n Picasso.get().load(mi.getImages().get(0)).into(sh.getI0());\n sh.setVisibility(View.VISIBLE);\n sh.fill(mi.getSiteName(), mi.getCreator(),\n \"\"+mi.getSiteLocation().getLatitude()+\", \"+mi.getSiteLocation().getLongitude());\n }\n }\n\n return false;\n }", "private BitmapDescriptor getMarkerIconFromDrawableForFood() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_food);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n //Settings for user Icon\r\n\r\n mMap = googleMap;\r\n mMap.setOnMarkerClickListener((GoogleMap.OnMarkerClickListener) this);\r\n\r\n Drawable circleDrawable = getResources().getDrawable(R.drawable.you_are_here_png);\r\n BitmapDescriptor markerIcon = getMarkerIconFromDrawable(circleDrawable);\r\n BitmapDescriptor markerTypeOfBuildings = getMarkerIconFromDrawableForEducation();\r\n\r\n if(_buildings_type.equals(\"Education\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForEducation(); }\r\n if(_buildings_type.equals(\"Administration\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForAdministration(); }\r\n if(_buildings_type.equals(\"Entertainment\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForEntertainment(); }\r\n if(_buildings_type.equals(\"Religion\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForReligion(); }\r\n if(_buildings_type.equals(\"Food\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForFood(); }\r\n\r\n\r\n if(_university_name==\"\") {\r\n setUserLocation(markerIcon);\r\n }\r\n else{\r\n //Set all buildings on Map\r\n for(Build b: allBuildings_){\r\n LatLng buildingsPosition = new LatLng(b.getLatitude(), b.getLongitude());\r\n mMap.addMarker(new MarkerOptions().position(buildingsPosition).title(\"Building \"+b.getName()).icon(markerTypeOfBuildings).snippet(b.getDescription()));\r\n mMap.getUiSettings().setZoomControlsEnabled(true);\r\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(position));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(buildingsPosition, zoom));\r\n }\r\n setUserLocation(markerIcon);\r\n //Nachat slushat tolko esly ACTION = ONLINE WALKING\r\n startListener();\r\n }\r\n\r\n }", "private void plottingMarkers(){\r\n if (nameList.size()==0) {\r\n }\r\n else {\r\n for (int i = 0; i < nameList.size(); i++) {\r\n Loc2LatLng = new LatLng(Double.parseDouble(latList.get(i)), Double.parseDouble(lngList.get(i)));\r\n MarkerOptions markerSavedLocations = new MarkerOptions();\r\n markerSavedLocations.title(nameList.get(i));\r\n markerSavedLocations.position(Loc2LatLng);\r\n map.addMarker(markerSavedLocations);\r\n }\r\n }\r\n }", "void setImageProvider(TileImageProvider tip)\n/* 71: */ {\n/* 72:118 */ this.mapPanel.setTileImageProvider(tip);\n/* 73: */ }", "protected abstract void setMarkers();", "public void onFinalImageSet(java.lang.String r3, @javax.annotation.Nullable com.facebook.imagepipeline.image.ImageInfo r4, @javax.annotation.Nullable android.graphics.drawable.Animatable r5) {\r\n /*\r\n r2 = this;\r\n r3 = 0;\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x007e }\r\n r4 = r4.dataSource;\t Catch:{ all -> 0x007e }\r\n r4 = r4.getResult();\t Catch:{ all -> 0x007e }\r\n r4 = (com.facebook.common.references.CloseableReference) r4;\t Catch:{ all -> 0x007e }\r\n r3 = 1;\r\n if (r4 == 0) goto L_0x003b;\r\n L_0x0010:\r\n r5 = r4.get();\t Catch:{ all -> 0x0039 }\r\n r5 = (com.facebook.imagepipeline.image.CloseableImage) r5;\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0018:\r\n r0 = r5 instanceof com.facebook.imagepipeline.image.CloseableStaticBitmap;\t Catch:{ all -> 0x0039 }\r\n if (r0 == 0) goto L_0x003b;\r\n L_0x001c:\r\n r5 = (com.facebook.imagepipeline.image.CloseableStaticBitmap) r5;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.getUnderlyingBitmap();\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0024:\r\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.copy(r0, r3);\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmap = r5;\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r5 = com.google.android.gms.maps.model.BitmapDescriptorFactory.fromBitmap(r5);\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmapDescriptor = r5;\t Catch:{ all -> 0x0039 }\r\n goto L_0x003b;\r\n L_0x0039:\r\n r3 = move-exception;\r\n goto L_0x0082;\r\n L_0x003b:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0049;\r\n L_0x0046:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0049:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0051:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.imageUri;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0059:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.imageUri;\r\n r4 = r4.getSharedIcon(r5);\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.iconBitmapDescriptor;\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r0 = r0.iconBitmap;\r\n r4.updateIcon(r5, r0);\r\n L_0x0078:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4.update(r3);\r\n return;\r\n L_0x007e:\r\n r4 = move-exception;\r\n r1 = r4;\r\n r4 = r3;\r\n r3 = r1;\r\n L_0x0082:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0090;\r\n L_0x008d:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0090:\r\n throw r3;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.airbnb.android.react.maps.AirMapMarker.1.onFinalImageSet(java.lang.String, com.facebook.imagepipeline.image.ImageInfo, android.graphics.drawable.Animatable):void\");\r\n }", "private HashMap<String, Marker> loadNMarkers(){\n HashMap<String, Marker> map = new HashMap<String, Marker>();\n if (googleMap != null) {\n googleMap.clear();\n }\n float alpha = (float) 0.5;\n if (main.state.getBookingState() != State.RESERVE_BIKE_SELECTION_STATE && main.state.getBookingState() != State.RESERVE_DOCK_SELECTION_STATE){\n alpha = 1;\n }\n for (Station station : stationList) {\n float fillLevel = station.getFillLevel(); // change the marker colors depending on the station fill levels\n float colour = fillLevel * 120;\n Marker marker = googleMap.addMarker(new MarkerOptions().position(station.getLocation()).title(station.getName()).snippet(Integer.toString(station.getOccupancy())).icon(BitmapDescriptorFactory.defaultMarker(colour)).alpha(alpha));\n marker.setTag(station.getId()); // set tag to reference markers later\n map.put(station.getId(), marker);\n }\n return map;\n }", "@Override\n\tpublic boolean onMarkerClick(Marker marker) {\n\t\tImageView imageView = ((ImageView) infobox.findViewById(R.id.loaded_image));\n\t\t\n//\t\t title.setText( marker.getTitle() );\n\t\t \n\t\t // load the image\n//\t\t imageLoader.displayImage( protestMap.get( marker.getId() ).getImageUrl(), imageView, new SimpleImageLoadingListener() {\n//\t\t @Override\n//\t\t public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n//\t\t super.onLoadingComplete(imageUri, view, loadedImage);\n//\t\t getInfoContents(marker);\n//\t\t }\n//\t\t });\n//\t\t \n \timageLoader.displayImage( protestMap.get( marker.getId() ).getImageUrl(), imageView);\n\t\t\n\t\t// if the Infobox is already showing hide it \n if( infobox.isShown() )\n \tinfobox.setVisibility(LinearLayout.GONE);\n // else show it\n else\n \tinfobox.setVisibility(LinearLayout.VISIBLE);\n\t\treturn false;\n\t}", "private void fillImageMap() {\n Image shipImage;\n try {\n shipImage = ImageIO.read(getClass().getResource(\"img/patrol_boat.png\"));\n imageMap.put(ShipType.PATROL_BOAT, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/patrol_boat_sunken.png\"));\n imageMap.put(ShipType.PATROL_BOAT_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_horizontal.gif\"));\n imageMap.put(ShipType.CRUISER_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_horizontal_sunken.gif\"));\n imageMap.put(ShipType.CRUISER_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_vertical.gif\"));\n imageMap.put(ShipType.CRUISER_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/cruiser_vertical_sunken.gif\"));\n imageMap.put(ShipType.CRUISER_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_horizontal.gif\"));\n imageMap.put(ShipType.SUBMARINE_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_horizontal_sunken.gif\"));\n imageMap.put(ShipType.SUBMARINE_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_vertical.gif\"));\n imageMap.put(ShipType.SUBMARINE_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/submarine_vertical_sunken.gif\"));\n imageMap.put(ShipType.SUBMARINE_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_horizontal.gif\"));\n imageMap.put(ShipType.BATTLESHIP_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_horizontal_sunken.gif\"));\n imageMap.put(ShipType.BATTLESHIP_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_vertical.gif\"));\n imageMap.put(ShipType.BATTLESHIP_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/battleship_vertical_sunken.gif\"));\n imageMap.put(ShipType.BATTLESHIP_VERTICAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_horizontal.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_HORIZONTAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_horizontal_sunken.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_HORIZONTAL_SUNKEN, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_vertical.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_VERTICAL, shipImage);\n shipImage = ImageIO.read(getClass().getResource(\"img/aircraft_carrier_vertical_sunken.gif\"));\n imageMap.put(ShipType.AIRCRAFT_CARRIER_VERTICAL_SUNKEN, shipImage);\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void renderChart(ChartData data) {\n markers.clear();\n mMap.clear();\n ArrayList<MapSet> sets= ((MapChartDataImpl)data).getData();\n for(int i=0;i<sets.size();i++){\n BitmapDescriptor setmarkerico=null;\n ArrayList<MapPoint> set=sets.get(i).getData();\n if(sets.get(i).getMarker().equals(\"\")||sets.get(i).getMarker().equals(\"standard\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.standard);\n else if(sets.get(i).getMarker().equals(\"custom\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.custom);\n else if(sets.get(i).getMarker().equals(\"plane\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.plane);\n else if(sets.get(i).getMarker().equals(\"flag\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.flag);\n else if(sets.get(i).getMarker().equals(\"bus\"))\n setmarkerico=BitmapDescriptorFactory.fromResource(R.drawable.bus);\n //TODO more...\n for(int j = 0;j<set.size();j++){\n LatLng coord = new LatLng(set.get(j).getLatitude(),set.get(j).getLongitude());\n\n MarkerOptions mo=new MarkerOptions()\n .position(coord)\n .snippet(\"\" + coord.toString())\n .icon(setmarkerico);\n if(set.get(j).getId()!=null)\n mo.title(\"\" + j + \"/\" + sets.get(i).getName()+ \" (id: \"+ set.get(j).getId()+\")\");\n else\n mo.title(\"\" + j + \"/\" + sets.get(i).getName());\n\n markers.add(mMap.addMarker(mo));\n\n /*if(j!=0)\n mMap.addPolyline(new PolylineOptions()\n .color(Color.parseColor(sets.get(i).getColor()))\n .add(new LatLng(set.get(j - 1).getLatitude(), set.get(j - 1).getLongitude()))\n .add(coord));*/\n }\n }\n }", "@Override\n public void onInfoWindowClick(Marker marker) {\n int id = hashMarker.get(marker.getPosition());\n Log.d(TAG, \"Posicion\" + marker.getPosition() + \" - \" + id);\n Iterator i = listMarkers.iterator();\n int numImages = 1;\n\n while(i.hasNext()){\n MarkerPropio m = (MarkerPropio) i.next();\n if (m.getId()==id){\n numImages=m.getNumImages();\n }\n }\n\n if (numImages==1){\n\n JsonArrayRequest jsArrayRequest = new JsonArrayRequest(GalleryImageActivity.URL_FROM_MARKER + id +\n GalleryImageActivity.URL_FORMAT, new Response.Listener<JSONArray>() {\n\n @Override\n public void onResponse(JSONArray response) {\n\n // Obtener el marker del objeto\n for(int i=0; i<response.length(); i++){\n try {\n JSONObject objeto= response.getJSONObject(i);\n int idImagen = objeto.getInt(\"id\");\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(DetailActivity.EXTRA_PARAM_ID, idImagen);\n startActivity(intent);\n } catch (JSONException e) {\n Log.e(TAG, \"Error de parsing: \"+ e.getMessage() + \"/// \"+ e.getCause());\n }\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error Respuesta en JSON: \" + error.getMessage() + \" || \" + error.getLocalizedMessage());\n }\n });\n requestQueue.add(jsArrayRequest);\n\n } else{\n Intent intent = new Intent(this, GalleryImageActivity.class);\n intent.putExtra(GalleryImageActivity.EXTRA_PARAM_ID, id);\n intent.putExtra(GalleryImageActivity.EXTRA_PARAM, 1);\n intent.putExtra(GalleryImageActivity.EXTRA_PARAM_NAME_MARKER, marker.getTitle());\n startActivity(intent);\n }\n }", "private void drawImages() {\n\t\t\r\n\t}", "private void setUpTheIcon ( Marker marker ){\n\n // Hide the current info window\n HideCurrentInfoWindow();\n\n if ( mCurrentDestination == null || !mCurrentDestination.getId().equals(marker.getId()) ){\n\n if ( mCurrentPark != null ){\n if ( !mCurrentPark.getId().equals(marker.getId() ) ){\n // clicked ! on current selected parking;\n setSmallIcon ( mCurrentPark );\n\n mCurrentPark = marker;\n\n setBigIcon ( mCurrentPark );\n\n }\n }\n else {\n //previous was selected nothing;\n\n mCurrentPark = marker;\n setBigIcon ( mCurrentPark );\n mCurrentPark.showInfoWindow();\n }\n }else{\n //clicked not a parking;\n if ( mCurrentPark != null ){\n\n setSmallIcon ( mCurrentPark );\n mCurrentPark = null;\n }\n }\n\n // show info window for clicked marker;\n marker.showInfoWindow();\n\n }", "private BitmapDescriptor getMarkerIconFromDrawableForReligion() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_religion);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "private BitmapDescriptor getMarkerIconFromDrawableForAdministration() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_administration);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public boolean isMarkerImageLabelPresent() {\r\n\t\treturn isElementPresent(vehicleName.replace(\"Vehicle Name\", \"Marker Image\"), SHORTWAIT);\r\n\t}", "public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void createMarker(LatLng position) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(position);\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.note_position));\n // set up marker\n locationMarker = googleMap.addMarker(markerOptions);\n locationMarker.setDraggable(true);\n locationMarker.showInfoWindow();\n }", "public void initMapImageFragment () {\n // Thay doi tieu de\n tabTourMapImageBinding.actionBar.actionBarTitle.setText(R.string.tour_map_image);\n Tour tour = OnlineManager.getInstance().mTourList.get(tourOrder);\n // Gan tour image\n if (!tour.getmMapImageUrl().equals(null) && !tour.getmMapImageUrl().equals(\"\")) {\n Picasso.get()\n .load(tour.getmMapImageUrl())\n .into(tabTourMapImageBinding.tourMapImage);\n// Picasso.with(this).load(tour.getmMapImageUrl()).into(tabTourMapImageBinding.tourMapImage);\n }\n // Tat map image progress\n mapImageProgressOff();\n }", "private void createImageFiles() {\n\t\tswitchIconClosed = Icon.createImageIcon(\"/images/events/switchImageClosed.png\");\n\t\tswitchIconOpen = Icon.createImageIcon(\"/images/events/switchImageOpen.png\");\n\t\tswitchIconEmpty = Icon.createImageIcon(\"/images/events/switchImageEmpty.png\");\n\t\tswitchIconOff = Icon.createImageIcon(\"/images/events/switchImageOff.png\");\n\t\tswitchIconOn = Icon.createImageIcon(\"/images/events/switchImageOn.png\");\n\t\tleverIconClean = Icon.createImageIcon(\"/images/events/leverImageClean.png\");\n\t\tleverIconRusty = Icon.createImageIcon(\"/images/events/leverImageRusty.png\");\n\t\tleverIconOn = Icon.createImageIcon(\"/images/events/leverImageOn.png\");\n\t}", "private void plotGoogleMap(List<Place> list)\n {\n googleMap.clear(); // clear the map\n for (int i = 0; i < list.size(); i++) {\n MarkerOptions markerOptions = new MarkerOptions();\n Place googlePlace = list.get(i);\n String placeName = googlePlace.getName();\n double lat = Double.parseDouble(googlePlace.getLat());\n double lng = Double.parseDouble(googlePlace.getLng());\n String type = googlePlace.getType();\n //Bitmap bmImg = getBitmapFromURL(icon);\n LatLng latLng = new LatLng(lat, lng);\n markerOptions.position(latLng);\n markerOptions.title(placeName);\n markerOptions.icon(BitmapDescriptorFactory.fromBitmap(getIconHelper.decodeSampledBitmapFromResource(getResources(),getIconHelper.getIconIDFromType(type),32,32)));\n //markerOptions.icon(BitmapDescriptorFactory.fromResource(getIconHelper.getIconIDFromType(type)));\n googleMap.addMarker(markerOptions);\n }\n }", "private void addGreenMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\r\n markerOptions.position(latLng);\r\n //markerOptions.title(dt.format(newDate));\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n mMap.addMarker(markerOptions);\r\n }", "private void addArchitectureMarkers() {\n try {\n // Get the text file\n InputStream file = getResources().openRawResource(R.raw.architecture);\n\n // Read the file to get contents\n BufferedReader reader = new BufferedReader(new InputStreamReader(file));\n String line;\n\n // Read every line of the file one line at a time\n while ((line = reader.readLine()) != null) {\n String[] architecture = line.split(\";\", 6);\n\n String architectureName = architecture[0];\n String placeID = architecture[1];\n String architectureDate = architecture[2];\n String architectureInfo = architecture[3];\n String architectureStyle = architecture[4];\n String architect = architecture[5];\n\n // Initialize Places.\n Places.initialize(getApplicationContext(), getString(R.string.google_directions_key));\n // Create a new Places client instance.\n PlacesClient placesClient = Places.createClient(this);\n // Specify the fields to return.\n List<Place.Field> placeFields = Arrays.asList(Place.Field.NAME, Place.Field.LAT_LNG,\n Place.Field.PHOTO_METADATAS);\n // Construct a request object, passing the place ID and fields array.\n FetchPlaceRequest request = FetchPlaceRequest.builder(placeID, placeFields).build();\n\n placesClient.fetchPlace(request).addOnSuccessListener((response) -> {\n Place place = response.getPlace();\n Log.i(\"TAG\", \"Place found: \" + place.getName());\n LatLng latlng = place.getLatLng();\n\n //Get the photo metadata.\n if (place.getPhotoMetadatas() == null) {\n Log.i(\"mylog\", \"no photo\");\n } else {\n //choose better default pictures for these buildings\n PhotoMetadata photoMetadata = place.getPhotoMetadatas().get(0);\n if (place.getName().equals(\"The Cube\")) {\n photoMetadata = place.getPhotoMetadatas().get(2);\n }\n if (place.getName().equals(\"Millennium Point Car Park\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"School of Art\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Saint Martin in the Bull Ring\")) {\n photoMetadata = place.getPhotoMetadatas().get(2);\n }\n if (place.getName().equals(\"Bullring & Grand Central\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Mailbox Birmingham\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"The International Convention Centre\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Birmingham Museum & Art Gallery\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n // Create a FetchPhotoRequest.\n FetchPhotoRequest photoRequest = FetchPhotoRequest.builder(photoMetadata)\n .setMaxWidth(200)\n .setMaxHeight(200)\n .build();\n\n placesClient.fetchPhoto(photoRequest).addOnSuccessListener((fetchPhotoResponse) -> {\n Bitmap bitmap = fetchPhotoResponse.getBitmap();\n // Add border to image\n Bitmap bitmapWithBorder = Bitmap.createBitmap(bitmap.getWidth() + 12, bitmap.getHeight()\n + 12, bitmap.getConfig());\n Canvas canvas = new Canvas(bitmapWithBorder);\n canvas.drawColor(Color.rgb(255, 128, 128));\n canvas.drawBitmap(bitmap, 6, 6, null);\n //Add marker onto map\n Marker marker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(latlng.latitude, latlng.longitude))\n .title(architectureName)\n .icon(BitmapDescriptorFactory.fromBitmap(bitmapWithBorder)));\n marker.setTag(placeID);\n String url = getUrl(currentPosition, marker.getPosition(), \"walking\");\n new FetchURL(MapsActivity.this).execute(url, \"walking\");\n //Store marker info\n markersList.add(marker);\n markerHashmap.put(marker.getTitle(), bitmap);\n architectureDateHashmap.put(marker.getTitle(), architectureDate);\n architectureInfoHashmap.put(marker.getTitle(), architectureInfo);\n architectureStyleHashmap.put(marker.getTitle(), architectureStyle);\n architectHashmap.put(marker.getTitle(), architect);\n if (markersList.size() == 34) {\n //Set camera position once all markers loaded in\n setCameraPosition(mMap, markersList);\n }\n }).addOnFailureListener((exception) -> {\n if (exception instanceof ApiException) {\n ApiException apiException = (ApiException) exception;\n int statusCode = apiException.getStatusCode();\n // Handle error with given status code.\n Log.e(TAG, \"Photo not found: \" + exception.getMessage());\n }\n });\n }\n }).addOnFailureListener((exception) -> {\n if (exception instanceof ApiException) {\n ApiException apiException = (ApiException) exception;\n int statusCode = apiException.getStatusCode();\n // Handle error with given status code.\n Log.e(\"TAG\", \"Place not found: \" + placeID + exception.getMessage());\n\n }\n });\n }\n reader.close();\n } catch (NullPointerException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public List<MapImage> convertMetdataToMapImages(PreparedQuery trackedMetadata) {\n List<MapImage> formLocationOptions = new ArrayList<>();\n for (Entity entity : trackedMetadata.asIterable()) {\n String location = (String) entity.getProperty(\"cityName\");\n double latitude = (double) entity.getProperty(\"latitude\");\n double longitude = (double) entity.getProperty(\"longitude\");\n\n formLocationOptions.add(new MapImage(latitude, longitude, location));\n }\n return formLocationOptions;\n }", "private void setOverlay() {\n //Initial Map\n mapOverlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(R.drawable.kmuttmap))\n .position(position_Initmap, map_wide, map_high);\n\n //Red Line\n red_lineOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(R.drawable.red_line))\n .position(position_Redline, redline_wide, redline_high);\n\n //Yellow Line\n yellow_lineOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(R.drawable.yellow_line))\n .position(position_Yellowline, yellowline_wide, yellowline_high);\n\n //Map with label\n map_labelOverlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(R.drawable.kmuttmap_label2))\n .position(position_Initmap, map_wide, map_high);\n\n }", "private void drawMarker1(LatLng point){\n MarkerOptions markerOptions=new MarkerOptions();\r\n\r\n // Setting latitude and longitude for the marker\r\n markerOptions.position(point);\r\n\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n\r\n // Adding marker on the Google Map\r\n mMap.addMarker(markerOptions);\r\n\r\n // marker.showInfoWindow();\r\n }", "public void generateMarkers() {\n\t\tgooglemap.clear();\n\t\tgooglemap.setMyLocationEnabled(true);\n\t\t//generateRouteLine();\n\t\tdouble itinerary_latitude;\n\t\tdouble itinerary_longitude;\n\t\tString itinerary_name;\n\n\t\tLatLng latlng;\n\t\tmarkers = new ArrayList<Marker>();\n\n\t\t//zoom out to make sure all markers are displayed in screen\n\t\tLatLngBounds.Builder builder = new LatLngBounds.Builder(); \n\t\tbuilder.include(new LatLng(parentActivity.getUserLat(),parentActivity.getUserLon()));\n\n\n\t\tfor( int x=parentActivity.getItinerary().itin.size(); x > 0; x-- ){\n\t\t\tEntity obj = parentActivity.getItinerary().itin.get(x-1);\n\t\t\titinerary_latitude = Double.parseDouble( obj.getLatitude() );\n\t\t\titinerary_longitude = Double.parseDouble( obj.getLongitude() );\n\t\t\titinerary_name = obj.getName();\n\t\t\tlatlng = new LatLng(itinerary_latitude, itinerary_longitude);\n\n\t\t\tint markerImage = supportClassObj.chooseMarkerImage(x);\n\t\t\t\n\t\t\tMarker marker = googlemap.addMarker(new MarkerOptions()\n\t\t\t\t.position(latlng)\n\t\t\t\t.snippet(\"Navigate\")\n\t\t\t\t.title(itinerary_name)\n\t\t\t\t.icon(BitmapDescriptorFactory.fromResource(markerImage)));\n\t\t\t\n\t\t\tmarker.showInfoWindow();\n\t\t\tmarker.hideInfoWindow();\n\n\t\t\tmarkers.add(marker);\n\n\t\t\t//setting bounds for googlemap\n\t\t\tbuilder.include(latlng); \n\t\t}\n\t\t\n\t\tgooglemap.setOnMarkerClickListener(new OnMarkerClickListener(){\n\t\t\t@Override\n\t\t\tpublic boolean onMarkerClick(Marker marker) {\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tfor( String leg : parentActivity.getItinerary().getPolyline() ){\n\t\t\thandleGetDirectionsResult(decodePoly(leg));\n\t\t}\n\t\t\n\t\t// multipliers for height based off percentage of screen size map will use\n\t\tint width = this.getResources().getDisplayMetrics().widthPixels;\n\t\tint padding = (int) (width * .145);\n\t\tgooglemap.moveCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), \n width, \n (int)(this.getResources().getDisplayMetrics().heightPixels * 0.8 * 0.6 * 0.8), padding));\n\t\t\n\t}", "@Override\n\t\t\tpublic View getInfoWindow(Marker marker) {\n\t\t\t\tView v = getLayoutInflater().inflate(R.layout.map_info_window, null);\n\n // Getting reference to the TextView to set title\n TextView memo = (TextView) v.findViewById(R.id.memo);\n ImageView imgV = (ImageView) v.findViewById(R.id.photo);\n\n memo.setText(marker.getTitle());\n\n \n /**\n * marker는 생성되는 순서대로 m0, m1, m2... m 뒤에 붙는 숫자들은 마커의 인덱스이고 이 인덱스는 \n * areaList의 인덱스와 같으므로 마커의 인덱스를 파싱해서 areaList에 그 인덱스로 접근하면 지역정보를 얻을 수 있다.\n */\n String id = marker.getId();\n int mIdx = Integer.parseInt( id.substring(1) ); // m 제외하고 스트링파싱 인트파.\n // LatLng l = marker.getPosition();\n \n String mPath = mAreaList.get(mIdx).pathOfPic.get(0); // 해당 위치에 저장된 많은 사진중 첫번째 사진주\n Bitmap bitm = decodeBitmapFromStringpath(mPath, 100, 100);\n imgV.setImageBitmap(bitm);\n// imgV.setImageURI(Uri.parse(mPath));\n // Returning the view containing InfoWindow contents\n return v;\n\t\t\t}", "public void resetMarker() {\n if(marker != null)\n marker.setIcon(BitmapDescriptorFactory.fromResource(GameSettings.getPlayerMarkerImage()));\n }", "public Shape[] getMarkerShapes()\n{\n if(_markerShapes!=null) return _markerShapes;\n Shape shp0 = new Ellipse(0,0,8,8);\n Shape shp1 = new Polygon(4,0,8,4,4,8,0,4);\n Shape shp2 = new Rect(0,0,8,8);\n Shape shp3 = new Polygon(4,0,8,8,0,8);\n Shape shp4 = new Polygon(0,0,8,0,4,8);\n return _markerShapes = new Shape[] { shp0, shp1, shp2, shp3, shp4 };\n}", "@Override\n public void onMapReady(GoogleMap googleMap)\n {\n // This method is called AFTER the map is loaded from Google Play services\n // At this point the map is ready\n\n // Store the reference to the Google Map in our member variable\n mMap = googleMap;\n // Custom marker (Big Blue one - mymarker.png)\n LatLng myPosition = new LatLng(33.671028, -117.911305);\n\n // Add a custom marker at \"myPosition\"\n mMap.addMarker(new MarkerOptions().position(myPosition).title(\"My Location\").icon(BitmapDescriptorFactory.fromResource(R.drawable.my_marker)));\n\n // Center the camera over myPosition\n CameraPosition cameraPosition = new CameraPosition.Builder().target(myPosition).zoom(15.0f).build();\n CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(cameraPosition);\n // Move map to our cameraUpdate\n mMap.moveCamera(cameraUpdate);\n\n // Then add normal markers for all the caffeine locations from the allLocationsList.\n // Set the zoom level of the map to 15.0f\n\n // Now, let's plot each Location form the list with a standard marker\n for (Location location : allLocationsList)\n {\n LatLng caffeineLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.addMarker(new MarkerOptions().position(caffeineLocation).title(location.getName()));\n }\n\n }", "@Override\n public View getInfoContents(Marker marker) {\n final View infoWin = inflater.inflate(R.layout.info_window_layout,null);\n\n //Instanciate and assign layout components\n ImageView itemPic = (ImageView) infoWin.findViewById(R.id.infoWinMarkerImage);\n\n TextView markerVendor = (TextView) infoWin.findViewById(R.id.infoWinMarkerVendor);\n\n TextView markerAvail = (TextView) infoWin.findViewById(R.id.infoWinMarkerAvail);\n\n\n //Set layout components\n\n Bitmap b = matchImage(marker);\n if(b != null){\n itemPic.setImageBitmap(b);\n }else{\n itemPic.setImageResource(R.drawable.utech_test);\n }\n\n markerVendor.setText(marker.getTitle());\n markerAvail.setText(marker.getSnippet());\n\n return infoWin;\n }", "private BitmapDescriptor getMarkerIconFromDrawable(Drawable inputDrawable){\n Canvas canvas = new Canvas();\n Bitmap bitmap = Bitmap.createBitmap(inputDrawable.getIntrinsicWidth(), inputDrawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\n canvas.setBitmap(bitmap);\n inputDrawable.setBounds(0, 0, inputDrawable.getIntrinsicWidth(), inputDrawable.getIntrinsicHeight());\n inputDrawable.draw(canvas);\n return BitmapDescriptorFactory.fromBitmap(bitmap);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n // Add a marker in Sydney and move the camera\n\n for( JSONObject jo : this.ubicaciones )\n {\n try{\n Log.i(\"ubicacion\",\n \" lat : \" + jo.get(\"lat\")\n + \" lon : \" + jo.get(\"lon\")\n + \" alt : \" + jo.get(\"alt\")\n );\n LatLng marca = new LatLng( jo.getDouble(\"lat\"), jo.getDouble(\"lon\") );\n\n mMap.addMarker(\n new MarkerOptions()\n .position(marca)\n .icon(\n BitmapDescriptorFactory\n .defaultMarker(BitmapDescriptorFactory.HUE_BLUE)\n )\n );\n// .title(\"Marker in Sydney\"));\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(marca));\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "private BitmapDescriptor getMarkerIconFromDrawable(Drawable drawable) {\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "private void initImageBitmaps(){\n imageUrls.add(\"https://i.redd.it/j6myfqglup501.jpg\");\n names.add(\"Rocky Mountains\");\n\n imageUrls.add(\"https://i.redd.it/0u1u2m73uoz11.jpg\");\n names.add(\"Mt. Baker, WA\");\n\n imageUrls.add(\"https://i.redd.it/xgd2lnk56mz11.jpg\");\n names.add(\"Falls Creek Falls, TN\");\n\n imageUrls.add(\"https://i.redd.it/o6jc7peiimz11.jpg\");\n names.add(\"Skogafoss, Iceland\");\n\n imageUrls.add(\"https://i.redd.it/zxd44dfbyiz11.jpg\");\n names.add(\"Black Forest, Germany\");\n\n imageUrls.add(\"https://www.mountainphotography.com/images/xl/20090803-Hermannsdalstinden-Sunset.jpg\");\n names.add(\"Lofoten Islands, Norway\");\n\n imageUrls.add(\"https://i.redd.it/6vdpsld78cz11.jpg\");\n names.add(\"Isle of Skye\");\n\n imageUrls.add(\"https://i.redd.it/i4xb66v5eyy11.jpg\");\n names.add(\"Lago di Carezza, Italy\");\n\n imageUrls.add(\"https://i.redd.it/ttl7f4pwhhy11.jpg\");\n names.add(\"Arches National Park, UT\");\n\n imageUrls.add(\"https://i.redd.it/mcsxhejtkqy11.jpg\");\n names.add(\"Northern Lights\");\n\n imageUrls.add(\"https://i.redd.it/0rhq46ve83z11.jpg\");\n names.add(\"Swiss Alps\");\n\n imageUrls.add(\"https://i.redd.it/0dfwwitwjez11.jpg\");\n names.add(\"Hunan, China\");\n\n //Initialize our recyclerView now that we have our images/names\n initRecyclerView();\n }", "@Override\n protected void onBeforeClusterRendered(Cluster<Person> cluster, MarkerOptions markerOptions) {\n List<Drawable> profilePhotos = new ArrayList<Drawable>(Math.min(4, cluster.getSize()));\n int width = mDimension;\n int height = mDimension;\n\n for (Person p : cluster.getItems()) {\n // Draw 4 at most.\n if (profilePhotos.size() == 4) break;\n Drawable drawable = getResources().getDrawable(p.profilePhoto);\n drawable.setBounds(0, 0, width, height);\n profilePhotos.add(drawable);\n }\n MultiDrawable multiDrawable = new MultiDrawable(profilePhotos);\n multiDrawable.setBounds(0, 0, width, height);\n\n mClusterImageView.setImageDrawable(multiDrawable);\n Bitmap icon = mClusterIconGenerator.makeIcon(String.valueOf(cluster.getSize()));\n markerOptions.icon(BitmapDescriptorFactory.fromBitmap(icon));\n }", "public Marker digitiseMarker(GridPoint gridPoint){\n\n MarkerOptions markerOptions = new MarkerOptions().gridPoint(gridPoint);\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n Marker marker = mMap.addMarker(markerOptions);\n return marker;\n\n }", "@Override\r\n protected void setUpMap() {\n mMap.addMarker(new MarkerOptions()\r\n .position(BRISBANE)\r\n .title(\"Brisbane\")\r\n .snippet(\"Population: 2,074,200\")\r\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\r\n\r\n // Uses a custom icon with the info window popping out of the center of the icon.\r\n mMap.addMarker(new MarkerOptions()\r\n .position(SYDNEY)\r\n .title(\"Sydney\")\r\n .snippet(\"Population: 4,627,300\")\r\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.arrow))\r\n .infoWindowAnchor(0.5f, 0.5f));\r\n\r\n // Creates a draggable marker. Long press to drag.\r\n mMap.addMarker(new MarkerOptions()\r\n .position(MELBOURNE)\r\n .title(\"Melbourne\")\r\n .snippet(\"Population: 4,137,400\")\r\n .draggable(true));\r\n\r\n // A few more markers for good measure.\r\n mMap.addMarker(new MarkerOptions()\r\n .position(PERTH)\r\n .title(\"Perth\")\r\n .snippet(\"Population: 1,738,800\"));\r\n mMap.addMarker(new MarkerOptions()\r\n .position(ADELAIDE)\r\n .title(\"Adelaide\")\r\n .snippet(\"Population: 1,213,000\"));\r\n\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(BRISBANE, 10));\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n googleMap.setBuildingsEnabled(false);\n\n LatLng ncf = new LatLng(27.3848206, -82.5587668);\n //mMap.addMarker(new MarkerOptions().position(ncf).title(\"Marker in NCF\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(ncf));\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(ncf, 18));\n\n BitmapDescriptor marker = BitmapDescriptorFactory.fromResource(R.mipmap.red_marker);\n\n mBP1 = mMap.addMarker(new MarkerOptions().position(BP1).title(\"Out or Order\").icon(marker));\n mBP2 = mMap.addMarker(new MarkerOptions().position(BP2).icon(marker));\n mBP3 = mMap.addMarker(new MarkerOptions().position(BP3).icon(marker));\n mBP4 = mMap.addMarker(new MarkerOptions().position(BP4).icon(marker));\n mBP5 = mMap.addMarker(new MarkerOptions().position(BP5).icon(marker));\n mBP7 = mMap.addMarker(new MarkerOptions().position(BP7).icon(marker));\n mBP8 = mMap.addMarker(new MarkerOptions().position(BP8).icon(marker));\n mBP9 = mMap.addMarker(new MarkerOptions().position(BP9).icon(marker));\n mBP10 = mMap.addMarker(new MarkerOptions().position(BP10).icon(marker));\n mBP11 = mMap.addMarker(new MarkerOptions().position(BP11).icon(marker));\n mBP12 = mMap.addMarker(new MarkerOptions().position(BP12).icon(marker));\n mBP14 = mMap.addMarker(new MarkerOptions().position(BP14).icon(marker));\n mBP21 = mMap.addMarker(new MarkerOptions().position(BP21).icon(marker));\n mBP23 = mMap.addMarker(new MarkerOptions().position(BP23).icon(marker));\n mBP24 = mMap.addMarker(new MarkerOptions().position(BP24).icon(marker));\n mBP25 = mMap.addMarker(new MarkerOptions().position(BP25).icon(marker));\n mBP26 = mMap.addMarker(new MarkerOptions().position(BP26).icon(marker));\n mBP30 = mMap.addMarker(new MarkerOptions().position(BP30).icon(marker));\n mBP32 = mMap.addMarker(new MarkerOptions().position(BP32).icon(marker));\n mBP33 = mMap.addMarker(new MarkerOptions().position(BP33).icon(marker));\n\n }", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }", "private void setIcons(){\n\t\tfinal List<BufferedImage> icons = new ArrayList<BufferedImage>();\n\t\ttry {\n\t\t\ticons.add(ImageLoader.getBufferedImage(SMALL_ICON_PATH));\n\t\t\ticons.add(ImageLoader.getBufferedImage(BIG_ICON_PATH));\n\t\t} catch (IOException e) {\n\t\t\tmanager.handleException(e);\n\t\t}\n\t\tif(icons.size() > 0)\n\t\t\tsetIconImages(icons);\n\t}", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "private BufferedImage createPlotImage() {\r\n final BufferedImage img = new BufferedImage(getWidth(), getHeight(), \r\n Transparency.BITMASK);\r\n final Graphics g = img.getGraphics();\r\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n \r\n g.setColor(GUIConstants.color6);\r\n for(int i = 0; i < scatterData.size; i++) {\r\n drawItem(g, scatterData.xAxis.co[i], \r\n scatterData.yAxis.co[i], false, false);\r\n }\r\n return img;\r\n }", "public void updateMarkers(){\n markerMap = new HashMap<>();\n googleMap.clear();\n for (Station station : main.getStations()) {\n float fillLevel = station.getFillLevel();\n float colour = fillLevel * 120;\n Marker marker = googleMap.addMarker(new MarkerOptions().position(station.getLocation()).title(station.getName()).snippet(Integer.toString(station.getOccupancy())).icon(BitmapDescriptorFactory.defaultMarker(colour)));\n marker.setTag(station.getId());\n markerMap.put(station.getId(), marker);\n }\n }", "public void setImg(String mapSelect){\n\t\ttry {\n\t\t if (mapSelect.equals(\"map01.txt\")){\n\t\t\timg = ImageIO.read(new File(\"space.jpg\"));\n\t\t\timg2 = ImageIO.read(new File(\"metal.png\"));\n\n\t\t }\t\n\t\t if (mapSelect.equals(\"map02.txt\")){\n\t\t\t\timg = ImageIO.read(new File(\"forest.jpg\"));\n\t\t\t\timg2 = ImageIO.read(new File(\"leaf.png\"));\n\t\t\t\timg3 = ImageIO.read(new File(\"log.png\"));\n\t\t }\n\t\t if (mapSelect.equals(\"map03.txt\")){\n\t\t\t\timg = ImageIO.read(new File(\"spinx.jpg\"));\n\t\t\t\timg2 = ImageIO.read(new File(\"pyramid.png\"));\n\t\t\t\timg3 = ImageIO.read(new File(\"sandy.png\"));\n\t\t\t\t\n\t\t }\n\t\t if (mapSelect.equals(\"map04.txt\")){\n\t\t\t\timg = ImageIO.read(new File(\"doublebg.png\"));\n\t\t\t\timg2 = ImageIO.read(new File(\"cloud.png\"));\n\t\t\t\t\n\t\t }\n\t\t\t\n\t\t}\n\t\t catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t}\n\t}", "private void setExtraMapElements() {\n \t\tif (mGoogleMap == null && mLocationsList == null) {\n \t\t\treturn;\n \t\t}\n \t\tfor (int i = 0; i < mLocationsList.size(); i++) {\n \t\t\tMarkerOptions marker = new MarkerOptions().position(mLocationsList\n \t\t\t\t\t.get(i).mPosition);\n \t\t\tif (mLocationsList.get(i).mIcono != 0) {\n \t\t\t\tmarker.icon(BitmapDescriptorFactory.fromResource(mLocationsList\n \t\t\t\t\t\t.get(i).mIcono));\n \t\t\t}\n \t\t\tif (mLocationsList.get(i).mContenido.mNombre != null) {\n \t\t\t\tmarker.title(mLocationsList.get(i).mContenido.mNombre);\n \t\t\t}\n \t\t\tif (mLocationsList.get(i).mContenido.mSnippet != null) {\n \t\t\t\tmarker.snippet(mLocationsList.get(i).mContenido.mSnippet);\n \t\t\t}\n \n \t\t\tmGoogleMap.addMarker(marker);\n \t\t}\n \t\tmGoogleMap.setInfoWindowAdapter(new MarkerAdapter());\n \t}", "private void setupMarkers() {\n \t\tGPSFilterPolygon polygon = this.area.getPolygon();\n \n \t\tif ( polygon != null ) {\n \t\t\tfinal LatLngBounds.Builder builder = LatLngBounds.builder();\n \n \t\t\t// Put markers for each edge.\n \t\t\tfor ( GPSLatLng pos : polygon.getPoints() ) {\n \t\t\t\tLatLng point = this.convertLatLng( pos );\n \n \t\t\t\tbuilder.include( point );\n \n \t\t\t\tthis.addMarker( point );\n \t\t\t}\n \n \t\t\t// Add listener that moves camera so that all markers are in users view.\n \t\t\tthis.googleMap.setOnCameraChangeListener( new OnCameraChangeListener() {\n \t\t\t\t@Override\n \t\t\t\tpublic void onCameraChange( CameraPosition arg0 ) {\n \t\t\t\t\t// Move camera.\n \t\t\t\t\tmoveCameraToPolygon( builder, false );\n \n \t\t\t\t\t// Remove listener to prevent position reset on camera move.\n \t\t\t\t\tgoogleMap.setOnCameraChangeListener( null );\n \t\t\t\t}\n \t\t\t} );\n \n \t\t\tthis.updateGuiPolygon();\n \t\t}\n \t}", "public LaneMarker(Vector2 pos, Texture img) {\n super(pos, new Vector2(img.getWidth(), img.getHeight()), 0);\n this.img = img;\n }", "private BitmapDescriptor getMarkerIconFromDrawableForEducation() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_education);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "private void m7632a() {\n Exception e;\n if (!this.f6418o) {\n this.f6406c.removeAnnotations();\n this.f6417n = true;\n Icon fromDrawable = IconFactory.getInstance(this).fromDrawable(getResources().getDrawable(C1373R.drawable.ic_grid_oval_icon));\n for (GridDTO latLng1 : this.f6414k) {\n this.f6415l.add((MarkerOptions) ((MarkerOptions) new MarkerOptions().icon(fromDrawable)).position(latLng1.getLatLng1()));\n }\n try {\n C2568n.a(this.f6406c, this.f6415l);\n } catch (ExecutionException e2) {\n e = e2;\n e.printStackTrace();\n } catch (InterruptedException e3) {\n e = e3;\n e.printStackTrace();\n }\n }\n }", "public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }", "private void drawMarker(LatLng point){\n \tMarkerOptions markerOptions = new MarkerOptions();\t\t\t\t\t\n \t\t\n \t// Setting latitude and longitude for the marker\n \tmarkerOptions.position(point);\n \tmarkerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker1));\n \t// Adding marker on the Google Map\n \tmap.addMarker(markerOptions); \t\t\n }", "@Override\n public void run() {\n Map<String, Object> m = new HashMap<>();\n m.put(\"mAMapLocation\", \"mAMapLocation\");\n Graphic graphic = new Graphic(tapPoint, m, pinDestinationSymbol);\n\n finalMarkerOverlay.getGraphics().add(graphic);\n }", "protected static LinkedList<Location> generateLocations() {\n int i = 0;\n LinkedList<Location> list = new LinkedList<Location>();\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n ImagePacker gearImgs = new ImagePacker();\n\n try {\n gearImgs.readDirectory(new File(Objects.requireNonNull(classLoader.getResource(\"assets/gear-tiles\")).getPath()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n for (i = 0; i < GEARTILES; i++) {\n list.add(new Location(LocationType.GEAR).withImg(gearImgs.popImg()));\n }\n list.get((int)(Math.random()*list.size())).toggleStartingLoc();\n\n Image waterImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-tile.jpg\")).toString());\n for (i = 0; i < WATERTILES; i++) {\n list.add(new Location(LocationType.WELL).withImg(waterImg));\n }\n\n Image waterFakeImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-fake-tile.jpg\")).toString());\n for (i = 0; i < WATERFAKETILES; i++) {\n list.add(new Location(LocationType.MIRAGE).withImg(waterFakeImg));\n }\n\n //TODO: Finish images\n for (i = 0; i < LANDINGPADTILES; i++) {\n list.add(new Location(LocationType.LANDINGPAD).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/landing-pad.jpg\")).toString())));\n }\n for (i = 0; i < TUNNELTILES; i++) {\n list.add(new Location(LocationType.TUNNEL).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/tunnel.jpg\")).toString())));\n }\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-LR.jpg\")).toString())));\n\n return list;\n }", "public void setMap(String mn){\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n }", "private LayerDrawable buildPinIcon(String iconPath, int iconColor) {\n\n LayerDrawable result = null;\n\n BitmapFactory.Options myOptions = new BitmapFactory.Options();\n myOptions.inDither = true;\n myOptions.inScaled = false;\n myOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;// important\n myOptions.inPurgeable = true;\n\n Bitmap bitmap = null;\n try {\n bitmap = BitmapFactory.decodeStream(container.getContext().getAssets().open(iconPath), null, myOptions);\n\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }catch (Exception e) {\n //Crashlytics.logException(e);\n\n }\n\n\n Bitmap workingBitmap = Bitmap.createBitmap(100, 100, bitmap.getConfig()); //Bitmap.createBitmap(bitmap);\n Bitmap mutableBitmap = workingBitmap.copy(Bitmap.Config.ARGB_8888, true);\n\n\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setDither(false);\n\n paint.setColor(iconColor);\n\n Canvas canvas = new Canvas(mutableBitmap);\n canvas.drawCircle(bitmap.getWidth()/2 + 10, bitmap.getHeight()/2 + 10, 32, paint);\n\n //\t canvas.drawBitmap(bitmap, 10, 10, null);\n\n if (!iconPath.isEmpty()) {\n\n try {\n result = new LayerDrawable(\n new Drawable[] {\n\t\t\t\t\t\t\t\t/*pincolor*/ new BitmapDrawable(mutableBitmap),\n new BitmapDrawable(BitmapFactory.decodeStream(container.getContext().getAssets().open(iconPath)))});\n\n } catch (Resources.NotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n\n\n return result;\n\n }", "public Map getMap(){\n\t image = ImageIO.read(getClass().getResource(\"/images/maps/\" + mapName + \".png\"));\n\t\t\n\t\t\n\t\treturn null;\t\t\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n // Add a marker in Sydney, Australia,\n // and move the map's camera to the same location.\n LatLng daegu = new LatLng(35.888836, 128.6102997);\n\n for(int i =0; i < items.size();i++){\n Item item = items.get(i);\n double latitude = item.getLatitude();\n double longitude = item.getLongitude();\n //Log.d(\"MYGOOGLEMAP\",\"\"+latitude+\" \"+longitude);\n googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n .anchor(0.5f, 0.5f)\n .title(item.getItem_name())\n .snippet(item.getItem_price_per_day()+\" won per a day\")\n //.flat(true)\n //.alpha(0.7f)//투명도\n //.icon(BitmapDescriptorFactory.fromBitmap(resizeMapIcons(item.getItem_image(),100,100)))\n );\n\n }\n// gmap.moveCamera(CameraUpdateFactory.newLatLngZoom(startingPoint,16));\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(daegu,14));\n }", "private void createMarkers(Bundle savedInstanceState) {\n List<MarkerDTO> markerDTOs = null;\n // add the OverlayItem to the ArrayItemizedOverlay\n ArrayList<DescribedMarker> markers = null;\n if (savedInstanceState != null) {\n markerDTOs = savedInstanceState.getParcelableArrayList(MapsActivity.PARAMETERS.MARKERS);\n markers = MarkerUtils.markerDTO2DescribedMarkers(this, markerDTOs);\n } else {\n markerDTOs = getIntent().getParcelableArrayListExtra(MapsActivity.PARAMETERS.MARKERS);\n markers = MarkerUtils.markerDTO2DescribedMarkers(this, markerDTOs);\n // retrieve geopoint if missing\n if (getIntent().getExtras() == null) {\n return;\n }\n featureIdField = getIntent().getExtras().getString(PARAMETERS.FEATURE_ID_FIELD);\n if (featureIdField == null) {\n featureIdField = FEATURE_DEFAULT_ID;\n }\n if (!MarkerUtils.assignFeaturesFromDb(markers, featureIdField)) {\n Toast.makeText(this, R.string.error_unable_getfeature_db, Toast.LENGTH_LONG).show();\n canConfirm = false;\n // TODO dialog : download features for this area?\n }\n }\n // create an ItemizedOverlay with the default marker\n overlayManager.getMarkerOverlay().getOverlayItems().addAll(markers);\n }", "private void setImage() {\n\t\t\n\t\tfor(int i=0; i<user.getIsVisited().length; i++) {\n\t\t\tif(user.getIsVisited()[i])\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1_certified + i*2);\n\t\t\telse\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1 + i*2);\n\t\t}\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n @Override\n public View getInfoWindow(Marker marker) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n View v = getLayoutInflater().inflate(R.layout.layout_marker, null);\n\n TextView info= (TextView) v.findViewById(R.id.info);\n TextView hotelname= (TextView) v.findViewById(R.id.info1);\n\n\n hotelname.setText(\"\"+HotelName+\"\");\n info.setText(\"\"+CurrencySymbol+\"\"+TotalFare);\n\n return v;\n }\n });\n int height = 180;\n int width = 200;\n BitmapDrawable bitmapdraw=(BitmapDrawable)getResources().getDrawable(R.drawable.blu_pointer);\n Bitmap b=bitmapdraw.getBitmap();\n Bitmap smallMarker = Bitmap.createScaledBitmap(b, width, height, false);\n\n\n\n\n\n mMap.getUiSettings().setMapToolbarEnabled(false);\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(Lati,Longi);\n mMap.addMarker(new MarkerOptions().position(sydney).\n title(HotelName).\n snippet(\"\"+CurrencySymbol+\" \"+TotalFare).\n icon(BitmapDescriptorFactory.fromBitmap(smallMarker)));\n CameraPosition cameraPosition = new CameraPosition.Builder().target(sydney).zoom(18).build();\n CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(cameraPosition);\n //googleMap.moveCamera(cameraUpdate);\n mMap.animateCamera(cameraUpdate);\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n\tprotected void onDraw(Canvas canvas)\n\t{\n\t\tdrawMap(canvas);\n\t\t\n\t\t screenwidth= context.getResources().getDisplayMetrics().widthPixels;\n\t\t screenheight= context.getResources().getDisplayMetrics().heightPixels;\n//\t\t\n//\t\tFMDBDatabaseAccess fdb = new FMDBDatabaseAccess(context);\n//\t\tsm = fdb.getSnagsXYvalue(this.getTag().toString());\n//\t\t//sm[0].setXValue(0.4);\n\t\t//sm[0].setYValue(0.5);\n\t\t if(sm==null)\n\t\t {\n\t\t\t sm=getSnag();\n\t\t }\n\t\tif(isFirst)\n\t\t{\n\t\t\tisFirst=false;\n\t\t\ttry{\n\t\t\tfor(int i=0;i<sm.length;i++)\n\t\t\t{\n\t\t\t paint.setStrokeWidth(30);\n\t\t\t //String str=\"\"+(sm[i].getXValue()*screenwidth);\n\t\t\t x = sm[i].getXValue()*screenwidth;\n\t\t\t //str=\"\"+(sm[i].getYValue()*screenheight);\n\t\t\t y = sm[i].getYValue()*screenheight;\n\t\t\t paint.setColor(Color.RED);\n\t\t\t if(x!=0.0f && y!=0.0f)\n\t\t\t {\n\t\t\t\t // canvas.drawRect(x+7.5f, y+7.5f, x-7.5f, y-7.5f,paint);\n\t\t\t\t // canvas.drawRect(x+7.5f, y+7.5f, x-7.5f, y-7.5f,paint);\n\t\t\t\t SnagImageMapping objmap=(SnagImageMapping) context;\n//\t\t\t\t \n\t\t\t\t mapLayout =(RelativeLayout)(objmap).findViewById(R.id.plot_image_layout);\n\t\t\t\t ImageView mapImage = new ImageView(context);\n//\t\t\t\t \n\t\t\t float value;\n\t\t\t\t if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)\n\t\t\t\t {\n\t\t\t\t\t value=screenheight*0.078125f;\n\t\t\t }\n\t\t\t\t else\n \t\t\t {\n\t\t\t\t\t value=screenheight*0.052083332f;\n \t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t float imght=value;\n\t\t\t\t float imgwdth=imght;\n\t\t\t\t RelativeLayout.LayoutParams par=new RelativeLayout.LayoutParams((int)imgwdth,(int)imght);\n\t\t\t\t par.leftMargin=(int)(x-(value/2));\n\t\t\t\t par.topMargin=(int)(y-(value/2));\n\t\t\t\t if(sm[i].getSnagStatus().equalsIgnoreCase(\"pending\"))\n\t\t\t\t {\n\t\t\t\t\t mapImage.setBackgroundResource(R.drawable.plot_yellow);\n\t\t\t\t }\n\t\t\t\t else if(sm[i].getSnagStatus().equalsIgnoreCase(\"reinspected & unresolved\"))\n\t\t\t\t {\n\t\t\t\t\t mapImage.setBackgroundResource(R.drawable.plot_red);\n\t\t\t\t }\n\t\t\t\t else if(sm[i].getSnagStatus().equalsIgnoreCase(\"resolved\"))\n\t\t\t\t {\n\t\t\t\t\t mapImage.setBackgroundResource(R.drawable.plot_green);\n\t\t\t\t }\n\t\t\t\t// R.drawable.pl\n\t\t\t\t mapImage.setId(i);\n\t\t\t\t // mapImage.setTag();\n\t\t\t\t mapImage.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\tint id=v.getId();\n\t\t\t\t\t\tfloat setX,setY;\n\t\t\t\t\t\t String str2=\"\"+(sm[id].getXValue()*screenwidth);\n\t\t\t\t\t\t setX = Float.parseFloat(str2);\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t str2=\"\"+(sm[id].getYValue()*screenheight);\n\t\t\t\t\t\t setY = Float.parseFloat(str2);\n\t\t\t\t\t\t//Toast.makeText(getContext(), \"By image click\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t//Log.d(\"x y\",\"\"+setX+\" \"+setY);\n\t\t\t\t\t\t//Button img=new Button(context);\n\t\t\t\t\t\t//img.setBackgroundResource(R.drawable.back_blue_button);\n\t\t\t\t\t\t//img.setText(\"from\"+\"\"+sm[id].getID());\n//\t\t\t\t\t\t RelativeLayout.LayoutParams par2=new RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT,android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT);\n//\t\t\t\t\t\t par2.leftMargin=(int)(setX);\n//\t\t\t\t\t\t par2.topMargin=(int)(setY);\n//\t\t\t\t\t\t popMsg.setLayoutParams(par2);\n//\t\t\t\t\t\t popMsg.setText(\"from\"+\"\"+sm[id].getID());\n//\t\t\t\t\t\t //popMsg.setText(\"from sfsf dfdfsfd dfdsf df dfdfdf d fdfedfd dfdfdf dfdf df dfdfd \");\n//\t\t\t\t\t\t popMsg.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t//RelativeLayout.LayoutParams par2=v.(RelativeLayout.LayoutParams)getTag();\n\t\t\t\t\t\t // img.setLayoutParams(par2);\n\t\t\t\t\t\t // mapLayout.addView(img);\n\t\t\t\t\t\t String text=\"Project - \"+sm[id].getProjectName()+\"\\n\"+\"Building - \"+sm[id].getBuildingName()+\"\\n\"+\"Floor - \"+sm[id].getFloor()+\"\\n\"+\"Apartment - \"+sm[id].getApartment()+\"\\n\"+\"Area - \"+sm[id].getAptAreaName()+\"\\n\"+\"SnagType - \"+sm[id].getSnagType()+\"\\n\"+\"FaultType - \"+sm[id].getFaultType()+\"\\n\"+\"Status - \"+sm[id].getSnagStatus()+\"\\n\"+\"ReportDate - \"+sm[id].getReportDate()+\"\\n\"+\"SnagDetails - \"+sm[id].getSnagDetails()+\"\\n\"+\"PriorityLevel - \"+sm[id].getSnagPriority()+\"\\n\"+\"Cost - \"+sm[id].getCost()+\"\\n\"+\"CostTO - \"+sm[id].getCostTo()+\"\\n\"+\"AllocatedToName - \"+sm[id].getAllocatedToName()+\"\\n\"+\"InspectorName - \"+sm[id].getInspectorName()+\"\\n\"+\"ContractorName - \"+sm[id].getContractorName()+\"\\n\"+\"SubContractorName - \"+sm[id].getSubContractorName()+\"\\n\"+\"ContractorStatus - \"+sm[id].getContractorStatus();\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n//\t\t\t\t\t\t \n\t\t\t\t\t\t final int loc=id;\n\t\t\t\t\t\t new AlertDialog.Builder(context)\n\t\t\t\t \t .setTitle(\"Snag Detail\")\n\t\t\t\t \t .setMessage(\"\"+text)\n\t\t\t\t \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t \t public void onClick(DialogInterface dialog, int which) { \n\t\t\t\t \t \t//Toast.makeText(context,\"\"+0.052083332*screenwidth+\" \"+0.078125*screenheight,Toast.LENGTH_LONG).show();\n\t\t\t\t \t // continue with delete\n\t\t\t\t \t }\n\t\t\t\t \t })\n\t\t\t\t \t .show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t \n\t\t\t\t mapImage.setLayoutParams(par);\n\t\t\t\t mapLayout.addView(mapImage);\n\t\t\t\t \n\t\t\t }\n\t\t\t if(touched)\n\t\t\t {\n\t\t\t// if((currentX>=(x-7.5f) && currentX<=(x+7.5f)) && ((currentY<=(y+7.5f)) && currentY>=( y-7.5f)))\n\t\t\t // {\n\t\t\t\t if((currentX>=(x-7.5f) && currentX<=(x+7.5f)) && ((currentY<=(y+7.5f)) && currentY>=( y-7.5f)))\n\t\t\t\t {\n\t\t\t\t\t \n\t\t\t\t\t // Toast.makeText(getContext(), \"Click\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t// Log.d(\"in the touch\",\"\");\n //\t\t\t String strID=sm[i].getID();\n //\t\t\t \t\tSnagImageMapping objmap=(SnagImageMapping) context;\n////\t\t\t\t \n//\t\t\t\t RelativeLayout mapLayout =(RelativeLayout)(objmap).findViewById(R.id.plot_image_layout);\n//\t\t\t\t ImageView mapImage = new ImageView(context);\n////\t\t\t\t \n//\t\t\t\t RelativeLayout.LayoutParams par=new RelativeLayout.LayoutParams(300,300);\n//\t\t\t\t mapImage.setBackgroundResource(R.drawable.plot_pink_gray);\n//\t\t\t\t par.setMargins((int)(x+7.5f), (int)(y+7.5f), (int)(x-7.5f), (int)(y-7.5f));\n//\t\t\t\t mapImage.setLayoutParams(par);\n//\t\t\t\t mapLayout.addView(mapImage);\n//\t\t\t\t Toast.makeText(getContext(), \"Green\",Toast.LENGTH_SHORT).show();\n\t\t\t\t \n\t\t\t }\n\t\t\t touched=false;\n\t\t\t }\n\t\t\t \n\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t}\t\n\t }\n\t\t\n\t}", "private Image getImage(IMarker marker) {\n\t\tImage image = ModelMarkerUtil.getImage(marker);\n\t\tif (image == null) {\n\t\t\ttry {\n\t\t\t\tif (marker.isSubtypeOf(IMarker.PROBLEM)) {\n\t\t\t\t\treturn ImageUtils.getImage(marker);\n\t\t\t\t}\n\t\t\t} catch (CoreException e) {\n\t\t\t\tCommonUIPlugin.log(e);\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "public void setStartingImages() {\n\t\t\n\t}", "private Marker createMarker(final int a, final String id1, String lat, String lng, final String title) {\n\n mMarkerMap.put(marker, a);\n mMarkerMap1.put(marker, title);\n\n Log.e(\"Data\", \"\" + lat + \"-->>>>\" + lng + \"--->>\" + title);\n\n if (a == 999999999) {\n\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title)\n .anchor(0.5f, 0.5f));\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Hospitals\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.hosp);\n\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Fire_stations\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.fire11515);\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Police Stations\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.police55);\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n }\n\n marker.showInfoWindow();\n\n return marker;\n\n }", "private void InsertMarkerToStyle(Style loadedStyle) {\n loadedStyle.addImage(MARKER_ID, BitmapUtils.getBitmapFromDrawable(ContextCompat.getDrawable(this, R.drawable.map_marker_dark)));\n }", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "private void requestMarkers(){\n requestQueue= Volley.newRequestQueue(this);\n listMarkers = new ArrayList<>();\n JsonArrayRequest jsArrayRequest = new JsonArrayRequest(URL_MARKERS, new Listener<JSONArray>() {\n\n @Override\n public void onResponse(JSONArray response) {\n if (idioma.equals(\"español\")){\n for(int i=0; i<response.length(); i++){\n try {\n JSONObject objeto= response.getJSONObject(i);\n MarkerPropio marker = new MarkerPropio(objeto.getString(\"description_es\"),\n objeto.getInt(\"id\"),\n objeto.getDouble(\"latitud\"),\n objeto.getDouble(\"longitud\"),\n objeto.getString(\"title_es\"),\n objeto.getInt(\"num_images\"));\n listMarkers.add(marker);\n } catch (JSONException e) {\n Log.e(TAG, \"Error de parsing: \"+ e.getMessage());\n Toast.makeText(getBaseContext(), getText(R.string.internal_fail), Toast.LENGTH_LONG).show();\n\n }\n }\n } else {\n for(int i=0; i<response.length(); i++){\n try {\n JSONObject objeto= response.getJSONObject(i);\n MarkerPropio marker = new MarkerPropio(objeto.getString(\"description_en\"),\n objeto.getInt(\"id\"),\n objeto.getDouble(\"latitud\"),\n objeto.getDouble(\"longitud\"),\n objeto.getString(\"title_en\"),\n objeto.getInt(\"num_images\"));\n listMarkers.add(marker);\n } catch (JSONException e) {\n Log.e(TAG, \"Error de parsing: \"+ e.getMessage());\n Toast.makeText(getBaseContext(), getText(R.string.internal_fail), Toast.LENGTH_LONG).show();\n }\n }\n }\n addMarkers();\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error Respuesta en JSON: \" + error.getMessage() + \" || \" + error.getLocalizedMessage());\n /*if (markerDao.findMarkers()!=null){\n listMarkers = markerDao.findMarkers();\n addMarkers();\n } else {\n Toast.makeText(getBaseContext(), getText(R.string.server_fail), Toast.LENGTH_LONG).show();\n }*/\n Toast.makeText(getBaseContext(), getText(R.string.server_fail), Toast.LENGTH_LONG).show();\n }\n });\n requestQueue.add(jsArrayRequest);\n }", "public void markerCreator(List<Employee>employeeArray) {\n\n employeeArrayforData= employeeArray;\n List<MarkerOptions> markers = new ArrayList<MarkerOptions>();\n for (int i = 0; i < employeeArray.size(); i++) {\n if(employeeArray.get(i).lastLocation.isEmpty())\n continue;\n// markers.add((new MarkerOptions()\n// .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation.replace(\": (\",\":(\")),\n// LatLong.getLongt(employeeArray.get(i).lastLocation.replace(\": (\",\":(\"))))\n// .title(employeeArray.get(i).name)));\n// updateMyMarkers(markers);\n Log.i(\"****\",employeeArray.get(i).lastLocation);\n Log.i(\"****\",\"hi\");\n if (employeeArray.get(i).online)\n\n {\n markers.add((new MarkerOptions()\n .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation),\n LatLong.getLongt(employeeArray.get(i).lastLocation)))\n .title(i+\":\"+employeeArray.get(i).name))\n .snippet((\"Rate = \"+employeeArray.get(i).rate+\",\"+employeeArray.get(i).email\n )).alpha(0.9f).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_picker_green)));\n\n }\n else{\n markers.add((new MarkerOptions()\n .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation),\n LatLong.getLongt(employeeArray.get(i).lastLocation)))\n .title(i+\":\"+employeeArray.get(i).name))\n .snippet((\"Rate = \"+employeeArray.get(i).rate+\"\"+employeeArray.get(i).email\n )).alpha(0.1f).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_picker_red)));\n }\n\n updateMyMarkers(markers);\n }\n }", "private Image getImage(AnnotationPreference preference) {\n \n \t\tImageRegistry registry= EditorsPlugin.getDefault().getImageRegistry();\n \n \t\tString annotationType= (String) preference.getAnnotationType();\n \t\tif (annotationType == null)\n \t\t\treturn null;\n \n \t\tString customImage= annotationType + \"__AnnotationsConfigurationBlock_Image\"; //$NON-NLS-1$\n \n \t\tImage image;\n \t\timage= registry.get(customImage);\n \t\tif (image != null)\n \t\t\treturn image;\n \n \t\timage= registry.get(annotationType);\n \t\tif (image == null) {\n \t\t\tImageDescriptor descriptor= preference.getImageDescriptor();\n \t\t\tif (descriptor != null) {\n \t\t\t\tregistry.put(annotationType, descriptor);\n \t\t\t\timage= registry.get(annotationType);\n \t\t\t} else {\n \t\t\t\tString symbolicImageName= preference.getSymbolicImageName();\n \t\t\t\tif (symbolicImageName != null) {\n \t\t\t\t\tString key= DefaultMarkerAnnotationAccess.getSharedImageName(symbolicImageName);\n \t\t\t\t\tif (key != null) {\n \t\t\t\t\t\tISharedImages sharedImages= PlatformUI.getWorkbench().getSharedImages();\n \t\t\t\t\t\timage= sharedImages.getImage(key);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tif (image == null)\n \t\t\treturn image;\n \n \t\t// create custom image\n \t\tfinal int SIZE= 16; // square images\n \t\tImageData data= image.getImageData();\n \t\tImage copy;\n \t\tif (data.height > SIZE || data.width > SIZE) {\n \t\t\t// scale down to icon size\n \t\t\tcopy= new Image(Display.getCurrent(), data.scaledTo(SIZE, SIZE));\n \t\t} else {\n \t\t\t// don't scale up, but rather copy into the middle and mark everything else transparent\n \t\t\tImageData mask= data.getTransparencyMask();\n \t\t\tImageData resized= new ImageData(SIZE, SIZE, data.depth, data.palette);\n \t\t\tImageData resizedMask= new ImageData(SIZE, SIZE, mask.depth, mask.palette);\n \n \t\t\tint xo= Math.max(0, (SIZE - data.width) / 2);\n \t\t\tint yo= Math.max(0, (SIZE - data.height) / 2);\n \n \t\t\tfor (int y= 0; y < SIZE; y++) {\n \t\t\t\tfor (int x= 0; x < SIZE; x++) {\n \t\t\t\t\tif (y >= yo && x >= xo && y < yo + data.height && x < xo + data.width) {\n \t\t\t\t\t\tresized.setPixel(x, y, data.getPixel(x - xo, y - yo));\n \t\t\t\t\t\tresizedMask.setPixel(x, y, mask.getPixel(x - xo, y - yo));\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tcopy= new Image(Display.getCurrent(), resized, resizedMask);\n \t\t}\n \n \t\tfImageKeys.add(customImage);\n \t\tregistry.put(customImage, copy);\n \t\treturn copy;\n \t}", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n // Add a marker in Sydney and move the camera\r\n\r\n\r\n\r\n LatLng salud = new LatLng(18.5094113, -69.8923432);\r\n mMap.addMarker(new MarkerOptions().position(salud).draggable(true).title(\"Centro De salud\").snippet(\"Centro de salud \").icon(BitmapDescriptorFactory.fromResource(R.drawable.salud)));\r\n\r\n\r\n LatLng monjas = new LatLng(18.509410, -69.891796);\r\n mMap.addMarker(new MarkerOptions().position(monjas).title(\"Casa de las hermnas\").snippet(\"Casa de las hermnas\").icon(BitmapDescriptorFactory.fromResource(R.drawable.monjas)));\r\n\r\n\r\n LatLng parroquia = new LatLng(18.510546, -69.891847);\r\n mMap.addMarker(new MarkerOptions().position(parroquia).title(\"Parroquia\").snippet(\"Parroquia \").icon(BitmapDescriptorFactory.fromResource(R.drawable.parroquia)));\r\n LatLng escuela = new LatLng(18.5110794, -69.8921382);\r\n mMap.addMarker(new MarkerOptions().position(escuela).title(\"Escuela Hogar pituca florez\").snippet(\"Escuela hogar pituca florez\").icon(BitmapDescriptorFactory.fromResource(R.drawable.escuela)));\r\n\r\n LatLng CIJE = new LatLng(18.509463 , -69.891545);\r\n markerPrueba =googleMap.addMarker(new MarkerOptions()\r\n .position(CIJE)\r\n .title(\"CIJE, Centro Infantil Juvenil Enmanuel\").snippet(\"Centro de estudios para todas las edades\").icon(BitmapDescriptorFactory.fromResource(R.drawable.cije)));\r\n\r\n\r\n mMap.getUiSettings().setZoomControlsEnabled(true);\r\n\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(CIJE,18));\r\n\r\n googleMap.setOnMarkerClickListener(this);\r\n googleMap.setOnInfoWindowClickListener(this);\r\n\r\n }", "public void displayPilgrim(TextView selectedCoord, MarkerOptions markerOptions, DecimalFormat formater) {\n selectedCoord.setText(\"Selected Park: 41.9589° N, -70.6622° W\");\n locationImage.setImageResource(R.drawable.pilgrim);\n markerOptions\n .position(arrayList.get(3))\n .title(\"Pilgrim Memorial State Park:\\n\" + formater.format(arrayList.get(3).latitude) + \"° N\" + \", \" + formater.format(arrayList.get(3).longitude) + \"° W\");\n //Zoom the Marker\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(arrayList.get(3), 15));\n //Add Marker On Map\n gMap.addMarker(markerOptions);\n }", "private void createXONImageMakerIconPane() throws Exception {\r\n\t\tif (m_XONImageMakerIconPanel != null)\r\n\t\t\treturn;\r\n\t\tImageUtils iu = new ImageUtils();\r\n\t\tm_XONImageMakerIconPanel = new JPanel() {\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tRectangle visibleRect = this.getVisibleRect();\r\n\t\t\t\tDimension panelSize = new Dimension(\r\n\t\t\t\t\t\t(int) visibleRect.getWidth(),\r\n\t\t\t\t\t\t(int) visibleRect.getHeight());\r\n\t\t\t\t// RGPTLogger.logToConsole(\"Panel Size: \"+panelSize);\r\n\t\t\t\tg.drawImage(XON_IMAGE_MAKER_ICON, 0, 0, panelSize.width,\r\n\t\t\t\t\t\tpanelSize.height, this);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public Bitmap getShapesImage();", "private Images() {}" ]
[ "0.7157844", "0.7080755", "0.6869598", "0.6675554", "0.66739106", "0.6549286", "0.6544894", "0.6409159", "0.6396894", "0.63643646", "0.6358369", "0.6318094", "0.6303579", "0.626473", "0.6263973", "0.62083656", "0.6200386", "0.6200135", "0.61751145", "0.6167107", "0.6128983", "0.6123039", "0.611838", "0.6106688", "0.61007017", "0.6098809", "0.60936075", "0.60782176", "0.60703", "0.60403603", "0.6038629", "0.60355574", "0.6035406", "0.6023705", "0.59982854", "0.5996392", "0.5947313", "0.5938831", "0.59253407", "0.59073514", "0.58983135", "0.5897291", "0.5891611", "0.58875483", "0.58870983", "0.5881857", "0.5876961", "0.5873668", "0.5856849", "0.585332", "0.5846315", "0.5836796", "0.58271885", "0.582368", "0.58233833", "0.58090466", "0.5789296", "0.5788153", "0.5782669", "0.577715", "0.5776048", "0.57723504", "0.57636356", "0.5759442", "0.57592756", "0.5753064", "0.5752291", "0.57502556", "0.57416224", "0.57269734", "0.5721729", "0.5720548", "0.57166046", "0.57111263", "0.57070625", "0.57044524", "0.5701993", "0.5698451", "0.569553", "0.5694651", "0.56833345", "0.5675601", "0.5673165", "0.5669554", "0.56612504", "0.56559056", "0.56538355", "0.5651339", "0.56406254", "0.5640035", "0.5634698", "0.562901", "0.56285465", "0.5618598", "0.56183535", "0.56143063", "0.56134856", "0.56118923", "0.56098294", "0.5608998" ]
0.6546782
6
Number of refresh per second
public Ball(Point c) { center = c; // Random velocity velocity = new Point((int)(Math.random()*20-10), (int)(Math.random()*20-10)); radius = 20; // repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private float getRefreshRate() {\n return 1;\n }", "public int getRefreshFreq() {\n return m_refreshFrequency;\n }", "public final int getRefreshRate() {\r\n return settings.getRefreshRate();\r\n }", "public int getRefreshTime() {\n return refreshTime;\n }", "long lastAutomaticRefresh();", "protected void speedRefresh() {\r\n\t\t\ttStartTime = System.currentTimeMillis();\r\n\t\t\ttDownloaded = 0;\r\n\t\t}", "abstract protected void refresh(long time);", "public int getNostroUpdateFrequency() {\n return nostroUpdateFrequency;\n }", "private void UI_RefreshSensorData ()\r\n\t{\r\n\t\t\t\t\r\n\t\tlong now = System.currentTimeMillis();\r\n\t\t\r\n\t\tif (now-ts_last_rate_calc>1000)\r\n\t\t{\r\n\t\t\tsensor_event_rate=last_nAccVal/((now-ts_last_rate_calc)/1000.0);\r\n\t\t\tts_last_rate_calc=now;\r\n\t\t}\r\n\t}", "@Override\n\tpublic int getGraphRefreshMinute() {\n\t\ttry {\n\t\t\tProperties p = new Properties();\n\t\t\tInputStream is=this.getClass().getResourceAsStream(\"/system.properties\"); \n\t\t\tp.load(is); \n\t\t\tis.close();\n\t\t\treturn Integer.parseInt(p.getProperty(\"graph_refresh_millisecond\"));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t}", "public void setRefreshFreq(int freq) {\n m_refreshFrequency = freq;\n }", "@Override\r\n public void update(long timePassed) {\n\r\n }", "public abstract float getSecondsPerUpdate();", "long getUpdateCount();", "public int getUpdateInterval()\n {\n return updateInterval;\n }", "public void periodicUpdate();", "public abstract void setSecondsPerUpdate(float secs);", "void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }", "@Override\r\n\tpublic void perSecond() {\n\r\n\t}", "public int getSessionUpdateFrequency() {\r\n\t\treturn this.sessionUpdateFrequency;\r\n\t}", "public abstract long getNumUpdate();", "public void updatePeriodic() {\r\n }", "public int getPollInterval();", "public int getRefreshInterval() {\n return (tozAdCampaignRetrievalInterval);\n }", "private void updateRefreshTime(){\n\t\t\trefreshLabel.setText(\"Last Updated: \" + (new Date()).toString());\n\t\t}", "protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }", "public void update(int time);", "public int getUpdateCount();", "Long getRunningCount();", "public boolean timeToRefresh() {\n if (tozAdCampaignRetrievalCounter == null) {\n return (true);\n }\n else if (tozAdCampaignRetrievalInterval != 0) {\n tozAdCampaignRetrievalCounter += getSleepInterval();\n\n AppyAdService.getInstance().debugOut(TAG,\"Ad Campaign refresh counter=\"+tozAdCampaignRetrievalCounter);\n if (tozAdCampaignRetrievalCounter >= tozAdCampaignRetrievalInterval) {\n tozAdCampaignRetrievalCounter = 0;\n return (true);\n }\n }\n return (false);\n }", "public void update(long ms) {\n\t\t\n\t}", "void update(int seconds);", "public void refreshNetworkSpeed() {\n long totalByte = getTotalByte();\n long currentTimeMillis = System.currentTimeMillis();\n int i = (totalByte > 0 ? 1 : (totalByte == 0 ? 0 : -1));\n if (i == 0) {\n this.mLastRefreshSpeedTime = 0;\n this.mLastRefreshSpeedTotalBytes = 0;\n }\n this.mCurrentSpeed.set(0);\n long j = this.mLastRefreshSpeedTime;\n if (j != 0 && currentTimeMillis > j) {\n long j2 = this.mLastRefreshSpeedTotalBytes;\n if (!(j2 == 0 || i == 0 || totalByte <= j2)) {\n this.mCurrentSpeed.set(((totalByte - j2) * 1000) / (currentTimeMillis - j));\n }\n }\n this.mLastRefreshSpeedTime = currentTimeMillis;\n this.mLastRefreshSpeedTotalBytes = totalByte;\n }", "public void countTimer() {\n\t\t\n\t\ttimerEnd = System.currentTimeMillis();\n\t}", "public void startUpdate(){ \n stimer.getTimer().scheduleAtFixedRate(new TimerTask()\n {\n @Override\n public void run(){updateShareRates();}\n }, 2000, 1000);\n }", "@Override\n\tpublic int getPositionDataRefreshMinute() {\n\t\ttry {\n\t\t\tProperties p = new Properties();\n\t\t\tInputStream is=this.getClass().getResourceAsStream(\"/system.properties\"); \n\t\t\tp.load(is); \n\t\t\tis.close();\n\t\t\treturn Integer.parseInt(p.getProperty(\"position_info_refresh_millisecond\"));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t}", "public void setUpdateOften(int i){\n countNum = i;\n }", "static UINT32 update_cycle_counting(void)\n\t{\n\t\tUINT32 count = (activecpu_gettotalcycles64() - mips3.count_zero_time) / 2;\n\t\tUINT32 compare = mips3.cpr[0][COP0_Compare];\n\t\tUINT32 cyclesleft = compare - count;\n\t\tdouble newtime;\n\t\n\t//printf(\"Update: count=%08X compare=%08X delta=%08X SR=%08X time=%f\\n\", count, compare, cyclesleft, (UINT32)SR, TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu()));\n\t\n\t\t/* modify the timer to go off */\n\t\tnewtime = TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu());\n\t\tif (SR & 0x8000)\n\t\t\ttimer_adjust(mips3.compare_int_timer, newtime, cpu_getactivecpu(), 0);\n\t\telse\n\t\t\ttimer_adjust(mips3.compare_int_timer, TIME_NEVER, cpu_getactivecpu(), 0);\n\t\treturn count;\n\t}", "private void updateInterval() {\n this.mNetworkUpdateInterval = Settings.System.getInt(this.mContext.getContentResolver(), \"status_bar_network_speed_interval\", 4000);\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "@Override\n\tpublic void update(long interval) {\n\n\t}", "long getRepeatIntervalPref();", "public void refresh() {\n if (this.monitorApiKey.length() == 0) {\n return;\n }\n String params =\n String.format(\"api_key=%s&format=xml&custom_uptime_ratios=1-7-30-365\", this.monitorApiKey);\n byte[] xml = loadPageWithRetries(params);\n Match doc;\n try {\n doc = $(new ByteArrayInputStream(xml));\n } catch (SAXException | IOException e) {\n throw new CouldNotRefresh(e);\n }\n String[] customRatios = doc.find(\"monitor\").attr(\"custom_uptime_ratio\").split(\"-\");\n this.last24HoursUptimeRatio = customRatios[0];\n this.last7DaysUptimeRatio = customRatios[1];\n this.last30DaysUptimeRatio = customRatios[2];\n this.last365DaysUptimeRatio = customRatios[3];\n }", "private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}", "@Override\n\tpublic int withIntervalInSeconds() {\n\t\treturn 10;\n\t}", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "int getHeartRate();", "public void setNewRefreshTime(int refreshTime){\n resetTimer(refreshTime);\n }", "@Override\n public void refreshGui() {\n int count = call(\"getCountAndReset\", int.class);\n long nextTime = System.currentTimeMillis();\n long elapsed = nextTime - lastTime; // ms\n double frequency = 1000 * count / elapsed;\n lastTime = nextTime;\n stats.addValue(frequency);\n\n outputLbl.setText(String.format(\"%3.1f Hz\", stats.getGeometricMean()));\n }", "@Scheduled(cron = \"*/2 * * * * ?\")\n public void dataCount(){\n System.out.println(\"数据统计第 \" + count++ + \" 次\");\n }", "static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}", "public long getUpdateCount() {\n return updateCount_;\n }", "public int getNumTimes();", "public int getCycles();", "@Override\r\n public void timePassed() {\r\n }", "private void updateNetworkSpeed() {\n Message obtain = Message.obtain();\n obtain.what = 200000;\n long j = 0;\n if (isDemoOrDrive() || this.mDisabled || !this.mIsNetworkConnected) {\n obtain.arg1 = 0;\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n return;\n }\n long currentTimeMillis = System.currentTimeMillis();\n long totalByte = getTotalByte();\n if (totalByte == 0) {\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n totalByte = getTotalByte();\n }\n long j2 = this.mLastTime;\n if (j2 != 0 && currentTimeMillis > j2) {\n long j3 = this.mTotalBytes;\n if (!(j3 == 0 || totalByte == 0 || totalByte <= j3)) {\n j = ((totalByte - j3) * 1000) / (currentTimeMillis - j2);\n }\n }\n obtain.arg1 = 1;\n obtain.obj = Long.valueOf(j);\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = currentTimeMillis;\n this.mTotalBytes = totalByte;\n postUpdateNetworkSpeedDelay((long) this.mNetworkUpdateInterval);\n }", "int getMPPerSecond();", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "int getUpdateCountsCount();", "private long getWaitTime() {\n long retVal = 1;\n long difference = System.currentTimeMillis() - myLastRefreshTime;\n if (difference < 75) {\n retVal = 75 - difference;\n }\n return (retVal);\n }", "protected void runEachSecond() {\n \n }", "public int getNumUpdates() {\n return (Integer) getProperty(\"numUpdates\");\n }", "public long timeIncrement(long reps) {\n long result = 0;\n for (; result < reps; result++) {\n }\n return result;\n }", "public int getNumDelayedUpdates() {\n return (Integer) getProperty(\"numDelayedUpdates\");\n }", "private void follow_updates() {\n new Thread() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(1000);\n GUI.setUps(upd_count);\n upd_count = 0;\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }\n }\n }.start();\n }", "public int getLiveCount() {\n return liveCount;\n }", "private void updateTime() {\n timer.update();\n frametime = timer.getTimePerFrame();\n }", "private void updateTokenCount() {\n // add new tokens based on elapsed time\n int now = service.elapsedMillis();\n int timeElapsed = now - lastTokenTime;\n if (timeElapsed >= tokenPeriodMs) {\n numTokens += timeElapsed / tokenPeriodMs;\n lastTokenTime = now - timeElapsed % tokenPeriodMs;\n }\n }", "@Override\n public void testPeriodic() {\n CommandScheduler.getInstance().run();\n\n SmartDashboard.putNumber(\"XCOUNT\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n\n }", "public int ticksPerSec()\n\t{\n\t\treturn _ticksPerSec;\n\t}", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "public void realTimeUpdate() {\n if ( millis() - lastTime >= 60000 ) {\n // *Load all_hour data\n eqData.init(hourURL);\n eqData.update(hour);\n println( \"all_hour data updated!\" );\n isHour = true;\n lastTime = millis();\n }\n}", "int time()\n\t{\n\t\treturn totalTick;\n\t}", "@java.lang.Override\n public long getUpdateIntervalInSec() {\n return updateIntervalInSec_;\n }", "private void incrementCounters() {\n // update score by 5 every second\n ++scoreTimer;\n if (scoreTimer > scoreInterval) {\n score += 5;\n scoreTimer = 0;\n }\n\n // update speed by 100% every second\n ++speedTimer;\n if (speedTimer > speedInterval) {\n currentSpeed *= speedFactor;\n ++gameLevel;\n speedTimer = 0;\n }\n\n // increment rock timer (we create a new rock every 2 seconds)\n ++rockTimer;\n }", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "long getUpdated();", "public void updateTime(int time)\n\t{\n\t\tshotsRemaining = rateOfFire;\n\t}", "@Override\n public void timePassed() {\n }", "Integer networkTickRate();", "long getIntervalInSeconds();", "static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}", "private synchronized void updateLogCount() {\n this.logCount++;\n }", "long getTsUpdate();", "public static int getTimeSeconds() {\n return Atlantis.getBwapi().getFrameCount() / 30;\n }", "@Override\n\tpublic void update12EverySec() {\n\t\t\n\t}", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "public float getCountRate() {\n return countMonitor.getRate();\n }", "@Test\n public void updateIncreasesTimer() {\n BotMemoryRecord record = new BotMemoryRecord();\n record.store(Point.pt(5, 5));\n\n record.update(100);\n\n assertThat(record.getTimeSinceLastSeen(), is(100L));\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "private void incrementGcCounter() {\n if (null == PSAgentContext.get().getMetrics()) {\n return; // nothing to do.\n }\n long elapsedGc = getElapsedGc();\n long totalGc = 0;\n String gc_time = PSAgentContext.get().getMetrics().get(AngelCounter.GC_TIME_MILLIS);\n if (gc_time != null) {\n totalGc = elapsedGc + Long.parseLong(gc_time);\n } else {\n totalGc = elapsedGc;\n }\n PSAgentContext.get().getMetrics().put(AngelCounter.GC_TIME_MILLIS, Long.toString(totalGc));\n }", "public long getUpdateCount() {\n return updateCount_;\n }", "@java.lang.Override\n public long getUpdateIntervalInSec() {\n return updateIntervalInSec_;\n }", "public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}", "public void run() {\r\n\t\tboolean repeat = true;\r\n\t\tint count = 0;\r\n\t\twhile(repeat){\r\n\t\t\tcount ++;\r\n\t\t\t//updates currency rates every hour (count>60)\r\n\t\t\tif(count > 60){\r\n\t\t\t\tcurrencies.updateRates();\r\n\t\t\t\tcount = 1;\r\n\t\t\t}\r\n\t\t\tprintStatus();\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(60000);\r\n\t\t\t}catch(InterruptedException ex){\r\n\t\t\t\trepeat = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void periodic() {\n }" ]
[ "0.78493536", "0.72872794", "0.71413714", "0.6964258", "0.6846169", "0.6800075", "0.6788029", "0.6676082", "0.66334814", "0.65579295", "0.65251327", "0.6480885", "0.64298105", "0.63723403", "0.63680154", "0.63594985", "0.63467026", "0.6320495", "0.6297987", "0.62756693", "0.62659436", "0.62654144", "0.6263449", "0.62410295", "0.6208453", "0.6175222", "0.61653715", "0.6155372", "0.61488646", "0.6124452", "0.61195964", "0.6118602", "0.6116896", "0.6097972", "0.609705", "0.6089078", "0.6034232", "0.603417", "0.6033699", "0.6031411", "0.6029811", "0.6024718", "0.5985523", "0.5968404", "0.594121", "0.5933868", "0.5933432", "0.5933217", "0.59331024", "0.591423", "0.5910209", "0.58957964", "0.58898133", "0.5883707", "0.5881172", "0.5876895", "0.5869061", "0.58668876", "0.5863939", "0.5860097", "0.58579546", "0.5857435", "0.5849198", "0.584889", "0.58458257", "0.584512", "0.5843079", "0.58374554", "0.5837361", "0.5836013", "0.58265185", "0.58221334", "0.58195543", "0.5806049", "0.58058393", "0.5805614", "0.5801543", "0.5801543", "0.5791761", "0.5783813", "0.5782702", "0.5778995", "0.5778184", "0.5767626", "0.5761559", "0.5756996", "0.57568663", "0.5756049", "0.57553774", "0.5751217", "0.57478666", "0.57383317", "0.57383317", "0.57383317", "0.57383317", "0.5736895", "0.573613", "0.57311136", "0.5725599", "0.5715865", "0.57131994" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { while (true) { // move(); // collisions(); // Refresh the display repaint(); // Callback paintComponent() // Delay for timing control and give other threads a chance try { Thread.sleep(1000 / UPDATE_RATE); // milliseconds } catch (InterruptedException ex) { } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Project: JoeyTools Create : joey Date : 2019/01/30 13:36 Description:
public interface OnCrashListener { /** * 当发生崩溃时触发,注意:crashLog可能为空 * @param crashLog * @param crashData * @param crashInfo */ public void onCrash(File crashLog, List<AppCrashInfo> crashData, StringBuilder crashInfo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testCreate() throws Exception {\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\t\tDate startDate = new Date();\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tcalendar.setTime(startDate);\n\t\tcalendar.add(Calendar.MONTH, 2);\n\t\t//\"name\":\"mizehau\",\"introduction\":\"dkelwfjw\",\"validityStartTime\":\"2015-12-08 15:06:21\",\"validityEndTime\":\"2015-12-10 \n\n\t\t//15:06:24\",\"cycle\":\"12\",\"industry\":\"1202\",\"area\":\"2897\",\"remuneration\":\"1200\",\"taskId\":\"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\"\n\t\tProject a = new Project();\n\t\tDate endDate = calendar.getTime();\n\t\tString name = \"mizehau\";\n\t\tString introduction = \"dkelwfjw\";\n\t\tString industry = \"1202\";\n\t\tString area = \"test闫伟旗创建项目\";\n\t\t//String document = \"test闫伟旗创建项目\";\n\t\tint cycle = 12;\n\t\tString taskId = \"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\";\n\t\tdouble remuneration = 1200;\n\t\tTimestamp validityStartTime = Timestamp.valueOf(sdf.format(startDate));\n\t\tTimestamp validityEndTime = Timestamp.valueOf(sdf.format(endDate));\n\t\ta.setArea(area);\n\t\ta.setName(name);\n\t\ta.setIntroduction(introduction);\n\t\ta.setValidityStartTime(validityStartTime);\n\t\ta.setValidityEndTime(validityEndTime);\n\t\ta.setCycle(cycle);\n\t\ta.setIndustry(industry);\n\t\ta.setRemuneration(remuneration);\n\t\ta.setDocument(taskId);\n\t\tProject p = projectService.create(a);\n\t\tSystem.out.println(p);\n\t}", "@SimpleProperty(description = \"iSENSE Project Creation Date\", \n category = PropertyCategory.BEHAVIOR)\n public String ProjectDateCreated() {\n if(this.project == null || this.fields == null) {\n Log.e(\"iSENSE\", \"Couldn't get project information!\");\n return \"DNE\";\n }\n return project.timecreated;\n }", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "LectureProject createLectureProject();", "@Override\n public String toSaveString() {\n //D0Finish project@June 6\n return \"D\" + (isDone ? \"1\" : \"0\") + name + \"@\" + getDate();\n }", "public Project() {\n this.name = \"Paper plane\";\n this.description = \" It's made of paper.\";\n }", "public Timestamp getCreationDate()\n throws OculusException;", "public ApiProject(Long id, String name, String note, LocalDateTime createTime) {\n this.id = id;\n this.name = name;\n this.note = note;\n this.createTime = createTime;\n }", "@Override\n public void make() {\n info=new StringBuilder().append(name).append(\" product was made: \").\n append(new GregorianCalendar().getTime()).append(\".\").toString();\n System.out.println(info);\n }", "String indexBlackLabBuildTime();", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}", "public static Project createProject() throws ParseException {\n System.out.println(\"Please enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the project name: \");\n String projName = input.nextLine();\n\n System.out.println(\"Please enter the type of building: \");\n String buildingType = input.nextLine();\n\n System.out.println(\"Please enter the physical address for the project: \");\n String address = input.nextLine();\n\n System.out.println(\"Please enter the ERF number: \");\n String erfNum = input.nextLine();\n\n System.out.println(\"Please enter the total fee for the project: \");\n int totalFee = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the total amount paid to date: \");\n int amountPaid = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the deadline for the project (dd/MM/yyyy): \");\n String sdeadline = input.nextLine();\n Date deadline = dateformat.parse(sdeadline);\n\n Person architect = createPerson(\"architect\", input);\n Person contractor = createPerson(\"contractor\", input);\n Person client = createPerson(\"client\", input);\n\n // If the user did not enter a name for the project, then the program will\n // concatenate the building type and the client's surname as the new project\n // name.\n\n if (projName == \"\") {\n String[] clientname = client.name.split(\" \");\n String lastname = clientname[clientname.length - 1];\n projName = buildingType + \" \" + lastname;\n }\n\n return new Project(projNum, projName, buildingType, address, erfNum, totalFee, amountPaid, deadline, contractor,\n architect, client);\n\n }", "@Override\t\r\n\tpublic String getDailyWorkout() {\n\t\treturn \"practice 30 hrs daily\";\r\n\t}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "public String getCreateDate() {\n return createDate;\n }", "public static void main(String[] args) {\n StringBuffer content = new StringBuffer();\n content.append(\"hi all:\");\n content.append(\"\\n\");\n content.append(\" 附件是\");\n Date cur = new Date();\n\n\n content.append(getDateByFormat(cur,\"MM\") + \"月\"+getDateByFormat(cur,\"dd\")+\"日\");\n content.append(\"oneday项目pv/uv\");\n\n System.out.println(content.toString());\n }", "Date getDateCreated();", "@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }", "public String getCreated() {\n return this.created;\n }", "public String getCreated() {\n return this.created;\n }", "public ServiceClient2 createTODO(String title, String desc) {\n\t\tInstant time = Instant.now();\n\t\tTimestamp timestamp = Timestamp.newBuilder().setSeconds(time.getEpochSecond()).setNanos(time.getNano()).build();\n\n\t\ttodo = ToDo.newBuilder().setTitle(title).setDescription(desc).setReminder(timestamp).build();\n\n\t\treturn this;\n\t}", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"play ROV 2hr.\";\n\t}", "public Project(String name, String description){\n this.name = name;\n this.description = description; \n }", "public void testProjectDescription() throws Throwable {\n \tModelObjectWriter writer = new ModelObjectWriter();\n \tModelObjectReader reader = new ModelObjectReader();\n \tIPath root = getWorkspace().getRoot().getLocation();\n \tIPath location = root.append(\"ModelObjectWriterTest.pbs\");\n \t/* test write */\n \tProjectDescription description = new ProjectDescription();\n \tdescription.setLocation(location);\n \tdescription.setName(\"MyProjectDescription\");\n \tHashMap args = new HashMap(3);\n \targs.put(\"ArgOne\", \"ARGH!\");\n \targs.put(\"ArgTwo\", \"2 x ARGH!\");\n \targs.put(\"NullArg\", null);\n \targs.put(\"EmptyArg\", \"\");\n \tICommand[] commands = new ICommand[2];\n \tcommands[0] = description.newCommand();\n \tcommands[0].setBuilderName(\"MyCommand\");\n \tcommands[0].setArguments(args);\n \tcommands[1] = description.newCommand();\n \tcommands[1].setBuilderName(\"MyOtherCommand\");\n \tcommands[1].setArguments(args);\n \tdescription.setBuildSpec(commands);\n \n \tSafeFileOutputStream output = new SafeFileOutputStream(location.toFile());\n \twriter.write(description, output);\n \toutput.close();\n \n \t/* test read */\n \tFileInputStream input = new FileInputStream(location.toFile());\n \tProjectDescription description2 = (ProjectDescription) reader.read(input);\n \tassertTrue(\"1.1\", description.getName().equals(description2.getName()));\n \tassertTrue(\"1.3\", location.equals(description.getLocation()));\n \n \tICommand[] commands2 = description2.getBuildSpec();\n \tassertEquals(\"2.00\", 2, commands2.length);\n \tassertEquals(\"2.01\", \"MyCommand\", commands2[0].getBuilderName());\n \tassertEquals(\"2.02\", \"ARGH!\", commands2[0].getArguments().get(\"ArgOne\"));\n \tassertEquals(\"2.03\", \"2 x ARGH!\", commands2[0].getArguments().get(\"ArgTwo\"));\n \tassertEquals(\"2.04\", \"\", commands2[0].getArguments().get(\"NullArg\"));\n \tassertEquals(\"2.05\", \"\", commands2[0].getArguments().get(\"EmptyArg\"));\n \tassertEquals(\"2.06\", \"MyOtherCommand\", commands2[1].getBuilderName());\n \tassertEquals(\"2.07\", \"ARGH!\", commands2[1].getArguments().get(\"ArgOne\"));\n \tassertEquals(\"2.08\", \"2 x ARGH!\", commands2[1].getArguments().get(\"ArgTwo\"));\n \tassertEquals(\"2.09\", \"\", commands2[0].getArguments().get(\"NullArg\"));\n \tassertEquals(\"2.10\", \"\", commands2[0].getArguments().get(\"EmptyArg\"));\n \n \t/* remove trash */\n \tWorkspace.clear(location.toFile());\n }", "public String getProjectTeamName(){\n return \"The name of the project of this researcher is \"+\n name_of_project_team +\n \"\\n*******\\n\";\n }", "public CreateProject() {\n\t\tsuper();\n\t}", "public String getDisplayName() {\n return \"Rhapsody Build\";\n }", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"Pracice your backend\";\n\t}", "@ApiModelProperty(value = \"An integer containing the creation date and time, in number of seconds\")\n public String getCreationDate() {\n return creationDate;\n }", "@Override\n public String toString(){\n return title + \"\\n\" + date;\n }", "public DateTime getCreationTime() {\n return created;\n }", "public Calendar getCreationDate() throws IOException {\n/* 238 */ return getCOSObject().getDate(COSName.CREATION_DATE);\n/* */ }", "public Date getCreatedDate();", "public String getCopyText(){\n // build text string (don't start with a blank as cursor is on\n // first date field\n StringBuilder sb = new StringBuilder();\n \n // add date\n sb.append(new SimpleDateFormat(\"dd MM yy\").format(this.getStartTime().getTime()));\n \n // 4 spaces between date and hours\n sb.append(\" \");\n \n // hours\n sb.append(Integer.toString(this.getHours()));\n \n // 3 spaces between hours and mins\n sb.append(\" \");\n \n // mins\n sb.append(this.getMinutesStr());\n\n // 2 spaces between hours and mins\n sb.append(\" \"); \n \n // add job number\n sb.append(this.getJobNoStr());\n \n // end of line\n sb.append(\"\\n\");\n \n // 15 spaces at start of second line\n sb.append(\" \");\n \n // description\n sb.append(this.getDescription());\n \n // end of line\n sb.append(\"\\n\");\n \n return sb.toString();\n }", "@Override\n public String getDescription() {\n return this.description + \"/by\" + this.dueDate;\n }", "public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }", "public Date getDateCreated(){return DATE_CREATED;}", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreation() {\n return creation;\n }", "public Date getDateCreated();", "public String getCreateDate() {\n return createDate;\n }", "public Ludo() {\n this.status = \"Created\";\n }", "public String getDateCreated(){\n return dateCreated.toString();\n }", "@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "public Note(String title, String text, Date date){\n this.title=title;\n this.text=text;\n this.date=date;\n }", "public String extraInfo(){\n return by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }", "interface WithNotes {\n /**\n * Specifies the notes property: Notes about the lock. Maximum of 512 characters..\n *\n * @param notes Notes about the lock. Maximum of 512 characters.\n * @return the next definition stage.\n */\n WithCreate withNotes(String notes);\n }", "public String getCreateDate() {\n return createDate;\n }", "public String getCreateDate() {\n return createDate;\n }", "@Test(enabled = false, description = \"WORDSNET-17669\")\n public void fieldSaveDate() throws Exception {\n Document doc = new Document(getMyDir() + \"Document.docx\");\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.moveToDocumentEnd();\n builder.writeln(\" Date this document was last saved:\");\n\n // We can use the SAVEDATE field to display the last save operation's date and time on the document.\n // The save operation that these fields refer to is the manual save in an application like Microsoft Word,\n // not the document's Save method.\n // Below are three different calendar types according to which the SAVEDATE field can display the date/time.\n // 1 - Islamic Lunar Calendar:\n builder.write(\"According to the Lunar Calendar - \");\n FieldSaveDate field = (FieldSaveDate) builder.insertField(FieldType.FIELD_SAVE_DATE, true);\n field.setUseLunarCalendar(true);\n\n Assert.assertEquals(\" SAVEDATE \\\\h\", field.getFieldCode());\n\n // 2 - Umm al-Qura calendar:\n builder.write(\"\\nAccording to the Umm al-Qura calendar - \");\n field = (FieldSaveDate) builder.insertField(FieldType.FIELD_SAVE_DATE, true);\n field.setUseUmAlQuraCalendar(true);\n\n Assert.assertEquals(\" SAVEDATE \\\\u\", field.getFieldCode());\n\n // 3 - Indian National calendar:\n builder.write(\"\\nAccording to the Indian National calendar - \");\n field = (FieldSaveDate) builder.insertField(FieldType.FIELD_SAVE_DATE, true);\n field.setUseSakaEraCalendar(true);\n\n Assert.assertEquals(\" SAVEDATE \\\\s\", field.getFieldCode());\n\n // The SAVEDATE fields draw their date/time values from the LastSavedTime built-in property.\n // The document's Save method will not update this value, but we can still update it manually.\n doc.getBuiltInDocumentProperties().setLastSavedTime(new Date());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.SAVEDATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SAVEDATE.docx\");\n\n System.out.println(doc.getBuiltInDocumentProperties().getLastSavedTime());\n\n field = (FieldSaveDate) doc.getRange().getFields().get(0);\n\n Assert.assertEquals(FieldType.FIELD_SAVE_DATE, field.getType());\n Assert.assertTrue(field.getUseLunarCalendar());\n Assert.assertEquals(\" SAVEDATE \\\\h\", field.getFieldCode());\n\n Assert.assertTrue(field.getResult().matches(\"\\\\d{1,2}[/]\\\\d{1,2}[/]\\\\d{4} \\\\d{1,2}:\\\\d{1,2}:\\\\d{1,2} [A,P]M\"));\n\n field = (FieldSaveDate) doc.getRange().getFields().get(1);\n\n Assert.assertEquals(FieldType.FIELD_SAVE_DATE, field.getType());\n Assert.assertTrue(field.getUseUmAlQuraCalendar());\n Assert.assertEquals(\" SAVEDATE \\\\u\", field.getFieldCode());\n Assert.assertTrue(field.getResult().matches(\"\\\\d{1,2}[/]\\\\d{1,2}[/]\\\\d{4} \\\\d{1,2}:\\\\d{1,2}:\\\\d{1,2} [A,P]M\"));\n }", "@Override\r\n\tpublic String getDailyStudy() {\n\t\treturn \"Practice Expilliarmus and Work on the patronus charm\";\r\n\t}", "Date getCreatedDate();", "long getCreateTime();", "long getCreateTime();", "@Override\n public String toString() {\n if (!this.by.equals(\"\")) {\n return \"[D]\" + getDescription() + \" (by: \" + this.by + \")\";\n } else {\n String dateToPrint = this.todoDate.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n return \"[D]\" + getDescription() + \" (by: \" + dateToPrint + \")\";\n }\n }", "@Test\n public void generateDescription_running_caloriesGoal() {\n Goal goal = new Goal(2, 99, GoalType.Run, \"2018-09-28\", \"2017-01-12\",\n 400);\n // Create the real and expected descriptions\n description = goal.getDescription();\n expectedDescription = \"Burn 400 calories while running\";\n\n // Check that the real and expected descriptions match\n assertEquals(expectedDescription, description);\n }", "@Override\n public String stringToSave() {\n char status = this.isDone ? '1' : '0';\n DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;\n assert dtfDate instanceof DateTimeFormatter : \"date formatter has to be of type DateTimeFormatter\";\n assert dtfTime instanceof DateTimeFormatter : \"time formatter has to be of type DateTimeFormatter\";\n final String EVENT_STRING_TO_SAVE =\n \"E \" + \"| \" + status + \" | \" + this.description+ this.stringOfTags + \" \" + \"| \" +\n this.date.format(dtfDate) + \" \" + this.time.format(dtfTime);\n return EVENT_STRING_TO_SAVE;\n }", "public DateTime getCreationTime() { return creationTime; }", "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _paper.getCreateDate();\n\t}", "String getCreated_at();", "@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }", "@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"Run and shoot!\";\n\t}", "@Test\n public void generateDescription_walking_durationGoal_singularHours() {\n Goal goal = new Goal(2, 99, GoalType.Walk,\"2018-09-28\", \"2017-01-12\",\n \"PT1H40M\");\n // Create the real and expected descriptions\n description = goal.getDescription();\n expectedDescription = \"Walk for 1 hour and 40 minutes\";\n\n // Check that the real and expected descriptions match\n assertEquals(expectedDescription, description);\n }", "Project createProject();", "Project createProject();", "Project createProject();", "public Date getCreationDate();", "Information createInformation();", "Builder addDateCreated(String value);", "public Date getCreationTime()\n {\n return created;\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreationDate() {\n return m_module.getConfiguration().getCreationDate();\n }", "WithCreate withNotes(String notes);", "public ProjectDescription() {\n this.description = Project.PROJECT_DEFAULT_DESCRIPTION;\n }", "String timeCreated();", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "public String getCreatetime() {\r\n return createtime;\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tempolye_details();\r\n\t\tempolye_id(2017,00,2117);\r\n\t\tSystem.out.println(empolye_post(\"Post : Junior Developer\"));\r\n\r\n\t\t \r\n\t}", "long getCreationTime();", "long getCreationTime();", "long getCreationTime();", "@Override\n\tpublic void run(String... args) throws Exception {\n\n\t\tiProjectService.save(new Project(1L, \"Training Allocation to New Joinees\", \n\t\t\t\tLocalDate.of(2021, Month.JANUARY, 25)));\n\t\t\n\t\tiProjectService.save(new Project(2L, \"Machine Allocations and Transport\", \n\t\t\t\tLocalDate.of(2021, Month.JANUARY, 10)));\n\t\t\n\t\tOptional<Project> optional = iProjectService.findById(1L);\n\t\t\n\t\t if(optional.isPresent()) {\n\t\t\t Project project = optional.get();\n\t\t\t System.out.println(\"Project Details - \" + project.getId() + \" \" + project.getName());\n\t \t \n\t\t }\n\n\t}", "@Override\n public String createFile(String date, String todaysDate) throws FlooringMasteryPersistenceException{\n \n return \"You are in Training mode, cannot create file\";\n }", "@Override\n public Date getCreated()\n {\n return null;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public String toString() {\n return '[' + description + \"][\" + date + ']';\n }", "private void initiateProject() {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.getDefault());\n\n Date startDay = null;\n Date deadlineMinPace = null;\n Date deadlineMaxPace = null;\n\n try {\n startDay = dateFormat.parse(\"21-08-2018\");\n deadlineMinPace = dateFormat.parse(\"27-08-2018\");\n deadlineMaxPace = dateFormat.parse(\"25-08-2018\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (startDay != null && deadlineMinPace != null && deadlineMaxPace != null) {\n\n smp = new SmartProject(\"Test project\", \"Test project description\",\n 35, startDay, deadlineMinPace, deadlineMaxPace);\n\n System.out.println(\"===>>>\" + smp.toString());\n\n } else {\n System.out.println(\"===>>> Some date are null!\");\n }\n\n /*\n // *** print block ***\n smp.printEntries();\n\n for (float f : smp.getYAxisChartValuesMinPace()) {\n System.out.println(f);\n }\n\n for (float f : smp.getYAxisChartValuesMaxPace()) {\n System.out.println(f);\n }\n\n for (float f : smp.getFloatNumbersForXAxis()) {\n System.out.println(f);\n }\n */\n\n }", "public long getCreationTime();", "void createProjectForExercise(ProgrammingExercise programmingExercise) throws VersionControlException;", "public Date getCreateTime() {\n return createTime;\n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }", "public Journal(String name, String text, String date, String time)\n {\n this.name = name;\n this.text = text;\n this.date = date;\n this.time = time;\n }", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "Date getCreateDate();" ]
[ "0.6457891", "0.61973464", "0.5779468", "0.5658449", "0.5633108", "0.54258853", "0.5423342", "0.5402356", "0.5395279", "0.5385982", "0.5367583", "0.5358612", "0.5354371", "0.53303653", "0.5319079", "0.5317732", "0.5261809", "0.5250475", "0.52380514", "0.52371854", "0.52371854", "0.5233967", "0.5230241", "0.5229283", "0.52236277", "0.52179223", "0.5209171", "0.5199173", "0.51897585", "0.51894134", "0.5188029", "0.5187705", "0.51852596", "0.518184", "0.5181288", "0.5178852", "0.5171956", "0.5168977", "0.51688826", "0.51688826", "0.51688826", "0.51686215", "0.5159336", "0.5158898", "0.51546186", "0.51519144", "0.5146899", "0.51385784", "0.51366806", "0.5125356", "0.51241267", "0.51234406", "0.51234406", "0.51181453", "0.51175326", "0.5114989", "0.51103914", "0.51103914", "0.510825", "0.5103054", "0.510158", "0.51012224", "0.5100786", "0.5095705", "0.5095662", "0.5094021", "0.50913954", "0.5091267", "0.50881886", "0.508717", "0.508717", "0.508717", "0.50827765", "0.5077993", "0.5071754", "0.50704616", "0.5066175", "0.50626457", "0.5062643", "0.5060803", "0.5059786", "0.50547695", "0.5053202", "0.5049918", "0.50497353", "0.50497353", "0.50497353", "0.5048096", "0.50477767", "0.5047557", "0.50474423", "0.5045439", "0.504484", "0.5042117", "0.5039154", "0.50388134", "0.5035014", "0.5033965", "0.5032668", "0.5031922", "0.50290334" ]
0.0
-1
Log.e("TAG", "" + response);
@Override public void onResponse(String response, int id) { processData(response); OkHttpUtils.get().url(Constants.BANNER_URL).build().execute(new StringCallback() { @Override public void onError(Call call, Exception e, int id) { Log.e("TAG", "" + e.getMessage()); } @Override public void onResponse(final String response, int id) { //Log.e("TAG", "" + response); /*MainActivity activity = (MainActivity) mContext; activity.runOnUiThread(new Runnable() { @Override public void run() {*/ processData1(response); adapter = new ThemAdapter(mContext, resultBean, result); rvThem.setAdapter(adapter); GridLayoutManager manager = new GridLayoutManager(mContext, 1); rvThem.setLayoutManager(manager); swipeRefreshLayout.setRefreshing(false); /* } });*/ } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResponse(String response) {\n Log.d(DEBUG_TAG, \"Response is: \"+ response);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n System.out.println();\n Log.d(\"ERROR\", error.toString());\n\n }", "@Override\n public void onResponse(String response) {\n Log.i(Constant.TAG_MAIN, \"Get JSON respone: \" + response);\n\n }", "@Override\n public void onResponse(JSONObject response){\n Log.i(\"Response\",String.valueOf(response));\n }", "@Override\r\n public void onErrorResponse(VolleyError error) {\n System.out.print(error.toString());\r\n Log.d(\"TAG\", error.toString());\r\n }", "@Override\n\t\t\tpublic void onResponse(Response response) throws IOException {\n Log.i(\"info\",response.body().string());\n\t\t\t}", "@Override\n public void onResponse(String response) {\n System.out.println(response.toString());\n }", "@Override\n public void onResponse(String response) {\n Log.d(\"Debug\", response);\n value = response;\n\n }", "@Override\n public void onResponse(String response) {\n System.out.println(\"Recieved Response: \" + response);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }", "@Override\n public void onResponse(String response) {\n Toast.makeText(Details.this, \"\" + response, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n System.out.println(error.toString());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n System.out.println(error.toString());\n }", "@Override\n public void onResponse(JSONObject response) {\n Log.d(\"JSON_RESPONSE\",\"onResponse:\" +response.toString());\n }", "@Override\r\n public void onResponse(String response) {\n button.setText(\"Response is: \" + response);\r\n Log.i(NAME, response);\r\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"ERROR\",\"error => \"+error.toString());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n System.out.println(\"ERRO: \"+ error.getMessage());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"error\",error.toString());\n }", "@Override\n public void onFailure(Request request, IOException e) {\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MainActivity.this, \"Error: \\n\" + error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onResponse(String response) {\n mTextView.setText(\"Response is: \" + response);\n }", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "protected void onPostExecute(Void v) {\n Log.v(\"Result\",response);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"Events: \", error.toString());\n\n Toast.makeText(context,\n error.toString(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"Events: \", error.toString());\n\n Toast.makeText(context,\n error.toString(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onResponse(String response) {\n Toast.makeText(ContainerActivity.this, \"hey\", Toast.LENGTH_SHORT).show();\n Log.d(\"exito\", \"la peticion ha sido tramitada con exito\");\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"ERROR111\", \"error => \" + error.toString());\n\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n System.out.println(\"GET request error\");\n }", "@Override\n public void onFailure(Call call, IOException e) {\n Log.e(\"Volley\", e.toString());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n try{\n Log.e(\"wsrong\", error.toString());\n }\n catch (Exception ex)\n {\n Toast.makeText(context,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n try{\n Log.e(\"wsrong\", error.toString());\n }\n catch (Exception ex)\n {\n Toast.makeText(context,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n System.out.println(error.toString());\n System.out.println(\"RatéRaté\");\n }", "@Override\n public void onResponse(String response) {\n Toast.makeText(DemoLocationActivity.this,response,Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n public void onResponse(String response) {\n Toast.makeText(getBaseContext(),\"Response is: \"+ response,Toast.LENGTH_LONG).show();\n json(response);\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n Log.e(\"JSON\", new String(response));\n\n\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"WAFAA\", error.toString());\n }", "@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, \"Something Went Wrong\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, error.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, error.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.v(\"tag\", \"request fail\");\n error.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Login Request Fail\", Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(),error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onResponse(String response)\n {\n\n }", "@Override\n public void onResponse(JSONArray response) {\n Log.i(TAG, \"Response => \" + response.toString());\n // Log.i(TAG, \"Response => \" + response.);\n // response.get\n\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MainActivity.this, getResources().getString(R.string.error_not_respond), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onResponse(String response) {\n Log.i(\"Checking\", response + \" \");\n if(new ServerReply(response).getStatus())\n {\n Toast.makeText(context,new ServerReply(response).getReason(),Toast.LENGTH_LONG).show();\n }\n\n }", "@Override\n public void onCompleted(Exception e, String result) {\n if (e != null) {\n Log.e(\"API Error\", e.getMessage());\n } else {\n Log.e(\"API Response\", result);\n }\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"ERROR\",\"error aa gya\");\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onCompleted(GraphResponse response) {\n Log.d(\"GraphAPI FB debug\", String.valueOf(response));\n Log.d(\"GraphAPI FB debug\", response.toString());\n }", "@Override\n public void onResponse(Call call, final Response response) throws IOException {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n// TextView responseText = findViewById(R.id.responseText);\n try {\n// responseText.setText(response.body().string());\n Log.d(\"Flask Server\",response.body().string());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n }", "@Override\r\n\t\t\t\t\tpublic void onResponse(HttpResponse resp) {\n\t\t\t\t\t\tLog.i(\"HttpPost\", \"Success\");\r\n\r\n\t\t\t\t\t}", "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String s) {\n loading.dismiss();\n try {\n //Showing toast message of the response\n Toast.makeText(UpdateQueryActivity.this, s , Toast.LENGTH_LONG).show();\n }catch (Exception e){\n Log.i(\"Volley_Response: \",e.toString());\n }\n }", "@Override\n\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\tSystem.out.println(arg0);\n\t\t\t\t\t\n\t\t\t\t}", "public void onResponse(Response response) throws Exception;", "@Override\n\t\t\t\tpublic void finished(Response response) {\n\t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n\t\t\t\t}", "@Override\n public void onErrorResponse(VolleyError volleyError) { //when error listener is activated\n Log.i(\"volley\", volleyError.toString());\n }", "@Override\n public void onErrorResponse(VolleyError volleyError) { //when error listener is activated\n Log.i(\"volley\", volleyError.toString());\n }", "@Override\n public void onResponse(String response) {\n }", "@Override\r\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MyQuestionActivity.this, \"网络请求失败\", Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public void onErrorResponse(VolleyError volleyError) {\n Toast.makeText(MulaiActivity.this, volleyError.toString(), Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onFailure(Request request, IOException e) {\n\t\t\t\t Log.i(\"info\",\"hehe\");\n\t\t\t}", "public static void printResponse(String response)\n\t{\n\t\n\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"response is:\", error.toString());\n Toast.makeText(getActivity(), Settings.getword(getActivity(),\"server_not_connected\"), Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n }", "@Override\n public void run() {\n try {\n// responseText.setText(response.body().string());\n Log.d(\"Flask Server\",response.body().string());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onResponse(String response) {\n progressDialog.dismiss();\n Log.d(\"Text on webpage: \", \"\" + response);\n checkResponse(response);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(LoginActivity.this, R.string.wangluo, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onResponse(Object response) {\n activity.gotHelper(\"Succes!\");\n }", "@Override\n\t\t\tpublic void onResponse(JSONObject arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }", "@Override\n\t\t\tpublic void onResponse(JSONObject arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onResponse(String s) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onResponse(String response) {\n System.out.println(\"Response is: \"+ response);\n\n try {\n JSONObject jsonObj = new JSONObject(response);\n String responseResult = jsonObj.getString(\"result\");\n String err = jsonObj.getString(\"err\");\n if (responseResult.equals(\"success\")) {\n continueAfterSuccessfulResponse(jsonObj, requestCode);\n }\n else\n {\n AlertDialog alertDialog = new AlertDialog.Builder(ViewInventoryActivity.this).create();\n alertDialog.setTitle(\"Error\");\n alertDialog.setMessage(err);\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }" ]
[ "0.7986216", "0.73571646", "0.73486173", "0.73275703", "0.72481674", "0.72360253", "0.7156059", "0.7096566", "0.70344234", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.70248646", "0.69748026", "0.6900347", "0.6900347", "0.6879816", "0.68439317", "0.6816684", "0.6789553", "0.6783802", "0.674883", "0.6738045", "0.67178583", "0.67071086", "0.67071086", "0.6697473", "0.6674585", "0.6674585", "0.6663879", "0.66565675", "0.66503364", "0.66369206", "0.6634104", "0.6634104", "0.6633357", "0.6632099", "0.6632099", "0.6632099", "0.6632099", "0.6625427", "0.66233623", "0.6614874", "0.6614874", "0.6614307", "0.6611606", "0.66006124", "0.6595025", "0.65938294", "0.6584459", "0.6580488", "0.6580488", "0.6580488", "0.657764", "0.65477645", "0.6541784", "0.65200096", "0.65200096", "0.651466", "0.6486938", "0.6485131", "0.648039", "0.6479832", "0.6462622", "0.64603174", "0.6458747", "0.6454941", "0.6439899", "0.64375734", "0.64367276", "0.6417854", "0.6417104", "0.64089274", "0.6399583", "0.6389744", "0.63559246", "0.63525593", "0.63525593", "0.63156205", "0.6308559", "0.63008946", "0.62950915", "0.6273283", "0.62682426", "0.62652403", "0.62599796", "0.6256761", "0.625322", "0.6251313", "0.6249352", "0.62459475", "0.6245744", "0.62452924" ]
0.0
-1
Spring Data repository for the EmployeeDetails entity.
@SuppressWarnings("unused") @Repository public interface EmployeeDetailsRepository extends JpaRepository<EmployeeDetails, Long> { Optional<EmployeeDetails> findByUserId(Long id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EmployeeRepository extends CrudRepository<Employee, Long>{\n}", "@Repository\npublic interface EmployeeRepository extends JpaRepository<Employee, Integer> {\n}", "public interface EmployeeRepository extends JpaRepository<Employee, Integer> {\r\n\r\n}", "public interface IEmployeeRepository extends JpaRepository<Employee,Integer> {\r\n\tEmployee findById(int id);\r\n\r\n\t\r\n\t\r\n\r\n}", "@Repository\npublic interface EmployeeStoreRepository extends JpaRepository<EmployeeStore,String>{\n\n}", "protected EmployeeRepository getEmployeeRepository() {\r\n return this.employeeRepository;\r\n }", "@Repository\npublic interface IndianEmployeeRepository extends JpaRepository<IndianEmployees,Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EmEmpDocumentsRepository extends JpaRepository<EmEmpDocuments, Long> {\n List<EmEmpDocuments> findByIdEmployeeId(long id);\n}", "@Repository\n@Transactional\npublic interface EmployeeRepository extends CrudRepository<Employee, Long> {\n\n\tpublic List<Employee> findAll();\n}", "@Repository\npublic interface EmployeeBasicDetailsRepository extends JpaRepository<EmployeeBasicDetails, Integer> {\n\n\tOptional<EmployeeBasicDetails> findByemployeeIdNumber(int employee_id_number);\n\n\tvoid deleteByemployeeIdNumber(int employee_id_number);\n}", "@Repository\npublic interface MS007002CreateRepository extends JpaRepository<PositionEmployeeEntity, Long> {\n /**\n * [Description]: Find a position employee<br/>\n * [ Remarks ]:<br/>\n *\n * @param positionEmployeeCode\n * @param companyID\n * @return A position employee details\n */\n @Query(value = \"SELECT * FROM position_employee pe WHERE pe.position_employee_code = :positionEmployeeCode AND pe.company_id = :companyID\", nativeQuery = true)\n PositionEmployeeEntity findPositionEmployeeByPositionEmployeeCodeAndCompanyID(@Param(\"positionEmployeeCode\") String positionEmployeeCode, @Param(\"companyID\") int companyID);\n}", "public interface IEmployeeRepository extends IRepository<Employee,Long> {\n}", "@Repository\npublic interface EmployeeRepository extends CrudRepository<Employee, UUID> {\n Page<Employee> findAll(Pageable pageable);\n\n List<Employee> findAll(Specification<Employee> filter);\n\n Optional<Employee> findById(UUID id);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EmEmpBankAccountsRepository extends JpaRepository<EmEmpBankAccounts, Long> {\n List<EmEmpBankAccounts> findByIdEmployeeId(long id);\n\n}", "@Repository\npublic interface EmployeeRepository extends JpaRepository<Employee, Employee_MAPPED.Pk> {\n\n void deleteByEmployeeId(Long id);\n void deleteAllByEmployeeIdIn(List<Long> ids);\n Employee findByEmployeeId(Long id);\n List<Employee> findByEmployeeIdIn(List<Long> id);\n Integer countEmployeeIdByCompanyId(Long company);\n @SuppressWarnings(\"unused\")\n void deleteByCompanyId(Long companyId);\n @SuppressWarnings(\"unused\")\n List<Employee> findByCompanyId(Long companyId);\n @SuppressWarnings(\"unused\")\n void deleteByCompanyIdAndUserId(Long companyId, Long userId);\n @SuppressWarnings(\"unused\")\n List<Employee> findByCompanyIdAndUserId(Long companyId, Long userId);\n @SuppressWarnings(\"unused\")\n void deleteByUserId(Long userId);\n @SuppressWarnings(\"unused\")\n List<Employee> findByUserId(Long userId);\n\n// ____________________ ::BODY_SEPARATOR:: ____________________ //\n// ____________________ ::BODY_SEPARATOR:: ____________________ //\n\n}", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "public interface EmployeeRepository extends ArangoRepository<Employee, String> {}", "public List<Employee> findAll() {\n return employeeRepository.findAll();\n }", "@Repository\npublic interface EmployeeDao {\n List<Employee> selectAllEmployees();\n\n Employee selectEmployeeById(int id);\n\n Employee test(int id);\n\n List<Employee> selectEmployeeByIds(List<Integer> ids);\n}", "public Employee getEmployeeById(Long employeeId) {\n return employeeRepository.findEmployeeById(employeeId);\n }", "public interface EmpSubAppraiseRepository extends IRepository<EmpSubAppraise,Long> {\n}", "public List<Employee> getAllEmployees() {\n return employeeRepository.findAll();\n }", "@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}", "public List<Employee> listAllCrud(){\n return employeeCrudRepository.findAll();\n }", "private EmployeeRepository(){\n\t\t\n\t}", "EmployeeDTO findById(Long employeeId);", "@Repository\npublic interface UserDetailsRepository extends JpaRepository<UserDetails, Long> {\n}", "@Repository\npublic interface CaseNoRepository extends JpaRepository<CaseNo, Long>{\n CaseNo findByCompanyId( long companyId);\n}", "public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }", "public Employee save(Employee employee){\n return employeeRepository.save(employee);\n }", "public Employee findEmployee(Long id);", "@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}", "@Repository\npublic interface EnterprisesRepository extends JpaRepository<Enterprises, Long> {\n\n Enterprises findById(Long id);\n\n/* @Query(\"SELECT e.id,e.entpName,e.contactPerson,e.createdDate FROM Enterprises e\")\n List<Enterprises> findAllEnterprises();*/\n\n @Query(\"SELECT e FROM Enterprises e where e.id = :id\")\n Enterprises findEnterprise(@Param(\"id\") Long id);\n}", "public void addEmployee(Employee employee) {\n employeeRepository.save(employee);\n }", "@GetMapping(value=\"/employes/{Id}\")\n\tpublic Employee getEmployeeDetailsByEmployeeId(@PathVariable Long Id){\n\t\t\n\t\tEmployee employee = employeeService.fetchEmployeeDetailsByEmployeeId(Id);\n\t\t\n\t\treturn employee;\n\t\t}", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "public interface UserDetailsRepository extends CrudRepository<UserDetails, Long> {\n}", "public interface AddressesRepository extends JpaRepository<Addresses,Long> {\n\n}", "@Override\r\n\tpublic List<Employee> getdetails() {\n\t\treturn empdao.findAll();\r\n\t}", "public interface CompanyEmployeeService extends AbstractService<CompanyEmployee, Long, CompanyEmployeeDTO> {\n\n /**\n * Find all employee by Company id.\n *\n * @return the list of entities\n */\n List<CompanyEmployeeDTO> findAllByCompanyId(Long id);\n\n /**\n * Find all employees by type.\n *\n * @param type the employee type\n * @return the list of entities\n */\n List<CompanyEmployeeDTO> findAllByType(EmployeeType type);\n\n /**\n * Find all employees by company id znd employee type.\n *\n * @param companyId the company id\n * @param employeeType the employee type\n * @return the list of entities\n */\n List<CompanyEmployeeDTO> findAllByCompanyIdAndEmployeeType(Long companyId, EmployeeType employeeType);\n}", "@RequestMapping(value = \"/getAllEmployees\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic List<Employee> getAllEmpoyees(){\r\n\t\treturn repository.getAllEmpoyees();\r\n\t}", "@Repository\npublic interface TeacherRepository extends JpaRepository<Teacher, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EmployeeSalaryRepository extends JpaRepository<EmployeeSalary, Long> {\n Set<EmployeeSalary> findByEmployeeIdAndAssignDateGreaterThanEqual(Long employeeId, LocalDate minAssignDate);\n}", "public void setEmployeeRepository(final EmployeeRepository employeeRepository) {\r\n this.employeeRepository = employeeRepository;\r\n }", "public interface EmployeeService {\n\n List<Employee> findAllEmployees();\n Employee findOneEmployee(String idEmployee);\n void deleteOneEmployee(String idEmployee);\n String addOneEmployee();\n\n}", "public interface ExpositionRepository extends JpaRepository<Exposition,Long> {\n\n}", "@GetMapping(\"/employee\")\r\n\tpublic List<Employee> getAllEmployees()\r\n\t{\r\n\t\treturn empdao.findAll();\r\n\t}", "public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {\n}", "@Override\n\tpublic List<Employee> findAllEmployees() {\n\t\treturn employeeRepository.findAllEmployess();\n\t}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ExaminerRepository extends JpaRepository<Examiner, Long>,JpaSpecificationExecutor<Examiner>{\n\n Examiner findOneByUserId(Long userId);\n\n @Query(value = \"select u.id as uid,u.login,u.password_hash,e.id as eid,e.name,e.department_id,e.cell_phone,e.email,e.sex,e.birth,e.location,e.phone,e.address from examiner e LEFT JOIN jhi_user u on e.user_id = u.id\",nativeQuery = true)\n List<Object[]> exprotExaminerAndUserMessage();\n\n List<Examiner> findAllByDepartmentId(Long departmentId);\n}", "EmployeeDTO findByEmail(String email);", "public Employeedetails getEmployeeDetailByName(String employeeId);", "List<Employee> findAll();", "@GetMapping(\"/employees\")\npublic List <Employee> findAlll(){\n\treturn employeeService.findAll();\n\t}", "@Repository\npublic interface UserRoleDetailDao extends CrudRepository<UserRoleDetail, Integer> {\n}", "EmployeeDetail getById(long identifier) throws DBException;", "public interface OrderDetailRepository extends JpaRepository<OrderDetail,String> {\n}", "@GetMapping(\"/emloyees\")\n public List<Employee> all() {\n return employeeRepository.findAll();\n }", "@Override\n\t@Transactional\n\tpublic Employee getEmployeeByID(int employeeID) {\n\t\tOptional<Employee> empData = employeeRepository.findById(employeeID);\n\t\treturn empData.get();\n\t}", "@Override\n\tpublic Employee findByemployeeId(Long id) {\n\t\treturn employeeRepository.findById(id).orElse(null);\n\t}", "public interface TimeScaleApplicationRepository extends JpaRepository<TimeScaleApplication,Long> {\n\n @Query(\"select timeScaleApplication from TimeScaleApplication timeScaleApplication where timeScaleApplication.instEmployee.code = :code\")\n TimeScaleApplication findByInstEmployeeCode(@org.springframework.data.repository.query.Param(\"code\") String code);\n}", "public interface PurchaseRecordDetailRepository extends JpaRepository<PurchaseRecordDetail, Long> {\r\n}", "Employee findById(int id);", "@GetMapping(value=\"employee/{employeeId}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable(\"employeeId\") int employeeId)\n\t{\n\t\treturn employeeService.getEmployeeById(employeeId);\n\t}", "@Repository\npublic interface MedicalAidRepository extends JpaRepository<MedicalAid, String> {\n\n}", "public Optional<Employee> getEmployee(Long id){\n return employeeRepository.findById(id);\n }", "@Repository\npublic interface RoleRepository extends JpaRepository<Role, Long> {\n}", "@Repository\npublic interface RoleRepository extends JpaRepository<Role,Long> {\n\n Role findByName(String name);\n\n}", "@Override\n\tpublic Employee getById(Integer employeeId) {\n\t\treturn employeeDao.getById(employeeId);\n\t}", "public interface UserInfoRepository extends JpaRepository<UserInfoEntity,Long> {\n}", "@RequestMapping(value = \"/employee/{empId}\", method = RequestMethod.GET)\r\n\tpublic Employee getEmployeedetails(@PathVariable int empId) throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getEmployee(empId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(204, e.getMessage());\r\n\t\t}\r\n\t}", "public void update(Employee employee){\n employeeRepository.save(employee);\n }", "@Repository(\"emailLogRepository\")\npublic interface EmailLogRepository extends JpaRepository<EmailLogDB, Integer>{\n}", "@Transactional(readOnly = true)\r\n\tpublic Employee getEmployee(String dniEmployee) {\r\n\t\tdniEmployee = dniEmployee.trim();\r\n\t\treturn (Employee) em.createQuery(\"select e from Employee e where e.idemployee='\"+dniEmployee+\"'\").getResultList().get(0);\r\n\t}", "public interface OrderDetailRepository extends JpaRepository<OrderDetail,String> {\n\n List<OrderDetail> findByOrderId(String orderId);\n}", "@Repository\npublic interface RoleRepository extends JpaRepository<Role,Integer>{\n\n}", "public interface EmployeeRepository extends JpaRepository<Employee, Integer> {\n\n // that's it ... no need to write any code LOL!\n\n // add a method to sort by last name\n public List<Employee> findAllByOrderByLastNameAsc();\n\n}", "@GetMapping(\"/employee/{id}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Long id) {\n\t\t\n\t\tEmployee employee = emprepo.findById(id).orElseThrow(()-> new ResourceNotFoundException(\"Employee not exist with id: \" + id)); \n\t\t\n\t\treturn ResponseEntity.ok(employee);\n\t}", "public List<Employee> getAllEmployee(){\n List<Employee> employee = new ArrayList<Employee>();\n employeeRepository.findAll().forEach(employee::add);\n return employee;\n }", "@Override\n@Transactional\npublic Employee getEmployeeById(int id) {\n\treturn entityManager.find(Employee.class, id);\n}", "public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}", "public interface RoleRepository extends JpaRepository<Role, Long>{\n}", "@GetMapping(\"/employees/{id}\")\n\tpublic ResponseEntity<Employee> getEmployeeById(@PathVariable Long id) {\n\t\tEmployee orElseThrow = repo.findById(id).orElseThrow(() -> new ResourceNotFoundException(\"Employee not exist with id \" + id));\n\t\treturn ResponseEntity.ok(orElseThrow);\n\t}", "@Repository\npublic interface UserRepository extends JpaRepository<User, Integer> {\n\n /**\n * Returns employees who are not involved in one of the projects.\n *\n * @return list of free employees\n */\n @Query(\"select u from User u where u.project is null and u.role = 'EMPLOYEE'\")\n List<User> getFreeEmployees();\n\n /**\n * Returns project managers who are not involved in one of the projects.\n *\n * @return list of free project managers\n */\n @Query(\"select u from User u where u.managedProject is null and u.role = 'PM'\")\n List<User> getFreeManagers();\n\n /**\n * Returns the user by specified first and last names.\n *\n * @param firstName of the required user\n * @param lastName of the required user\n * @return specified user\n */\n @Query(\"select u from User u where u.firstName = :firstName and u.lastName = :lastName\")\n User getUserByFirstAndLastName(@Param(\"firstName\") String firstName,\n @Param(\"lastName\") String lastName);\n\n /**\n * Returns the user by specified username.\n *\n * @param username of the required user\n * @return specified user\n */\n @Query(\"select u from User u where u.username = :username\")\n User getUserByUsername(@Param(\"username\") String username);\n\n /**\n * Returns the user by specified email.\n *\n * @param email of the required user\n * @return specified user\n */\n @Query(\"select u from User u where u.email = :email\")\n User getUserByEmail(@Param(\"email\") String email);\n\n /**\n * Returns all employees in the system.\n *\n * @return list of all employees\n */\n @Query(\"select u from User u where u.role = 'EMPLOYEE'\")\n List<User> getAllEmployees();\n\n /**\n * Returns all managers in the system.\n *\n * @return list of all employees\n */\n @Query(\"select u from User u where u.role = 'PM'\")\n List<User> getAllManagers();\n\n /**\n * Returns the total number of customers in the system.\n *\n * @return total number of customers\n */\n @Query(\"select count(u) from User u where u.role = 'CUSTOMER'\")\n Long getTotalCustomersCount();\n\n /**\n * Returns the total number of employees in the system.\n *\n * @return total number of employees\n */\n @Query(\"select count(u) from User u where u.role = 'EMPLOYEE'\")\n Long getTotalEmployeesCount();\n\n /**\n * Returns the latest hired employees.\n *\n * @param pageable abstract interface for pagination information\n * @return list of latest hired employees\n */\n @Query(\"select u from User u where u.role = 'EMPLOYEE' order by u.hireDay desc\")\n List<Task> getLatestHiredEmployees(Pageable pageable);\n}", "public interface OfferingRepository extends JpaRepository<Offering, Long>{\r\n\r\n}", "public interface EmployeeRepository extends JpaRepository<Employee, Integer> {\n\n // add a method to sort by last name\n public List<Employee> findAllByOrderByLastNameAsc();\n}", "public interface UserRoleRepository extends JpaRepository<UserRoleEntity, Long> {\n\n List<UserRoleEntity> findByUser(UserEntity entity);\n}", "public interface RolesRepository extends JpaRepository<RolesEntity, Long> {\n}", "List<Employee> findAllByName(String name);", "@Repository\npublic interface StudentRepository extends JpaRepository<Student,Long> {\n}", "@Repository\r\npublic interface OrderDetailsRepository extends JpaRepository<OrderDetails, Integer>{\r\n\r\n\t/**\r\n\t * Gets the order details by user id.\r\n\t *\r\n\t * @param id the id\r\n\t * @return the order details by user id\r\n\t */\r\n\t@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);\r\n\r\n}", "@Repository\npublic interface SuiteRepository extends JpaRepository<SuiteRoom, Integer> {\n}", "@Repository\npublic interface UsersIdentityRepository extends JpaRepository<UsersIdentity, Long> {\n}", "List<CompanyEmployeeDTO> findAllByCompanyId(Long id);", "public interface UserInfoRepostory extends JpaRepository<UserInfo, String> {\n\n\tUserInfo findByOpenid(String openid);\n}", "public interface EvenementRepository extends CrudRepository<Evenement, Integer> {\n\n}", "List<CompanyEmployeeDTO> findAllByCompanyIdAndEmployeeType(Long companyId, EmployeeType employeeType);", "@Repository\npublic interface CustomerRepository extends JpaRepository<Customer,Long> {\n\n\n\n}", "@Override\n\tpublic EmployeeBean getEmployeeDetails(Integer id) throws Exception {\n\t\treturn employeeDao.getEmployeeDetails(id);\n\t}", "@Repository\npublic interface RoomRepository extends JpaRepository<Room, Long> {\n\n\n}" ]
[ "0.74925214", "0.74649894", "0.7438549", "0.7409356", "0.7220697", "0.7217011", "0.71919787", "0.71260804", "0.70977396", "0.7055417", "0.7051792", "0.70326376", "0.7026134", "0.67591286", "0.67237216", "0.6690215", "0.6684579", "0.6665783", "0.66598636", "0.6603268", "0.65793455", "0.65582764", "0.65402853", "0.6527059", "0.65070415", "0.6447407", "0.64415705", "0.63447", "0.6312766", "0.6303563", "0.6302357", "0.6279946", "0.6258311", "0.62560195", "0.6234486", "0.622823", "0.62078905", "0.61966175", "0.6189355", "0.61771274", "0.6175962", "0.61708206", "0.6164106", "0.6161729", "0.6156709", "0.6152739", "0.6149867", "0.61495465", "0.6143897", "0.61373276", "0.61196953", "0.611341", "0.6100401", "0.6097157", "0.6096582", "0.60863644", "0.60844857", "0.6077904", "0.6077147", "0.60763556", "0.6062922", "0.6057925", "0.6052437", "0.6047932", "0.60449165", "0.6030671", "0.6029437", "0.6023691", "0.6017737", "0.6013909", "0.60099167", "0.6008171", "0.6005629", "0.600264", "0.5995288", "0.5988527", "0.5986716", "0.5985492", "0.59844553", "0.598125", "0.59784085", "0.59763515", "0.5971206", "0.5959929", "0.5955827", "0.59499115", "0.5948777", "0.5948441", "0.594521", "0.59378433", "0.5933548", "0.59324884", "0.59262085", "0.5923791", "0.59193265", "0.59185547", "0.5911863", "0.58987486", "0.5895764", "0.5884908" ]
0.7701356
0
Create a new unzipper. It may be used for an entire session or subsession.
public Unzipper(BitReader bitreader) { super(); this.bitreader=bitreader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized ZipManager getInstance() {\n if (instance == null) {\n instance = new ZipManager();\n }\n return instance;\n }", "public StreamUnzipper(InputStream zipStream, File destDir)\n {\n if (zipStream == null)\n throw new IllegalArgumentException(\"zip stream cannot be null\");\n this.zis = new ZipInputStream(zipStream);\n this.destDir = destDir;\n }", "private ZipUtils() {\n }", "abstract void initZipper(SynchronizationRequest req, Zipper z) \n throws IOException, ConfigException;", "@Override\n public PackageAnalyzer newAnalyzer() {\n if (extractBaseDir == null) {\n synchronized (this) {\n try {\n extractBaseDir = Files.createTempDirectory(\"extractorStaging\").toFile();\n } catch (final IOException e) {\n throw new RuntimeException(\"Could not create temporary extraction directory\", e);\n }\n }\n }\n return new DcsPackageAnalyzer(new OpenPackageService(),\n extractBaseDir);\n }", "private ZipCompressor(){}", "public static Downloader getInstance() {\n return new Downloader();\n }", "protected File makeUnpackDir() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);", "public OutputStream getOutputStream(String lumpName) {\n\t\t\t\t\tendEntry();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Get the next entry\r\n\t\t\t\t\tZipEntry dir = new ZipEntry(\"ohrrpgce/games/\" + newRPGName + \"/\" + lumpName);\r\n\t\t\t\t\t//System.out.println(\"Entry opened: \" + dir.getName());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttempJar.putNextEntry(dir);\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error adding entry for \" + lumpName + \" : \" + ex.toString());\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn tempJar;\r\n\t\t\t\t}", "public Result unzip() {\n MultipartFormData<File> body = request().body().asMultipartFormData();\n MultipartFormData.FilePart<File> fileInput = body.getFile(\"inputFile\");\n String filename = fileInput.getFilename();\n if (fileInput != null) {\n File file = (File) fileInput.getFile();\n File nf = new File(ZIP_URL + filename);\n boolean rst = file.renameTo(nf);\n String destDir = ZipUtils.unZip(ZIP_URL + filename, ZIP_URL);\n File dir = new File(ZIP_URL);\n String[] dirList = dir.list();\n return ok(afterUpload.render(Arrays.asList(dirList)));\n } else {\n return badRequest(\"error\");\n }\n }", "public Pack2FactoryImpl() {\n\t\tsuper();\n\t}", "public void unzip(File f) throws Exception {\r\n String destDir = workplace + \"/temp/\";\r\n File tmp = new File(destDir);\r\n if(!tmp.exists())tmp.mkdir();\r\n byte b[] = new byte [1024];\r\n int length;\r\n \r\n ZipFile zipFile;\r\n zipFile = new ZipFile(f);\r\n Enumeration enumeration = zipFile.entries();\r\n ZipEntry zipEntry = null ;\r\n OutputStream outputStream = null;\r\n InputStream inputStream = null;\r\n while (enumeration.hasMoreElements()) {\r\n zipEntry = (ZipEntry) enumeration.nextElement();\r\n File loadFile = new File(destDir + zipEntry.getName());\r\n if (zipEntry.isDirectory()) {\r\n // 这段都可以不要,因为每次都貌似从最底层开始遍历的\r\n loadFile.mkdirs();\r\n }else{\r\n if (!loadFile.getParentFile().exists())\r\n loadFile.getParentFile().mkdirs();\r\n outputStream = new FileOutputStream(loadFile);\r\n inputStream = zipFile.getInputStream(zipEntry);\r\n while ((length = inputStream.read(b)) > 0)\r\n outputStream.write(b, 0, length);\r\n }\r\n }\r\n outputStream.flush();\r\n outputStream.close();\r\n inputStream.close();\r\n }", "public void unzip(){\n\t\tif(unzipIndex < unzipRange){\n\t\t\tupperHelix.addNucleotideToEnd(0,originalHelix.getNucleotide(0,unzipIndex));\n\t\t\toriginalHelix.removeNucleotide(0,unzipIndex);\n\t\t\tlowerHelix.addNucleotideToEnd(1,originalHelix.getNucleotide(1,unzipIndex));\n\t\t\toriginalHelix.removeNucleotide(1,unzipIndex);\n\t\t\tupperX=(int)(XS-Nucleotide.getImageSize()*(upperHelix.getLength()-1)*Math.cos(Math.toRadians(30)));\n\t\t\tupperY = (int)(YS-Nucleotide.getImageSize()*(upperHelix.getLength()+1)*Math.sin(Math.toRadians(30))-25);\n\n\t\t\tint h = Nucleotide.getImageSize()*unzipIndex;\n\t\t\tint lx = (int)(XS+h-30-Math.cos(Math.toRadians(30))*h);\n\t\t\tint ly = (int)(YS-25+Math.sin(Math.toRadians(30))*h);\n\t\t\tint ux = lx +Nucleotide.getImageSize()*2;\n\t\t\tint uy = (int)(YS+25-Math.sin(Math.toRadians(30))*h-Math.sin(Math.toRadians(60))*(70*2-5));\n\t\t\tSystem.out.println(\"X Y : \"+Integer.toString(lx)+\" \" + Integer.toString(ux));\n\t\t\tupperHelix.setPos(ux, uy,30);\n\t\t\tlowerHelix.setPos(lx,ly,-30);\n\t\t\tunzipIndex++;\n\t\t}\n\t}", "public ZipLineStream() {\n\t\tarchType = ArchiveTypes.ZIP.name();\n\t}", "public static IORTemplate makeIORTemplate(InputStream paramInputStream) {\n/* 113 */ return (IORTemplate)new IORTemplateImpl(paramInputStream);\n/* */ }", "public ZipFile mo305b() throws IOException {\n return new ZipFile(this.f340a);\n }", "ClassLoader getNewTempClassLoader() {\n return new ClassLoader(getClassLoader()) {\n };\n }", "private DeploymentFactoryInstaller() {\n }", "private Decryptor createDecryptor(String decryptorClass) {\n\t\tif(decryptor != null) {\n\t\t\treturn decryptor;\n\t\t}\n\n\t\tif (logger.isTraceEnabled()) {\n\t\t\tlogger.trace(\"creating decryptor {}\", decryptorClass);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tClass<?> typeClass = Class.forName(decryptorClass);\n\t\t\t\n\t\t\tif (!typeClass.isInterface()) {\n\t\t\t\treturn (Decryptor) typeClass.getConstructor().newInstance();\n\t\t\t}else {\n\t\t\t\tlogger.error(\"Please specify an implementing class of com.networknt.decrypt.Decryptor.\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new RuntimeException(\"Unable to construct the decryptor due to lack of decryption password.\", e);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public static Pack2Factory init() {\n\t\ttry {\n\t\t\tPack2Factory thePack2Factory = (Pack2Factory)EPackage.Registry.INSTANCE.getEFactory(Pack2Package.eNS_URI);\n\t\t\tif (thePack2Factory != null) {\n\t\t\t\treturn thePack2Factory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new Pack2FactoryImpl();\n\t}", "public static DBMaker openZip(String zip) {\n DBMaker m = new DBMaker();\n m.location = \"$$ZIP$$://\"+zip;\n return m;\n }", "private CompressionTools() {}", "static Wallet createInMemoryWallet() {\n return new InMemoryWallet();\n }", "@Deployment(testable = false)\n public static WebArchive createDeployment() {\n\n // Import Maven runtime dependencies\n File[] files = Maven.resolver().loadPomFromFile(\"pom.xml\")\n .importRuntimeDependencies().resolve().withTransitivity().asFile();\n\n return ShrinkWrap.create(WebArchive.class)\n .addPackage(Session.class.getPackage())\n .addClasses(SessionEndpoint.class, SessionRepository.class, Application.class)\n .addAsResource(\"META-INF/persistence-test.xml\", \"META-INF/persistence.xml\")\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n .addAsLibraries(files);\n }", "private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}", "public void unZip(String apkFile) throws Exception \r\n\t{\r\n\t\tLog.p(tag, apkFile);\r\n\t\tFile file = new File(apkFile);\r\n\t\r\n\t\t/*\r\n\t\t * Create the Base Directory, whose name should be same as Zip file name.\r\n\t\t * All decompressed contents will be placed under this folder.\r\n\t\t */\r\n\t\tString apkFileName = file.getName();\r\n\t\t\r\n\t\tif(apkFileName.indexOf('.') != -1)\r\n\t\t\tapkFileName = apkFileName.substring(0, apkFileName.indexOf('.'));\r\n\t\t\r\n\t\tLog.d(tag, \"Folder name: \"+ apkFileName);\r\n\t\t\r\n\t\tFile extractFolder = new File((file.getParent() == null ? \"\" : file.getParent() + File.separator) + apkFileName);\r\n\t\tif(!extractFolder.exists())\r\n\t\t\textractFolder.mkdir();\r\n\t\t\r\n\t\t/*\r\n\t\t * Read zip entries.\r\n\t\t */\r\n\t\tFileInputStream fin = new FileInputStream(apkFile);\r\n\t\tZipInputStream zin = new ZipInputStream(new BufferedInputStream(fin));\r\n\t\t\r\n\t\t/*\r\n\t\t * Zip InputStream shifts its index to every Zip entry when getNextEntry() is called.\r\n\t\t * If this method returns null, Zip InputStream reaches EOF.\r\n\t\t */\r\n\t\tZipEntry ze = null;\r\n\t\tBufferedOutputStream dest;\r\n\t\t\r\n\t\twhile((ze = zin.getNextEntry()) != null)\r\n\t\t{\r\n\t\t\tLog.d(tag, \"Zip entry: \" + ze.getName() + \" Size: \"+ ze.getSize());\r\n\t\t\t/*\r\n\t\t\t * Create decompressed file for each Zip entry. A Zip entry can be a file or directory.\r\n\t\t\t * ASSUMPTION: APK Zip entry uses Unix style File seperator- \"/\"\r\n\t\t\t * \r\n\t\t\t * 1. Create the prefix Zip Entry folder, if it is not yet available\r\n\t\t\t * 2. Create the individual Zip Entry file.\r\n\t\t\t */\r\n\t\t\tString zeName = ze.getName();\r\n\t\t\tString zeFolder = zeName;\r\n\t\t\t\r\n\t\t\tif(ze.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tzeName = null; // Don't create Zip Entry file\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(zeName.indexOf(\"/\") == -1) // Zip entry uses \"/\"\r\n\t\t\t\t\tzeFolder = null; // It is File. don't create Zip entry Folder\r\n\t\t\t\telse {\r\n\t\t\t\t\tzeFolder = zeName.substring(0, zeName.lastIndexOf(\"/\"));\r\n\t\t\t\t\tzeName = zeName.substring( zeName.lastIndexOf(\"/\") + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(tag, \"zeFolder: \"+ zeFolder +\" zeName: \"+ zeName);\r\n\t\t\t\r\n\t\t\t// Create Zip Entry Folder\r\n\t\t\tFile zeFile = extractFolder;\r\n\t\t\tif(zeFolder != null)\r\n\t\t\t{\r\n\t\t\t\tzeFile = new File(extractFolder.getPath() + File.separator + zeFolder);\r\n\t\t\t\tif(!zeFile.exists())\r\n\t\t\t\t\tzeFile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Create Zip Entry File\r\n\t\t\tif(zeName == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t// Keep track of XML files, they are in Android Binary XML format\r\n\t\t\tif(zeName.endsWith(\".xml\"))\r\n\t\t\t\txmlFiles.add(zeFile.getPath() + File.separator + zeName);\r\n\t\t\t\r\n\t\t\t// Keep track of the Dex/ODex file. Need to convert to Jar\r\n\t\t\tif(zeName.endsWith(\".dex\") || zeName.endsWith(\".odex\"))\r\n\t\t\t\tdexFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Keep track of Resources.arsc file- resources.arsc\r\n\t\t\tif(zeName.endsWith(\".arsc\"))\r\n\t\t\t\tresFile = zeFile.getPath() + File.separator + zeName;\r\n\t\t\t\r\n\t\t\t// Write Zip entry File to the disk\r\n\t\t\tint count;\r\n\t\t\tbyte data[] = new byte[BUFFER];\r\n\t\t\t\r\n\t\t\tFileOutputStream fos = new FileOutputStream(zeFile.getPath() + File.separator + zeName);\r\n\t\t\tdest = new BufferedOutputStream(fos, BUFFER);\r\n\r\n\t\t\twhile ((count = zin.read(data, 0, BUFFER)) != -1) \r\n\t\t\t{\r\n\t\t\t\tdest.write(data, 0, count);\r\n\t\t\t}\r\n\t\t\tdest.flush();\r\n\t\t\tdest.close();\r\n\t\t}\r\n\r\n\t\t// Close Zip InputStream\r\n\t\tzin.close();\r\n\t\tfin.close();\r\n\t}", "public OperationFactory() {\n initMap();\n }", "private void unzip(File zipFile, File targetDirectory) throws LpException {\n try {\n final ZipFile zip = new ZipFile(zipFile);\n if (zip.isEncrypted()) {\n throw new LpException(\"File is encrypted: {}\",\n zipFile.getName());\n }\n zip.extractAll(targetDirectory.toString());\n } catch (ZipException ex) {\n throw new LpException(\"Extraction failure: {}\",\n zipFile.getName(), ex);\n }\n }", "@Override\n\tpublic InvocationInstrumenter newInvocationInstrumenter() {\n\t\treturn AuthInfoContext.current()\n\t\t\t\t.map(LocalInstrumenter::new)\n\t\t\t\t.orElse(null);\n\t}", "@Override\n\tpublic IOProcessor create(Interpreter interpreter) {\n\t\tTestCustomIOProc ioProc = new TestCustomIOProc();\n\t\tioProc.interpreter = interpreter;\n\t\tioProc.swigReleaseOwnership();\n\t\treturn ioProc;\n\t}", "private static void unzip(EmailTypes collection) {\n File dir = new File(destDir);\n // create output directory if it doesn't exist\n if(!dir.exists()) {\n dir.mkdirs();\n }\n FileInputStream fis;\n //buffer for read and write data to file\n byte[] buffer = new byte[1024];\n try {\n fis = new FileInputStream(sourceFiles.get(collection).getPath());\n ZipInputStream is = new ZipInputStream(fis);\n ZipEntry zipEntry = is.getNextEntry();\n System.out.println(\"Unzipping set: \" + collection.getCollection() + \".\");\n while(zipEntry != null){\n String fileName = zipEntry.getName();\n File newFile = new File(unpackedFiles.get(collection) + File.separator + fileName);\n new File(newFile.getParent()).mkdirs();\n FileOutputStream fos = new FileOutputStream(newFile);\n int len;\n while ((len = is.read(buffer)) > 0) {\n fos.write(buffer, 0, len);\n }\n fos.close();\n is.closeEntry();\n zipEntry = is.getNextEntry();\n }\n is.closeEntry();\n is.close();\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }", "static void unzip(String zipFilePath, String destDirectory, boolean recursive, boolean teacherZip) throws IOException {\n\n if (students == null) {\n students = new ArrayList<Student>();\n }\n\n ZipInputStream zipIn = null;\n\n try {\n zipIn = new ZipInputStream(new FileInputStream(zipFilePath));\n ZipEntry entry = zipIn.getNextEntry();\n\n // iterates over entries in the zip file\n while (entry != null) {\n createFiles(destDirectory, zipIn, entry, recursive);\n\n zipIn.closeEntry();\n entry = zipIn.getNextEntry();\n }\n\n } catch (IOException e) {\n System.err.println(e.getMessage());\n Errors.setUnzipperError(true);\n\n } finally {\n if (zipIn != null) {\n zipIn.close();\n }\n }\n }", "public PipedOutputStream() {\n }", "private static AMetadataExtractor getExtractor(Path fileordir) {\n String ext =getFileExtension(fileordir);\n //gets class implementing extension\n Class extclass = type2extractor.get(ext);\n //set default if extension is not recognized\n if (extclass == null) extclass = DefaultMetadataExtractor.class;\n //get existing instance if it was already instantiated\n AMetadataExtractor cobj = class2extractorobj.get(extclass.getName());\n\n if (cobj==null) {\n try { //try to create class using default constructor\n //Constructor ct = extclass.getConstructor(extclass);\n AMetadataExtractor obj2 = (AMetadataExtractor) extclass.newInstance();\n class2extractorobj.put(extclass.getName(),obj2);\n return obj2;\n } catch (Exception e){\n //create default extractor\n LOG.error(\"error creating class for extension \"+ext);\n LOG.error(e.getMessage());\n e.printStackTrace();\n AMetadataExtractor obj2 = new DefaultMetadataExtractor();\n class2extractorobj.put(extclass.getName(),obj2);\n return obj2;\n }\n } else return cobj;\n }", "public void unzip(String _zipFile, String _targetLocation) {\n dirChecker(_targetLocation);\n\n try {\n FileInputStream fin = new FileInputStream(_zipFile);\n ZipInputStream zin = new ZipInputStream(fin);\n ZipEntry ze = null;\n while ((ze = zin.getNextEntry()) != null) {\n\n //create dir if required while unzipping\n if (ze.isDirectory()) {\n dirChecker(ze.getName());\n } else {\n FileOutputStream fout = new FileOutputStream(_targetLocation + ze.getName());\n for (int c = zin.read(); c != -1; c = zin.read()) {\n fout.write(c);\n }\n\n zin.closeEntry();\n fout.close();\n }\n\n }\n zin.close();\n } catch (Exception e) {\n System.out.println(e);\n }\n }", "public void readZip(File f) {\r\n try {\r\n unzip(f);\r\n File file = new File(workplace + \"/temp/USQ_IMAGE\");\r\n File old = new File(workplace + \"/old\");\r\n if(!old.exists())old.mkdir();\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n File files[] = file.listFiles();\r\n for(int i=0 ; i<files.length ; i++){\r\n readFile(files[i]);\r\n }\r\n //new session\r\n createSes(f);\r\n } catch (Exception ex) {\r\n JOptionPane.showMessageDialog(null, \"read zip file failed.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n ex.printStackTrace();\r\n }\r\n }", "private VegetableFactory() {\n }", "public static OutputArchive fromOutputStream(OutputStream stream) throws IOException {\n if (stream instanceof ObjectOutput) {\n return new OutputArchive((ObjectOutput) stream);\n } else {\n return new OutputArchive(new ObjectOutputStream(stream));\n }\n }", "private TemplateReader() {\n }", "public InflaterInputStream(InputStream in) {\n this(in, in != null ? new Inflater() : null);\n // Android-changed: Unconditionally close external inflaters (b/26462400)\n // usesDefaultInflater = true;\n }", "public TileSaver(PApplet _p) {\r\n p=_p;\r\n }", "Reproducible newInstance();", "public UnZipRunnable(String token, String source, String outPutPath) {\n this.token = token;\n this.sourceFile = source;\n this.outPutPath = outPutPath;\n }", "public static ZipCodeUtility getInstance() {\n if (INSTANCE == null) INSTANCE = new ZipCodeUtility();\n return INSTANCE;\n }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "private ZipCodes() {}", "private PerksFactory() {\n\n\t}", "public static IngestHelperInterface create() {\n ClassLoader cl = SimpleDataTypeHelper.class.getClassLoader();\n return (IngestHelperInterface) Proxy.newProxyInstance(cl, new Class[] {IngestHelperInterface.class}, new SimpleDataTypeHelper());\n }", "public void setUnzippedFile(byte[] aBytes) throws IOException {\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n GZIPOutputStream gos = new GZIPOutputStream(baos);\r\n BufferedOutputStream bos = new BufferedOutputStream(gos);\r\n ByteArrayInputStream bais = new ByteArrayInputStream(aBytes);\r\n BufferedInputStream bis = new BufferedInputStream(bais);\r\n int read = -1;\r\n while ((read = bis.read()) != -1) {\r\n bos.write(read);\r\n }\r\n bos.flush();\r\n baos.flush();\r\n gos.finish();\r\n super.setFile(baos.toByteArray());\r\n bis.close();\r\n bos.close();\r\n gos.close();\r\n bais.close();\r\n baos.close();\r\n }", "public T create()\n {\n IProxyFactory<T> proxyFactory = getProxyFactory(type);\n T result = proxyFactory.createProxy();\n return result;\n }", "public static MyFileContext create() {\n\t\treturn new MyContextImpl();\n\t}", "private Instantiation(){}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "protected File initUndoArchive(File sourceDir)\n throws FileNotFoundException, IOException {\n File parentDir = sourceDir.getCanonicalFile().getParentFile();\n if (parentDir == null) {\n throw new FileNotFoundException(\n \"Parent directory of archive directory not found; unable to write UndoArchive; no processing \" +\n \"performed\");\n }\n\n String sourceDirName = sourceDir.getName();\n int seqNo = 1;\n\n File undoDir = new File(parentDir, \"undo_\" + sourceDirName + \"_\" + seqNo);\n while (undoDir.exists()) {\n undoDir = new File(parentDir, \"undo_\" + sourceDirName + \"_\" + ++seqNo); //increment\n }\n\n // create root directory\n if (!undoDir.mkdir()) {\n pr(\"ERROR creating Undo Archive directory \" + undoDir.getCanonicalPath());\n throw new IOException(\"ERROR creating Undo Archive directory \" + undoDir.getCanonicalPath());\n }\n\n //Undo is suppressed to prevent undo of undo\n File fSuppressUndo = new File(undoDir, ItemUpdate.SUPPRESS_UNDO_FILENAME);\n try {\n fSuppressUndo.createNewFile();\n } catch (IOException e) {\n pr(\"ERROR creating Suppress Undo File \" + e.toString());\n throw e;\n }\n return undoDir;\n }", "private SessionFactoryUtil() {\r\n\t}", "public TraversalStrategyFactory getInstance() {\n\t\treturn instance;\n\t}", "public interface TempFileManagerFactory {\n\n\t\tpublic TempFileManager create();\n\t}", "public InflaterInputStream(InputStream in, Inflater inf) {\n this(in, inf, 512);\n }", "public void unzipSciAppFileAction(ActionRequest actionRequest,\n\t\t\t\t\t\t\t\t\t ActionResponse actionResponse) throws PortletException, IOException\n\t{\n\t\tString message =\"\";\n\t\t/***\n\t\t * The code for getUnzipDirPath() below should be replaced by the real routine to get the solver name from DB.\n\t\t */\n\t\tString unzipDirPath = \"\";\n\t\tboolean DB_ACCESS = false;\n\t\tif(DB_ACCESS){\n\t\t\tgetUnzipDirPath();\n\t\t}else{\n\t\t\tunzipDirPath = \"/EDISON/SOLVERS/TEST/sci_apps\";\n\t\t}\n\t\tif(unzipDirPath == null || unzipDirPath.equalsIgnoreCase(\"\")){\n\t\t\tmessage = \"The directory path for unzip is not avaiable. Please check.\";\n\t\t}else{\n\t\t\tUploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);\n\t\t\t\n/***\n * test code for writing an uploaded zip file\n */\n//String solverTestDirPath = Constants.SCIENCE_APP_PARENT_LOCATION;\n//// Create file input stream\n//FileInputStream uploadedInputStream = new FileInputStream(zipFile);\n//// Science App to be tested\n//Constants.SCIENCE_APP_UNDER_TEST_FULL_PATH = solverTestDirPath + strZipFileName;\n//// Save this file\n//saveToFile(uploadedInputStream, Constants.SCIENCE_APP_UNDER_TEST_FULL_PATH);\n//\n//// change the permission for execute\n//changeExecPermission(\"x\", Constants.SCIENCE_APP_UNDER_TEST_FULL_PATH);\n//\n//File newFile = new File(Constants.SCIENCE_APP_UNDER_TEST_FULL_PATH);\n//if(!newFile.isFile() || newFile.length() == 0){\n//\tmessage += Constants.FILE_OPEN_FAILURE;\n//}else{\n//\tmessage = \"Unzip Successful!\";\n//}\n\n\t\t\t// Let's start unzipping the uploaded file!\n\t\t\t//get the zip file content\n\t\t\ttry{\n\t\t\t\t/**\n\t\t\t\t * solver zip File\n\t\t\t\t */\n\t\t\t\tFile zipFile = uploadRequest.getFile(\"zipFileName\");\n\t\t\t\tif (zipFile == null || !zipFile.exists()) {\n\t\t\t\t\tmessage = \"No File Uploaded\";\n\t\t\t\t\tnew Exception(message);\n\t\t\t\t}\n\t\t\t\tString strZipFileName = zipFile.getName();\n\t\t\t\tSystem.out.println(\"src file size bytes:\" + zipFile.length());\n\t\t\t\tSystem.out.println(\"src file name:\" + strZipFileName);\n\n//\t\t\t\tZipInputStream zis = new ZipInputStream(new FileInputStream(zipFile));\n//\t\t\t\t//get the zipped file list entry\n//\t\t\t\tZipEntry ze = zis.getNextEntry();\n//\t\t\t\t\n//\t\t\t\twhile(ze != null){\n//\t\t\t\t\tString fileName = ze.getName();\n//\t\t\t\t\tFile newFile = new File(unzipDirPath + Constants.FILE_SEPARATOR + fileName);\n//\t\t \n//\t\t\t\t\tSystem.out.println(\"file unzip : \"+ newFile.getAbsoluteFile());\n//\t\t \n//\t\t // Let's first create all non exists folders.\n//\t\t // Otherwise, we will hit FileNotFoundException for compressed folder\n//\t\t new File(newFile.getParent()).mkdirs();\n//\t\t \n//\t\t FileOutputStream fos = new FileOutputStream(newFile); \n//\t\t byte[] buffer = new byte[1024];\n//\t\t int len;\n//\t\t while ((len = zis.read(buffer)) > 0) {\n//\t\t \tfos.write(buffer, 0, len);\n//\t\t }\n//\t\t \t\t\n//\t\t fos.close(); \n//\t\t ze = zis.getNextEntry();\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tzis.closeEntry();\n//\t\t \tzis.close();\n\t\t\t\t//String solverTestDirPath = Constants.SCIENCE_APP_PARENT_LOCATION;\n\t\t\t\t// Create file input stream\n\t\t\t\tFileInputStream uploadedInputStream = new FileInputStream(zipFile);\n\t\t\t\t// Science App to be tested\n\t\t\t\tString zipFilePath = unzipDirPath + Constants.FILE_SEPARATOR;// + strZipFileName;\n\t\t\t\t// Save this file\n\t\t\t\tsaveToFile(uploadedInputStream, zipFilePath+ strZipFileName);\n\t\t\t\t\n\t\t\t\t// change the permission for execute\n\t\t\t\tchangeExecPermission(\"x\", zipFilePath+ strZipFileName);\n\t\t\t\t\n\t\t\t\tFile newZipFile = new File(zipFilePath+strZipFileName);\n\t\t\t\tif(!newZipFile.isFile() || newZipFile.length() == 0){\n\t\t\t\t\tmessage += Constants.FILE_OPEN_FAILURE;\n\t\t\t\t\tnew Exception(message);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString zipcommand = \"\";\n\t\t\t\tif(strZipFileName.endsWith(\"gz\")){\n\t\t\t\t\tzipcommand = \"cd \" + zipFilePath + \"; tar -xvfz \" + zipFilePath+strZipFileName;\n\t\t\t\t}else if(strZipFileName.endsWith(\"tar\")){\n\t\t\t\t\tzipcommand = \"cd \" + zipFilePath + \"; tar -xvf \" + zipFilePath+strZipFileName;\n\t\t\t\t}else if(strZipFileName.endsWith(\"zip\")){\n\t\t\t\t\tzipcommand = \"cd \" + zipFilePath + \"; unzip -o \" + zipFilePath+strZipFileName + \" -d \" + zipFilePath;\n\t\t\t\t}else{\n\t\t\t\t\tnew Exception(\"file extension not ending with *.gz or *.zip\");\n\t\t\t\t}\n\t\t\t\tString removeCommand = \"rm -f \" + zipFilePath+strZipFileName;\n\t\t\t\tzipcommand += \"; \" + removeCommand;\nSystem.out.println(zipcommand);\n\t\t\t\t// unzip file\n\t\t\t\texecuteCommand(zipcommand);\n//\t\t\t\t/***\n//\t\t\t\t * The code below should be replaced by the real routine to get the solver name from DB.\n//\t\t\t\t */\n//\t\t\t\tString zipRootDirName = uploadRequest.getParameter(\"zipRootDirName\");\n//\t\t\t\tSystem.out.println(\"ziproot dir: \" + zipRootDirName);\n//\t\t\t\t/**\n//\t\t\t\t * zipped file's root directory\n//\t\t\t\t */\n//\t\t\t\tFile zipRootDirFile = new File(zipFilePath+zipRootDirName);\n//\t\t\t\tif (zipRootDirFile == null || !zipRootDirFile.exists()) {\n//\t\t\t\t\texecuteCommand(removeCommand);\n//\t\t\t\t\tmessage = \"Check 1) your zip file or 2) the name of the root directory of that file that you just typed\";\n//\t\t\t\t}else{\n//\t\t\t\t\tmessage = \"Unzip '\" + zipFilePath+zipRootDirName + \"' Successful!\";\n//\t\t\t\t}\n\t\t\t\t//System.out.println(message);\n\t\t\t\t\n\t\t\t\tString zipRootDirName = uploadRequest.getFileName(\"zipFileName\");\nSystem.out.println(\"upload file name:\"+zipRootDirName);\n\t\t\t\tString[] list = zipRootDirName.split(\"\\\\.\");\n\t\t\t\tfor(String str : list){\n\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\tzipRootDirName = str;\n\t\t\t\t\tbreak;\n\t\t\t\t}\nSystem.out.println(\"zip root dir:\"+zipFilePath+zipRootDirName);\n\t\t\t\t/**\n//\t\t\t\t * zipped file's root directory\n//\t\t\t\t */\n\t\t\t\tFile zipRootDirFile = new File(zipFilePath+zipRootDirName);\n\t\t\t\tif (zipRootDirFile == null || !zipRootDirFile.exists()) {\n\t\t\t\t\texecuteCommand(removeCommand);\n\t\t\t\t\tmessage = \"Check 1) your zip file or 2) the name of the root directory of that file that you just typed\";\n\t\t\t\t}else{\n\t\t\t\t\tmessage = \"Unzip '\" + zipFilePath+zipRootDirName + \"' Successful!\";\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tmessage = ex.getMessage();\n\t\t\t}\n\t\t}\n\t\tactionRequest.setAttribute(\"unzipSciAppRes\", message);\n\t\tString jspFileName = \"/html/scienceappengine/unzip_result.jsp\";\n\t\tactionResponse.setRenderParameter(\"jspPage\", jspFileName);\n\t}", "public static void unzip(InputStream inputStream, UnzipCallback unzipListener) throws IOException {\r\n\t\tZipInputStream zis = new ZipInputStream(inputStream);\r\n\t\t\r\n\t\tfor(ZipEntry zipEntry = zis.getNextEntry(); zipEntry != null; zipEntry = zis.getNextEntry()) {\r\n\t\t\tunzipListener.newZipEntry(zipEntry, zis);\r\n\t\t\tzis.closeEntry();\r\n\t\t}\r\n\t}", "public static void Init()\n {\n _compressor = new Compressor();\n }", "public Extractor getInstance() throws Exception {\r\n return (Extractor)getInstance(label); \r\n }", "public interface IZipStrategy {\n\n void zip();\n}", "public static PackerFileParser get() {\r\n\t\tif(parser==null) {\r\n\t\t\tIterator<PackerFileParser> packerFileParseIterator = \r\n\t\t\t\t\tServiceLoader.load(PackerFileParser.class).iterator();\r\n\t\t\t\r\n\t\t\tif(packerFileParseIterator.hasNext()) {\r\n\t\t\t\tparser = packerFileParseIterator.next();\r\n\t\t\t} else {\r\n\t\t\t\tparser = new PackerFileParserImpl();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn parser;\r\n\t}", "private Shell() { }", "public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }", "private static FileSystem openZip(Path zipPath) throws IOException, URISyntaxException{\n\t Map<String, String> providerProps = new HashMap<>();\r\n\t\tproviderProps.put(\"create\", \"true\");\r\n\t\t\r\n\t\t// Um ZipFiles zu erstellen benötigt man URIs, deswegen werden sie hier erstellt\r\n\t\tURI zipUri = new URI(\"jar:file\", zipPath.toUri().getPath(), null);\r\n\t\tFileSystem zipFs = FileSystems.newFileSystem(zipUri, providerProps); // Statische Methode wird hier angewendet\r\n\t\t\r\n\t\treturn zipFs;\r\n\t}", "public interface IKoalaDownloaderFactory {\n IKoalaDownloader create();\n}", "private XmlFactory() {\r\n /* no-op */\r\n }", "static LangNTriples createParserNTriples(Tokenizer tokenizer, StreamRDF dest, ParserProfile profile) {\n LangNTriples parser = new LangNTriples(tokenizer, profile, dest);\n return parser;\n }", "public ProyectFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "private void unzipDownloadedFile(String zipFile) throws ZipException, IOException{\n\t int BUFFER = 2048;\n\t \n\t // get zip file\n\t File file = new File(zipFile);\n\t ZipFile zip = new ZipFile(file);\n\t \n\t // unzip to directory of the same name\n\t // When sip is a directory, this gets two folders\n\t //String newPath = zipFile.substring(0, zipFile.length() - 4);\n\t //new File(newPath).mkdir();\n\t \n\t // unzip to parent directory of the zip file\n\t // This is assuming zip if of a directory\n\t String newPath = file.getParent();\n\t \n\t // Process each entry\n\t Enumeration<? extends ZipEntry> zipFileEntries = zip.entries();\n\t while (zipFileEntries.hasMoreElements())\n\t {\n\t // grab a zip file entry\n\t ZipEntry entry = (ZipEntry) zipFileEntries.nextElement();\n\t String currentEntry = entry.getName();\n\t File destFile = new File(newPath, currentEntry);\n\t File destinationParent = destFile.getParentFile();\n\n\t // create the parent directory structure if needed\n\t destinationParent.mkdirs();\n\n\t if (!entry.isDirectory())\n\t {\n\t BufferedInputStream is = new BufferedInputStream(zip.getInputStream(entry));\n\t int currentByte;\n\t // establish buffer for writing file\n\t byte data[] = new byte[BUFFER];\n\n\t // write the current file to disk\n\t FileOutputStream fos = new FileOutputStream(destFile);\n\t BufferedOutputStream dest = new BufferedOutputStream(fos,\n\t BUFFER);\n\n\t // read and write until last byte is encountered\n\t while ((currentByte = is.read(data, 0, BUFFER)) != -1) {\n\t dest.write(data, 0, currentByte);\n\t }\n\t dest.flush();\n\t dest.close();\n\t is.close();\n\t }\n\n\t if (currentEntry.endsWith(\".zip\"))\n\t {\n\t // found a zip file, try to open\n\t \tunzipDownloadedFile(destFile.getAbsolutePath());\n\t }\n\t }\n\t zip.close();\n\t}", "private XSLTTransformerFactory() {\r\n\t}", "public static ToscaServiceTemplate decodeFile(String zipEntryName, InputStream entryData) throws CoderException {\n ToscaServiceTemplate toscaServiceTemplate = null;\n if (zipEntryName.endsWith(\".json\")) {\n toscaServiceTemplate = coder.decode(entryData, ToscaServiceTemplate.class);\n } else if (zipEntryName.endsWith(\".yml\")) {\n toscaServiceTemplate = yamlCoder.decode(entryData, ToscaServiceTemplate.class);\n }\n return toscaServiceTemplate;\n }", "public IndirectionsmeasuringpointFactoryImpl() {\n super();\n }", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "public static ShimizuRunner2 serializableInstance() {\r\n return new ShimizuRunner2(DataWrapper.serializableInstance(),\r\n PcSearchParams.serializableInstance());\r\n }", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "public OrotParser() {\n createPackagesJson();\n }", "private Session() {\n }", "private Session() {\n }", "public CompressorSubsystem() {\r\n compressor = new Compressor(RobotMap.compressorPressureSwitch, RobotMap.compressorRelay);\r\n }", "public XMLOutputFactoryImpl() {\n }", "public static void unzip(Context context, InputStream zipFile) {\n try (BufferedInputStream bis = new BufferedInputStream(zipFile)) {\n try (ZipInputStream zis = new ZipInputStream(bis)) {\n ZipEntry ze;\n int count;\n byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];\n while ((ze = zis.getNextEntry()) != null) {\n try (FileOutputStream fout = context.openFileOutput(ze.getName(), Context.MODE_PRIVATE)) {\n while ((count = zis.read(buffer)) != -1)\n fout.write(buffer, 0, count);\n }\n }\n }\n } catch (IOException | NullPointerException ex) {\n Log.v(MainActivity.TAG, \"Zip not opened.\\n\"+ex.getMessage());\n }\n }", "public File getZip() {\r\n try {\r\n close(); // if the file is currently open close it\r\n Log.d(LOG_TAG, \"getZip()\");\r\n File zipFile = new File(mBaseFileName + \".zip\");\r\n zipFile.delete();\r\n ZipOutputStream zipStream = new ZipOutputStream(new FileOutputStream(zipFile));\r\n for (int i = 0; i < mNumSegments; i++) {\r\n File chunk = new File(getFileNameForIndex(i));\r\n if (chunk.exists()) {\r\n FileInputStream fis = new FileInputStream(chunk);\r\n writeToZipFile(zipStream, fis, chunk.getName());\r\n }\r\n }\r\n zipStream.close();\r\n return zipFile;\r\n } catch (Exception e) {\r\n Log.e(LOG_TAG, \"Failed to create zip file\", e);\r\n }\r\n\r\n return null;\r\n }", "public ContainerUnloader getUnloader();", "public ArchiveInfo() {\n\t}", "public static ConverterRunner createInstance() { return new ConverterRunner(); }", "public static IndirectionsmeasuringpointFactory init() {\n try {\n final IndirectionsmeasuringpointFactory theIndirectionsmeasuringpointFactory = (IndirectionsmeasuringpointFactory) EPackage.Registry.INSTANCE\n .getEFactory(IndirectionsmeasuringpointPackage.eNS_URI);\n if (theIndirectionsmeasuringpointFactory != null) {\n return theIndirectionsmeasuringpointFactory;\n }\n } catch (final Exception exception) {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new IndirectionsmeasuringpointFactoryImpl();\n }", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "private InterceptorBean createHashingPasswordInterceptor()\n {\n InterceptorBean hashingPasswordInterceptor = new InterceptorBean();\n\n // Interceptor ID\n hashingPasswordInterceptor.setInterceptorId( HASHING_PASSWORD_INTERCEPTOR_ID );\n\n // Interceptor FQCN\n hashingPasswordInterceptor.setInterceptorClassName( getFqcnForHashingMethod( getSelectedHashingMethod() ) );\n\n // Getting the order of the key derivation interceptor\n int keyDerivationInterceptorOrder = getKeyDerivationInterceptorOrder();\n\n // Assigning the order of the hashing password interceptor\n // It's order is: keyDerivationInterceptorOrder + 1\n hashingPasswordInterceptor.setInterceptorOrder( keyDerivationInterceptorOrder + 1 );\n\n // Updating the order of the interceptors after the key derivation interceptor\n for ( InterceptorBean interceptor : getDirectoryServiceBean().getInterceptors() )\n {\n if ( interceptor.getInterceptorOrder() > keyDerivationInterceptorOrder )\n {\n interceptor.setInterceptorOrder( interceptor.getInterceptorOrder() + 1 );\n }\n }\n\n // Adding the hashing password interceptor \n getDirectoryServiceBean().addInterceptors( hashingPasswordInterceptor );\n\n return hashingPasswordInterceptor;\n }", "private DTOFactory() {\r\n \t}", "public static IiTunes createiTunesApp() {\r\n return COM4J.createInstance( IiTunes.class, \"{DC0C2640-1415-4644-875C-6F4D769839BA}\" );\r\n }", "public Facade(UserManager um) {\r\n HashMap<Integer, Template> IdToTemplate = tr.readTempFromFile();\r\n tm = new TemplateManager(IdToTemplate);\r\n ts = new TemplateSystem(tm);\r\n HashMap<String, List<Schedule>> schedulesList = sr.readScheduleListFromFile();\r\n HashMap<Integer, Integer> schedulesTempList = sr.readScheduleTempFromFile();\r\n sm = new ScheduleManager(schedulesList, schedulesTempList);\r\n ss = new ScheduleSystem(sm, um, tm);\r\n this.um = um;\r\n int max = 10000;\r\n if (schedulesList.isEmpty())\r\n sm.setIterator(max);\r\n else{\r\n for (int scheduleId : schedulesTempList.keySet()){\r\n if (scheduleId > max){\r\n max = scheduleId;\r\n }\r\n }\r\n sm.setIterator(max+1);\r\n }\r\n\r\n\r\n int tempmax = 10000;\r\n for (int tempId : IdToTemplate.keySet()){\r\n if (tempId > tempmax){\r\n tempmax = tempId;\r\n }\r\n }\r\n tm.setIterator(tempmax+1);\r\n }", "public \n PipedObjectReader() \n {}", "public Produit() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unchecked\")\n protected PortalPresenter(Portal portal) {\n \tthis.portal = portal;\n \tthis.layoutBuilder = (L) LayoutBuilders.get(portal.group);\t\t\n }", "public Object clone() {\n FileTransfer ft = new FileTransfer();\n ft.mLogicalFile = new String(this.mLogicalFile);\n ft.mFlags = (BitSet) this.mFlags.clone();\n ft.mTransferFlag = this.mTransferFlag;\n ft.mSize = this.mSize;\n ft.mType = this.mType;\n ft.mJob = new String(this.mJob);\n ft.mPriority = this.mPriority;\n ft.mURLForRegistrationOnDestination = this.mURLForRegistrationOnDestination;\n ft.mMetadata = (Metadata) this.mMetadata.clone();\n ft.mVerifySymlinkSource = this.mVerifySymlinkSource;\n // the maps are not cloned underneath\n\n return ft;\n }" ]
[ "0.5310683", "0.5172201", "0.49978468", "0.49803728", "0.49226567", "0.48451337", "0.47456372", "0.46470505", "0.45649746", "0.45367402", "0.45207113", "0.4518288", "0.45065105", "0.44829395", "0.44707575", "0.4467271", "0.44290233", "0.44176143", "0.4417366", "0.43972716", "0.43765295", "0.4370453", "0.43564835", "0.4341356", "0.43407044", "0.43260095", "0.4317951", "0.43026966", "0.42957476", "0.42948118", "0.42922723", "0.42811087", "0.42624497", "0.426243", "0.4257733", "0.4253132", "0.42530236", "0.4249183", "0.42385343", "0.42375982", "0.42363355", "0.42311102", "0.42282474", "0.4224246", "0.42209697", "0.42201594", "0.42127165", "0.4210638", "0.4210207", "0.41968805", "0.41962808", "0.41950932", "0.4193005", "0.41868663", "0.4184765", "0.4177449", "0.41681516", "0.4164992", "0.41601008", "0.4158752", "0.41577908", "0.41537994", "0.4153718", "0.41528347", "0.41488346", "0.4144807", "0.41354498", "0.41307667", "0.41226193", "0.4121612", "0.41177264", "0.41162303", "0.41141975", "0.41100183", "0.41065863", "0.41045752", "0.41014436", "0.40985602", "0.40879986", "0.40866816", "0.40837005", "0.4078153", "0.4078153", "0.40747458", "0.40680808", "0.4066599", "0.40610212", "0.4056899", "0.40517896", "0.40508917", "0.4049325", "0.4045883", "0.40435934", "0.4037487", "0.40358934", "0.4035461", "0.40329954", "0.40313414", "0.40303162", "0.40283683" ]
0.5121571
2
Read enough bits to obtain an integer from the keep, and increase that integer's weight.
private Object getAndTick(Keep keep,BitReader bitreader) throws JSONException { try { int width=keep.bitsize(); int integer=bitreader.read(width); Object value=keep.value(integer); if(JSONzip.probe) { JSONzip.log("\""+value+"\""); JSONzip.log(integer,width); } if(integer>=keep.length) { throw new JSONException("Deep error."); } keep.tick(integer); return value; } catch(Throwable e) { throw new JSONException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWeight(int newWeight) {\n weight = newWeight;\n }", "public void addWeight(){\n\t\tweight++;\n\t}", "public void setWeight(int w){\n\t\tweight = w;\n\t}", "public void setWeight(Integer weight) {\n this.weight = weight;\n }", "public void setWeight(int w) {\n\t\tweight = w;\n\t}", "int getWeight();", "int getWeight();", "public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}", "public void setWeight(final int weight) {\n this.weight = weight;\n }", "public Byte getWeight() {\n\t\treturn weight;\n\t}", "public void setWeight(Byte weight) {\n\t\tthis.weight = weight;\n\t}", "int nextBits(int bits);", "@Override\n public void accept(int value) {\n tracker.increaseBytesRequested(value);\n }", "public int weight() {\n \treturn weight;\n }", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "public int hammingWeight4(int n) {\n n -= (n >>> 1) & 0x55555555; //put count of each 2 bits into those 2 bits\n n = (n & 0x33333333) + (n >>> 2 & 0x33333333); //put count of each 4 bits into those 4 bits\n n = (n + (n >>> 4)) & 0x0F0F0F0F; //put count of each 8 bits into those 8 bits\n n += n >>> 8; // put count of each 16 bits into those 8 bits\n n += n >>> 16; // put count of each 32 bits into those 8 bits\n return n & 0xFF;\n }", "public int weight(){\n\t\treturn this.weight;\n\t}", "public int getWeight();", "public int getWeight() {\n\t\treturn _weight;\n\t}", "public int getMilkWeight(T key);", "public int hammingWeight3(int n) {\n n = (n & 0x55555555) + (n >>> 1 & 0x55555555); // put count of each 2 bits into those 2 bits\n n = (n & 0x33333333) + (n >>> 2 & 0x33333333);// put count of each 4 bits into those 4 bits\n n = (n & 0x0F0F0F0F) + (n >>> 4 & 0x0F0F0F0F);// put count of each 8 bits into those 8 bits\n n = (n & 0x00FF00FF) + (n >>> 8 & 0x00FF00FF);// put count of each 16 bits into those 16 bits\n n = (n & 0x0000FFFF) + (n >>> 16 & 0x0000FFFF); // put count of each 32 bits into those 32 bits\n return n;\n }", "public void setWeight(int x)\n {\n weightCarried=x;\n }", "public int getWeight() {\n return weight;\n }", "public int hammingWeight(int n) {\n return Integer.bitCount(n);\n }", "public int getWeight(){\n\t\treturn weight;\n\t}", "public int getWeight(){\n \treturn weight;\n }", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return this.weight;\n }", "public int getWeight() {\r\n\t\treturn this.weight;\r\n\t}", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public void update_weight() {\n this.weights = this.updatedWeights;\n }", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "int Weight();", "public int getWeight()\n {\n return weight;\n }", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight()\n\t{\n\t\treturn this.weight;\n\t}", "public synchronized void setWeight(int weight){\n\t\tthis.personWeight = weight; \n\t}", "private int Integer(Object selectedBreadCount) {\n\t\treturn 0;\r\n\t}", "public void setWeight(int weight) {\n\t\tif (weight > 0) {\n\t\t\tthis.weight = weight;\n\t\t} else {\n\t\t\tthis.weight = 0;\n\t\t}\n\t}", "public void addWeight(int weightToMerge) {\n this.weight += weightToMerge;\n }", "public Integer getWeight() {\n return weight;\n }", "private void setWeight(float weight){\n this.weight = weight;\n }", "public void setWeight(double w){\n weight = w;\n }", "private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }", "private int setNibble(int num, int data, int which, int bitsToReplace) {\n return (num & ~(bitsToReplace << (which * 4)) | (data << (which * 4)));\n }", "public int hammingWeight(int n) {\n String unsignedString = Integer.toUnsignedString(n, 2);\n int sum = 0;\n for (int i = 0; i < unsignedString.length(); i++) {\n if (unsignedString.substring(i, i + 1).equals(\"1\"))\n sum++;\n }\n return sum;\n }", "public int weight ();", "public synchronized int setPassengerWeight(){\n return random.nextInt((100-40)+1)+40;\n }", "public int hammingWeight(int n) {\r\n /*\r\n Bit Manipulation\r\n loop and shift\r\n for each bit over the 32 bits, we check if last bit\r\n if it is one, we add one to the count\r\n then shift the n to the right by one, until finish 32 bits\r\n */ \r\n // int count = 0;\r\n // for (int i = 0; i < 32; ++i) {\r\n // //System.out.println(Integer.toBinaryString(n));\r\n // if ((n & 1) == 1) count++;\r\n // n = n >> 1;\r\n // }\r\n // return count;\r\n /*\r\n Bit manipulation\r\n flip the last significant one by using AND\r\n n & (n - 1) will flip the least significant one to zero\r\n by using this fact we can check if the n is zero, if not, flip the least significant one to zero\r\n until n is zero\r\n */\r\n int count = 0;\r\n while (n != 0) {\r\n count++;\r\n n &= (n - 1);\r\n }\r\n return count;\r\n }", "public void updateWeights() {\n\t\t\n\t}", "public int getWeightLimit() {\n\t\treturn this.weightLimit;\n\t}", "public int getWeight()\n {\n return this.aWeight;\n\n }", "int getLowBitLength();", "public static int sizeBits_reading() {\n return 16;\n }", "public int convertWeight(int weight){\n\t int num;\n\t if(weight >= 40){ num = 5;}\n\t else {\n\t num = weight / 10;\n\t }\n\t return num;\n\t}", "public int incrementPower(int count);", "public void setWeight(float w) {\n weight = w;\n }", "public void setWeightLimit(int weightLimit) {\n\t\tthis.weightLimit = weightLimit;\n\t}", "public int getWeight() {\n\t\treturn quantity*weight; \n\t}", "@Test\n public void testReadWriteInt() {\n System.out.println(\"readInt\");\n ByteArray instance = new ByteArray();\n \n instance.writeInt(12, 0);\n instance.writeInt(1234, 4);\n instance.writeInt(13, instance.compacity());\n \n assertEquals(12, instance.readInt(0));\n assertEquals(1234, instance.readInt(4));\n assertEquals(13, instance.readInt(instance.compacity() - 4));\n \n instance.writeInt(14, 4);\n assertEquals(14, instance.readInt(4));\n }", "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "public void setWeight(double weight) {\r\n this.weight = weight;\r\n }", "public void setWeight(int weightIn){\n\t\tthis.edgeWeight = weightIn;\n\t}", "@Override\n\t\tpublic int get_weights() {\n\t\t\treturn weight;\n\t\t}", "@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }", "public void setWeight(String newValue);", "public void updateWeightEdge(String srcLabel, String tarLabel, int weight) {\n // Implement me!\n\n String e = srcLabel + tarLabel;\n if (indexOf(e, edges) < 0) {\n return;\n }\n\n\n int srcInt = indexOf(srcLabel, vertices);\n int tarInt = indexOf(tarLabel, vertices);\n weights[srcInt][edges.get(e)] = weight;\n weights[tarInt][edges.get(e)] = weight * (-1);\n\n if (weight == 0) {\n edges.remove(e);\n return;\n }\n\n\n\n }", "public static int getWeigth(String weight){\n\t\treturn Character.getNumericValue(weight.charAt(2));\n\t}", "public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}", "public void setWeight(double weight){\n\t\tthis._weight = weight;\n\t}", "public int getWeightedBucket() {\n float val = (float)(new Float((Math.random() * 100)));\n int totalWeight = 0;\n int i = 0;\n for (i = 0; i < weights.length; i++) {\n totalWeight += weights[i];\n if (val <= totalWeight)\n break;\n }\n return(i);\n }", "public int weight(Person person) {\n\t\tthis.weightMeasuredCount++; \n return person.getWeight(); \n }", "public void setWeight(double weight) {\n this.weight = weight;\n }", "public int hammingWeight(int n) {\n int count = 0;\n while (n != 0) {\n count += n & 1;\n n = n >>> 1;\n }\n return count;\n }", "public int hammingWeight(int n) {\n int temp = n;\n int count = 0;\n while (temp != 0) {\n temp = temp & (temp - 1);//n=n&(n-1) trick to clear the least significant bit\n count++;\n }\n return count;\n }", "public void setWeight(String weight) {\n this.weight = weight;\n }", "int next(int bits);", "public void setWeight(final double pWeight){this.aWeight = pWeight;}", "public void setWeight(Item item, int value) {\n\t\tweight.put(item, value);\n\t}", "private static int bitLen(int w)\n {\n int t = w >>> 24;\n if (t != 0)\n {\n return 24 + bitLengths[t];\n }\n t = w >>> 16;\n if (t != 0)\n {\n return 16 + bitLengths[t];\n }\n t = w >>> 8;\n if (t != 0)\n {\n return 8 + bitLengths[t];\n }\n return bitLengths[w];\n }", "private int read(int width) throws JSONException\n {\n try\n {\n int value=this.bitreader.read(width);\n if(probe)\n {\n log(value,width);\n }\n return value;\n }\n catch(Throwable e)\n {\n throw new JSONException(e);\n }\n }", "public int hammingWeight(int n) {\n int count = 0;\n for (int i = 0; i < 32; i++) {\n count += (n & 1);\n n = n >> 1;\n }\n return count;\n }", "public void setMaxWeight(String newValue);", "int getHighBitLength();", "public void buyFuelGainMultiply() {\n this.fuelGainMultiply++;\n }", "protected abstract void updateWeightsSpecific(double ni);", "public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}", "@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}", "public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }", "public ByteBuf writeIntLE(int value)\r\n/* 871: */ {\r\n/* 872:880 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 873:881 */ return super.writeIntLE(value);\r\n/* 874: */ }", "private int weight(final String tag) {\n final int weight;\n if (tag.matches(this.regex())) {\n weight = 1 + this.numberOfConstants();\n } else {\n weight = 0;\n }\n return weight;\n }", "public int getWeight()\n {\n return weightCarried;\n }", "public int hammingWeight5(int n) {\n n -= (n >>> 1) & 0x55555555; // put count of each 2 bits into those 2 bits\n n = (n & 0x33333333) + (n >>> 2 & 0x33333333); // put count of each 4 bits into those 4 bits\n n = (n + (n >>> 4)) & 0x0F0F0F0F; // put count of each 8 bits into those 8 bits\n return n * 0x01010101 >>> 24; // returns left 8 bits of x + (x<<8) + (x<<16) + (x<<24)\n }", "public void setObjectWeight(short weight) { this.objectWeight=weight; }", "public synchronized int setLuggageWeight(){\n return random.nextInt((30-0)+1)+0;\n }", "@JsonSetter(\"weight\")\n public void setWeight (int value) {\n this.weight = value;\n }", "public int update(int data) {\n data &= 0xff;\n int local = storage;\n for(int i = 0; i < 4; i++) {\n if((local & 0xff) == data) {\n storage = data\n | (storage & high[i])\n | ((storage & low[i]) << 010);\n return i;\n }\n local >>= 010;\n }\n storage = (storage << 010) | data;\n return -1;\n }" ]
[ "0.5867173", "0.57572556", "0.561334", "0.5568176", "0.55232996", "0.54784703", "0.54784703", "0.54775715", "0.5419633", "0.5410427", "0.54048467", "0.5357981", "0.5352369", "0.5344381", "0.5342583", "0.5342583", "0.53353775", "0.5330978", "0.5324434", "0.531041", "0.5305938", "0.52879053", "0.52636445", "0.526287", "0.5258522", "0.5245118", "0.52340716", "0.5225447", "0.521215", "0.52111757", "0.5209652", "0.5209652", "0.51881003", "0.51856863", "0.51833236", "0.5182411", "0.51701874", "0.51701874", "0.51668966", "0.51658916", "0.5164365", "0.5150728", "0.5150436", "0.5147409", "0.5132133", "0.5131943", "0.51267207", "0.5096428", "0.5095655", "0.5081988", "0.5075132", "0.5061275", "0.5047339", "0.50467163", "0.5033598", "0.503006", "0.5020309", "0.50193965", "0.50168496", "0.5011424", "0.50066", "0.4980068", "0.4973791", "0.4967455", "0.49648967", "0.49594244", "0.4954997", "0.49348238", "0.4930418", "0.49273178", "0.49259058", "0.492471", "0.49202383", "0.49196082", "0.49190342", "0.49184573", "0.49128684", "0.49085444", "0.48987785", "0.48815006", "0.4880826", "0.48737317", "0.4864504", "0.48618", "0.48599583", "0.48578602", "0.48554984", "0.48553067", "0.48374626", "0.48345137", "0.4833336", "0.4823442", "0.48189473", "0.48175028", "0.48167825", "0.48024172", "0.47941285", "0.47929132", "0.47869983", "0.47815287" ]
0.5061462
51
The pad method skips the bits that padded a stream to fit some allocation. pad(8) will skip over the remainder of a byte.
public boolean pad(int width) throws JSONException { try { return this.bitreader.pad(width); } catch(Throwable e) { throw new JSONException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getAutoSkipPadding();", "Padding createPadding();", "public void set_pad(CArrayFacade<Byte> _pad) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 12;\n\t\t} else {\n\t\t\t__dna__offset = 12;\n\t\t}\n\t\tif (__io__equals(_pad, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, _pad)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, _pad);\n\t\t} else {\n\t\t\t__io__generic__copy( get_pad(), _pad);\n\t\t}\n\t}", "public void set_pad(CArrayFacade<Byte> _pad) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 14;\n\t\t} else {\n\t\t\t__dna__offset = 14;\n\t\t}\n\t\tif (__io__equals(_pad, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, _pad)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, _pad);\n\t\t} else {\n\t\t\t__io__generic__copy( get_pad(), _pad);\n\t\t}\n\t}", "int getPadding();", "public void set_pad(CArrayFacade<Byte> _pad) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 29;\n\t\t} else {\n\t\t\t__dna__offset = 21;\n\t\t}\n\t\tif (__io__equals(_pad, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, _pad)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, _pad);\n\t\t} else {\n\t\t\t__io__generic__copy( get_pad(), _pad);\n\t\t}\n\t}", "public byte[] pad(byte[] message)\n {\n final int blockBits = 512;\n final int blockBytes = blockBits / 8;\n\n // new message length: original + 1-bit and padding + 8-byte length\n int newMessageLength = message.length + 1 + 8;\n int padBytes = blockBytes - (newMessageLength % blockBytes);\n newMessageLength += padBytes;\n\n // copy message to extended array\n final byte[] paddedMessage = new byte[newMessageLength];\n System.arraycopy(message, 0, paddedMessage, 0, message.length);\n\n // write 1-bit\n paddedMessage[message.length] = (byte) 0b10000000;\n\n // skip padBytes many bytes (they are already 0)\n\n // write 8-byte integer describing the original message length\n int lenPos = message.length + 1 + padBytes;\n ByteBuffer.wrap(paddedMessage, lenPos, 8).putLong(message.length * 8);\n\n return paddedMessage;\n }", "public ByteBuf skipBytes(int length)\r\n/* 521: */ {\r\n/* 522:532 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 523:533 */ return super.skipBytes(length);\r\n/* 524: */ }", "private byte[] padMsg(byte[] msg) {\n int messageLength = msg.length;\n int overflow = messageLength % 64; // overflow bytes are not in a 64-byte/512-bit block\n int paddingLength;\n\n if (64 - overflow >= 9) { // we need min. 72 bit (9 * 8 bit) space: 1 byte for the \"1\"-bit directly after the message, 8 byte for message length\n paddingLength = 64 - overflow;\n } else { // if we have less than 72 bit of space between the message and the next full 512-bit block, add another 512-bit block\n paddingLength = 128 - overflow;\n }\n\n byte[] padding = new byte[paddingLength];\n\n padding[0] = (byte) 0x80; // byte with leading 1-bit (1000 0000)\n\n long lenInBit = messageLength * 8; // message length as number of bits. This needs to be filled into the trailing 64 bit of the last block\n\n // bitwise copy of length-integer into padding[] byte array\n // 8 iterations, one byte per iteration, to fill 64 bit\n for (int i = 0; i < 8; i++) {\n // shift right i byte\n long shiftRight = lenInBit >>> (8 * i);\n // truncate the rightmost byte\n byte b = (byte) (shiftRight & 0xFF);\n // highest index in the array gets the lowest value bit\n padding[padding.length - 1 - i] = b;\n }\n\n // construct output array including padding, with length (in bit) divisible by 512\n byte[] paddedMsg = new byte[messageLength + paddingLength];\n // copy original message\n System.arraycopy(msg, 0, paddedMsg, 0, messageLength);\n // copy padding\n System.arraycopy(padding, 0, paddedMsg, messageLength, padding.length);\n\n return paddedMsg;\n }", "public int getPadding() {\n\n int len = getTrueSize() % 2880;\n\n if (len == 0) {\n return 0;\n }\n\n return 2880 - len;\n }", "public int addPadding() {\n\t\tCodeItem codeItem = getCodeItem();\n\t\tint padding = codeItem.getSize() % 4;\n\t\tif (padding != 0) {\n\t\t\tif (padding == 2) {\n\t\t\t\tcodeItem.addInstruction(new InstructionFormat10X(0));\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"Padding can only be 0 or 2 ! (\" + method.getMethodName() + \" \" + method.getClassName() + \" \" + codeItem.getSize() + \" \" + padding + \")\");\n\t\t\t}\n\t\t}\n\t\treturn padding;\n\t}", "private static BufferedImage pad(BufferedImage in,int padding) {\n\t\tBufferedImage out = new BufferedImage( in.getWidth() + 2*padding, in.getHeight() + 2*padding, BufferedImage.TYPE_INT_ARGB );\n\t\tGraphics2D g = out.createGraphics();\n\t\tg.drawImage(in, 2, 2, null);\n\t\tg.dispose();\n\t\treturn out;\n\t}", "private static final String padding(String body, int lengthLimit) {\n\t\tint length = body.length();\n\t\tfinal int length2pad = lengthLimit - length - LAST_TWO_BITS_INDICATOR;\n\n\t\tif(length2pad <= 0){\n\t\t\treturn body;\n\t\t}\n\t\t\n\t\tint rest2pad = length2pad;\n\n\t\tString padHead = \"\";\n\t\tif (length2pad > length) {\n\t\t\tint gap = length2pad - length;\n\n\t\t\twhile (gap > 0) {\n\t\t\t\tpadHead += '8';\n\t\t\t\t--gap;\n\t\t\t}\n\t\t\trest2pad = length;\n\t\t}\n\t\tfor (int i = 0; i < rest2pad; i++) {\n\t\t\tpadHead += body.charAt(length - i - 1);\n\t\t}\n\n\t\tString newPadHead = '8' + padHead.substring(1);\n\t\tString twoBitsIndicator = \"\";\n\t\tif (length2pad <= 9) {\n\t\t\ttwoBitsIndicator = '0' + String.valueOf(length2pad);\n\t\t} else {\n\t\t\ttwoBitsIndicator = String.valueOf(length2pad);\n\t\t}\n\n\t\tString last = newPadHead + body + twoBitsIndicator;\n\t\treturn last;\n\t}", "private byte[] getPadded(byte[] bytes) {\n\t\tbyte[] padded = new byte[20];\n\t\tpadded[16] = 0; // right pad\n\t\tpadded[17] = 0; // right pad\n\t\tpadded[18] = 0; // right pad\n\t\tpadded[19] = 0; // right pad\n\t\tSystem.arraycopy(bytes, 0, padded, 0, 16);\n\t\treturn padded;\n\t}", "public void setPadding( Integer p ){\r\n\t\tpadding = p;\r\n\t}", "private static String padString(String source) {\r\n\r\n String paddedString = source;\r\n char paddingChar = ' ';\r\n int size = 16;\r\n int x = paddedString.length() % size;\r\n int padLength = size - x;\r\n for (int i = 0; i < padLength; i++) {\r\n paddedString += paddingChar;\r\n }\r\n\r\n return paddedString;\r\n }", "public static void padWithBytes(ArrayList<Byte> array, int padCount) {\n for (int i = 0; i < padCount; i++) {\n array.add((byte)0);\n }\n }", "public void setPadding(int padding) {\n this.padding = padding;\n }", "public void skipBytes(int skip) throws IOException {\n raos.skipBytes(skip);\n }", "public COPSData getPadding(final int len) {\r\n final byte[] padBuf = new byte[len];\r\n Arrays.fill(padBuf, (byte) 0);\r\n return new COPSData(padBuf, 0, len);\r\n }", "public Ethernet setPad(boolean pad) {\n this.pad = pad;\n return this;\n }", "public static String padMessage(String dataSegment) throws UnsupportedEncodingException {\n\n\t\t padCount = getPadCount(dataSegment);\n\t\tif (padCount > 0) {\n\t\t\tdataSegment = dataSegment.concat(\"1\");//initially padding 1 \n\t\t\tfor (int i = 1; i < padCount; i++) {\n\t\t\t\tdataSegment = dataSegment.concat(\"0\"); //padding 0s.\n\t\t\t}\n\t\t}\n\t\treturn dataSegment;\n\t}", "public boolean hasPadding() {\n return (buffer.get(0) & 0x20) == 0x020;\n }", "public static byte padDataLength(byte length) {\n if (length > 48) {\n return 64;\n }\n return paddedDataLengthLookup[length];\n }", "public int getPadding() {\n return padding;\n }", "private String padZeros(String binary, int size) {\n String outString = binary;\n for (int i = 0; i < size - binary.length(); i++) {\n outString = \"0\" + outString;\n }\n return outString;\n }", "@Override\n\tpublic int skipBytes(int n) {\n\t\treturn super.skipBytes(n);\n\t}", "public void set_pad1(CArrayFacade<Byte> _pad1) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 60;\n\t\t} else {\n\t\t\t__dna__offset = 60;\n\t\t}\n\t\tif (__io__equals(_pad1, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, _pad1)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, _pad1);\n\t\t} else {\n\t\t\t__io__generic__copy( get_pad1(), _pad1);\n\t\t}\n\t}", "public void set_pad1(CArrayFacade<Byte> _pad1) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 76;\n\t\t} else {\n\t\t\t__dna__offset = 76;\n\t\t}\n\t\tif (__io__equals(_pad1, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, _pad1)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, _pad1);\n\t\t} else {\n\t\t\t__io__generic__copy( get_pad1(), _pad1);\n\t\t}\n\t}", "public long skip(long p_bytes);", "protected void doPadding(byte[] paramArrayOfByte, int paramInt)\r\n/* 107: */ {\r\n/* 108:172 */ int i = flush();\r\n/* 109:173 */ this.tmpBuf[i] = Byte.MIN_VALUE;\r\n/* 110:174 */ for (int j = i + 1; j < 32; j++) {\r\n/* 111:175 */ this.tmpBuf[j] = 0;\r\n/* 112: */ }\r\n/* 113:176 */ update(this.tmpBuf, i, 32 - i);\r\n/* 114:177 */ for (j = 0; j < i + 1; j++) {\r\n/* 115:178 */ this.tmpBuf[j] = 0;\r\n/* 116: */ }\r\n/* 117:179 */ update(this.tmpBuf, 0, 32);\r\n/* 118:180 */ encodeBEInt(this.V00 ^ this.V10 ^ this.V20, paramArrayOfByte, paramInt + 0);\r\n/* 119:181 */ encodeBEInt(this.V01 ^ this.V11 ^ this.V21, paramArrayOfByte, paramInt + 4);\r\n/* 120:182 */ encodeBEInt(this.V02 ^ this.V12 ^ this.V22, paramArrayOfByte, paramInt + 8);\r\n/* 121:183 */ encodeBEInt(this.V03 ^ this.V13 ^ this.V23, paramArrayOfByte, paramInt + 12);\r\n/* 122:184 */ encodeBEInt(this.V04 ^ this.V14 ^ this.V24, paramArrayOfByte, paramInt + 16);\r\n/* 123:185 */ encodeBEInt(this.V05 ^ this.V15 ^ this.V25, paramArrayOfByte, paramInt + 20);\r\n/* 124:186 */ encodeBEInt(this.V06 ^ this.V16 ^ this.V26, paramArrayOfByte, paramInt + 24);\r\n/* 125:187 */ if (getDigestLength() == 32) {\r\n/* 126:188 */ encodeBEInt(this.V07 ^ this.V17 ^ this.V27, paramArrayOfByte, paramInt + 28);\r\n/* 127: */ }\r\n/* 128: */ }", "public boolean isPad() {\n return pad;\n }", "public CArrayFacade<Byte> get_pad() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t4\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 12, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 12, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "public CArrayFacade<Byte> get_pad() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t2\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 14, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 14, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "private static String pad(String src, char fill, int length, boolean isPadRight) {\n\t\tif (src == null) src = \"\"; \n\t\tStringBuilder sb = new StringBuilder();\n\t\tint startLoc = length - src.length();\n\n\t\tint stringLen = src.length();\n\t\tif (stringLen > length) stringLen = length;\n\t\tif (isPadRight) sb.append(src.substring(0, stringLen));\n\t\tfor (int i = 0; i < startLoc; i++) {\n\t\t\tsb.append(fill);\n\t\t}\n\t\t\n\t\tif (! isPadRight)sb.append(src.substring(0, stringLen));\n\n\t\treturn sb.toString();\n\t}", "public ColumnOutput setPad() throws IOException {\r\n\t\t\r\n\t\tStringBuilder p = new StringBuilder((getWidth() == UnlimitedWidth)?b.length():getWidth());\r\n\t\tsendToOutput(p);\r\n\t\tpad = p.toString().subSequence(0, p.length());\r\n\t\t\r\n\t\treturn this;\r\n\t}", "public CArrayFacade<Byte> get_pad() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t3\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 29, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 21, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "public byte[] getRawPayloadBytesPadded(byte[] data) {\r\n byte[] encData = subbytes(data, BLDevice.DEFAULT_BYTES_SIZE, data.length);\r\n byte[] newBytes = null;\r\n if(encData.length > 0) {\r\n int numpad = 16 - (encData.length % 16);\r\n\r\n newBytes = new byte[encData.length+numpad];\r\n for(int i = 0; i < newBytes.length; i++) {\r\n \t if(i < encData.length)\r\n \t\t newBytes[i] = encData[i];\r\n \t else\r\n \t\t newBytes[i] = 0x00;\r\n }\r\n }\r\n return newBytes;\r\n }", "public String padding(String binary, int length, boolean back) {\n\t\twhile (length > 0) {\n\t\t\tif (!back)\n\t\t\t\tbinary = \"0\" + binary;\n\t\t\telse\n\t\t\t\tbinary = binary + \"0\";\n\t\t\tlength--;\n\t\t}\n\t\treturn binary;\n\n\t}", "@Override\n public void skipAllBytes(long toSkip) throws IOException {\n if (skip(toSkip) < toSkip) {\n throw new EOFException();\n }\n }", "public CArrayFacade<Byte> get_pad1() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t4\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 60, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 60, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "public CArrayFacade<Byte> get_pad1() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t4\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 76, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 76, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "public abstract Padding calcPadding(Dim outer, Dim inner);", "private void skipBytes(int count) throws IOException {\n long currentPosition = archive.position();\n long newPosition = currentPosition + count;\n if (newPosition > archive.size()) {\n throw new EOFException();\n }\n archive.position(newPosition);\n }", "@Override\n\tpublic long skip(long bytes) throws IOException {\n\t\tint readable = buf.readableBytes();\n if (readable < bytes) {\n bytes = readable;\n }\n buf.readerIndex((int) (buf.readerIndex() + bytes));\n return bytes;\n\n\t}", "protected final void skipBytes(final int value) {\r\n bPtr = bPtr + value;\r\n }", "public HintPad setPadding(int padding) {\r\n\t\tthis.padding = padding;\r\n\t\treturn this;\r\n\t}", "public synchronized static int CalculatePadLength ( int LengthOfUnpaddedPacket )\n {\n // Determine the number of 8 bit words required to fit the packet in 32 bit boundary\n int remain = (int) Math.IEEEremainder ( (double) LengthOfUnpaddedPacket , (double) 4 );\n\n int PadLen = 0;\n\n // e.g. remainder -1, then we need to pad 1 extra\n // byte to the end to make it to the 32 bit boundary\n if ( remain < 0 )\n PadLen = Math.abs ( remain );\n\n // e.g. remainder is +1 then we need to pad 3 extra bytes\n else if ( remain > 0 )\n PadLen = 4-remain;\n\n return ( PadLen );\n\n }", "private String pad(String s, int l){ String p=\"\"; for(int i=0; i<l-s.length();i++)p+=\" \"; return \" \"+p+s; }", "private void skipNBytes(long n) throws IOException {\n while (n > 0) {\n long ns = in.skip(n);\n if (ns > 0 && ns <= n) {\n // adjust number to skip\n n -= ns;\n } else if (ns == 0) { // no bytes skipped\n // read one byte to check for EOS\n if (in.read() == -1) {\n throw log.messageTruncated();\n }\n // one byte read so decrement number to skip\n n--;\n } else { // skipped negative or too many bytes\n throw new IOException(\"Unable to skip exactly\");\n }\n }\n }", "private Object pad(int ca) {\n\t\tif (ca >= 10)\n\t\t\treturn String.valueOf(ca);\n\t\telse\n\t\t\treturn \"0\" + String.valueOf(ca);\n\n\t\t\n\t}", "String doPadding(String stringToPadding) {\n if (padder == null) {\n return stringToPadding;\n }\n try {\n return padder.doPadding(stringToPadding);\n }\n catch (IllegalArgumentException ex) {\n throw new IllegalArgumentException(\"Padding du champs >\" + destColumnName\n + \"< (\" + field.getAlias() + \")\" + \" en erreur : \"\n + ex.getMessage());\n }\n }", "public static String pad(int fieldWidth, char padChar, String s) {\n StringBuilder sb = new StringBuilder();\n for (int i = s.length(); i < fieldWidth; i++) {\n sb.append(padChar);\n }\n sb.append(s);\n\n return sb.toString();\n }", "public String padDataForOutputTable(int padding) {\n\t\treturn String.format(\"%-\" + padding + \"s\", this.getWeight());\n\t}", "@NonNull\n public Builder setPadding(@NonNull Padding padding) {\n mImpl.setPadding(padding.toProto());\n mFingerprint.recordPropertyUpdate(\n 3, checkNotNull(padding.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "public int skipBytes(int toSkip) throws IOException {\n\n\t\tint need = toSkip;\n\n\t\twhile (need > 0) {\n\n\t\t\tint got = (int) skip(need);\n\n\t\t\tif (got > 0) {\n\t\t\t\tneed -= got;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (need > 0) {\n\t\t\tthrow new EOFException();\n\t\t} else {\n\t\t\treturn toSkip;\n\t\t}\n\t}", "void skip(int bytes) throws IOException {\n this.input.skip(bytes);\n }", "public void internalSetPadding(int i, int i2, int i3, int i4) {\n }", "BitField getSubFieldWithPadding(int from, int to);", "@RestrictTo(Scope.LIBRARY_GROUP)\n @NonNull\n public static Padding fromProto(\n @NonNull ModifiersProto.Padding proto, @Nullable Fingerprint fingerprint) {\n return new Padding(proto, fingerprint);\n }", "private static void removePadding(ImageWrapper image, Type type, ByteBuffer output) {\n int sizeLuma = image.y.width * image.y.height;\n int sizeChroma = image.u.width * image.u.height;\n\n if (image.y.rowStride > image.y.width) {\n removePaddingCompact(image.y, output, 0);\n } else {\n output.position(0);\n output.put(image.y.buffer);\n }\n\n if (type.equals(Type.YUV_420)) {\n if (image.u.rowStride > image.u.width) {\n removePaddingCompact(image.u, output, sizeLuma);\n removePaddingCompact(image.v, output, sizeLuma + sizeChroma);\n } else {\n output.position(sizeLuma);\n output.put(image.u.buffer);\n output.position(sizeLuma + sizeChroma);\n output.put(image.v.buffer);\n }\n } else {\n if (image.u.rowStride > image.u.width * 2) {\n removePaddingNotCompact(image, output, sizeLuma);\n } else {\n output.position(sizeLuma);\n output.put(image.u.buffer);\n byte lastOne = image.v.buffer.get(image.v.buffer.capacity() - 1);\n output.put(lastOne);\n }\n }\n output.rewind();\n }", "public Encoder withoutPadding() {\n if (!doPadding)\n return this;\n return new Encoder(isURL, newline, lineMax, false);\n }", "public static int paddingLength(final int dataLength, final int byteBoundary) {\n int rem = (dataLength % byteBoundary);\n if (rem == 0)\n return 0;\n else\n return byteBoundary - rem;\n }", "private void skipFully(InputStream in, long offset) throws IOException {\n/* 1163 */ while (offset > 0L) {\n/* 1164 */ long cur = in.skip(offset);\n/* 1165 */ if (cur <= 0L)\n/* 1166 */ throw new EOFException(\"can't skip\"); \n/* 1167 */ offset -= cur;\n/* */ } \n/* */ }", "public void loadWithPadding(DataReader reader) {\n this.load(reader);\n reader.skipShort();\n }", "private static byte[] leftTruncateOrPadByteArray(byte[] b, int n) {\n if (b.length > n) {\n return Arrays.copyOfRange(b, Math.max(b.length - n, 0), b.length);\n } else if (b.length < n) {\n byte[] bPadded = new byte[n];\n System.arraycopy(b, 0, bPadded, Math.max(0, n - b.length), b.length);\n return bPadded;\n }\n return b;\n }", "private String padded(int i, int length) {\n String current = Integer.toString(i);\n int size = Integer.toString(length).length();\n current = String.format(\"%\" + size + \"s\", current);\n return current;\n }", "public static int getPadCount(String dataSegment) throws UnsupportedEncodingException {\n\n\t\tint padCount = 0;\n\t\tint byteCount = ProjectUtility.getByteCount(dataSegment);//Return the number if bytes to be appeded.\n\t\tif (byteCount > 252) {\n\t\t\tint rem = byteCount % 252;\n\t\t\tif (rem > 0) {\n\t\t\t\tpadCount = 252 - rem;\n\t\t\t}\n\t\t} else {\n\t\t\tpadCount = 252 - byteCount;\n\t\t}\n\t\tSystem.out.println(\"Padding count = \" + padCount);\n\t\treturn padCount;\n\n\t}", "public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }", "public static String lpadding(String content, int len, char pad){\n StringBuilder sb = new StringBuilder();\n for(int i = 0; i < len - content.length(); i++){\n sb.append(pad);\n }\n sb.append(content);\n return sb.toString();\n }", "public static final byte[] read32BitAlignPadding(IRandomAccess ra) throws IOException {\n int pos = (int)ra.getFilePointer();\n int paddingLen = getPadding(pos);\n byte[] buff = new byte[paddingLen];\n ra.readFully(buff);\n return buff;\n }", "public void setPadding(Integer padding)\n {\n getStateHelper().put(PropertyKeys.padding, padding);\n }", "public int getPaddedSize() {\n return getTrueSize() + getPadding();\n }", "@Nullable\n public Padding getPadding() {\n if (mImpl.hasPadding()) {\n return Padding.fromProto(mImpl.getPadding());\n } else {\n return null;\n }\n }", "private int skipFdocaBytes(int length) {\n\n checkForSplitRowAndComplete(length);\n dataBuffer_.skipBytes(length);\n// position_ += length;\n return length;\n }", "private static String padWithZeros(int i, int len) {\r\n\t\tString s = Integer.toString(i);\r\n\t\tif (s.length() > len) {\r\n\t\t\treturn s.substring(0, len);\r\n\t\t}\r\n\t\telse if (s.length() < len) {\t// pad on left with zeros\r\n\t\t\treturn \"000000000000000000000000000\".substring(0, len - s.length()) + s;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn s;\r\n\t\t}\r\n\t}", "public static String padBinaryString(final String binary_str)\n\t{\n\t\tfinal char to_replace = ' ', padding = '0';\n\t\tfinal int padding_length = ((binary_str.length()/8) + 1) * 8;\n\t\tfinal String format_regex = \"%\" + padding_length + \"s\";\n\t\treturn String.format(format_regex, binary_str).replace(to_replace, padding);\n\t}", "@NonNull\n public Padding build() {\n return new Padding(mImpl.build(), mFingerprint);\n }", "private static StringBuffer Pad(int depth) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor (int i = 0; i < depth; i++)\r\n\t\t\tsb.append(\" \");\r\n\t\treturn sb;\r\n\t}", "public WriterOptions blockPadding(boolean value) {\n blockPaddingValue = value;\n return this;\n }", "static String padToLength(String s, int len) {\n\t\tStringBuffer sb = new StringBuffer(len);\n\t\tsb.append(s);\n\t\tfor (int i = s.length(); i < len; i++) sb.append(' ');\n\t\treturn sb.toString();\n\t}", "public static byte[] createPacket(byte[] data) {\r\n byte[] header = createHeader(seqNo);\r\n byte[] packet = new byte[data.length + header.length]; // data + header\r\n System.arraycopy(header, 0, packet, 0, header.length);\r\n System.arraycopy(data, 0, packet, header.length, data.length);\r\n seqNo = seqNo + 1;\r\n return packet;\r\n }", "public void saveWithPadding(DataWriter writer) {\n save(writer);\n writer.writeNull(Constants.SHORT_SIZE);\n }", "abstract void setHeaderPadding(boolean headerPadding);", "private static String readNullPaddedString(ByteBuffer data, int length) {\n byte[] bytes = new byte[length];\n data.get(bytes);\n int stringLength = bytes.length - 1;\n while (stringLength > 0 && bytes[stringLength] == 0) {\n stringLength--;\n }\n return new String(bytes, 0, stringLength+1, Charset.forName(\"utf-8\"));\n }", "private String LeftPad(String str, int length)\n {\n //pad and return String\n return String.format(\"%1$\" + length + \"s\", str);\n }", "public Int8Msg(int data_length, int base_offset) {\n super(data_length, base_offset);\n amTypeSet(AM_TYPE);\n }", "protected BatchEncoding pad(BatchEncoding encodedInputs, Integer maxLength, PaddingStrategy paddingStrategy,\n\t\t\t\t\t\t\t\tInteger padToMultipleOf, Boolean returnAttentionMask) {\n\t\tint[][] requiredInput = encodedInputs.get(modelInputNames.get(0));\n\t\tint batchSize = requiredInput.length;\n\n\t\tif (PaddingStrategy.LONGEST.equals(paddingStrategy)) {\n\t\t\tmaxLength = Arrays.stream(requiredInput)\n\t\t\t\t.mapToInt(d -> d.length)\n\t\t\t\t.max().getAsInt();\n\t\t\tpaddingStrategy = PaddingStrategy.MAX_LENGTH;\n\t\t}\n\n\t\tBatchEncoding outputs = new BatchEncoding();\n\t\tfor (int i = 0; i < batchSize; i += 1) {\n\t\t\tSingleEncoding singleEncoding = new SingleEncoding();\n\t\t\tfor (Entry <EncodingKeys, int[][]> entry : encodedInputs.entrySet()) {\n\t\t\t\tEncodingKeys k = entry.getKey();\n\t\t\t\tint[][] v = entry.getValue();\n\t\t\t\tsingleEncoding.put(k, v[i]);\n\t\t\t}\n\t\t\tsingleEncoding = padSingle(\n\t\t\t\tsingleEncoding, maxLength, paddingStrategy, padToMultipleOf, returnAttentionMask\n\t\t\t);\n\t\t\tfor (Entry <EncodingKeys, int[]> entry : singleEncoding.entrySet()) {\n\t\t\t\tEncodingKeys k = entry.getKey();\n\t\t\t\tint[] v = entry.getValue();\n\t\t\t\tif (!outputs.containsKey(k)) {\n\t\t\t\t\tint[][] arr = new int[batchSize][];\n\t\t\t\t\toutputs.put(k, arr);\n\t\t\t\t}\n\t\t\t\tint[][] arr = outputs.get(k);\n\t\t\t\tarr[i] = v;\n\t\t\t}\n\t\t}\n\t\treturn outputs;\n\t}", "public void pad( int count )\r\n\t{\r\n\t\tfinal int capacity = entities.length;\r\n\t\t\r\n\t\tif ( size + count >= capacity )\r\n\t\t{\r\n\t\t\tint nextSize = capacity + (capacity >> 1);\r\n\t\t\tint minimumSize = size + count;\r\n\t\t\t\r\n\t\t\tentities = Arrays.copyOf( entities, Math.max( nextSize, minimumSize ) );\r\n\t\t}\r\n\t}", "private static int[] stripLeadingZeroBytes(byte a[]) {\n int byteLength = a.length;\n int keep;\n\n // Find first nonzero byte\n for (keep = 0; keep < byteLength && a[keep] == 0; keep++)\n ;\n\n // Allocate new array and copy relevant part of input array\n int intLength = ((byteLength - keep) + 3) >>> 2;\n int[] result = new int[intLength];\n int b = byteLength - 1;\n for (int i = intLength-1; i >= 0; i--) {\n result[i] = a[b--] & 0xff;\n int bytesRemaining = b - keep + 1;\n int bytesToTransfer = Math.min(3, bytesRemaining);\n for (int j=8; j <= (bytesToTransfer << 3); j += 8)\n result[i] |= ((a[b--] & 0xff) << j);\n }\n return result;\n }", "private void skip(int aSkip){\r\n \r\n assert aSkip>=0;\r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n iIndex+=aSkip;//advance index by the skip distance\r\n if (iIndex>=iMessage.length()) iIndex=iMessage.length();//if beyond end then set index at end of message\r\n \r\n }", "private String pad(String userId){\n final Integer MAX_LENGTH = 20;\n Integer length = userId.length();\n\n if (length == MAX_LENGTH) {\n return userId;\n }\n\n return String.format(\"%20s\", userId);\n }", "public Int8Msg(net.tinyos.message.Message msg, int base_offset, int data_length) {\n super(msg, base_offset, data_length);\n amTypeSet(AM_TYPE);\n }", "private void countAndPadding(int type, int fill) {\n if ( sealed ) return;\n \n final Buffer dest;\n final boolean dSigned;\n final int e;\n \n switch (type) {\n case VERTEX:\n dest = vertexArray;\n dSigned = vDataTypeSigned;\n e = 4 == vComps ? 1 : 0;\n vElems++;\n break;\n case COLOR:\n dest = colorArray;\n dSigned = cDataTypeSigned;\n e = 4 == cComps ? 1 : 0;\n cElems++;\n break;\n case NORMAL:\n dest = normalArray;\n dSigned = nDataTypeSigned;\n e = 0;\n nElems++;\n break;\n case TEXTCOORD:\n dest = textCoordArray;\n dSigned = tDataTypeSigned;\n e = 0;\n tElems++;\n break;\n default: throw new InternalError(\"Invalid type \"+type);\n }\n \n if ( null==dest ) return;\n \n while( fill > e ) {\n fill--;\n Buffers.putNf(dest, dSigned, 0f); \n }\n if( e > 0 ) {\n Buffers.putNf(dest, dSigned, 1f);\n }\n }", "public HydraKey padToLength(int length) throws Exception {\n byte[] originalbytes = this.getEncoded();\n byte[] newbytes = HydraUtils.paddedByteArray(originalbytes, length);\n HydraKey newhydrakey = new HydraKey(newbytes, this.getAlgorithm());\n return newhydrakey;\n\n }", "private static ByteBuffer fill(ByteBuffer bb) {\n final int limit = bb.limit();\n bb.limit(bb.capacity());\n for (int i=0;i<bb.capacity();i++) {\n bb.put(i,(byte)i);\n }\n bb.limit(limit);\n return bb;\n }", "public void loopPad(Pad pad){\r\n // Laat klant een pad lopen\r\n System.out.println(\"Standaard Klant loopt nu pad:\" + pad.getPadNaam() );\r\n }", "@Test\n public void testHasNoPadding() {\n System.out.println(\"hasNoPadding\");\n boolean expResult = false;\n boolean result = instance.hasNoPadding();\n assertEquals(expResult, result);\n }", "@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public byte[] nextBytes(@org.jetbrains.annotations.NotNull byte[] r7, int r8, int r9) {\n /*\n r6 = this;\n java.lang.String r0 = \"array\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r7, r0)\n int r0 = r7.length\n r1 = 0\n r2 = 1\n if (r8 >= 0) goto L_0x000b\n goto L_0x0015\n L_0x000b:\n if (r0 < r8) goto L_0x0015\n int r0 = r7.length\n if (r9 >= 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n if (r0 < r9) goto L_0x0015\n r0 = 1\n goto L_0x0016\n L_0x0015:\n r0 = 0\n L_0x0016:\n if (r0 == 0) goto L_0x0084\n if (r8 > r9) goto L_0x001b\n goto L_0x001c\n L_0x001b:\n r2 = 0\n L_0x001c:\n if (r2 == 0) goto L_0x005d\n int r0 = r9 - r8\n int r0 = r0 / 4\n r2 = r8\n r8 = 0\n L_0x0024:\n if (r8 >= r0) goto L_0x0047\n int r3 = r6.nextInt()\n byte r4 = (byte) r3\n r7[r2] = r4\n int r4 = r2 + 1\n int r5 = r3 >>> 8\n byte r5 = (byte) r5\n r7[r4] = r5\n int r4 = r2 + 2\n int r5 = r3 >>> 16\n byte r5 = (byte) r5\n r7[r4] = r5\n int r4 = r2 + 3\n int r3 = r3 >>> 24\n byte r3 = (byte) r3\n r7[r4] = r3\n int r2 = r2 + 4\n int r8 = r8 + 1\n goto L_0x0024\n L_0x0047:\n int r9 = r9 - r2\n int r8 = r9 * 8\n int r8 = r6.nextBits(r8)\n L_0x004e:\n if (r1 >= r9) goto L_0x005c\n int r0 = r2 + r1\n int r3 = r1 * 8\n int r3 = r8 >>> r3\n byte r3 = (byte) r3\n r7[r0] = r3\n int r1 = r1 + 1\n goto L_0x004e\n L_0x005c:\n return r7\n L_0x005d:\n java.lang.StringBuilder r7 = new java.lang.StringBuilder\n java.lang.String r0 = \"fromIndex (\"\n r7.<init>(r0)\n r7.append(r8)\n java.lang.String r8 = \") must be not greater than toIndex (\"\n r7.append(r8)\n r7.append(r9)\n java.lang.String r8 = \").\"\n r7.append(r8)\n java.lang.String r7 = r7.toString()\n java.lang.IllegalArgumentException r8 = new java.lang.IllegalArgumentException\n java.lang.String r7 = r7.toString()\n r8.<init>(r7)\n java.lang.Throwable r8 = (java.lang.Throwable) r8\n throw r8\n L_0x0084:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.String r1 = \"fromIndex (\"\n r0.<init>(r1)\n r0.append(r8)\n java.lang.String r8 = \") or toIndex (\"\n r0.append(r8)\n r0.append(r9)\n java.lang.String r8 = \") are out of range: 0..\"\n r0.append(r8)\n int r7 = r7.length\n r0.append(r7)\n r7 = 46\n r0.append(r7)\n java.lang.String r7 = r0.toString()\n java.lang.IllegalArgumentException r8 = new java.lang.IllegalArgumentException\n java.lang.String r7 = r7.toString()\n r8.<init>(r7)\n java.lang.Throwable r8 = (java.lang.Throwable) r8\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.random.Random.nextBytes(byte[], int, int):byte[]\");\n }", "public Int8Msg(byte[] data, int base_offset, int data_length) {\n super(data, base_offset, data_length);\n amTypeSet(AM_TYPE);\n }" ]
[ "0.60475945", "0.58059025", "0.5767131", "0.5758368", "0.5737756", "0.57083774", "0.5705746", "0.56848407", "0.56523776", "0.5652101", "0.56246173", "0.56135356", "0.5606943", "0.55241543", "0.54392105", "0.5438116", "0.5419592", "0.5412804", "0.5380555", "0.53728896", "0.53501654", "0.53478634", "0.53301173", "0.5329654", "0.5295863", "0.52635944", "0.5203833", "0.51916045", "0.51837677", "0.51767725", "0.5141137", "0.51343524", "0.51121956", "0.5102103", "0.5081692", "0.50792146", "0.5069361", "0.50602126", "0.50575656", "0.50436825", "0.5041573", "0.5026278", "0.5024279", "0.5023468", "0.4989022", "0.4966301", "0.49412566", "0.49292192", "0.49025357", "0.48944032", "0.48831016", "0.4874757", "0.4843686", "0.48206854", "0.48144835", "0.4813759", "0.4790431", "0.47640094", "0.4726402", "0.47254124", "0.47237083", "0.4694731", "0.46928114", "0.46896017", "0.46694213", "0.46681926", "0.4662634", "0.46436456", "0.46434644", "0.46353707", "0.46160805", "0.46091312", "0.45933604", "0.45838782", "0.45754138", "0.45682427", "0.45675936", "0.45309865", "0.4524861", "0.4521919", "0.4520956", "0.4513376", "0.45007804", "0.4470999", "0.44704145", "0.44590724", "0.44556788", "0.44510436", "0.44474953", "0.4423015", "0.44214463", "0.44083858", "0.44024378", "0.43974075", "0.43966824", "0.43925047", "0.43899533", "0.43851036", "0.43787444", "0.4375343" ]
0.47025415
61
Read an integer, specifying its width in bits.
private int read(int width) throws JSONException { try { int value=this.bitreader.read(width); if(probe) { log(value,width); } return value; } catch(Throwable e) { throw new JSONException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int readInt();", "public int readInt() throws IOException;", "public int readInt() {\n return ((int) readLong());\n }", "private static int readInt(InputStream is) throws IOException {\n int a = is.read();\n int b = is.read();\n int c = is.read();\n int d = is.read();\n return a | b << 8 | c << 16 | d << 24;\n }", "int readInt() throws IOException;", "public static int sizeBits_reading() {\n return 16;\n }", "@Test\n void testReadIntPacked() throws IOException {\n byte[] input = new byte[]{(byte) 0x35, (byte) 0x54};\n r = new BitReader(input);\n assertEquals(5402, r.readIntPacked());\n }", "public int readInt() throws IOException {\n return in.readInt();\n }", "int readInt();", "public static int offsetBits_reading() {\n return 32;\n }", "public int readAsInt(int nrBits) {\n return readAsInt(bitPos, nrBits, ByteOrder.BigEndian);\n }", "public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }", "public int read_int32() throws IOException {\n byte bytes[] = read_bytes(4);\n\n return bytesToInt32(bytes, Endianness.BIG_ENNDIAN);\n }", "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "String intRead();", "public static final int readInt(InputStream in) throws IOException {\n byte[] buff = new byte[4];\n StreamTool.readFully(in, buff);\n return getInt(buff, 0);\n }", "int getIntBitLength() {\r\n\t\treturn intBitLength;\r\n\t}", "public int readInt(int length) throws DomainLayerException{\n if(length == 0) return 0;\n boolean positive = readOne();\n int value = positive ? 0x1:0x0;\n int mask = (0x1 << length) - 1;\n --length;\n while (length > 0) {\n value <<= 1;\n if (readOne()) value |= 0x1;\n --length;\n }\n if (positive) return value;\n return value-mask;\n }", "public abstract int read_ulong();", "public static int readInt() {\n return Integer.parseInt(readString());\n }", "private int intLength() {\n return (bitLength() >>> 5) + 1;\n }", "public int read(int i);", "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "public final int getInt32(int i) {\n if (isAvailable(i, 4)) {\n return this.data.getInt(i);\n }\n return -1;\n }", "public static int size_reading() {\n return (16 / 8);\n }", "abstract int readInt(int start);", "short readShort();", "int getLowBitLength();", "public void set_reading(int value) {\n setUIntBEElement(offsetBits_reading(), 16, value);\n }", "public static int readInt(){\n\t\tSystem.out.println();\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}", "public int readInt() {\n\t\tif(!isInit) return 0;\n\t\tint result = 0;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Integer input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult = 0;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}", "static int bitLengthForInt(int n) {\n return 32 - Integer.numberOfLeadingZeros(n);\n }", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public int read() {\n return (readInt());\n }", "public Integer readIntegerFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your number:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString number = null;\r\n\t\tnumber = br.readLine();\r\n\t\treturn new Integer(number);\r\n\t}", "public int readRaw()\r\n {\r\n \tbyte[] buf = new byte[1];\r\n \treadRaw(buf, 0, 1);\r\n \treturn buf[0] & 0xFF;\r\n }", "public byte read(int param1) {\n }", "public static final int readUInt(InputStream in) throws IOException {\n byte[] buff = new byte[4];\n StreamTool.readFully(in, buff);\n return getUInt(buff, 0);\n }", "public byte[] readRawInt() throws IOException {\n byte[] bytes = new byte[5];\n bytes[0] = (byte) Type.INT.code;\n in.readFully(bytes, 1, 4);\n return bytes;\n }", "private final int readBytes( int number ) throws IOException {\n byte[] buffer = new byte[ number ];\n int read = dataSource.read( buffer, 0, number );\n\n if ( read != buffer.length ) {\n if ( read < 0 ) throw new IOException( \"End of Stream\" );\n for ( int i = read; i < buffer.length; i++ ) buffer[ i ] = (byte)readByte();\n }\n \n\t/**\n * Create integer\n */\n switch ( number ) {\n case 1: return (buffer[ 0 ] & 0xff);\n\t case 2: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8);\n\t case 3: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16);\n\t case 4: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16) | ((buffer[ 3 ] & 0xff) << 24);\n\t default: throw new IOException( \"Illegal Read quantity\" );\n\t}\n }", "long readS32BE()\n throws IOException, EOFException;", "public static int readInteger(String prompt) throws IOException {\r\n\t\tint value = 0;\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.print(prompt + \" _>\");\r\n\t\t\t\tvalue = Integer.valueOf(reader.readLine()).intValue();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getLocalizedMessage());\r\n\t\t\t\tthrow ex;\r\n\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\tSystem.err.println(\"Conversion Error: \" + ex.getLocalizedMessage());\r\n\t\t\t\treturn readInteger(\"Try again: \" + prompt);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "private static int readInt(@Nullable byte[] data) {\n if (data == null || data.length == 0) {\n return 0;\n }\n int value = 0;\n for (byte b : data) {\n value <<= 8;\n value += (0xff & b);\n }\n return value;\n }", "public int readInt(String prompt);", "static int readRawVarint32(InputStream input) throws IOException {\r\n int result = 0;\r\n int offset = 0;\r\n for (; offset < 32; offset += 7) {\r\n int b = input.read();\r\n if (b == -1) {\r\n throw new EOFException(\"stream is truncated\");\r\n }\r\n result |= (b & 0x7f) << offset;\r\n if ((b & 0x80) == 0) {\r\n return result;\r\n }\r\n }\r\n // Keep reading up to 64 bits.\r\n for (; offset < 64; offset += 7) {\r\n int b = input.read();\r\n if (b == -1) {\r\n throw new EOFException(\"stream is truncated\");\r\n }\r\n if ((b & 0x80) == 0) {\r\n return result;\r\n }\r\n }\r\n throw new IOException(\"malformed varInt\");\r\n }", "public abstract short read_short();", "public int readInt() {\n return Integer.parseInt(readNextLine());\n }", "public int getInputForNumber() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt(bufferedReader.readLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testReadWriteInt() {\n System.out.println(\"readInt\");\n ByteArray instance = new ByteArray();\n \n instance.writeInt(12, 0);\n instance.writeInt(1234, 4);\n instance.writeInt(13, instance.compacity());\n \n assertEquals(12, instance.readInt(0));\n assertEquals(1234, instance.readInt(4));\n assertEquals(13, instance.readInt(instance.compacity() - 4));\n \n instance.writeInt(14, 4);\n assertEquals(14, instance.readInt(4));\n }", "public static int readInt(InputStream source) throws IOException {\n int b1 = source.read();\n int b2 = source.read();\n int b3 = source.read();\n int b4 = source.read();\n if ((b1 | b2 | b3 | b4) < 0) {\n throw new EOFException();\n } else {\n return makeInt(b1, b2, b3, b4);\n }\n }", "public static Integer readInteger(DataInputStream dis) throws IOException {\r\n\t\tif(dis.readBoolean())\r\n\t\t\treturn new Integer(dis.readInt());\r\n\t\treturn null;\r\n\t}", "public long get(int i) {\n return read(i);\n }", "int getHighBitLength();", "private static Integer getInteger(BufferedReader reader) throws IOException{\n Integer result=null;\n while(result==null) {\n try {\n result = Integer.parseInt(reader.readLine().trim());\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\"You should feed integer for this input.\");\n }\n }\n return result;\n }", "public int read() throws IOException;", "public abstract int read_long();", "public static int sizeInByte(int val) {\n return sizeInByte(NekoDataType.INTEGER) + NekoIOConstants.INT_LENGTH;\n }", "int get(int i) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n long val = values[numPosition] & (1 << intPosition);\n return (int) (val >> intPosition);\n }", "public int readUnsignedByte() throws IOException {\n\t\treturn read() | 0x00ff;\n\t}", "private int getInt(byte [] buffer, int offset) {\r\n\t\tint result = buffer[offset++] << 24;\r\n\t\tresult |= (buffer[offset++] << 16) & 0x00FF0000;\r\n\t\tresult |= (buffer[offset++] << 8) & 0x0000FF00;\r\n\t\tresult |= buffer[offset] & 0x000000FF;\r\n\r\n\t\treturn result;\r\n\t}", "public static int readNumberFromBytes(byte[] data, int readSize, int startIndex) {\n int value = 0;\n for (int i = 0; i < readSize; i++)\n value += ((long) data[startIndex + i] & 0xFFL) << (Constants.BITS_PER_BYTE * i);\n return value;\n }", "@Override\n public long readSInt64() throws IOException {\n long value = decoder.readVarint64();\n return (value >>> 1) ^ -(value & 1);\n }", "private native short Df1_Read_Integer(String plcAddress) throws Df1LibraryNativeException;", "short readShort() throws IOException;", "long readS32LE()\n throws IOException, EOFException;", "public static int offset_reading() {\n return (32 / 8);\n }", "public abstract long read_longlong();", "@Test(expected = IOException.class)\n\tpublic void testUint32Overflow() throws IOException {\n\t\tBinaryReader br = br(true, 0xff, 0xff, 0xff, 0xff, 0xff);\n\t\tint value = br.readNextUnsignedIntExact();\n\t\tAssert.fail(\n\t\t\t\"Should not be able to read a value that is larger than what can fit in java 32 bit int: \" +\n\t\t\t\tInteger.toUnsignedString(value));\n\t}", "public static int readNByteIntFromBuffer(final ByteBuffer buffer, final int n) {\n byte[] bytes = new byte[n];\n buffer.get(bytes);\n return ByteArrayUtil.byteArrayToInt(bytes, 0, n, buffer.order() == ByteOrder.BIG_ENDIAN);\n }", "@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}", "public int getInt2() {\n\t\tfinal int b1 = payload.get() & 0xFF;\n\t\tfinal int b2 = payload.get() & 0xFF;\n\t\tfinal int b3 = payload.get() & 0xFF;\n\t\tfinal int b4 = payload.get() & 0xFF;\n\t\treturn b2 << 24 & 0xFF | b1 << 16 & 0xFF | b4 << 8 & 0xFF | b3 & 0xFF;\n\t}", "public static int readInt()\n \n {\n int i=0;\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n i=Integer.parseInt(wort) ;\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n i=readInt();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n i=readInt();\n }\n return i;\n }", "public short readShort() throws IOException;", "private static int parseAndStripInt(InputStream in) throws IOException, PNMReaderException {\n\t\treturn parseAndStripInt(in, Integer.MAX_VALUE, (int)Math.ceil(Math.log10(Integer.MAX_VALUE)), true);\n\t}", "private int getInt() {\n intBuffer.rewind();\n archive.read(intBuffer);\n intBuffer.flip();\n return intBuffer.getInt();\n }", "abstract int readShort(int start);", "public static int decodeLowBits(long l) {\n\n return (int) l;\n\n }", "static int readInt() throws Exception {\n\t\treturn Integer.parseInt(readString());\n\t}", "public int readInt() {\n\t\tString read;\n\t\ttry {\n\t\t\tread = myInput.readLine();\n\t\t\tint num = Integer.parseInt(read);\n\t\t\treturn num;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Input failed!\\n\");\n\t\t\treturn -1;\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"Not a valid selection!\\n\");\n\t\t\treturn -1;\n\t\t}\n\t}", "public int readInt() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return (int) fTokenizer.nval;\n\n String msg = \"Integer expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }", "public static int INT(byte[] sz, int type) {\n int num = 0, i = 0, s = 1 , itr = 0;\n if(type == 1) {\n s = -1;\n i = sz.length;\n }//set loop from end for little indian \n while(itr < 4 && itr < sz.length) {\n i = i + s * 1;\n //System.out.println(\"INT \"+itr+\" : IN \" + HEX(num));\n // System.out.println(\"BYTE : IN \" + HEX(sz[i]));\n num = num << 8;\n num = num + (sz[i] & 0xff);\n //System.out.println(\"INT : IN \" + HEX(num));\n itr++;\n }return num;\n }", "long readLong();", "public static int readUleb128Int(SimpleSliceInputStream input)\n {\n byte[] inputBytes = input.getByteArray();\n int offset = input.getByteArrayOffset();\n // Manual loop unrolling shows improvements in BenchmarkReadUleb128Int\n int inputByte = inputBytes[offset];\n int value = inputByte & 0x7F;\n if ((inputByte & 0x80) == 0) {\n input.skip(1);\n return value;\n }\n inputByte = inputBytes[offset + 1];\n value |= (inputByte & 0x7F) << 7;\n if ((inputByte & 0x80) == 0) {\n input.skip(2);\n return value;\n }\n inputByte = inputBytes[offset + 2];\n value |= (inputByte & 0x7F) << 14;\n if ((inputByte & 0x80) == 0) {\n input.skip(3);\n return value;\n }\n inputByte = inputBytes[offset + 3];\n value |= (inputByte & 0x7F) << 21;\n if ((inputByte & 0x80) == 0) {\n input.skip(4);\n return value;\n }\n inputByte = inputBytes[offset + 4];\n verify((inputByte & 0x80) == 0, \"ULEB128 variable-width integer should not be longer than 5 bytes\");\n input.skip(5);\n return value | inputByte << 28;\n }", "public abstract long read_ulonglong();", "public int readInt(){\n\t\tif(sc.hasNextInt()){\n\t\t\treturn sc.nextInt();\n\t\t}\n\t\tsc.nextLine();\n\t\treturn -1;\n\t}", "public int getInt(int addr) throws ProgramException {\n return (int) getLittleEndian(addr, Integer.BYTES);\n }", "public int intWidth() {\r\n\t\treturn LLVMGenericValueIntWidth(ref);\r\n\t}", "private static int getRightShiftedNumberBufAsInt(int numberBuf,\n long bitPos, int nrBits, ByteOrder byteOrder) throws BitBufferException {\n\n // number of bits integer buffer needs to be shifted to the right in\n // order to reach the last bit in last byte\n long shiftBits;\n if (byteOrder == ByteOrder.BigEndian)\n shiftBits = 7 - ((nrBits + bitPos + 7) % 8);\n else\n shiftBits = bitPos % 8;\n\n return numberBuf >> shiftBits;\n }", "public final int read() {\r\n \r\n if (cbyte == size) {\r\n return -1;\r\n }\r\n \r\n // Otherwise, the byte under the head at \"cbyte\" can be read.\r\n \r\n if (bytenum == BYTES_IN_ELEMENT) {\r\n // Read next byte\r\n offset++;\r\n elem = data[offset];\r\n bytenum = 0;\r\n }\r\n \r\n int rval = 0;\r\n rval = elem & 0xff;\r\n \r\n // increase byte position\r\n elem = elem >>> 8; // unsigned SHR\r\n bytenum++;\r\n cbyte++;\r\n \r\n return rval;\r\n }", "public int read(int[] i) throws IOException {\n\t\treturn read(i, 0, i.length);\n\t}", "public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}", "long readLong() throws IOException;", "IntegerLiteral getSize();", "int readS16BE()\n throws IOException, EOFException;", "com.google.protobuf.Int32Value getSize();", "public int getInt1() {\n\t\tfinal byte b1 = payload.get();\n\t\tfinal byte b2 = payload.get();\n\t\tfinal byte b3 = payload.get();\n\t\tfinal byte b4 = payload.get();\n\t\treturn b3 << 24 & 0xFF | b4 << 16 & 0xFF | b1 << 8 & 0xFF | b2 & 0xFF;\n\t}", "public int read() throws IOException {\n ensureOpen();\n return read(singleByteBuf, 0, 1) == -1 ? -1 : Byte.toUnsignedInt(singleByteBuf[0]);\n }", "private static int numBytesFromBits(int bits) {\n \t\treturn (bits + 7) >> 3;\n \t}", "public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }", "int getInt();" ]
[ "0.65996647", "0.65401775", "0.65296406", "0.64344186", "0.64252704", "0.6416591", "0.6348403", "0.6317884", "0.6235417", "0.6204385", "0.6203775", "0.6131001", "0.61111504", "0.60381377", "0.59729636", "0.5969455", "0.5956561", "0.5940226", "0.59371895", "0.58801126", "0.5880072", "0.58725756", "0.58217996", "0.5721652", "0.572106", "0.5682377", "0.5680895", "0.56618124", "0.56583655", "0.5645853", "0.5627501", "0.5606916", "0.5605918", "0.55915755", "0.55442", "0.55314314", "0.5520618", "0.5517874", "0.55063367", "0.5495775", "0.54902875", "0.5486545", "0.5474563", "0.5461681", "0.5447317", "0.5443661", "0.5435693", "0.54013294", "0.540041", "0.5390933", "0.5385691", "0.5380451", "0.5380307", "0.5368182", "0.53606313", "0.53600574", "0.5340588", "0.53351325", "0.5330875", "0.53248256", "0.5319772", "0.5301329", "0.5288362", "0.5282266", "0.5276945", "0.5273656", "0.526646", "0.5251856", "0.52464", "0.52315503", "0.5225833", "0.5211802", "0.52083856", "0.5193775", "0.5193446", "0.5192023", "0.5191343", "0.5185055", "0.5182058", "0.5169491", "0.5155261", "0.5138732", "0.5138618", "0.51333123", "0.5122845", "0.5119432", "0.5116162", "0.51117736", "0.5109176", "0.51091015", "0.5108872", "0.5104013", "0.51007515", "0.50918293", "0.50842446", "0.50796926", "0.5077782", "0.50683355", "0.50627536", "0.5062472" ]
0.6425466
4
Read Huffman encoded characters into a keep.
private String read(Huff huff,Huff ext,Keep keep) throws JSONException { Kim kim; int at=0; int allocation=256; byte[] bytes=new byte[allocation]; if(bit()) { return getAndTick(keep,this.bitreader).toString(); } while(true) { if(at>=allocation) { allocation*=2; bytes=java.util.Arrays.copyOf(bytes,allocation); } int c=huff.read(this.bitreader); if(c==end) { break; } while((c&128)==128) { bytes[at]=(byte)c; at+=1; c=ext.read(this.bitreader); } bytes[at]=(byte)c; at+=1; } if(at==0) { return ""; } kim=new Kim(bytes,at); keep.register(kim); return kim.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ReadHuffman(String aux) {\n\n Huffman DY = new Huffman();\n Huffman DCB = new Huffman();\n Huffman DCR = new Huffman();\n DY.setFrequencies(FreqY);\n DCB.setFrequencies(FreqCB);\n DCR.setFrequencies(FreqCR);\n\n StringBuilder encoding = new StringBuilder();\n int iteradorMatrix = aux.length() - sizeYc - sizeCBc - sizeCRc;\n for (int x = 0; x < sizeYc; ++x) {\n encoding.append(aux.charAt(iteradorMatrix));\n ++iteradorMatrix;\n }\n Ydes = DY.decompressHuffman(encoding.toString());\n encoding = new StringBuilder();\n for (int x = 0; x < sizeCBc; ++x) {\n encoding.append(aux.charAt(iteradorMatrix));\n ++iteradorMatrix;\n }\n CBdes = DCB.decompressHuffman(encoding.toString());\n encoding = new StringBuilder();\n for (int x = 0; x < sizeCRc; ++x) {\n encoding.append(aux.charAt(iteradorMatrix));\n ++iteradorMatrix;\n }\n CRdes = DCR.decompressHuffman(encoding.toString());\n }", "public void HuffmanCode()\n {\n String text=message;\n /* Count the frequency of each character in the string */\n //if the character does not exist in the list add it\n for(int i=0;i<text.length();i++)\n {\n if(!(c.contains(text.charAt(i))))\n c.add(text.charAt(i));\n } \n int[] freq=new int[c.size()];\n //counting the frequency of each character in the text\n for(int i=0;i<c.size();i++)\n for(int j=0;j<text.length();j++)\n if(c.get(i)==text.charAt(j))\n freq[i]++;\n /* Build the huffman tree */\n \n root= buildTree(freq); \n \n }", "void decode(){\n int bit = -1; // next bit from compressed file: 0 or 1. no more bit: -1\r\n int k = 0; // index to the Huffman tree array; k = 0 is the root of tree\r\n int n = 0; // number of symbols decoded, stop the while loop when n == filesize\r\n int numBits = 0; // number of bits in the compressed file\r\n FileOutputStream file = null;\r\n try {\r\n file = new FileOutputStream(\"uncompressed.txt\");\r\n } catch (FileNotFoundException ex) {\r\n System.err.println(\"Could not open file to write to.\");\r\n }\r\n while ((bit = inputBit()) >= 0){\r\n k = codetree[k][bit];\r\n numBits++;\r\n if (codetree[k][0] == 0){ // leaf\r\n try {\r\n file.write(codetree[k][1]);\r\n } catch (IOException ex) {\r\n System.err.println(\"Failed to write to file.\");\r\n }\r\n System.out.write(codetree[k][1]);\r\n if (n++ == filesize) break; // ignore any additional bits\r\n k = 0;\r\n }\r\n }\r\n System.out.printf(\"\\n\\n------------------------------\\n\" +\r\n \"%d bytes in uncompressed file.\\n\", filesize);\r\n System.out.printf(\"%d bytes in compressed file.\\n\", numBits / 8);\r\n System.out.printf(\"Compression ratio of %f.\", (double)numBits / (double)filesize);\r\n System.out.flush();\r\n }", "public Decode(String inputFileName, String outputFileName){\r\n try(\r\n BitInputStream in = new BitInputStream(new FileInputStream(inputFileName));\r\n OutputStream out = new FileOutputStream(outputFileName))\r\n {\r\n int[] characterFrequency = readCharacterFrequency(in);//\r\n int frequencySum = Arrays.stream(characterFrequency).sum();\r\n BinNode root = HoffmanTree.HoffmanTreeFactory(characterFrequency).rootNode;\r\n //Generate Hoffman tree and get root\r\n\r\n int bit;\r\n BinNode currentNode = root;\r\n int byteCounter = 0;\r\n\r\n while ((bit = in.readBit()) != -1 & frequencySum >= byteCounter){\r\n //Walk the tree based on the incoming bits\r\n if (bit == 0){\r\n currentNode = currentNode.leftLeg;\r\n } else {\r\n currentNode = currentNode.rightLeg;\r\n }\r\n\r\n //If at end of tree, treat node as leaf and consider key as character instead of weight\r\n if (currentNode.leftLeg == null){\r\n out.write(currentNode.k); //Write character\r\n currentNode = root; //Reset walk\r\n byteCounter++; //Increment byteCounter to protect from EOF 0 fill\r\n }\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public int preprocessCompress(InputStream in) throws IOException {\n try {\n // Count the characters\n int counted = CharCounter.countAll(in); \n int[] countedArray = CharCounter.countValues();\n // Build the huffman tree\n TreeBuilder countedTree = new TreeBuilder();\n countedTree.buildTree(countedArray);\n // Create the huffman character codes\n HuffEncoder.huffEncode(countedTree.getRoot());\n return counted;\n } catch (IOException e) {\n throw e;\n }\n }", "public static void HuffmanTree(String input, String output) throws Exception {\n\t\tFileReader inputFile = new FileReader(input);\n\t\tArrayList<HuffmanNode> tree = new ArrayList<HuffmanNode>(200);\n\t\tchar current;\n\t\t\n\t\t// loops through the file and creates the nodes containing all present characters and frequencies\n\t\twhile((current = (char)(inputFile.read())) != (char)-1) {\n\t\t\tint search = 0;\n\t\t\tboolean found = false;\n\t\t\twhile(search < tree.size() && found != true) {\n\t\t\t\tif(tree.get(search).inChar == (char)current) {\n\t\t\t\t\ttree.get(search).frequency++; \n\t\t\t\t\tfound = true;\n\t\t\t\t}\n\t\t\t\tsearch++;\n\t\t\t}\n\t\t\tif(found == false) {\n\t\t\t\ttree.add(new HuffmanNode(current));\n\t\t\t}\n\t\t}\n\t\tinputFile.close();\n\t\t\n\t\t//creates the huffman tree\n\t\tcreateTree(tree);\n\t\t\n\t\t//the huffman tree\n\t\tHuffmanNode sortedTree = tree.get(0);\n\t\t\n\t\t//prints out the statistics of the input file and the space saved\n\t\tFileWriter newVersion = new FileWriter(\"C:\\\\Users\\\\Chris\\\\workspace\\\\P2\\\\src\\\\P2_cxt240_Tsuei_statistics.txt\");\n\t\tprintTree(sortedTree, \"\", newVersion);\n\t\tspaceSaver(newVersion);\n\t\tnewVersion.close();\n\t\t\n\t\t// codes the file using huffman encoding\n\t\tFileWriter outputFile = new FileWriter(output);\n\t\ttranslate(input, outputFile);\n\t}", "public Huffman(String input) {\n\t\t\n\t\tthis.input = input;\n\t\tmapping = new HashMap<>();\n\t\t\n\t\t//first, we create a map from the letters in our string to their frequencies\n\t\tMap<Character, Integer> freqMap = getFreqs(input);\n\n\t\t//we'll be using a priority queue to store each node with its frequency,\n\t\t//as we need to continually find and merge the nodes with smallest frequency\n\t\tPriorityQueue<Node> huffman = new PriorityQueue<>();\n\t\t\n\t\t/*\n\t\t * TODO:\n\t\t * 1) add all nodes to the priority queue\n\t\t * 2) continually merge the two lowest-frequency nodes until only one tree remains in the queue\n\t\t * 3) Use this tree to create a mapping from characters (the leaves)\n\t\t * to their binary strings (the path along the tree to that leaf)\n\t\t * \n\t\t * Remember to store the final tree as a global variable, as you will need it\n\t\t * to decode your encrypted string\n\t\t */\n\t\t\n\t\tfor (Character key: freqMap.keySet()) {\n\t\t\tNode thisNode = new Node(key, freqMap.get(key), null, null);\n\t\t\thuffman.add(thisNode);\n\t\t}\n\t\t\n\t\twhile (huffman.size() > 1) {\n\t\t\tNode leftNode = huffman.poll();\n\t\t\tNode rightNode = huffman.poll();\n\t\t\tint parentFreq = rightNode.freq + leftNode.freq;\n\t\t\tNode parent = new Node(null, parentFreq, leftNode, rightNode);\n\t\t\thuffman.add(parent);\n\t\t}\n\t\t\n\t\tthis.huffmanTree = huffman.poll();\n\t\twalkTree();\n\t}", "public int compress(InputStream in, OutputStream out, boolean force) throws IOException {\n int walk = 0; // Temp storage for incoming byte from read file\n int walkCount = 0; // Number of total bits read\n char codeCheck = ' '; // Used as a key to find the code in the code map\n String[] codeMap = HuffEncoder.encoding(); // Stores the character codes, copied from HuffEncode\n String s2b = \"\"; // Temp string storage \n int codeLen = 0; // Temp storage for code length (array storage)\n BitInputStream bitIn = new BitInputStream(in); \n BitOutputStream bitOut = new BitOutputStream(out);\n\n // Writes the code array at the top of the file. It first writes the number of bits in the code, then \n // the code itself. In the decode proccess, the code length is first read, then the code is read using the length\n // as a guide.\n // A space at top of file ensures the following is the array, and the file will correctly decompress\n out.write(32);\n for (int i = 0; i < codeMap.length; i++) {\n // Value of the character\n s2b = codeMap[i];\n // If null, make it zero\n if(s2b == null){\n s2b = \"0\";\n }\n // Record length of code\n codeLen = s2b.length();\n // Write the length of the code, to use for decoding\n bitOut.writeBits(8, codeLen);\n // Write the value of the character\n for (int j = 0; j < s2b.length(); j++) {\n bitOut.writeBits(1, Integer.valueOf(s2b.charAt(j)));\n }\n }\n\n // Reads in a byte from the file, converts it to a character, then uses that \n // caracter to look up the huffman code. The huffman code is writen to the new \n // file.\n try {\n while(true){\n // Read first eight bits\n walk = bitIn.read();\n // -1 means the stream has reached the end\n if(walk == -1){break;}\n // convert the binary to a character\n codeCheck = (char) walk;\n // find the huff code for the character\n s2b = codeMap[codeCheck];\n // write the code to new file\n for (int i = 0; i < s2b.length(); i++) {\n bitOut.writeBits(1, Integer.valueOf(s2b.charAt(i)));\n }\n walkCount += 8; // Number of bits read\n }\n bitIn.close();\n bitOut.close();\n return walkCount; \n } catch (IOException e) {\n bitIn.close();\n bitOut.close();\n throw e;\n }\n }", "@Override\n public String decode(File fileName) throws IOException\n {\n HuffmanEncodedResult result = readFromFile(fileName);\n StringBuilder stringBuilder = new StringBuilder();\n\n BitSet bitSet = result.getEncodedData();\n\n for (int i = 0; bitSet.length() - 1 > i; )\n {\n Node currentNode = result.getRoot();\n while (!currentNode.isLeaf())\n {\n if (bitSet.get(i))\n {\n currentNode = currentNode.getLeftChild();\n }\n else\n {\n currentNode = currentNode.getRightChild();\n }\n i++;\n }\n stringBuilder.append(currentNode.getCharacter());\n }\n return stringBuilder.toString();\n }", "public HuffmanCompressor(){\n charList = new ArrayList<HuffmanNode>();\n }", "public void decode(String name) {\n\t\tByteWriter bw = new ByteWriter(name + \"-restored\");\n\n\t\t/*\n\t\t * Read bytes until none are left.\n\t\t */\n\t\twhile (!data.eof()) {\n\t\t\tBST node = tree;\n\t\t\tString decoded = \"\";\n\t\t\tclear();\n\n\t\t\twhile (decoded.equals(\"\")) {\n\t\t\t\tgrabBits(1);\n\n\t\t\t\t/*\n\t\t\t\t * Follow the bits read from file through the Huffman tree\n\t\t\t\t * until a leaf is found. Once found, convert the code back\n\t\t\t\t * to the original bitstring.\n\t\t\t\t */\n\t\t\t\tnode = (proc.equals(\"0\")) ? node.getLeft() : node.getRight();\n\n\t\t\t\tif (node.getRight() == null && node.getLeft() == null) {\n\t\t\t\t\tdecoded = node.getData().getBitstring();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* \n\t\t\t * If EOF byte is found, quit writing to file.\n\t\t\t */\n\t\t\tif (decoded.equals(\"0000\")) {\n\t\t\t\tSystem.out.println(\"Found the null byte!\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//Write translated H. code to target as byte\n\t\t\tbw.writeByte(decoded);\n\t\t}\n\t\tbw.close();\n\t}", "public HuffmanCode(Scanner input) {\n this.front = new HuffmanNode();\n while (input.hasNextLine()) {\n int character = Integer.parseInt(input.nextLine());\n String location = input.nextLine();\n ScannerHuffmanCodeCreator(this.front, location, (char) character);\n }\n }", "private static void decode(String encodeFilename, String decodeFilename) {\n ObjectReader reader = new ObjectReader(encodeFilename); // create an ObjectReader object\n BinaryTrie binaryTrie = (BinaryTrie) reader.readObject(); // read the Huffman encoding trie from encoded file\n int numSymbols = (int) reader.readObject(); // read the number of symbols\n BitSequence allBitsequences = (BitSequence) reader.readObject(); // read the single huge encoded Bitsequence\n\n char[] chars = new char[numSymbols]; // create a char array to store all the decoded symbols\n int readBits = 0; // count the read bits\n for (int i = 0; i < numSymbols; i++) { // repeat until there are no symbols\n // create a new Bitsequence containing the remaining unmatched bits\n BitSequence remainingBits = allBitsequences.allButFirstNBits(readBits);\n Match m = binaryTrie.longestPrefixMatch(remainingBits); // find a longest prefix match on the Bitsequence\n chars[i] = m.getSymbol(); // add the matched symbol to the chars array\n readBits += m.getSequence().length();\n }\n\n writer(decodeFilename, chars); // write the symbol array into the given file decodeFilename\n }", "public HuffmanNode(int freq, int ascii){\r\n this.freq = freq;\r\n this.ascii = ascii;\r\n }", "public HuffmanCoding(String text) {\n\t\t// TODO fill this in.\n\t\ttextArray = text.toCharArray();\n\n\t\tPriorityQueue<Leaf> queue = new PriorityQueue<>(new Comparator<Leaf>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Leaf a, Leaf b) {\n\t\t\t\tif (a.frequency > b.frequency) {\n\t\t\t\t\treturn 1;\n\t\t\t\t} else if (a.frequency < b.frequency) {\n\t\t\t\t\treturn -1;\n\t\t\t\t} else {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tfor (char c : textArray) {\n\t\t\tif (chars.containsKey(c)) {\n\t\t\t\tint freq = chars.get(c);\n\t\t\t\tfreq = freq + 1;\n\t\t\t\tchars.remove(c);\n\t\t\t\tchars.put(c, freq);\n\t\t\t} else {\n\t\t\t\tchars.put(c, 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"tree print\");\t\t\t\t\t\t\t\t// print method begin\n\n\t\tfor(char c : chars.keySet()){\n\t\t\tint freq = chars.get(c);\n\t\t\tSystem.out.println(c + \" \" + freq);\n\t\t}\n\n\t\tint total = 0;\n\t\tfor(char c : chars.keySet()){\n\t\t\ttotal = total + chars.get(c);\n\t\t}\n\t\tSystem.out.println(\"total \" + total);\t\t\t\t\t\t\t// ends\n\n\t\tfor (char c : chars.keySet()) {\n\t\t\tLeaf l = new Leaf(c, chars.get(c), null, null);\n\t\t\tqueue.offer(l);\n\t\t}\n\n\t\twhile (queue.size() > 1) {\n\t\t\tLeaf a = queue.poll();\n\t\t\tLeaf b = queue.poll();\n\n\t\t\tint frequency = a.frequency + b.frequency;\n\n\t\t\tLeaf leaf = new Leaf('\\0', frequency, a, b);\n\n\t\t\tqueue.offer(leaf);\n\t\t}\n\n\t\tif(queue.size() == 1){\n\t\t\tthis.root = queue.peek();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader buffRead = new BufferedReader(new FileReader(\"/home/hsnavarro/IdeaProjects/Aula 1/src/input\"));\n FileOutputStream output = new FileOutputStream(\"src/output\", true);\n String s = \"\";\n s = buffRead.readLine().toLowerCase();\n System.out.println(s);\n CifraCesar c = new CifraCesar(0, s, true);\n c.getInfo();\n int[] freq = new int[26];\n for (int i = 0; i < 26; ++i) freq[i] = 0;\n for (int i = 0; i < c.criptografada.length(); i++) {\n freq[c.criptografada.charAt(i) - 97]++;\n }\n Huffman h = new Huffman(freq, c.criptografada);\n h.printHuffman();\n h.descriptografiaHuffman();\n System.out.println(\"huffman: \" + h.descriptoHuffman);\n CifraCesar d = new CifraCesar(h.criptoAnalisis(), h.descriptoHuffman, false);\n\n System.out.println(d.descriptografada);\n System.out.println(d.descriptografada);\n\n System.out.println(\"Comparando:\");\n System.out.println(\"Antes da compressão:\" + s.length());\n\n byte inp = 0;\n int cnt = 0;\n for (int i = 0; i < h.criptografada.length(); i++) {\n int idx = i % 8;\n if (h.criptografada.charAt(i) == '1') inp += (1 << (7 - idx));\n if (idx == 7) {\n cnt++;\n output.write(inp);\n inp = 0;\n }\n }\n if(h.criptografada.length() % 8 != 0){\n cnt++;\n output.write(inp);\n }\n System.out.println(\"Depois da compressão:\" + cnt);\n buffRead.close();\n output.close();\n }", "public static void decode() {\n int first = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int n = t.length();\n int[] count = new int[256 + 1];\n int[] next = new int[n];\n int i = 0;\n while (i < n) {\n count[t.charAt(i) + 1]++;\n i++;\n }\n i = 1;\n while (i < 256 + 1) {\n count[i] += count[i - 1];\n i++;\n }\n i = 0;\n while (i < n) {\n next[count[t.charAt(i)]++] = i;\n i++;\n }\n i = next[first];\n int c = 0;\n while (c < n){\n BinaryStdOut.write(t.charAt(i));\n i = next[i];\n c++;\n }\n BinaryStdOut.close();\n }", "public static void main(String args[])\n {\n Scanner s = new Scanner(System.in).useDelimiter(\"\");\n List<node> freq = new SinglyLinkedList<node>();\n \n // read data from input\n while (s.hasNext())\n {\n // s.next() returns string; we're interested in first char\n char c = s.next().charAt(0);\n if (c == '\\n') continue;\n // look up character in frequency list\n node query = new node(c);\n node item = freq.remove(query);\n if (item == null)\n { // not found, add new node\n freq.addFirst(query);\n } else { // found, increment node\n item.frequency++;\n freq.addFirst(item);\n }\n }\n \n // insert each character into a Huffman tree\n OrderedList<huffmanTree> trees = new OrderedList<huffmanTree>();\n for (node n : freq)\n {\n trees.add(new huffmanTree(n));\n }\n \n // merge trees in pairs until one remains\n Iterator ti = trees.iterator();\n while (trees.size() > 1)\n {\n // construct a new iterator\n ti = trees.iterator();\n // grab two smallest values\n huffmanTree smallest = (huffmanTree)ti.next();\n huffmanTree small = (huffmanTree)ti.next();\n // remove them\n trees.remove(smallest);\n trees.remove(small);\n // add bigger tree containing both\n trees.add(new huffmanTree(smallest,small));\n }\n // print only tree in list\n ti = trees.iterator();\n Assert.condition(ti.hasNext(),\"Huffman tree exists.\");\n huffmanTree encoding = (huffmanTree)ti.next();\n encoding.print();\n }", "private static void decode() throws IOException{\n File file = new File(_encodedBinFile);\n String longStringAsFile;\n \n //DataInputStream dis;\n FileWriter w;\n try {\n //dis = new DataInputStream(new FileInputStream(file));\n longStringAsFile = getLongStringAsFile();\n //dis.close();\n w = new FileWriter(\"decoded.txt\");\n Node traverser = root;\n for(int i=0; i < longStringAsFile.length(); i++){\n if(longStringAsFile.charAt(i) == '0'){\n //go to left\n if (traverser.getLeftPtr() == null){\n //fallen off the tree. Print to file\n if (i == longStringAsFile.length() - 1 ){\n w.write(((LeafNode)traverser).getData());\n }\n else{\n w.write(((LeafNode)traverser).getData() + \"\\n\");\n traverser = root.getLeftPtr();\n }\n }\n else{\n traverser = traverser.getLeftPtr();\n }\n }\n else{\n //go to right of tree\n if (traverser.getRightPtr() == null){\n //fallen off the tree. PRint to file\n if (i == longStringAsFile.length() - 1){\n w.write(((LeafNode)traverser).getData() );\n }\n else{\n w.write(((LeafNode)traverser).getData() + \"\\n\");\n traverser = root.getRightPtr();\n }\n\n }\n else{\n traverser = traverser.getRightPtr();\n }\n }\n \n }\n //dis.close();\n w.close();\n } catch (IOException ex) {\n Logger.getLogger(decoder.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public static void decode () {\n // read the input\n int firstThing = BinaryStdIn.readInt();\n s = BinaryStdIn.readString();\n char[] t = s.toCharArray();\n char[] firstColumn = new char[t.length];\n int [] next = new int[t.length];\n \n // copy array and sort\n for (int i = 0; i < t.length; i++) {\n firstColumn[i] = t[i];\n }\n Arrays.sort(firstColumn);\n \n // decode\n int N = t.length;\n int [] count = new int[256];\n \n // counts frequency of each letter\n for (int i = 0; i < N; i++) {\n count[t[i]]++;\n }\n \n int m = 0, j = 0;\n \n // fills the next[] array with appropriate values\n while (m < N) {\n int _count = count[firstColumn[m]];\n while (_count > 0) {\n if (t[j] == firstColumn[m]) {\n next[m++] = j;\n _count--;\n }\n j++;\n }\n j = 0;\n }\n \n // decode the String\n int _next = next.length;\n int _i = firstThing;\n for (int i = 0; i < _next; i++) {\n _i = next[_i];\n System.out.print(t[_i]);\n } \n System.out.println();\n }", "public static void main(String[] args) {\n TextFileGenerator textFileGenerator = new TextFileGenerator();\n HuffmanTree huffmanTree;\n Scanner keyboard = new Scanner(System.in);\n PrintWriter encodedOutputStream = null;\n PrintWriter decodedOutputStream = null;\n String url, originalString = \"\", encodedString, decodedString;\n boolean badURL = true;\n int originalBits, encodedBits, decodedBits;\n\n while(badURL) {\n System.out.println(\"Please enter a URL: \");\n url = keyboard.nextLine();\n\n try {\n originalString = textFileGenerator.makeCleanFile(url, \"original.txt\");\n badURL = false;\n }\n catch(IOException e) {\n System.out.println(\"Error: Please try again\");\n }\n }\n\n huffmanTree = new HuffmanTree(originalString);\n encodedString = huffmanTree.encode(originalString);\n decodedString = huffmanTree.decode(encodedString);\n // NOTE: TextFileGenerator.getNumChars() was not working for me. I copied the encoded text file (pure 0s and 1s)\n // into google docs and the character count is accurate with the String length and not the method\n originalBits = originalString.length() * 16;\n encodedBits = encodedString.length();\n decodedBits = decodedString.length() * 16;\n\n decodedString = fixPrintWriterNewLine(decodedString);\n\n try { // creating the encoded and decoded files\n encodedOutputStream = new PrintWriter(new FileOutputStream(\"src\\\\edu\\\\miracosta\\\\cs113\\\\encoded.txt\"));\n decodedOutputStream = new PrintWriter(new FileOutputStream(\"src\\\\edu\\\\miracosta\\\\cs113\\\\decoded.txt\"));\n encodedOutputStream.print(encodedString);\n decodedOutputStream.print(decodedString);\n }\n catch(IOException e) {\n System.out.println(\"Error: IOException!\");\n }\n\n encodedOutputStream.close();\n decodedOutputStream.close();\n\n System.out.println(\"Original file bit count: \" + originalBits);\n System.out.println(\"Encoded file bit count: \" + encodedBits);\n System.out.println(\"Decoded file bit count: \" + decodedBits);\n System.out.println(\"Compression ratio: \" + (double)originalBits/encodedBits);\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\t\tString input = \"\";\r\n\r\n\t\t//읽어올 파일 경로\r\n\t\tString filePath = \"C:/Users/user/Desktop/data13_huffman.txt\";\r\n\r\n\t\t//파일에서 읽어옴\r\n\t\ttry(FileInputStream fStream = new FileInputStream(filePath);){\r\n\t\t\tbyte[] readByte = new byte[fStream.available()];\r\n\t\t\twhile(fStream.read(readByte) != -1);\r\n\t\t\tfStream.close();\r\n\t\t\tinput = new String(readByte);\r\n\t\t}\r\n\r\n\t\t//빈도수 측정 해시맵 생성\r\n\t\tHashMap<Character, Integer> frequency = new HashMap<>();\r\n\t\t//최소힙 생성\r\n\t\tList<Node> nodes = new ArrayList<>();\r\n\t\t//테이블 생성 해시맵\r\n\t\tHashMap<Character, String> table = new HashMap<>();\r\n\r\n\t\t//노드와 빈도수 측정\r\n\t\tfor(int i = 0; i < input.length(); i++) {\r\n\t\t\tif(frequency.containsKey(input.charAt(i))) {\r\n\t\t\t\t//이미 있는 값일 경우 빈도수를 1 증가\r\n\t\t\t\tchar currentChar = input.charAt(i);\r\n\t\t\t\tfrequency.put(currentChar, frequency.get(currentChar) + 1);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//키를 생성해서 넣어줌\r\n\t\t\t\tfrequency.put(input.charAt(i), 1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//최소 힙에 저장\r\n\t\tfor(Character key : frequency.keySet()) \r\n\t\t\tnodes.add(new Node(key, frequency.get(key), null, null));\r\n\t\t\t\t\r\n\t\t//최소힙으로 정렬\r\n\t\tbuildMinHeap(nodes);\r\n\r\n\t\t//huffman tree를 만드는 함수 실행\r\n\t\tNode resultNode = huffman(nodes);\r\n\r\n\t\t//파일에 씀 (table)\r\n\t\ttry(FileWriter fw = new FileWriter(\"201702034_table.txt\")){\r\n\t\t\tmakeTable(table, resultNode, \"\");\r\n\t\t\tfor(Character key : table.keySet()) {\r\n\t\t\t\t//System.out.println(key + \" : \" + table.get(key));\r\n\t\t\t\tfw.write(key + \" : \" + table.get(key) + \"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//파일에 씀 (encoded code)\r\n\t\ttry(FileWriter fw = new FileWriter(\"201702034_encoded.txt\")){\r\n\t\t\tString allString = \"\";\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < input.length(); i++)\r\n\t\t\t\tallString += table.get(input.charAt(i));\r\n\r\n\t\t\t//System.out.println(allString);\r\n\t\t\tfw.write(allString);\r\n\t\t}\r\n\t}", "public void buildHuffmanList(File inputFile){\n try{\n Scanner sc = new Scanner(inputFile);\n while(sc.hasNextLine()){\n\n String line = sc.nextLine();\n for(int i =0;i<line.length();i++){\n \n if(freqTable.isEmpty())\n freqTable.put(line.charAt(i),1);\n else{\n if(freqTable.containsKey(line.charAt(i)) == false)\n freqTable.put(line.charAt(i),1);\n else{\n int oldValue = freqTable.get(line.charAt(i));\n freqTable.replace(line.charAt(i),oldValue+1);\n }\n }\n }\n }\n }\n catch(FileNotFoundException e){\n System.out.println(\"Can't find the file\");\n }\n }", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }", "public static void main(String[] args) throws IOException {\n char[][] key = new char[8][8];\n\n String[] lines = new String[8];\n\n File fileCardan = new File(\"cardan.txt\");\n\n Scanner fileScanner = new Scanner(fileCardan);\n\n for (int i = 0; i < 8; i++) {\n lines[i] = fileScanner.nextLine();\n }\n\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n key[i][j] = lines[i].charAt(j);\n }\n\n }\n\n // reading text from input.txt file and getting count of 64 char blocks\n String text = new String(Files.readAllBytes(Paths.get(\"input.txt\")));\n\n int blocksCount = text.length() / 64 + 1;\n\n FileWriter fw = new FileWriter(\"encode.txt\");\n\n // encoding all 64 char blocks\n for (int i = 0; i < blocksCount; i++) {\n\n char[][] res;\n if(64+i*64 > text.length())\n res = encode(key, text.substring(i*64));\n else\n res = encode(key, text.substring(i*64,64+i*64));\n fileWrite(res,fw);\n\n }\n\n fw.close();\n\n text = new String(Files.readAllBytes(Paths.get(\"encode.txt\")));\n\n fw = new FileWriter(\"decode.txt\");\n\n for (int i = 0; i < blocksCount; i++) {\n\n fw.write(decode(text.substring(i*64,i*64+64),key));\n\n }\n\n fw.close();\n\n\n\n }", "public void run() {\n\n\t\tScanner s = new Scanner(System.in); // A scanner to scan the file per\n\t\t\t\t\t\t\t\t\t\t\t// character\n\t\ttype = s.next(); // The type specifies our wanted output\n\t\ts.nextLine(); \n\n\t\t// STEP 1: Count how many times each character appears.\n\t\tthis.charFrequencyCount(s);\n\n\t\t/*\n\t\t * Type F only wants the frequency. Display it, and we're done (so\n\t\t * return)\n\t\t */\n\t\tif (type.equals(\"F\")) {\n\t\t\tdisplayFrequency(frequencyCount);\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t * STEP 2: we want to make our final tree (used to get the direction\n\t\t * values) This entails loading up the priority queue and using it to\n\t\t * build the tree.\n\t\t */\n\t\tloadInitQueue();\n\t\tthis.finalHuffmanTree = this.buildHuffTree();\n\t\t\n\t\t/*\n\t\t * Type T wants a level order display of the Tree. Do so, and we're done\n\t\t * (so return)\n\t\t */\n\t\tif (type.equals(\"T\")) {\n\t\t\tthis.finalHuffmanTree.visitLevelOrder(new HuffmanVisitorForTypeT());\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t * STEP 3: We want the Huffman code values for the characters.\n\t\t * The Huffman codes are specified by the path (directions) from the root.\n\t\t * \n\t\t * Each node in the tree has a path to get to it from the root. The\n\t\t * leaves are especially important because they are the original\n\t\t * characters scanned. Load every node with it's special direction value\n\t\t * (the method saves the original character Huffman codes, the direction\n\t\t * vals).\n\t\t */\n\t\tthis.loadDirectionValues(this.finalHuffmanTree.root);\n\t\t// Type H simply wants the codes... display them and we're done (so\n\t\t// return)\n\t\tif (type.equals(\"H\")) {\n\t\t\tthis.displayHuffCodesTable();\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t * STEP 4: The Type must be M (unless there was invalid input) since all other cases were exhausted, so now we simply display the file using\n\t\t * the Huffman codes.\n\t\t */\n\t\tthis.displayHuffCodefile();\n\t}", "public HuffmanCoding(String text) {\n\t\t// TODO fill this in.\n\t\tMap<Character, Integer> frequencyMap = new HashMap<>();\n\t\tint textLength = text.length();\n\n\t\tfor (int i = 0; i < textLength; i++) {\n\t\t\tchar character = text.charAt(i);\n\t\t\tif (!frequencyMap.containsKey(character)) {\n\t\t\t\tfrequencyMap.put(character, 1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint newFreq = frequencyMap.get(character) + 1;\n\t\t\t\tfrequencyMap.replace(character, newFreq);\n\t\t\t}\n\t\t}\n\n\t\tPriorityQueue<Node> queue = new PriorityQueue<>();\n\n\t\tIterator iterator = frequencyMap.entrySet().iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<Character, Integer> pair = (Map.Entry<Character, Integer>) iterator.next();\n\t\t\tNode node = new Node(null, null, pair.getKey(), pair.getValue());\n\t\t\tqueue.add(node);\n\t\t}\n\n\t\twhile (queue.size() > 1) {\n\t\t\tNode node1 = queue.poll();\n\t\t\tNode node2 = queue.poll();\n\t\t\tNode parent = new Node(node1, node2, '\\t', node1.getFrequency() + node2.getFrequency());\n\t\t\tqueue.add(parent);\n\t\t}\n\t\thuffmanTree = queue.poll();\n\t\tSystem.out.println(\"firstNode: \"+ huffmanTree);\n\t\tcodeTable(huffmanTree);\n\n\t\t//Iterator iterator1 = encodingTable.entrySet().iterator();\n\n\t\t/*\n\t\twhile (iterator1.hasNext()) {\n\t\t\tMap.Entry<Character, String> pair = (Map.Entry<Character, String>) iterator1.next();\n\t\t\tSystem.out.println(pair.getKey() + \" : \" + pair.getValue() + \"\\n\");\n\t\t}\n\t\t*/\n\n\t\t//System.out.println(\"Hashmap.size() : \" + frequencyMap.size());\n\n\t}", "public HuffmanImage(String src) throws IOException {\n img = Files.readAllBytes(Paths.get(src));\n }", "public static void expand() {\n Node root = readTrie();\n\n // number of bytes to write\n int length = BinaryStdIn.readInt();\n\n // decode using the Huffman trie\n for (int i = 0; i < length; i++) {\n Node x = root;\n while (!x.isLeaf()) {\n boolean bit = BinaryStdIn.readBoolean();\n if (bit) x = x.right;\n else x = x.left;\n }\n BinaryStdOut.write(x.ch, 8);\n }\n BinaryStdOut.close();\n }", "public HuffmanCoding(String text) {\n\t\t// TODO fill this in.\n\t\tif (text.length() <= 1)\n\t\t\treturn;\n\n\t\t//Create a the frequency huffman table\n\t\tHashMap<Character, huffmanNode> countsMap = new HashMap<>();\n\t\tfor (int i = 0; i < text.length(); i++) {\n\t\t\tchar c = text.charAt(i);\n\t\t\tif (countsMap.containsKey(c))\n\t\t\t\tcountsMap.get(c).huffmanFrequency++;\n\t\t\telse\n\t\t\t\tcountsMap.put(c, new huffmanNode(c, 1));\n\t\t}\n\n\t\t//Build the frequency tree\n\t\tPriorityQueue<huffmanNode> countQueue = new PriorityQueue<>(countsMap.values());\n\t\twhile (countQueue.size() > 1) {\n\t\t\thuffmanNode left = countQueue.poll();\n\t\t\thuffmanNode right = countQueue.poll();\n\t\t\thuffmanNode parent = new huffmanNode('\\0', left.huffmanFrequency + right.huffmanFrequency);\n\t\t\tparent.leftNode = left;\n\t\t\tparent.rightNode = right;\n\n\t\t\tcountQueue.offer(parent);\n\t\t}\n\n\t\thuffmanNode rootNode = countQueue.poll();\n\n\t\t//Assign the codes to each node in the tree\n\t\tStack<huffmanNode> huffmanNodeStack = new Stack<>();\n\t\thuffmanNodeStack.add(rootNode);\n\t\twhile (!huffmanNodeStack.empty()) {\n\t\t\thuffmanNode huffmanNode = huffmanNodeStack.pop();\n\n\t\t\tif (huffmanNode.huffmanValue != '\\0') {\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\thuffmanNode.codeRecord.forEach(sb::append);\n\t\t\t\tString codeSb = sb.toString();\n\n\t\t\t\tencodingTable.put(huffmanNode.huffmanValue, codeSb);\n\t\t\t\tdecodingTable.put(codeSb, huffmanNode.huffmanValue);\n\t\t\t}\n\t\t\telse {\n\t\t\t\thuffmanNode.leftNode.codeRecord.addAll(huffmanNode.codeRecord);\n\t\t\t\thuffmanNode.leftNode.codeRecord.add('0');\n\t\t\t\thuffmanNode.rightNode.codeRecord.addAll(huffmanNode.codeRecord);\n\t\t\t\thuffmanNode.rightNode.codeRecord.add('1');\n\t\t\t}\n\n\t\t\tif (huffmanNode.leftNode != null)\n\t\t\t\thuffmanNodeStack.add(huffmanNode.leftNode);\n\n\t\t\tif (huffmanNode.rightNode != null)\n\t\t\t\thuffmanNodeStack.add(huffmanNode.rightNode);\n\t\t}\n\t}", "private String decodeFile(String encodedFileName, int bit) throws Exception{\r\n\r\n\t\tdouble maxSize = Math.pow(2, bit);\r\n\r\n\t\t//InputStream and Reader to read the encoded file\r\n\t\tInputStream fileEncoded = new FileInputStream(encodedFileName);\r\n\t\tReader reader = new InputStreamReader(fileEncoded,\"UTF-16BE\");\r\n\t\tReader br = new BufferedReader(reader);\r\n\t\tint tableSize = 255;\r\n\r\n\t\tList<Integer> encodedList = new ArrayList<Integer>();\r\n\t\tdouble fileData = 0;\r\n\t\twhile((fileData = br.read())!=-1){\r\n\t\t\tencodedList.add((int)fileData);\r\n\t\t}\r\n\t\tbr.close();\r\n\r\n\t\t//Map to store the Character in a HashMap and then compare it to check the key or Value\r\n\t\tMap<Integer, String> charTable = new HashMap<Integer,String>();\r\n\t\tfor(int i =0; i<=255;i++){\r\n\t\t\tcharTable.put( i, \"\" + (char)i);\r\n\t\t}\r\n\t\t//Implementing the LZW algorithm\r\n\t\tString encodeValue = encodedList.get(0).toString();\r\n\t\tStringBuffer decodedStringBuffer = new StringBuffer();\r\n\r\n\t\tfor (int key:encodedList) {\r\n\r\n\t\t\tString value = \"\";\r\n\t\t\tif (charTable.containsKey(key))\r\n\t\t\t{\t//Storing the string from the HashMap to value\r\n\t\t\t\tvalue = charTable.get(key);\r\n\t\t\t}\r\n\t\t\telse if (key == tableSize)\r\n\t\t\t{//Append if key==tablesize to value\r\n\t\t\t\tvalue = encodeValue + encodeValue.charAt(0);\r\n\t\t\t}\r\n\t\t\tdecodedStringBuffer.append(value);\r\n\r\n\t\t\tif(tableSize < maxSize )\r\n\t\t\t{\t//If not present then checking tablesize with maxsize and adding into the HashMap\r\n\t\t\t\tcharTable.put(tableSize++, encodeValue + value.charAt(0));\r\n\t\t\t}\r\n\t\t\tencodeValue = value;\r\n\t\t}\r\n\t\t//Return the decodedStringBuffer which contains the decoded values\r\n\t\treturn decodedStringBuffer.toString();\r\n\t}", "public static void main(String[] args) {\n Huffman huffman=new Huffman(\"Shevchenko Vladimir Vladimirovich\");\n System.out.println(huffman.getCodeText());//\n //answer:110100001001101011000001001110111110110101100110110001001110101111100011101000011011000100111010111110001110100101110101111100000\n\n huffman.getSizeBits();//размер в битах\n ;//кол-во символов\n System.out.println((double) huffman.getSizeBits()/(huffman.getValueOfCharactersOfText()*8)); //коэффициент сжатия относительно aski кодов\n System.out.println((double) huffman.getSizeBits()/(huffman.getValueOfCharactersOfText()*\n (Math.pow(huffman.getValueOfCharactersOfText(),0.5)))); //коэффициент сжатия относительно равномерного кода. Не учитывается размер таблицы\n System.out.println(huffman.getMediumLenght());//средняя длина кодового слова\n System.out.println(huffman.getDisper());//дисперсия\n\n\n }", "public Hashtable<Character,Code> getHuffmanCodes(int numberOfCodes,Hashtable<String,Character> revCodes) throws IOException {\r\n\t\tbyte[] b;\r\n\t\tHashtable<Character,Code> codes = new Hashtable<>();\r\n\t\t for (int i = 0 ; i < numberOfCodes ; i++) {\r\n\t\t\t System.out.println(\"i = \" + i);\r\n\t\t\t // i create a stringBuilder that will hold the code for each character\r\n\t\t\t StringBuilder c = new StringBuilder();\r\n\t\t\t // read the integer (4 bytes)\r\n\t\t\t b = new byte[4];\r\n\t\t\t in.read(b);\r\n\t\t\t // will hold the 4 bytes\r\n\t\t\t int code = 0;\r\n\t\t\t \r\n\t\t\t /* beacuse we wrote the integer reversed in the head\r\n\t\t\t * so the first 2 bytes from the left will hold the huffman's code\r\n\t\t\t * we get the second one then stick it to the (code) value we shift it to the left \r\n\t\t\t * then we get the first one and stick it to the (code) without shifting it\r\n\t\t\t * so actually we swipe the first 2 bytes because they are reversed\r\n\t\t\t */\r\n\t\t\t code |= (b[1] & 0xFF);\r\n\t\t\t code <<= 8;\r\n\t\t\t code |= (b[0] & 0xFF);\r\n\t\t\t \r\n\t\t\t // this loop go throw the (code) n bits where n is the length of the huff code that stored in the 2nd index of the array\r\n\t\t\t for (int j = 0 ; j < (b[2] & 0xFF) ; j++) {\r\n\t\t\t\t /*\r\n\t\t\t\t * each loop we compare the first bit from the right using & operation ans if it 1 so insert 1 to he first of the (c) which hold the huff it self\r\n\t\t\t\t * and if it zero we will insert zero as a string for both zero or 1\r\n\t\t\t\t */\r\n\t\t\t\t if ((code & 1) == 1) {\r\n\t\t\t\t\t c.insert(0, \"1\");\r\n\t\t\t\t } else \r\n\t\t\t\t\t c.insert(0, \"0\");\r\n\t\t\t\t code >>>= 1;\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t// codes.put((char)(b[3] & 0xFF), new Code((char)(b[3] & 0xFF),c.toString(),rep2[b[0] & 0xFF]));\r\n\t\t\t System.out.println(\"c = \" + c);\r\n\t\t\t \r\n\t\t\t // we store the huff code as a key in the hash and its value will be the character that in the index 3\r\n\t\t\t revCodes.put(c.toString(), (char)(b[3] & 0xFF));\r\n\t\t\t \r\n\t\t }\r\n\t\t return codes;\r\n\t}", "private static void generateHuffmanTree(){\n try (BufferedReader br = new BufferedReader(new FileReader(_codeTableFile))) {\n String line;\n while ((line = br.readLine()) != null) {\n // process the line.\n if(!line.isEmpty() && line!=null){\n int numberData = Integer.parseInt(line.split(\" \")[0]);\n String code = line.split(\" \")[1];\n Node traverser = root;\n for (int i = 0; i < code.length() - 1; i++){\n char c = code.charAt(i); \n if (c == '0'){\n //bit is 0\n if(traverser.getLeftPtr() == null){\n traverser.setLeftPtr(new BranchNode(999999, null, null));\n }\n traverser = traverser.getLeftPtr();\n }\n else{\n //bit is 1\n if(traverser.getRightPtr() == null){\n traverser.setRightPtr(new BranchNode(999999, null, null));\n }\n traverser = traverser.getRightPtr();\n }\n }\n //Put data in the last node by creating a new leafNode\n char c = code.charAt(code.length() - 1);\n if(c == '0'){\n traverser.setLeftPtr(new LeafNode(9999999, numberData, null, null));\n }\n else{\n traverser.setRightPtr(new LeafNode(9999999, numberData, null, null));\n }\n }\n }\n } \n catch (IOException ex) {\n Logger.getLogger(FrequencyTableBuilder.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private int[] readCharacterFrequency(BitInputStream in) throws IOException {\r\n int[] freq = new int[n];\r\n for(int i = 0; i < n; i++){\r\n freq[i] = in.readInt();\r\n }\r\n return freq;\r\n }", "public String read() {\n\t\tString Line = \"\";\n\t\tInteger[] byteCodes = compressFileReader();\n\t\tif (byteCodes == null)\n\t\t\treturn null;\n\t\tint index = 0;\n\t\tint nextCode = byteCodes[index++];\n\t\tString val = readingMap[nextCode];\n\n\t\twhile (index < byteCodes.length - 1) {\n\t\t\tLine += val;\n\t\t\tnextCode = byteCodes[index++];\n\t\t\tString s = readingMap[nextCode];\n\t\t\tif (s == null) {\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tint i = 0;\n\t\t\t}\n\t\t\tif (readingkeysCount == nextCode)\n\t\t\t\ts = val + val.charAt(0);\n\t\t\tif (readingkeysCount < 256 + keysPossible)\n\t\t\t\treadingMap[readingkeysCount++] = val + s.charAt(0);\n\t\t\tval = s;\n\t\t}\n\t\tLine += val;\n\t\treturn Line + '\\n';\n\t}", "public Node createHuffmanTree(File f) throws FileNotFoundException {\r\n File file = f;\r\n FileInputStream fi = new FileInputStream(file);\r\n List<Node> nodes = new LinkedList<>();\r\n\r\n// Creating a map, where the key is characters and the values are the number of characters in the file\r\n Map<Character, Integer> charsMap = new LinkedHashMap<>();\r\n try (Reader reader = new InputStreamReader(fi);) {\r\n int r;\r\n while ((r = reader.read()) != -1) {\r\n char nextChar = (char) r;\r\n\r\n if (charsMap.containsKey(nextChar))\r\n charsMap.compute(nextChar, (k, v) -> v + 1);\r\n else\r\n charsMap.put(nextChar, 1);\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n//// Sort the map by value and create a list\r\n// charsMap = charsMap.entrySet().stream().sorted(Map.Entry.comparingByValue(Comparator.reverseOrder())).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\r\n\r\n// Creating a list of Nodes from a map\r\n for (Character ch : charsMap.keySet()) {\r\n nodes.add(new Node(ch, charsMap.get(ch), null, null));\r\n }\r\n\r\n// Creating a Huffman tree\r\n while (nodes.size() > 1) {\r\n Node firstMin = nodes.stream().min(Comparator.comparingInt(n -> n.count)).get();\r\n nodes.remove(firstMin);\r\n Node secondMin = nodes.stream().min(Comparator.comparingInt(n -> n.count)).get();\r\n nodes.remove(secondMin);\r\n\r\n Node newNode = new Node(null, firstMin.count + secondMin.count, firstMin, secondMin);\r\n newNode.left.count = null;\r\n newNode.right.count = null;\r\n nodes.add(newNode);\r\n nodes.remove(firstMin);\r\n nodes.remove(secondMin);\r\n }\r\n\r\n// Why first? See algorithm!\r\n nodes.get(0).count = null;\r\n return nodes.get(0);\r\n }", "public HuffmanCodes() {\n\t\thuffBuilder = new PriorityQueue<CS232LinkedBinaryTree<Integer, Character>>();\n\t\tfileData = new ArrayList<char[]>();\n\t\tfrequencyCount = new int[127];\n\t\thuffCodeVals = new String[127];\n\t}", "public LinkedList<BST> readHeader() {\n\t\tLinkedList<BST> leaves = new LinkedList<>();\n\t\n\t\tint codesProcessed;\t\t//Number of look-up items added to tree\n\n\t\t/*\n\t\t * Basic check: does header start with SOH byte?\n\t\t */\n\t\tgrabBits(8);\n\t\tif (!proc.equals(\"00000001\")) {\n\t\t\tSystem.out.println(\"File is corrupted or not compressed\");\n\t\t\treturn null;\n\t\t}\n\t\tSystem.out.println(proc);\n\t\tclear();\n\n\t\t/*\n\t\t * Determine number of codes to process.\n\t\t * Offset by +2 to allow for 257 unique codes.\n\t\t */\n\t\tgrabBits(8);\n\t\tint numCodes = Integer.parseInt(proc, 2) + 2;\n\t\tSystem.out.println(proc);\n\t\tclear();\n\n\t\t/*\n\t\t * Process look-up codes, reading NULL byte first\n\t\t */\n\t\tfor (int i = 0; i < numCodes; i++) {\n\t\t\t/* Get bitstring character code */\n\t\t\tif (i == 0) {\n\t\t\t\tgrabBits(4);\t//Null byte\n\t\t\t} else {\n\t\t\t\tgrabBits(8);\t//Regular byte\n\t\t\t}\n\t\t\tString bitstring = proc;\n\t\t\tSystem.out.print(bitstring + \"\\t\");\n\t\t\tclear();\n\n\t\t\t/* Get Huffman code length */\n\t\t\tgrabBits(8);\n\t\t\tint length = Integer.parseInt(proc, 2);\n\t\t\tSystem.out.print(length + \"\\t\");\n\t\t\tclear();\n\n\t\t\t/* Get Huffman code */\n\t\t\tgrabBits(length);\n\t\t\tString code = proc;\n\t\t\tSystem.out.println(code);\n\t\t\tclear();\n\n\t\t\t/* Build BST leaf for letter */\n\t\t\tBST leaf = new BST();\n\t\t\tBits symbol = new Bits(bitstring);\n\t\t\tsymbol.setCode(code);\n\t\t\tleaf.update(symbol);\n\t\t\tleaves.add(leaf);\n\t\t}\n\n\t\t/*\n\t\t * Does header end with STX byte?\n\t\t */\n\t\tgrabBits(8);\n\t\tif (!proc.equals(\"00000010\")) {\n\t\t\tSystem.out.println(\"Header corrupt: end of header without STX\");\n\t\t\treturn null;\n\t\t}\n\t\tclear();\n\n\t\treturn leaves;\n\t}", "protected int filterBytes()\n throws IOException {\n\n if (headerPending) {\n parseHeader();\n }\n\n //System.out.println(\"nEncoded: \" + nEncoded);\n //System.out.println(\"Current: \" + current);\n \n if (nEncoded <= current) {\n int br = readEncodedBytes();\n System.out.println(\"reb: \" + br);\n if (br < 0) {\n return -1;\n }\n }\n\n // bytes decoding loop\n int inserted = 0;\n while (current < nEncoded) {\n \t\n if (current < firstQuantum) {\n if (decode(current) == 0) {\n // this is the end of the encoded data\n parseTrailer();\n return inserted;\n }\n\n // store the expected number of raw bytes encoded in the line\n remaining = decode(current);\n current = firstQuantum;\n\n }\n\n if (encoded[current] == '\\n' && encoded[current + 1] != '\\n') {\n \t \n \t \n \t System.out.println(\"Cur rEad\");\n \t \n \t \n if (remaining != 0) {\n throw new IOException(\"encoded length inconsistent with encoded data\");\n }\n\n //System.out.println(\"Remaning: \" + remaining);\n \n // update state for next line\n firstQuantum = current + 2;\n\n } else if (encoded[current] == '\\n') {\n \t System.out.println(\"CurrEad\");\n \t current = current + 1;\n } else {\n // this is an encoded data byte\n int fByte;\n \n // combine the various 6-bits bytes to produce 8-bits bytes\n switch ((current - firstQuantum) % 4) {\n case 0:\n // nothing to do\n break;\n case 1:\n fByte = ((decode(current - 1) & 0x3F) << 2)\n | ((decode(current) & 0x30) >> 4);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n break;\n case 2:\n fByte = ((decode(current - 1) & 0x0F) << 4)\n | ((decode(current) & 0x3C) >> 2);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n break;\n default:\n fByte = ((decode(current - 1) & 0x03) << 6)\n | (decode(current) & 0x3F);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n \n }\n }\n\n ++current;\n\n }\n \n //System.out.println(inserted);\n\n // preserve current quantum for next round\n int start = current - ((current - firstQuantum) % 4);\n \n //System.out.println(\"FQ: \" + firstQuantum + \"S: \" + (char)encoded[current - 1]);\n \n //System.out.println(\"start: \" + start + \" nEenc-stsrt: \" + (nEncoded - start));\n \n if (firstQuantum < start) {\n System.arraycopy(encoded, start, encoded, 0, nEncoded - start);\n nEncoded -= start;\n current -= start;\n firstQuantum -= start;\n } else {\n \tnEncoded = 0;\n \tcurrent = 0;\n \tfirstQuantum = 0;\n }\n \n //System.out.println(\"out!\");\n //System.out.println (\"inserted == \" + inserted);\n \n return inserted;\n \n }", "@Override\r\n public void run() {\n File huffmanFolder = newDirectoryEncodedFiles(file, encodedFilesDirectoryName);\r\n File huffmanTextFile = new File(huffmanFolder.getPath() + \"\\\\text.huff\");\r\n File huffmanTreeFile = new File(huffmanFolder.getPath() + \"\\\\tree.huff\");\r\n\r\n\r\n try (FileOutputStream textCodeOS = new FileOutputStream(huffmanTextFile);\r\n FileOutputStream treeCodeOS = new FileOutputStream(huffmanTreeFile)) {\r\n\r\n\r\n// Writing text bits to file text.huff\r\n StringBuilder byteStr;\r\n while (boolQueue.size() > 0 | !boolRead) {\r\n while (boolQueue.size() > 8) {\r\n byteStr = new StringBuilder();\r\n\r\n for (int i = 0; i < 8; i++) {\r\n String s = boolQueue.get() ? \"1\" : \"0\";\r\n byteStr.append(s);\r\n }\r\n\r\n if (isInterrupted())\r\n break;\r\n\r\n byte b = parser.parseStringToByte(byteStr.toString());\r\n textCodeOS.write(b);\r\n }\r\n\r\n if (fileRead && boolQueue.size() > 0) {\r\n lastBitsCount = boolQueue.size();\r\n byteStr = new StringBuilder();\r\n for (int i = 0; i < lastBitsCount; i++) {\r\n String bitStr = boolQueue.get() ? \"1\" : \"0\";\r\n byteStr.append(bitStr);\r\n }\r\n\r\n for (int i = 0; i < 8 - lastBitsCount; i++) {\r\n byteStr.append(\"0\");\r\n }\r\n\r\n byte b = parser.parseStringToByte(byteStr.toString());\r\n textCodeOS.write(b);\r\n }\r\n }\r\n\r\n\r\n// Writing the info for decoding to tree.huff\r\n// Writing last bits count to tree.huff\r\n treeCodeOS.write((byte)lastBitsCount);\r\n\r\n// Writing info for Huffman tree to tree.huff\r\n StringBuilder treeBitsArray = new StringBuilder();\r\n treeBitsArray.append(\r\n parser.parseByteToBinaryString(\r\n (byte) codesMap.size()));\r\n\r\n codesMap.keySet().forEach(key -> {\r\n String keyBits = parser.parseByteToBinaryString((byte) (char) key);\r\n String valCountBits = parser.parseByteToBinaryString((byte) codesMap.get(key).length());\r\n\r\n treeBitsArray.append(keyBits);\r\n treeBitsArray.append(valCountBits);\r\n treeBitsArray.append(codesMap.get(key));\r\n });\r\n if ((treeBitsArray.length() / 8) != 0) {\r\n int lastBitsCount = boolQueue.size() / 8;\r\n for (int i = 0; i < 7 - lastBitsCount; i++) {\r\n treeBitsArray.append(\"0\");\r\n }\r\n }\r\n\r\n for (int i = 0; i < treeBitsArray.length() / 8; i++) {\r\n treeCodeOS.write(parser.parseStringToByte(\r\n treeBitsArray.substring(8 * i, 8 * (i + 1))));\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public String decode(String codedMessage) {\n StringBuilder result = new StringBuilder(); //Create a new stringbuilder\n BinaryTree<HuffData> currentTree = huffTree; //Get the Huffman Tree\n for (int i = 0; i < codedMessage.length(); i++) { //Loop through the coded message\n //If the character is a 1, set currentTree to the right subtree\n if(codedMessage.charAt(i) == '1') { \n currentTree = currentTree.getRightSubtree();\n } else { //If the character is a 0, set currentTree to the left subtree\n currentTree = currentTree.getLeftSubtree();\n }\n if(currentTree.isLeaf()) { //Once you hit a leaf\n HuffData theData = currentTree.getData(); //Get the data of the leaf\n result.append(theData.symbol); //Append the symbol to the stringbuilder\n currentTree = huffTree; //Reset the currentTree to be the entire tree\n }\n }\n //Return the string of the stringbuilder\n return result.toString();\n }", "public static void decode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n int c = BinaryStdIn.readChar();\r\n char t = charAtIndex[c];\r\n BinaryStdOut.write(t);\r\n for (int i = c - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = t;\r\n index[t] = 0;\r\n }\r\n BinaryStdOut.close(); \r\n }", "public void translate(BitInputStream input, PrintStream output) {\n HuffmanNode node = this.front;\n while (input.hasNextBit()) {\n while (node.left != null && node.right != null) {\n if (input.nextBit() == 0) {\n node = node.left;\n } else {\n node = node.right;\n }\n }\n output.print(node.getData());\n node = this.front;\n }\n }", "public void makeTree(){\n //convert Hashmap into charList\n for(Map.Entry<Character,Integer> entry : freqTable.entrySet()){\n HuffmanNode newNode = new HuffmanNode(entry.getKey(),entry.getValue());\n charList.add(newNode);\n }\n \n if(charList.size()==0)\n return;\n \n if(charList.size()==1){\n HuffmanNode onlyNode = charList.get(0);\n root = new HuffmanNode(null,onlyNode.getFrequency());\n root.setLeft(onlyNode);\n return;\n }\n \n Sort heap = new Sort(charList);\n heap.heapSort();\n \n while(heap.size()>1){\n \n HuffmanNode leftNode = heap.remove(0);\n HuffmanNode rightNode = heap.remove(0);\n \n HuffmanNode newNode = merge(leftNode,rightNode);\n heap.insert(newNode);\n heap.heapSort();\n }\n \n charList = heap.getList();\n root = charList.get(0);\n }", "public abstract char read_char();", "public int read() throws IOException {\n try {\n int code;\n\n // Read in and ignore empty bytes (NOP's) as long as they\n // arrive. \n do {\n\t code = readCode();\n\t } while (code == NOP); \n \n if (code >= BASE) {\n // Retrieve index of character in codeTable if the\n // code is in the correct range.\n return codeTable.charAt(code - BASE);\n } else if (code == RAW) {\n // read in the lower 4 bits and the higher 4 bits,\n // and return the reconstructed character\n int high = readCode();\n int low = readCode();\n return (high << 4) | low;\n } else \n throw new IOException(\"unknown compression code: \" + code);\n } catch (EOFException e) {\n // Return the end of file code\n return -1;\n }\n }", "public int uncompress(InputStream in, OutputStream out) throws IOException { \n int codeCount = 0;\n int code = 0;\n BitInputStream bitIn = new BitInputStream(in);\n StringBuilder codeString = new StringBuilder(0);\n\n\n // *** Bellow for building array of encoded values ****\n // ****************************************************\n // If the first character in the file is not a space, cannot decompress file\n codeCount = in.read();\n if(codeCount != 32){\n bitIn.close();\n return -1;\n }\n // Read in length of the code, then read the codes number of bits into the code array\n for (int i = 0; i < decodeArr.length; i++) {\n //read in number of bits (length of character code) \n codeCount = bitIn.read();\n \n // Create the code string (reads the number of bits found above)\n for (int j = 0; j < codeCount ; j++) {\n codeString.append(bitIn.readBits(1));\n }\n // Add the code string to the code array\n decodeArr[i] = codeString.toString();\n codeString = new StringBuilder(0);\n }\n // If the character has no code, make it null in array\n for (int i = 0; i < decodeArr.length; i++) {\n if(decodeArr[i].equals(\"0\")){decodeArr[i] = null;}\n }\n // ****************************************************\n // ****************************************************\n\n\n // ********** Bellow is the decoding process **********\n // ****************************************************\n // Slowly build a sting of binary comparing it to the codes in the map\n // Once a match is found, output the character associated with it.\n try{\n codeString = new StringBuilder(0);\n while (true) { \n // Read in one bit\n code = bitIn.readBits(1);\n // If -1 is returned, reached the end of file\n if(code == -1){break;}\n // Search the code array, writing the character of the code when found\n codeString.append(String.valueOf(code));\n for (int i = 0; i < decodeArr.length; i++) {\n if(decodeArr[i] != null){ // null means 0 count for a character\n // If the building code string matches a code in the map, write the associated character\n if(decodeArr[i].equals(codeString.toString())){\n out.write(i);\n // vv make ready for next code input\n codeString = new StringBuilder(0);\n }\n }\n }\n }\n }catch (IOException e){\n bitIn.close();\n throw e;\n }\n // ****************************************************\n // ****************************************************\n bitIn.close();\n return 0;\n }", "public static void main(String[] args) throws IOException {\n\n HuffmanTree huffman = null;\n int value;\n String inputString = null, codedString = null;\n\n while (true) {\n System.out.print(\"Enter first letter of \");\n System.out.print(\"enter, show, code, or decode: \");\n int choice = getChar();\n switch (choice) {\n case 'e':\n System.out.println(\"Enter text lines, terminate with $\");\n inputString = getText();\n printAdjustedInputString(inputString);\n huffman = new HuffmanTree(inputString);\n printFrequencyTable(huffman.frequencyTable);\n break;\n case 's':\n if (inputString == null)\n System.out.println(\"Please enter string first\");\n else\n huffman.encodingTree.displayTree();\n break;\n case 'c':\n if (inputString == null)\n System.out.println(\"Please enter string first\");\n else {\n codedString = huffman.encodeAll(inputString);\n System.out.println(\"Code:\\t\" + codedString);\n }\n break;\n case 'd':\n if (inputString == null)\n System.out.println(\"Please enter string first\");\n else if (codedString == null)\n System.out.println(\"Please enter 'c' for code first\");\n else {\n System.out.println(\"Decoded:\\t\" + huffman.decode(codedString));\n }\n break;\n default:\n System.out.print(\"Invalid entry\\n\");\n }\n }\n }", "private void splitHuffmanData()\n\t{\n\t\tbyte[] ext = new byte[fileArray[256]];\n\t\tint index = 0;\n\t\tfor(int i = 0; i < canonLengths.length; i++)\n\t\t{\n\t\t\tcanonLengths[i] = (int)(fileArray[i] & 0x0FF);\n\t\t\tindex++;\n\t\t}\n\t\tindex++;\n\t\t\n\t\tfor(int i = 0; i < ext.length; i++)\n\t\t\text[i] = fileArray[index++];\n\t\t\n\t\tfileExtension = new String(ext);\n\t\tbyte[] temp = fileArray;\n\t\tfileArray = new byte[\n\t\t temp.length - canonLengths.length - (ext.length + 1)];\n\t\t\n\t\tSystem.arraycopy(temp, index, fileArray, 0, fileArray.length);\n\t}", "public HuffmanNode(int freq, HuffmanNode left, HuffmanNode right){\r\n this.freq = freq;\r\n this.left = left;\r\n this.right = right;\r\n }", "public abstract char read_wchar();", "public static void compress(String s, String fileName) throws IOException {\n File file = new File(fileName);\n if (file.exists()){\n file.delete();\n }\n file.createNewFile();\n BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));\n char[] input = s.toCharArray();\n\n // tabulate frequency counts\n int[] freq = new int[R];\n for (int i = 0; i < input.length; i++)\n freq[input[i]]++;\n\n Node root = buildTrie(freq, out);\n\n // build code table\n String[] st = new String[R];\n buildCode(st, root, \"\");\n\n writeTrie(root, file);\n\n // print number of bytes in original uncompressed message\n BinaryStdOut.write(input.length);\n\n // use Huffman code to encode input\n for (int i = 0; i < input.length; i++) {\n String code = st[input[i]];\n for (int j = 0; j < code.length(); j++) {\n if (code.charAt(j) == '0') {\n BinaryStdOut.write(false);\n }\n else if (code.charAt(j) == '1') {\n BinaryStdOut.write(true);\n }\n else throw new IllegalStateException(\"Illegal state\");\n }\n }\n\n BinaryStdOut.close();\n }", "public static void main(String[] args) {\n Scanner teclado = new Scanner(System.in);\r\n String mensajeUsuario;\r\n System.out.println(\"Ingrese su mensaje:\");\r\n mensajeUsuario = teclado.nextLine();\r\n \r\n ArrayList inicial = new ArrayList<Nodo>();\r\n \r\n boolean valido = true;\r\n int contador = 0;\r\n //Se convierte el mensaje a una array de chars\r\n char [] arrayMensaje = mensajeUsuario.toCharArray();\r\n //Se cuenta la frecuencia de cada elemento\r\n for(char i: arrayMensaje){\r\n valido = true;\r\n Iterator itr = inicial.iterator();\r\n //Si el elemento que le toca no fue contado ya, es valido contar su frecuencia\r\n while (itr.hasNext()&&valido){\r\n Nodo element = (Nodo) itr.next();\r\n if (i==element.getCh()){\r\n valido = false;\r\n }\r\n }\r\n //Contar la frecuencia del elemento\r\n if (valido== true){\r\n Nodo temp = new Nodo();\r\n temp.setCh(i);\r\n for (char j:arrayMensaje){\r\n if (j==i){\r\n contador++;\r\n }\r\n }\r\n temp.setFreq(contador);\r\n inicial.add(temp);\r\n contador = 0;\r\n \r\n }\r\n }\r\n //Se recorre la lista generada de nodos para mostrar la frecuencia de cada elemento ene el orden en que aparecen\r\n System.out.println(\"elemento | frecuencia\");\r\n Iterator itr = inicial.iterator();\r\n while (itr.hasNext()){\r\n Nodo element = (Nodo)itr.next();\r\n System.out.println(element.getCh() + \" \"+ element.getFreq());\r\n }\r\n \r\n HuffmanTree huff = new HuffmanTree();\r\n huff.createTree(inicial);\r\n //System.out.println(huff.getRoot().getCh()+\" \"+huff.getRoot().getFreq());\r\n \r\n huff.codificar();\r\n System.out.println(\"elemento | frecuencia | codigo\");\r\n Iterator itrf= huff.getListaH().iterator();\r\n while(itrf.hasNext()){\r\n Nodo pivotal = (Nodo)itrf.next();\r\n System.out.println(pivotal.getCh() + \" \"+ pivotal.getFreq()+ \" \"+ pivotal.getCadena()); \r\n }\r\n \r\n System.out.println(\"Ingrese un codigo en base a la tabla anterior, separando por espacios cada nuevo caracter\");\r\n mensajeUsuario = teclado.nextLine();\r\n mensajeUsuario.indexOf(\" \");\r\n String mensajeFinal = \"\";\r\n String letra = \" \";\r\n String[] arrayDecode = mensajeUsuario.split(\" \");\r\n boolean codigoValido = true;\r\n for (String i: arrayDecode){\r\n if (codigoValido){\r\n letra = huff.decodificar(i);\r\n }\r\n if (letra.length()>5){\r\n codigoValido = false;\r\n }\r\n else {\r\n mensajeFinal = mensajeFinal.concat(letra);\r\n }\r\n }\r\n \r\n if (codigoValido){\r\n System.out.println(mensajeFinal);\r\n }\r\n else {\r\n System.out.println(\"El codigo ingresado no es valido\");\r\n }\r\n \r\n \r\n }", "public HuffmanNode(int freq){\r\n this(freq, null, null);\r\n }", "String shortRead();", "private void ScannerHuffmanCodeCreator(HuffmanNode node, String s, char c) {\n if (s.length() == 1) {\n if (s.charAt(0) == '0') {\n node.left = new HuffmanNode(c);\n } else {\n node.right = new HuffmanNode(c);\n }\n } else {\n if (s.charAt(0) == '0') {\n if (node.left == null && node.right == null) {\n node.left = new HuffmanNode();\n }\n ScannerHuffmanCodeCreator(node.left, s.substring(1), c);\n } else {\n if (node.right == null && node.right == null) {\n node.right = new HuffmanNode();\n }\n ScannerHuffmanCodeCreator(node.right, s.substring(1), c);\n }\n }\n }", "public static void decode() {\n char[] symbols = initializeSymbols();\n int position;\n while (!BinaryStdIn.isEmpty()) {\n position = BinaryStdIn.readChar();\n char symbol = symbols[position];\n BinaryStdOut.write(symbol, BITS_PER_BYTE);\n System.arraycopy(symbols, 0, symbols, 1, position);\n symbols[0] = symbol;\n }\n BinaryStdOut.close();\n }", "public HuffmanTree() {\r\n\t\tsuper();\r\n\t}", "public HuffmanNode(String v, int f)\n\t{\n\t\tfrequency = f;\n\t\tvalue = v;\n\t\tleft = null;\n\t\tright = null;\n\t}", "public void encode(File file) throws FileNotFoundException {\r\n HuffmanTreeCreator huffmanTreeCreator = new HuffmanTreeCreator();\r\n this.file = file;\r\n this.codesMap = huffmanTreeCreator.createCodesMap(huffmanTreeCreator.createHuffmanTree(file));\r\n this.charsQueue = new BlockingCharQueue(charQueueMaxLength);\r\n this.boolQueue = new BlockingBoolQueue(boolQueueMaxLength);\r\n\r\n fileRead = false;\r\n boolRead = false;\r\n charsQueue.setStopThread(false);\r\n boolQueue.setStopThread(false);\r\n\r\n\r\n CharReader charWriter = new CharReader();\r\n BoolReader bollWriter = new BoolReader();\r\n BitWriter bitWriter = new BitWriter();\r\n charWriter.start();\r\n bollWriter.start();\r\n bitWriter.start();\r\n\r\n// try {\r\n// Thread.sleep(4000);\r\n// } catch (InterruptedException e) {\r\n// e.printStackTrace();\r\n// }\r\n// System.out.println(\"Char writer is alive: \" + charWriter.isAlive());\r\n// System.out.println(\"Bool writer is alive: \" + bollWriter.isAlive());\r\n// System.out.println(\"Bit writer is alive: \" + bitWriter.isAlive());\r\n// System.out.println(codesMap);\r\n\r\n try {\r\n charWriter.join();\r\n bollWriter.join();\r\n bitWriter.join();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public char readChar()\r\n/* 441: */ {\r\n/* 442:454 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 443:455 */ return super.readChar();\r\n/* 444: */ }", "public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder decodedText = new StringBuilder();\n\t\tNode currentBit = huffmanTree;\n\t\tint index = 0;\n\t\t//System.out.println(currentBit.getLeft());\n\t\t//System.out.println(currentBit.getRight());\n\t\twhile (index < encoded.length()) {\n\t\t\tif (encoded.charAt(index) == '0') {\n\t\t\t\tif (currentBit.getLeft() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getLeft();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentBit.getRight() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getRight();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n if (index == encoded.length()) {\n decodedText.append(currentBit.getCharacter());\n }\n\t\t}\n System.out.println(\"EncondedText: \" + encoded);\n\t\tSystem.out.print(\"decodedText: \" + decodedText.toString());\n\t\treturn decodedText.toString();\n\n\t}", "public static void main(String[] args)\n {\n\t\t\tHuffman tree= new Huffman();\n \t \t Scanner sc=new Scanner(System.in);\n\t\t\tnoOfFrequencies=sc.nextInt();\n\t\t\t// It adds all the user input values in the tree.\n\t\t\tfor(int i=1;i<=noOfFrequencies;i++)\n\t\t\t{\n\t\t\t\tString temp=sc.next();\n\t\t\t\ttree.add(temp,sc.next());\n\t\t\t}\n\t\tint lengthToDecode=sc.nextInt();\n\t\tString encodedValue=sc.next();\n\t\t// This statement decodes the encoded values.\n\t\ttree.getDecodedMessage(encodedValue);\n\t\tSystem.out.println();\n\t\t}", "public static void main(String[] args) {\n int[] freqNums = scanFile(args[0]);\n HuffmanNode[] nodeArr = createNodes(freqNums);\n nodeArr = freqSort(nodeArr);\n HuffmanNode top = createTree(nodeArr);\n String empty = \"\";\n String[] encodings = new String[94];\n encodings = getCodes(top, empty, false, encodings, true);\n printEncoding(encodings, freqNums);\n writeFile(args[0], args[1], encodings);\n }", "public HuffmanNode(String key, int value)\n\t{\n\t\tcharacters = key;\n\t\tfrequency = value;\n\t\t\n\t\tleft = null;\n\t\tright = null;\n\t\tparent = null;\n\t\tchecked = false;\n\t}", "public static void decode() {\n char[] seq = new char[R];\n\n for (int i = 0; i < R; i++)\n seq[i] = (char) i;\n\n while (!BinaryStdIn.isEmpty()) {\n int index = BinaryStdIn.readChar();\n char c = seq[index];\n BinaryStdOut.write(seq[index]);\n\n for (int i = index; i > 0; i--)\n seq[i] = seq[i - 1];\n seq[0] = c;\n }\n BinaryStdOut.close();\n }", "@Test\r\n public void testEncode() throws Exception {\r\n System.out.println(\"encode\");\r\n String message = \"furkan\";\r\n \r\n HuffmanTree Htree = new HuffmanTree();\r\n\r\n HuffmanTree.HuffData[] symbols = {\r\n new HuffmanTree.HuffData(186, '_'),\r\n new HuffmanTree.HuffData(103, 'e'),\r\n new HuffmanTree.HuffData(80, 't'),\r\n new HuffmanTree.HuffData(64, 'a'),\r\n new HuffmanTree.HuffData(63, 'o'),\r\n new HuffmanTree.HuffData(57, 'i'),\r\n new HuffmanTree.HuffData(57, 'n'),\r\n new HuffmanTree.HuffData(51, 's'),\r\n new HuffmanTree.HuffData(48, 'r'),\r\n new HuffmanTree.HuffData(47, 'h'),\r\n new HuffmanTree.HuffData(32, 'b'),\r\n new HuffmanTree.HuffData(32, 'l'),\r\n new HuffmanTree.HuffData(23, 'u'),\r\n new HuffmanTree.HuffData(22, 'c'),\r\n new HuffmanTree.HuffData(21, 'f'),\r\n new HuffmanTree.HuffData(20, 'm'),\r\n new HuffmanTree.HuffData(18, 'w'),\r\n new HuffmanTree.HuffData(16, 'y'),\r\n new HuffmanTree.HuffData(15, 'g'),\r\n new HuffmanTree.HuffData(15, 'p'),\r\n new HuffmanTree.HuffData(13, 'd'),\r\n new HuffmanTree.HuffData(8, 'v'),\r\n new HuffmanTree.HuffData(5, 'k'),\r\n new HuffmanTree.HuffData(1, 'j'),\r\n new HuffmanTree.HuffData(1, 'q'),\r\n new HuffmanTree.HuffData(1, 'x'),\r\n new HuffmanTree.HuffData(1, 'z')\r\n };\r\n\r\n Htree.buildTree(symbols);\r\n \r\n String expResult = \"1100110000100101100001110100111\";\r\n String result = Htree.encode(message, Htree.huffTree);\r\n \r\n assertEquals(expResult, result);\r\n \r\n }", "public void setFrequencies() {\n\t\tleafEntries[0] = new HuffmanData(5000, 'a');\n\t\tleafEntries[1] = new HuffmanData(2000, 'b');\n\t\tleafEntries[2] = new HuffmanData(10000, 'c');\n\t\tleafEntries[3] = new HuffmanData(8000, 'd');\n\t\tleafEntries[4] = new HuffmanData(22000, 'e');\n\t\tleafEntries[5] = new HuffmanData(49000, 'f');\n\t\tleafEntries[6] = new HuffmanData(4000, 'g');\n\t}", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n StringReader stringReader0 = new StringReader(\"H+\\\"RE_]I95BDm\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char char0 = javaCharStream0.ReadByte();\n assertEquals('H', char0);\n }", "private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}", "static void experiment2Day1Part1() {\n\n File file = new File(\"src/main/java/weekone/input01.txt\");\n FileInputStream fis = null;\n\n try {\n fis = new FileInputStream(file);\n\n System.out.println(\"Total file size to read (in bytes) : \"\n + fis.available());\n\n int content;\n while ((content = fis.read()) != -1) {\n // convert to char and display it\n char converted = (char) content;\n System.out.print(converted);\n\n\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n\n }", "public Huffman(Collection<? extends SequenceElement> words, int CODE_LENGTH) {\n this.MAX_CODE_LENGTH = CODE_LENGTH;\n this.words = new ArrayList<>(words);\n Collections.sort(this.words, new Comparator<SequenceElement>() {\n @Override\n public int compare(SequenceElement o1, SequenceElement o2) {\n return Double.compare(o2.getElementFrequency(), o1.getElementFrequency());\n }\n\n });\n }", "public static void compress(String inFile) throws Exception{\n IO.Compressor compressor = new IO.Compressor(inFile);\n char[] charArray = compressor.getCharacters();\n Trie dictionary = new Trie();\n int num = 0; char ch;\n \n for(int i=0; i<charArray.length; ){\n\tString str = dictionary.find(charArray, i);\n\tdictionary.add(str);\n\tnum = dictionary.getIndex(str);\n\tch = dictionary.getChar(str);\n compressor.encode(num, ch);\n i += str.length();\n\n }//end for loop\n\n compressor.done();\n\n }", "private int Huffmancodebits( int [] ix, EChannel gi ) {\n\t\tint region1Start;\n\t\tint region2Start;\n\t\tint count1End;\n\t\tint bits, stuffingBits;\n\t\tint bvbits, c1bits, tablezeros, r0, r1, r2;//, rt, pr;\n\t\tint bitsWritten = 0;\n\t\tint idx = 0;\n\t\ttablezeros = 0;\n\t\tr0 = r1 = r2 = 0;\n\n\t\tint bigv = gi.big_values * 2;\n\t\tint count1 = gi.count1 * 4;\n\n\n\t\t/* 1: Write the bigvalues */\n\n\t\tif ( bigv!= 0 ) {\n\t\t\tif ( (gi.mixed_block_flag) == 0 && gi.window_switching_flag != 0 && (gi.block_type == 2) ) { /* Three short blocks */\n\t\t\t\t// if ( (gi.mixed_block_flag) == 0 && (gi.block_type == 2) ) { /* Three short blocks */\n\t\t\t\t/*\n Within each scalefactor band, data is given for successive\n time windows, beginning with window 0 and ending with window 2.\n Within each window, the quantized values are then arranged in\n order of increasing frequency...\n\t\t\t\t */\n\n\t\t\t\tint sfb, window, line, start, end;\n\n\t\t\t\t//int [] scalefac = scalefac_band_short; //da modificare nel caso si convertano mp3 con fs diversi\n\n\t\t\t\tregion1Start = 12;\n\t\t\t\tregion2Start = 576;\n\n\t\t\t\tfor ( sfb = 0; sfb < 13; sfb++ ) {\n\t\t\t\t\tint tableindex = 100;\n\t\t\t\t\tstart = scalefac_band_short[ sfb ];\n\t\t\t\t\tend = scalefac_band_short[ sfb+1 ];\n\n\t\t\t\t\tif ( start < region1Start )\n\t\t\t\t\t\ttableindex = gi.table_select[ 0 ];\n\t\t\t\t\telse\n\t\t\t\t\t\ttableindex = gi.table_select[ 1 ];\n\n\t\t\t\t\tfor ( window = 0; window < 3; window++ )\n\t\t\t\t\t\tfor ( line = start; line < end; line += 2 ) {\n\t\t\t\t\t\t\tx = ix[ line * 3 + window ];\n\t\t\t\t\t\t\ty = ix[ (line + 1) * 3 + window ];\n\n\t\t\t\t\t\t\tbits = HuffmanCode( tableindex, x, y );\n\t\t\t\t\t\t\tmn.add_entry( code, cbits );\n\t\t\t\t\t\t\tmn.add_entry( ext, xbits );\n\n\t\t\t\t\t\t\tbitsWritten += bits;\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tif ( gi.mixed_block_flag!= 0 && gi.block_type == 2 ) { /* Mixed blocks long, short */\n\t\t\t\t\tint sfb, window, line, start, end;\n\t\t\t\t\tint tableindex;\n\t\t\t\t\t//scalefac_band_long;\n\n\t\t\t\t\t/* Write the long block region */\n\t\t\t\t\ttableindex = gi.table_select[0];\n\t\t\t\t\tif ( tableindex != 0 )\n\t\t\t\t\t\tfor (int i = 0; i < 36; i += 2 ) {\n\t\t\t\t\t\t\tx = ix[i];\n\t\t\t\t\t\t\ty = ix[i + 1];\n\t\t\t\t\t\t\tbits = HuffmanCode( tableindex, x, y );\n\t\t\t\t\t\t\tmn.add_entry( code, cbits );\n\t\t\t\t\t\t\tmn.add_entry( ext, xbits );\n\t\t\t\t\t\t\tbitsWritten += bits;\n\t\t\t\t\t\t}\n\t\t\t\t\t/* Write the short block region */\n\t\t\t\t\ttableindex = gi.table_select[ 1 ];\n\n\t\t\t\t\tfor ( sfb = 3; sfb < 13; sfb++ ) {\n\t\t\t\t\t\tstart = scalefac_band_long[ sfb ];\n\t\t\t\t\t\tend = scalefac_band_long[ sfb+1 ];\n\n\t\t\t\t\t\tfor ( window = 0; window < 3; window++ )\n\t\t\t\t\t\t\tfor ( line = start; line < end; line += 2 ) {\n\t\t\t\t\t\t\t\tx = ix[ line * 3 + window ];\n\t\t\t\t\t\t\t\ty = ix[ (line + 1) * 3 + window ];\n\t\t\t\t\t\t\t\tbits = HuffmanCode( tableindex, x, y );\n\t\t\t\t\t\t\t\tmn.add_entry( code, cbits );\n\t\t\t\t\t\t\t\tmn.add_entry( ext, xbits );\n\t\t\t\t\t\t\t\tbitsWritten += bits;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else { /* Long blocks */\n\t\t\t\t\tint scalefac_index = 100;\n\n\t\t\t\t\tif ( gi.mixed_block_flag != 0 ) {\n\t\t\t\t\t\tregion1Start = 36;\n\t\t\t\t\t\tregion2Start = 576;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tscalefac_index = gi.region0_count + 1;\n\t\t\t\t\t\tregion1Start = scalefac_band_long[ scalefac_index ];\n\t\t\t\t\t\tscalefac_index += gi.region1_count + 1;\n\t\t\t\t\t\tregion2Start = scalefac_band_long[ scalefac_index ];\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int i = 0; i < bigv; i += 2 ) {\n\t\t\t\t\t\tint tableindex = 100;\n\t\t\t\t\t\tif ( i < region1Start ) {\n\t\t\t\t\t\t\ttableindex = gi.table_select[0];\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tif ( i < region2Start ) {\n\t\t\t\t\t\t\t\ttableindex = gi.table_select[1];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttableindex = gi.table_select[2];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* get huffman code */\n\t\t\t\t\t\tx = ix[i];\n\t\t\t\t\t\ty = ix[i + 1];\n\t\t\t\t\t\tif ( tableindex!= 0 ) {\n\t\t\t\t\t\t\tbits = HuffmanCode( tableindex, x, y );\n\t\t\t\t\t\t\tmn.add_entry( code, cbits );\n\t\t\t\t\t\t\tmn.add_entry( ext, xbits );\n\t\t\t\t\t\t\tbitsWritten += bits;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttablezeros += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t}\n\t\tbvbits = bitsWritten;\n\n\t\t/* 2: Write count1 area */\n\t\tint tableindex = gi.count1table_select + 32;\n\n\t\tcount1End = bigv + count1;\n\t\tfor (int i = bigv; i < count1End; i += 4 ) {\n\t\t\tv = ix[i];\n\t\t\tw = ix[i+1];\n\t\t\tx = ix[i+2];\n\t\t\ty = ix[i+3];\n\t\t\tbitsWritten += huffman_coder_count1(tableindex);\n\t\t}\n\n\t\t// c1bits = bitsWritten - bvbits;\n\t\t// if ( (stuffingBits = gi.part2_3_length - gi.part2_length - bitsWritten) != 0 ) {\n\t\t// int stuffingWords = stuffingBits / 32;\n\t\t// int remainingBits = stuffingBits % 32;\n\t\t//\n\t\t// /*\n\t\t// Due to the nature of the Huffman code\n\t\t// tables, we will pad with ones\n\t\t// */\n\t\t// while ( stuffingWords-- != 0){\n\t\t// mn.add_entry( -1, 32 );\n\t\t// }\n\t\t// if ( remainingBits!=0 )\n\t\t// mn.add_entry( -1, remainingBits );\n\t\t// bitsWritten += stuffingBits;\n\t\t//\n\t\t// }\n\t\treturn bitsWritten;\n\t}", "char getPreviousReadChar();", "public static String huffmanCoder(String inputFileName, String outputFileName){\n File inputFile = new File(inputFileName+\".txt\");\n File outputFile = new File(outputFileName+\".txt\");\n File encodedFile = new File(\"encodedTable.txt\");\n File savingFile = new File(\"Saving.txt\");\n HuffmanCompressor run = new HuffmanCompressor();\n \n run.buildHuffmanList(inputFile);\n run.makeTree();\n run.encodeTree();\n run.computeSaving(inputFile,outputFile);\n run.printEncodedTable(encodedFile);\n run.printSaving(savingFile);\n return \"Done!\";\n }", "public char[] newread(String filepath) {\n\n int x;\n char ch;\n numlines = 0;\n BufferedReader br = null;\n BufferedReader cr = null;\n /*stringBuilderdisp for storing data with new lines to display and stringBuilder\n seq for ignoring newlines and getting only sequence chars*/\n StringBuilder stringBuilderdisp = new StringBuilder();\n StringBuilder stringBuilderseq = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n\n int f = 0;\n\n try {\n\n String sCurrentLine;\n\n br = new BufferedReader(new FileReader(filepath));\n\n while ((sCurrentLine = br.readLine()) != null) {\n if (f == 0 && sCurrentLine.contains(\">\")) {\n fileinfo = sCurrentLine;\n f = 1;\n } else {\n stringBuilderdisp.append(sCurrentLine);\n numlines++;\n if (!(sCurrentLine.isEmpty())) {\n stringBuilderdisp.append(ls);\n }\n\n stringBuilderseq.append(sCurrentLine);\n\n }\n\n }\n\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"ERROR File not found\");\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (br != null) {\n br.close();\n }\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"ERROR File not found\");\n //ex.printStackTrace();\n return null;\n\n }\n }\n\n //System.out.println(\"Total lines=\" + numlines);\n\n String seqstr = stringBuilderseq.toString();\n\n sequence = new char[seqstr.length()];\n //extra charflag to indicate that sequence contains charecter other than A,G,C,T\n boolean extracharflag = false, checkindex = false;\n\n for (int i = 0; i < sequence.length; i++) {\n if (seqstr.charAt(i) != '\\n') {\n sequence[i] = seqstr.charAt(i);\n }\n if (extracharflag == false) {\n if ((sequence[i] != 'A') && (sequence[i] != 'T') && (sequence[i] != 'G') && (sequence[i] != 'C')) {//||sequence[i]!='C'||sequence[i]!='G'||sequence[i]!='T'){\n extracharflag = true;\n System.out.print(\"** \" + sequence[i]);\n }\n }\n }\n\n if (extracharflag) {\n // JOptionPane.showMessageDialog(null, \"Sequence Contains Characters other than A G C T\");\n }\n\n int index = 0, flag = 0;\n\n // JOptionPane.showMessageDialog(null, \"Read Successful\");\n //return the sequence with newline properties to display\n //return stringBuilderdisp.toString().toCharArray();\n return sequence;\n\n }", "protected char decode(char current) {\n int index = 0;\n charactersRead++;\n int startPos = charactersRead % keyword.length();\n changeCipher(keyword.charAt(startPos));\n\n for (int i = 0; i < cipher.length; i++) {\n if (cipher[i] == current)\n index = i;\n }\n return ALPHABET[index];\n }", "public static int compress(char[] chars) {\n int anchor = 0, write = 0;\n for (int read = 0; read < chars.length; read++){\n if (read + 1 == chars.length || chars[read + 1] != chars[read]){\n chars[write++] = chars[anchor];\n if (read > anchor) {\n// Integer.toString(read-anchor + 1)\n for (char c: (\"\" + (read - anchor + 1)).toCharArray()){\n chars[write++] = c;\n }\n }\n anchor = read + 1;\n }\n }\n return write;\n }", "public static void main(String[] args) throws IOException {\n\t\tString fname;\n\t\tFile file;\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tScanner inFile;\n\n\t\tString line, word;\n\t\tStringTokenizer token;\n\t\tint[] freqTable = new int[256];\n\n\t\tSystem.out.println (\"Enter the complete path of the file to read from: \");\n\n\t\tfname = keyboard.nextLine();\n\t\tfile = new File(fname);\n\t\tinFile = new Scanner(file);\n\n\t\twhile (inFile.hasNext()) {\n\t\t\tline = inFile.nextLine();\n\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\twhile (token.hasMoreTokens()) {\n\t\t\t\tword = token.nextToken();\n\t\t\t\tfreqTable = updateFrequencyTable(freqTable, word);\n\t\t\t}\n\t\t}\n\n\t\t//print frequency table\n\n\t\tSystem.out.println(\"Table of frequencies\");\n\t\tSystem.out.println(\"Character \\t Frequency \\n\");\n\n\t\tfor(int i=0; i<256; i++) {\n\t\t\tif (freqTable[i]>0)\n\t\t\t\tSystem.out.println(((char)i) + \"\\t\" + freqTable[i]);\n\t\t\t}\n\n\t\tQueue<BinaryTree<Pair>> S = buildQueue(freqTable);\n\n\t\tQueue<BinaryTree<Pair>> T = new Queue<BinaryTree<Pair>>();\n\n\t\tBinaryTree<Pair> huffmanTree = createTree(S, T);\n\n\t\tString[] encodingTable = findEncoding(huffmanTree);\n\n\t\tSystem.out.println(\"Encoding Table\");\n\t\tfor(int i=0; i<256; i++) {\n\t\t\tif (encodingTable[i]!=null)\n\t\t\t\tSystem.out.println(((char)i) + \"\\t\" + encodingTable[i]);\n\t\t}\n\t\tinFile.close();\n\t}", "public int[] headCode(Hashtable<Character,Code> codes,int[] rep) {\r\n\t\t\r\n\t\tint count = 0;\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0 ; i < rep.length ; i++) \r\n\t\t\tif (rep[i] > 0)\r\n\t\t\t\tcount++;\r\n\t\tint[] headArr = new int[count]; // create integer array that will hold the integer value for the every character information \r\n\t\t\r\n\t\tfor (int i = 0 ; i < rep.length ; i++) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (rep[i] > 0) {\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t\tint num = 0;\r\n\t\t\t\t\r\n\t\t\t\t//num |= codes.get((char)i).code.length();\r\n\t\t\t\t\r\n\t\t\t\tString c = codes.get((char)i).code; // get huffman code for the character from hash table which is O(1)\r\n\t\t\t\tSystem.out.println(c + \" \" + c.length());\r\n\t\t\t\tfor (int j = 0 ; j < c.length() ; j++) {\r\n\t\t\t\t\tnum <<= 1; // shift the integer by 1 bit to the left\r\n\t\t\t\t\tif (c.charAt(j) == '1') {\r\n\t\t\t\t\t\tnum |= 1; // make or operation for each digit of the huffman code with num that will contains the information\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnum |= 0; \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\tint ch = i; \r\n\t\t\t\tch <<= 24; // shift character value 24 bit to the left so that it will be in the first byte to the left of the integer\r\n\t\t\t\tint l = c.length();\r\n\t\t\t\tl <<= 16; // shift the length of huffman code 16 bit to the left so that it will be in the second byte to the left of the integer\r\n\t\t\t\tnum |= ch; // make or operation that will put the value of character to the fisrt byte of the integer\r\n\t\t\t\tnum |= l; // make of operation that will put the calue of huffman code to the second byte of the integer\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * integer representation >> 00000000000000000000000000000000\r\n\t\t\t\t * my representation >>\t ccccccccllllllllhhhhhhhhhhhhhhhh\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(num);\r\n\t\t\t\theadArr[counter++] = num;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn headArr;\r\n\t\t\r\n\t}", "public void mainDecoder(int b, Integer[] playedChord){\n\n while(beatCounter<b){\n for(int i =0; i < rhytm.get(beatCounter).length;i++)\n {\n if(rhytm.get(beatCounter)[i]!=null) {\n if ((!rhytm.get(beatCounter)[i].equals(\"Ri\")) && (!rhytm.get(beatCounter)[i].equals(\"Rs\"))) {\n\n //TODO DECODE HARMONIC NOTE AT EVERY FIRST AND THIRD BEAT AT FIRST NOTE PLAYED\n if (beatCounter % 2 == 0 && i == 0) {\n for (int j = 0; j < playedChord.length; j++) {\n if (playedChord[j] == melody.get(melodyCounter)) {\n if(j<2){\n binaryOutput+=\"0\";\n binaryOutput+=Integer.toBinaryString(j);\n }else{\n binaryOutput+=Integer.toBinaryString(j);\n }\n //todo SAVE FOR LATER COMPARISON\n if(beatCounter==0)\n firstChordNote=melody.get(melodyCounter);\n if(beatCounter==16)\n secondChordNote=melody.get(melodyCounter);\n\n previousNote = melody.get(melodyCounter);\n melodyCounter++;\n break;\n }\n }\n //TODO DECODE EVERY OTHER NOTE, ENCODED WITH AUTOMATON\n } else {\n //// TODO WAS MELODY ASCENDING OR DESCENDING\n if (previousNote >= 55 && previousNote <= 79)\n if (previousNote < melody.get(melodyCounter))\n binaryOutput+=\"1\";\n else\n binaryOutput+=\"0\";\n\n //todo WAS IT STEP OR LEAP\n for (int j = 0; j < melodyNotes.length; j++) {\n if (melodyNotes[j].equals(previousNote)) {\n previousNotePosition = j;\n break;\n }\n }\n for (int j = 0; j < melodyNotes.length; j++) {\n if (melodyNotes[j].equals(melody.get(melodyCounter))) {\n previousNote=melodyNotes[j];\n int difference = abs(j - previousNotePosition);\n if (difference > 1) {\n binaryOutput+=\"1\";\n binaryOutput+=new Integer(difference - 2).toString();\n } else\n binaryOutput+=\"0\";\n break;\n }\n }\n melodyCounter++;\n }\n }\n }\n }\n beatCounter++;\n }\n\n }", "public static void main(String args[]) {\n\t\t\r\n\t\tnew HuffmanEncode(\"book3.txt\", \"book3Comp.txt\");\r\n\t\t//do not add anything here\r\n\t}", "private void HuffmanPrinter(HuffmanNode node, String s, PrintStream output) {\n if (node.left == null) {\n output.println((byte) node.getData());\n output.println(s);\n } else {\n HuffmanPrinter(node.left, s + 0, output);\n HuffmanPrinter(node.right, s + 1, output);\n }\n }", "private char read() throws SAXException, IOException {\n for (;;) { // the loop is here for the CRLF case\n if (unreadBuffer != -1) {\n char c = (char) unreadBuffer;\n unreadBuffer = -1;\n return c;\n }\n assert (bufLen > -1);\n pos++;\n assert pos <= bufLen;\n linePrev = line;\n colPrevPrev = colPrev;\n colPrev = col;\n col++;\n if (pos == bufLen) {\n boolean charDataContinuation = false;\n if (cstart > -1) {\n flushChars();\n charDataContinuation = true;\n }\n bufLen = reader.read(buf);\n assert bufLen <= buf.length;\n if (bufLen == -1) {\n return '\\u0000';\n } else {\n for (int i = 0; i < characterHandlers.length; i++) {\n CharacterHandler ch = characterHandlers[i];\n ch.characters(buf, 0, bufLen);\n }\n }\n if (charDataContinuation) {\n cstart = 0;\n }\n pos = 0;\n }\n char c = buf[pos];\n if (c > '\\u007F' && nonAsciiProhibited\n && !alreadyComplainedAboutNonAscii) {\n err(\"The character encoding of the document was not explicit but the document contains non-ASCII.\");\n }\n switch (c) {\n case '\\n':\n /*\n * U+000D CARRIAGE RETURN (CR) characters, and U+000A LINE\n * FEED (LF) characters, are treated specially. Any CR\n * characters that are followed by LF characters must be\n * removed, and any CR characters not followed by LF\n * characters must be converted to LF characters.\n */\n if (prev == '\\r') {\n // swallow the LF\n colPrev = colPrevPrev;\n col = 0;\n if (cstart != -1) {\n flushChars();\n cstart = pos + 1;\n }\n prev = c;\n continue;\n } else {\n linePrev = line;\n line++;\n colPrevPrev = colPrev;\n colPrev = col;\n col = 0;\n }\n break;\n case '\\r':\n c = buf[pos] = '\\n';\n linePrev = line;\n line++;\n colPrevPrev = colPrev;\n colPrev = col;\n col = 0;\n prev = '\\r';\n if (contentModelFlag != ContentModelFlag.PCDATA) {\n prevFourPtr++;\n prevFourPtr %= 4;\n prevFour[prevFourPtr] = c;\n }\n return c;\n case '\\u0000':\n /*\n * All U+0000 NULL characters in the input must be replaced\n * by U+FFFD REPLACEMENT CHARACTERs. Any occurrences of such\n * characters is a parse error.\n */\n err(\"Found U+0000 in the character stream.\");\n c = buf[pos] = '\\uFFFD';\n break;\n case '\\u000B':\n case '\\u000C':\n if (inContent) {\n if (contentNonXmlCharPolicy == XmlViolationPolicy.FATAL) {\n fatal(\"This document is not mappable to XML 1.0 without data loss due to a character that is not a legal XML 1.0 character.\");\n } else {\n if (contentNonXmlCharPolicy == XmlViolationPolicy.ALTER_INFOSET) {\n c = buf[pos] = ' ';\n }\n warn(\"This document is not mappable to XML 1.0 without data loss due to a character that is not a legal XML 1.0 character.\");\n }\n }\n break;\n default:\n if ((c & 0xFC00) == 0xDC00) {\n // Got a low surrogate. See if prev was high surrogate\n if ((prev & 0xFC00) == 0xD800) {\n int intVal = (prev << 10) + c + SURROGATE_OFFSET;\n if (isNonCharacter(intVal)) {\n warn(\"Astral non-character.\");\n }\n if (isAstralPrivateUse(intVal)) {\n warnAboutPrivateUseChar();\n }\n } else {\n // XXX figure out what to do about lone high\n // surrogates\n err(\"Found low surrogate without high surrogate.\");\n c = buf[pos] = '\\uFFFD';\n }\n } else if (inContent && (c < ' ' || isNonCharacter(c))\n && (c != '\\t')) {\n if (contentNonXmlCharPolicy == XmlViolationPolicy.FATAL) {\n fatal(\"This document is not mappable to XML 1.0 without data loss due to a character that is not a legal XML 1.0 character.\");\n } else {\n if (contentNonXmlCharPolicy == XmlViolationPolicy.ALTER_INFOSET) {\n c = buf[pos] = '\\uFFFD';\n }\n warn(\"This document is not mappable to XML 1.0 without data loss due to a character that is not a legal XML 1.0 character.\");\n }\n } else if (isPrivateUse(c)) {\n warnAboutPrivateUseChar();\n }\n }\n prev = c;\n if (contentModelFlag != ContentModelFlag.PCDATA) {\n prevFourPtr++;\n prevFourPtr %= 4;\n prevFour[prevFourPtr] = c;\n }\n return c;\n }\n }", "char readChar();", "public void encodeData() {\n frequencyTable = new FrequencyTableBuilder(inputPath).buildFrequencyTable();\n huffmanTree = new Tree(new HuffmanTreeBuilder(new FrequencyTableBuilder(inputPath).buildFrequencyTable()).buildTree());\n codeTable = new CodeTableBuilder(huffmanTree).buildCodeTable();\n encodeMessage();\n print();\n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "public static void main(String[] args) throws IOException {\n File file = new File(\"Noten.txt\");\n FileInputStream fileInputStream = new FileInputStream(file);\n\n int byteRead;\n int count = 0;\n while ((byteRead = fileInputStream.read())!= -1) {\n char[] ch = Character.toChars(byteRead);\n System.out.println(ch[0]);\n count++;\n }\n System.out.println(count);\n fileInputStream.close();\n }", "private DecoderState readControlChars(ByteBuf in) {\n\n DecoderState nextState = DecoderState.READ_CONTROL_CHARS;\n\n int index = in.forEachByte(new ByteBufProcessor() {\n @Override\n public boolean process(byte b) throws Exception {\n switch (b) {\n // This is a little more lax than the spec which allows for only\n // EOL character(s) between frames.\n case ' ':\n case CARRIAGE_RETURN_CHAR:\n case LINE_FEED_CHAR:\n case NULL_CHAR:\n // ignore the character\n return true;\n\n default:\n return false;\n }\n }\n });\n\n if (index != -1) {\n // A non-control character was found so we skip up to that index and\n // move to the next state.\n in.readerIndex(index);\n nextState = DecoderState.READ_COMMAND;\n }\n else {\n // Discard all available bytes because we couldn't find a\n // non-control character.\n in.readerIndex(in.writerIndex());\n }\n\n return nextState;\n }", "@Override\n protected void read(){\n try(BufferedReader bufferedReader = new BufferedReader(new FileReader(getPath()));) {\n\n String frequencyString;\n\n String frequencyFileFormat = \"([a-z]\\\\s\\\\d+\\\\.\\\\d+)\";\n Pattern pattern = Pattern.compile(frequencyFileFormat);\n Matcher matcher;\n\n String[] frequency;\n\n // Read in each line of the frequencies file\n while ((frequencyString = bufferedReader.readLine()) != null) {\n // Match the frequency format to a individual frequency\n matcher = pattern.matcher(frequencyString);\n if(matcher.find()){\n\n // Split the string into the character and its frequency\n frequency = matcher.group(1).split(\" \");\n\n // Add the string and its corresponding frequency to the frequencies hash map\n frequencies.put(frequency[0], Double.parseDouble(frequency[1]));\n \n }\n }\n\n // Only set to true if it successfully reads the whole file\n setFileRead();\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }", "public static void encode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n char c = BinaryStdIn.readChar();\r\n BinaryStdOut.write((char)index[c]);\r\n for (int i = index[c] - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = c;\r\n index[c] = 0;\r\n }\r\n BinaryStdOut.close();\r\n }", "protected abstract int decodeLength ();", "void parse_ciff (int offset, int length)\n{\n int tboff, nrecs, c, type, len, save, wbi=-1;\n int key[] = new int[2];\n key[0] = 0x410;\n key[1] = 0x45f3;\n\n CTOJ.fseek (ifp, offset+length-4, CTOJ.SEEK_SET);\n tboff = get4() + offset;\n CTOJ.fseek (ifp, tboff, CTOJ.SEEK_SET);\n nrecs = get2();\n if (nrecs > 100) return;\n while (nrecs-- != 0) {\n type = get2();\n len = get4();\n save = CTOJ.ftell(ifp) + 4;\n CTOJ.fseek (ifp, offset+get4(), CTOJ.SEEK_SET);\n if ((((type >> 8) + 8) | 8) == 0x38)\n parse_ciff (CTOJ.ftell(ifp), len);\t/* Parse a sub-table */\n\n if (type == 0x0810)\n Uc.fread (artist, 64, 1, ifp);\n if (type == 0x080a) {\n Uc.fread (make, 64, 1, ifp);\n CTOJ.fseek (ifp, Uc.strlen(make) - 63, CTOJ.SEEK_CUR);\n Uc.fread (model, 64, 1, ifp);\n }\n if (type == 0x1810) {\n CTOJ.fseek (ifp, 12, CTOJ.SEEK_CUR);\n flip = get4();\n }\n if (type == 0x1835)\t\t\t/* Get the decoder table */\n tiff_compress = get4();\n if (type == 0x2007) {\n thumb_offset = CTOJ.ftell(ifp);\n thumb_length = len;\n }\n if (type == 0x1818) {\n get4();\n shutter = (float)Math.pow (2, -int_to_float((get4())));\n aperture = (float)Math.pow (2, int_to_float(get4())/2);\n }\n if (type == 0x102a) {\n get4();\n iso_speed = (float)Math.pow (2, (get2())/32.0 - 4) * 50;\n get2();\n aperture = (float)Math.pow (2, ((short)get2())/64.0);\n shutter = (float)Math.pow (2,-((short)get2())/32.0);\n get2();\n wbi = (get2());\n if (wbi > 17) wbi = 0;\n CTOJ.fseek (ifp, 32, CTOJ.SEEK_CUR);\n if (shutter > 1e6) shutter = (float)get2()/10.0f;\n }\n if (type == 0x102c) {\n if (get2() > 512) {\t\t/* Pro90, G1 */\n\tCTOJ.fseek (ifp, 118, CTOJ.SEEK_CUR);\n\tfor ( c=0; c<4;c++) cam_mul[c ^ 2] = get2();\n } else {\t\t\t\t/* G2, S30, S40 */\n\tCTOJ.fseek (ifp, 98, CTOJ.SEEK_CUR);\n\tfor ( c=0; c<4;c++) cam_mul[c ^ (c >> 1) ^ 1] = get2();\n }\n }\n if (type == 0x0032) {\n if (len == 768) {\t\t\t/* EOS D30 */\n\tCTOJ.fseek (ifp, 72, CTOJ.SEEK_CUR);\n\tfor ( c=0; c<4;c++) cam_mul[c ^ (c >> 1)] = 1024.0f / get2();\n\tif ( wbi==0 ) cam_mul[0] = -1;\t/* use my auto white balance */\n } else if ( cam_mul[0] == 0.0) {\n\tif (get2() == key[0]) {\t\t/* Pro1, G6, S60, S70 */\n CharPtr chaine = null;\n if (Uc.strstr(model,\"Pro1\") != null)\n\t chaine = new CharPtr(\"012346000000000000\");\n else\n chaine = new CharPtr(\"01345:000000006008\");\n c = chaine.charAt(wbi)-'0'+ 2;\n }\n\telse {\t\t\t\t/* G3, G5, S45, S50 */\n CharPtr chaine = new CharPtr(\"023457000000006000\");\n\t c = chaine.charAt(wbi)-'0';\n\t key[0] = key[1] = 0;\n\t}\n\tCTOJ.fseek (ifp, 78 + c*8, CTOJ.SEEK_CUR);\n\tfor ( c=0; c<4;c++) cam_mul[c ^ (c >> 1) ^ 1] = get2() ^ key[c & 1];\n\tif (wbi == 0) cam_mul[0] = -1;\n }\n }\n if (type == 0x10a9) {\t\t/* D60, 10D, 300D, and clones */\n if (len > 66) {\n CharPtr chaine = new CharPtr(\"0134567028\");\n wbi = chaine.charAt(wbi)-'0';\n }\n CTOJ.fseek (ifp, 2 + wbi*8, CTOJ.SEEK_CUR);\n for ( c=0; c<4;c++) cam_mul[c ^ (c >> 1)] = get2();\n }\n if (type == 0x1030 && (0x18040 >> wbi & 1) != 0)\n ciff_block_1030();\t\t/* all that don't have 0x10a9 */\n if (type == 0x1031) {\n get2();\n raw_width = (get2());\n raw_height = get2();\n }\n if (type == 0x5029) {\n focal_len = len >> 16;\n if ((len & 0xffff) == 2) focal_len /= 32;\n }\n if (type == 0x5813) flash_used = int_to_float(len);\n if (type == 0x5814) canon_ev = int_to_float(len);\n if (type == 0x5817) shot_order = len;\n if (type == 0x5834) unique_id = len;\n if (type == 0x580e) timestamp = len;\n if (type == 0x180e) timestamp = get4();\n /*\n#ifdef LOCALTIME\n if ((type | 0x4000) == 0x580e)\n timestamp = mktime (gmtime (&timestamp));\n#endif\n */\n CTOJ.fseek (ifp, save, CTOJ.SEEK_SET);\n }\n}", "protected void readCharacters() {\n try {\r\n File f = new File(filePath);\r\n FileInputStream fis = new FileInputStream(f);\r\n ObjectInputStream in = new ObjectInputStream(fis);\r\n characters = (List<character>) in.readObject();\r\n in.close();\r\n }\r\n catch(Exception e){}\r\n adapter.addAll(characters);\r\n }", "public static void encode () {\n // read the input\n s = BinaryStdIn.readString();\n char[] input = s.toCharArray();\n\n int[] indices = new int[input.length];\n for (int i = 0; i < indices.length; i++) {\n indices[i] = i;\n }\n \n Quick.sort(indices, s);\n \n // create t[] and find where original ended up\n char[] t = new char[input.length]; // last column in suffix sorted list\n int inputPos = 0; // row number where original String ended up\n \n for (int i = 0; i < indices.length; i++) {\n int index = indices[i];\n \n // finds row number where original String ended up\n if (index == 0)\n inputPos = i;\n \n if (index > 0)\n t[i] = s.charAt(index-1);\n else\n t[i] = s.charAt(indices.length-1);\n }\n \n \n // write t[] preceded by the row number where orginal String ended up\n BinaryStdOut.write(inputPos);\n for (int i = 0; i < t.length; i++) {\n BinaryStdOut.write(t[i]);\n BinaryStdOut.flush();\n } \n }", "public HuffmanNode (HuffmanNode left, HuffmanNode right) {\n \ttotalFrequency = left.totalFrequency + right.totalFrequency;\n \ttokens = new ArrayList<HuffmanToken>();\n \ttokens.addAll(left.tokens);\n \ttokens.addAll(right.tokens);\n \tfor(HuffmanToken node: left.tokens)\n \t\tnode.prependBitToCode(false);\n \tfor(HuffmanToken node: right.tokens)\n \t\tnode.prependBitToCode(true);\n \tthis.left = left;\n \tthis.right = right;\n \tCollections.sort(tokens, new HuffmanTokenComparator());\n }", "int filterBytes(GetsState gs) {\n ChannelBuffer buf;\n byte[] raw;\n int rawStart, rawEnd;\n char[] dst;\n int offset, toRead, /*dstNeeded,*/ spaceLeft, result, rawLen, length;\n TclObject obj;\n final int ENCODING_LINESIZE = 20; // Lower bound on how many bytes\n // to convert at a time. Since we\n // don't know a priori how many\n // bytes of storage this many\n // source bytes will use, we\n // actually need at least\n // ENCODING_LINESIZE bytes of room.\n\n boolean goto_read = false; // Set to true when jumping to the read\n // label, used to simulate a goto.\n\n final boolean debug = false;\n\n obj = gs.obj;\n\n // Subtract the number of bytes that were removed from channel buffer\n // during last call.\n\n buf = gs.buf;\n if (buf != null) {\n buf.nextRemoved += gs.rawRead.i;\n if (buf.nextRemoved >= buf.nextAdded) {\n buf = buf.next;\n }\n }\n gs.totalChars += gs.charsWrote.i;\n\n read: while (true) {\n if (goto_read || (buf == null) || (buf.nextAdded == buf.BUFFER_PADDING)) {\n // All channel buffers were exhausted and the caller still hasn't\n // seen EOL. Need to read more bytes from the channel device.\n // Side effect is to allocate another channel buffer.\n\n //read:\n if (blocked) {\n if (!blocking) {\n gs.charsWrote.i = 0;\n gs.rawRead.i = 0;\n return -1;\n }\n blocked = false;\n }\n if (getInput() != 0) {\n gs.charsWrote.i = 0;\n gs.rawRead.i = 0;\n return -1;\n }\n buf = inQueueTail;\n gs.buf = buf;\n }\n\n // Convert some of the bytes from the channel buffer to characters.\n // Space in obj's string rep is used to hold the characters.\n\n rawStart = buf.nextRemoved;\n raw = buf.buf;\n rawEnd = buf.nextAdded;\n rawLen = rawEnd - rawStart;\n\n toRead = ENCODING_LINESIZE;\n if (toRead > rawLen) {\n toRead = rawLen;\n }\n dst = new char[toRead];\n result = externalToUnicode(raw, rawStart, rawLen,\n dst, 0, toRead,\n gs.rawRead, /*gs.bytesWrote*/ null, gs.charsWrote,\n gs.charToBytes);\n TclString.append(gs.obj, dst, 0, gs.charsWrote.i);\n\n if (debug) {\n System.out.println(\"filterBytes chars\");\n\n String srep = gs.obj.toString();\n int len = srep.length();\n\n for (int i=0; i < len; i++) {\n char c = srep.charAt(i);\n String prep;\n if (c == '\\r') {\n prep = \"\\\\r\";\n } else if (c == '\\n') {\n prep = \"\\\\n\";\n } else {\n prep = \"\" + c;\n }\n\n System.out.println(\"filtered[\" + i + \"] = '\" +\n prep +\n \"' (int) \" + ((int) srep.charAt(i)) +\n \" 0x\" + Integer.toHexString((int) srep.charAt(i)));\n }\n }\n\n // Make sure that if we go through 'gets', that we reset the\n // TCL_ENCODING_START flag still. [Bug #523988]\n\n encodingStart = false;\n\n if (result == TCL_CONVERT_MULTIBYTE) {\n // The last few bytes in this channel buffer were the start of a\n // multibyte sequence. If this buffer was full, then move them to\n // the next buffer so the bytes will be contiguous. \n\n if (debug) {\n System.out.println(\"TCL_CONVERT_MULTIBYTE decode result found\");\n }\n\n ChannelBuffer next;\n int extra;\n\n next = buf.next;\n if (buf.nextAdded < buf.bufLength) {\n if (gs.rawRead.i > 0) {\n // Some raw bytes were converted to UTF-8. Fall through,\n // returning those UTF-8 characters because a EOL might be\n // present in them.\n } else if (eofCond) {\n // There was a partial character followed by EOF on the\n // device. Fall through, returning that nothing was found.\n\n buf.nextRemoved = buf.nextAdded;\n } else {\n // There are no more cached raw bytes left. See if we can\n // get some more.\n\n goto_read = true;\n continue read; //goto read;\n }\n } else {\n if (next == null) {\n next = new ChannelBuffer(bufSize);\n buf.next = next;\n inQueueTail = next;\n }\n extra = rawLen - gs.rawRead.i;\n System.arraycopy(raw, rawStart + gs.rawRead.i,\n next.buf, buf.BUFFER_PADDING - extra, extra);\n next.nextRemoved -= extra;\n buf.nextAdded -= extra;\n\n if (debug) {\n System.out.println(\"copied \" + extra + \" bytes to \" +\n \"next ChannelBuffer\");\n }\n }\n }\n\n break read; // End loop in the normal case\n } // End read labeled while loop\n\n gs.buf = buf;\n return 0;\n }", "private int readChar(boolean movePointer) throws Exception {\n if (_bi >= _blen) {\n _blen = _reader.read(_buf, 0, 2048);\n if (log) {\n StringBuffer sbBuffer = new StringBuffer();\n for (int i = 0; i < 300; i++) {\n sbBuffer.append(_buf[i]);\n }\n }\n log = false;\n\n _bi = 0;\n if (_blen < 0)\n return -1;\n }\n char ret = _buf[_bi];\n if (movePointer)\n _bi++;\n return ret;\n }" ]
[ "0.6371224", "0.6205063", "0.59080094", "0.5820265", "0.57077676", "0.5689978", "0.56763905", "0.5584242", "0.555228", "0.5539482", "0.5517534", "0.5479856", "0.5445054", "0.54205114", "0.5379548", "0.53779674", "0.5362948", "0.53619045", "0.5337907", "0.5327747", "0.53154147", "0.5292222", "0.527982", "0.5277782", "0.5251766", "0.52457756", "0.52384156", "0.52373016", "0.5234498", "0.5233668", "0.523027", "0.52186614", "0.5190865", "0.5166505", "0.5144267", "0.5130665", "0.5079363", "0.50773156", "0.50770557", "0.5031819", "0.49958998", "0.4988305", "0.49849492", "0.49807906", "0.49764854", "0.49641314", "0.49487373", "0.49403283", "0.49088356", "0.48905665", "0.48840153", "0.48783848", "0.4859077", "0.48375782", "0.48275724", "0.48104614", "0.47990146", "0.47866866", "0.47763056", "0.47688174", "0.47645348", "0.4755423", "0.47426298", "0.47157416", "0.46817443", "0.4672289", "0.4667272", "0.46649358", "0.4659716", "0.4654725", "0.46524635", "0.4636122", "0.46135986", "0.4605734", "0.45985103", "0.45901546", "0.4585039", "0.45757493", "0.4567995", "0.45630592", "0.45400596", "0.45114532", "0.4510343", "0.44990724", "0.4497814", "0.44871968", "0.44862777", "0.44842526", "0.44831496", "0.44746533", "0.44676033", "0.4464002", "0.44529384", "0.4442466", "0.44394842", "0.44314346", "0.44254974", "0.4420962", "0.44193313", "0.4418855" ]
0.59438956
2
Read a JSON value. The type of value is determined by the next 3 bits.
private Object readJSON() throws JSONException { switch(read(3)) { case zipObject: return readObject(); case zipArrayString: return readArray(true); case zipArrayValue: return readArray(false); case zipEmptyObject: return new JSONObject(); case zipEmptyArray: return new JSONArray(); case zipTrue: return Boolean.TRUE; case zipFalse: return Boolean.FALSE; default: return JSONObject.NULL; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object readValue();", "public <V> V readValue(byte[] bytes, Type valueType) throws JsonException {\n try (ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);\n JsonReader jsonReader = Json.createReader(inputStream)) {\n return toJavaObject(jsonReader.readValue(), valueType);\n } catch (JsonException e) {\n throw e;\n } catch (Exception e) {\n throw new JsonException(\"Unable to read value from json\", e);\n }\n }", "ValueType getJsonValueType();", "private static Object valueFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tbyte type = bytes.get();\n\t\t//System.out.println(\"From value: \" + new Integer(type).toString());\n\t\tswitch(type){\n\t\tcase MAP_INDICATOR:\n\t\t\t//System.out.println(\"MAP!\");\n\t\t\treturn mapFromBytes(bytes);\n\t\tcase ARRAY_INDICATOR:\n\t\t\treturn arrayFromBytes(bytes);\n\t\tcase STRING_INDICATOR:\n\t\t\t//System.out.println(\"STRING!\");\n\t\t\tint length = bytes.getInt();\n\t\t\tbyte[] stringBytes = new byte[length];\n\t\t\tbytes.get(stringBytes, 0, length);\n\t\t\treturn new String(stringBytes);\n\t\tcase INTEGER_INDICATOR:\n\t\t\treturn bytes.getInt();\n\t\tcase LONG_INDICATOR:\n\t\t\treturn bytes.getLong();\n\t\tcase DOUBLE_INDICATOR:\n\t\t\treturn bytes.getDouble();\n\t\tcase FLOAT_INDICATOR:\n\t\t\treturn bytes.getFloat();\n\t\tcase BOOLEAN_INDICATOR:\n\t\t\treturn bytes.get() == 1 ? 1: 0;\n\t\tdefault:\n\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t}\n\t\t\n\t\t\t\n\t\t\t\n\t}", "private int read(int width) throws JSONException\n {\n try\n {\n int value=this.bitreader.read(width);\n if(probe)\n {\n log(value,width);\n }\n return value;\n }\n catch(Throwable e)\n {\n throw new JSONException(e);\n }\n }", "private @NotNull Val finishReadingValue(@NotNull Tag tag) throws IOException, JsonFormatException {\n\n DatumType type = tag.type;\n @NotNull JsonToken token = currentToken();\n // null?\n if (token == JsonToken.VALUE_NULL) return type.createValue(null);\n // error?\n final @Nullable String firstFieldName;\n if (token == JsonToken.START_OBJECT) { // can be a record or an error\n firstFieldName = nextFieldName(); // advances to next token (field name or end object - in valid cases)\n if (JsonFormat.ERROR_CODE_FIELD.equals(firstFieldName)) return type.createValue(finishReadingError());\n } else firstFieldName = null;\n // datum\n final @NotNull Datum datum = finishReadingDatum(token, firstFieldName, type);\n return datum.asValue();\n }", "public <V> V readValue(Reader reader, Type valueType) throws JsonException {\n try (JsonReader jsonReader = Json.createReader(reader)) {\n return toJavaObject(jsonReader.readValue(), valueType);\n } catch (JsonException e) {\n throw e;\n } catch (Exception e) {\n throw new JsonException(\"Unable to read value from json\", e);\n }\n }", "public Object read() throws IOException {\n int code = 1;\n try {\n code = in.readUnsignedByte();\n } catch (EOFException eof) {\n return null;\n }\n if (code == Type.BYTES.code) {\n return new Buffer(readBytes());\n } else if (code == Type.BYTE.code) {\n return readByte();\n } else if (code == Type.BOOL.code) {\n return readBool();\n } else if (code == Type.INT.code) {\n return readInt();\n } else if (code == Type.LONG.code) {\n return readLong();\n } else if (code == Type.FLOAT.code) {\n return readFloat();\n } else if (code == Type.DOUBLE.code) {\n return readDouble();\n } else if (code == Type.STRING.code) {\n return readString();\n } else if (code == Type.VECTOR.code) {\n return readVector();\n } else if (code == Type.LIST.code) {\n return readList();\n } else if (code == Type.MAP.code) {\n return readMap();\n } else if (code == Type.MARKER.code) {\n return null;\n } else if (50 <= code && code <= 200) { // application-specific typecodes\n return new Buffer(readBytes());\n } else {\n throw new RuntimeException(\"unknown type\");\n }\n }", "public <V> V readValue(String jsonString, Type valueType) throws JsonException {\n try (StringReader reader = new StringReader(jsonString)) {\n return readValue(reader, valueType);\n }\n }", "private TsPrimitiveType readOneValue() {\n switch (dataType) {\n case BOOLEAN:\n return new TsBoolean(valueDecoder.readBoolean(valueInputStream));\n case INT32:\n return new TsInt(valueDecoder.readInt(valueInputStream));\n case INT64:\n return new TsLong(valueDecoder.readLong(valueInputStream));\n case FLOAT:\n return new TsFloat(valueDecoder.readFloat(valueInputStream));\n case DOUBLE:\n return new TsDouble(valueDecoder.readDouble(valueInputStream));\n case TEXT:\n return new TsBinary(valueDecoder.readBinary(valueInputStream));\n default:\n break;\n }\n throw new UnSupportedDataTypeException(\"Unsupported data type :\" + dataType);\n }", "public <T> T readValue() {\n return readObject();\n }", "public Object read();", "private @NotNull Val readValue(\n @NotNull DatumType typeBound,\n @NotNull List<MP> projections // non-empty\n ) throws IOException, JsonFormatException {\n nextNonEof();\n return finishReadingValue(typeBound, projections);\n }", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public native Object parse( Object json );", "abstract Object read(@NonNull JsonReader reader) throws IOException;", "public @NotNull T read(@NotNull final JsonObject object) throws JsonException;", "@Override\r\n\tpublic void parseJson(JSONObject json) {\n\t\tif(json == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\ttype = getInt(json,d_type);\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected abstract Object read ();", "public BencodeValue decode() throws IOException\t{\n if (this.getNextIndicator() == -1)\n return null;\n //depending on the possible value of indicator, we decode into an appropriate Object\n if (this.indicator >= '0' && this.indicator <= '9')\n return this.decodeBytes();\n else if (this.indicator == 'i')\n return this.decodeNumber();\n else if (this.indicator == 'l')\n return this.decodeList();\n else if (this.indicator == 'd')\n return this.decodeMap();\n else\n throw new BencodeFormatException\n (\"Unknown indicator '\" + this.indicator + \"'\");\n }", "public static AsonValue CreateFrom(byte data[]) throws java.io.IOException {\n if((data[0]&0x80)!=0) return new AsonParser().parse(new ByteArrayInputStream(data));\n return new JsonParser().parse(new String(data,\"UTF-8\"));\n }", "public VerificationType read(JsonReader jsonReader) {\n String nextString;\n kotlin.jvm.internal.i.f(jsonReader, \"reader\");\n if (jsonReader.peek() != JsonToken.NULL) {\n nextString = jsonReader.nextString();\n } else {\n jsonReader.skipValue();\n nextString = null;\n }\n return VerificationType.Companion.fromServerValue(nextString);\n }", "public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }", "public Object read() throws IOException, RecordIOException;", "private @NotNull Val finishReadingMonoValue(\n @NotNull DatumType type,\n @NotNull Collection<MP> tagModelProjections // non-empty\n ) throws IOException, JsonFormatException {\n\n JsonToken token = currentToken();\n assert !tagModelProjections.isEmpty();\n\n // null?\n if (token == JsonToken.VALUE_NULL) return type.createValue(null);\n // error?\n final @Nullable String firstFieldName;\n if (token == JsonToken.START_OBJECT) { // can be a record or an error\n firstFieldName = nextFieldName(); // advances to next token (field name or end object - in valid cases)\n if (JsonFormat.ERROR_CODE_FIELD.equals(firstFieldName)) return type.createValue(finishReadingError());\n } else firstFieldName = null;\n // datum\n final @NotNull Datum datum = finishReadingDatum(type, firstFieldName, tagModelProjections);\n return datum.asValue();\n }", "String byteOrBooleanRead();", "@Override\n\tpublic JSONObject readFrom(Class<JSONObject> arg0, Type arg1, Annotation[] arg2, MediaType arg3,\n\t\t\tMultivaluedMap<String, String> arg4, InputStream arg5) throws IOException, WebApplicationException {\n\t\ttry {\n\t\t\treturn new JSONObject(IOUtils.toString(arg5));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public abstract JsonParser.NumberType numberType();", "public T read(JsonReader in) throws IOException {\n\t return null;\n\t }", "private Object _getJSONTextValue() {\r\n if (_textValue != null) {\r\n switch (_type.getValue()) {\r\n case Type.BOOLEAN:\r\n return Boolean.valueOf(_textValue);\r\n case Type.NUMBER:\r\n return Double.valueOf(_textValue);\r\n default:\r\n return _textValue;\r\n }\r\n }\r\n return JSONNull.getInstance().toString();\r\n }", "private @NotNull Val finishReadingValue(\n @NotNull DatumType typeBound,\n @NotNull List<MP> projections // non-empty\n ) throws IOException, JsonFormatException {\n assert !projections.isEmpty();\n boolean readPoly = WireUtil.needPoly(typeBound, projections);\n\n JsonToken token = currentToken();\n final DatumType type;\n if (readPoly) {\n ensure(token, JsonToken.START_OBJECT);\n type = readModelType(projections);\n stepOver(JsonFormat.POLYMORPHIC_VALUE_FIELD); // \"data\"\n nextNonEof(); // position parser on first MONODATA token\n } else {\n DatumType projectionType = (DatumType) projections.get(projections.size() - 1)\n .type(); // effectiveType; // mostSpecificType(projections);\n type = projectionType.isAssignableFrom(typeBound) ? typeBound : projectionType; // pick most specific\n }\n\n Val result = finishReadingMonoValue(type, projections);\n\n if (readPoly) stepOver(JsonToken.END_OBJECT);\n\n return result;\n }", "public String readJson() {\n\t\t\tif (lastReadChar == ']') {\n\t\t\t\tSystem.out.println(\"Nunca deberia llegar a aca si usa hasNext()\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t// Si fue una coma, busco el siguiente '{'\n\t\t\twhile (read()!= '{');\n\t\t\t\n\t\t\tStringBuilder jsonText = new StringBuilder();\n\t\t\tjsonText.append((char) '{');\n\t\t\tlastReadChar = read();\n\t\t\t\n\t\t\twhile (lastReadChar != '}') { \n\t\t\t\tjsonText.append((char) lastReadChar);\n\t\t\t\tlastReadChar = read();\n\t\t\t} jsonText.append('}');\n\t\t\t\n\t\t\t// To satisfy Invariant: find the next ']' or ','\n\t\t\twhile (lastReadChar != ']' && lastReadChar != ',') lastReadChar = read(); \n\t\t\t\n\t\t\t//System.out.println(\"Analizando : \" + jsonText.toString());\n\t\t\treturn jsonText.toString();\n\t\t}", "protected Object readFixedType(BinaryReaderExImpl reader) throws BinaryObjectException {\n Object val = null;\n\n switch (mode) {\n case BYTE:\n val = reader.readByteNullable(id);\n\n break;\n\n case SHORT:\n val = reader.readShortNullable(id);\n\n break;\n\n case INT:\n val = reader.readIntNullable(id);\n\n break;\n\n case LONG:\n val = reader.readLongNullable(id);\n\n break;\n\n case FLOAT:\n val = reader.readFloatNullable(id);\n\n break;\n\n case DOUBLE:\n val = reader.readDoubleNullable(id);\n\n break;\n\n case CHAR:\n val = reader.readCharNullable(id);\n\n break;\n\n case BOOLEAN:\n val = reader.readBooleanNullable(id);\n\n break;\n\n case DECIMAL:\n val = reader.readDecimal(id);\n\n break;\n\n case STRING:\n val = reader.readString(id);\n\n break;\n\n case UUID:\n val = reader.readUuid(id);\n\n break;\n\n case DATE:\n val = reader.readDate(id);\n\n break;\n\n case TIMESTAMP:\n val = reader.readTimestamp(id);\n\n break;\n\n case TIME:\n val = reader.readTime(id);\n\n break;\n\n case BYTE_ARR:\n val = reader.readByteArray(id);\n\n break;\n\n case SHORT_ARR:\n val = reader.readShortArray(id);\n\n break;\n\n case INT_ARR:\n val = reader.readIntArray(id);\n\n break;\n\n case LONG_ARR:\n val = reader.readLongArray(id);\n\n break;\n\n case FLOAT_ARR:\n val = reader.readFloatArray(id);\n\n break;\n\n case DOUBLE_ARR:\n val = reader.readDoubleArray(id);\n\n break;\n\n case CHAR_ARR:\n val = reader.readCharArray(id);\n\n break;\n\n case BOOLEAN_ARR:\n val = reader.readBooleanArray(id);\n\n break;\n\n case DECIMAL_ARR:\n val = reader.readDecimalArray(id);\n\n break;\n\n case STRING_ARR:\n val = reader.readStringArray(id);\n\n break;\n\n case UUID_ARR:\n val = reader.readUuidArray(id);\n\n break;\n\n case DATE_ARR:\n val = reader.readDateArray(id);\n\n break;\n\n case TIMESTAMP_ARR:\n val = reader.readTimestampArray(id);\n\n break;\n\n case TIME_ARR:\n val = reader.readTimeArray(id);\n\n break;\n\n case OBJECT_ARR:\n val = reader.readObjectArray(id);\n\n break;\n\n case COL:\n val = reader.readCollection(id, null);\n\n break;\n\n case MAP:\n val = reader.readMap(id, null);\n\n break;\n\n case BINARY_OBJ:\n val = reader.readBinaryObject(id);\n\n break;\n\n case ENUM:\n val = reader.readEnum(id, field.getType());\n\n break;\n\n case ENUM_ARR:\n val = reader.readEnumArray(id, field.getType().getComponentType());\n\n break;\n\n case BINARY_ENUM:\n val = reader.readBinaryEnum(id);\n\n break;\n\n case BINARY:\n case OBJECT:\n val = reader.readObject(id);\n\n break;\n\n case CLASS:\n val = reader.readClass(id);\n\n break;\n\n default:\n assert false : \"Invalid mode: \" + mode;\n }\n\n return val;\n }", "public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}", "public Object parseAndClose(Reader reader, Type dataType) throws IOException {\n return mMapper.readValue(reader, dataType.getClass());\n }", "JsonObject raw();", "public static String readValue(String json, String path, String dflt) {\n\ttry {\n\t return readValue(new JSONObject(json),path, dflt);\n\t} catch(Throwable thr) {\n\t return dflt;\n\t}\n }", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "com.google.protobuf.ByteString getValue();", "org.apache.calcite.avatica.proto.Common.TypedValue getValue();", "Object nextValue() throws IOException;", "protected E readValue(LineReader reader, long indexElement) throws IOException {\n int length = (int) getValueLength(indexElement);\n if (length == 0) {\n return getValueConverter().bytesToValue(buffer, 0);\n }\n long valPos = getValuePosition(indexElement);\n if (log.isTraceEnabled()) {\n log.trace(\"readValue: Retrieving value of length \" + length + \" from file at position \" + valPos);\n }\n synchronized (this) {\n reader.seek(valPos);\n if (buffer.length < length) {\n buffer = new byte[length];\n }\n reader.readFully(buffer, 0, length);\n }\n/* for (int i = 0 ; i < length ; i++) {\n System.out.println(buffer[i]);\n }\n */\n return getValueConverter().bytesToValue(buffer, length);\n }", "@Test\n public void testunicode32() {\n assertEquals(\"\\uD834\\uDD1E\", JsonReader.read(\"\\\"\\\\uD834\\\\uDD1E\\\"\"));\n }", "<T> T fromJson(String source, JavaType type);", "Object decodeObject(Object value);", "@Test\n public void readUserClassPatient() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Patient\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Patient properly\", Factory.createUser(\"Patient\").getClass(), actual.getClass());\n }", "public abstract <T> void read(String path, ValueCallback<T> callback) throws ValueReadingException;", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "boolean shouldReadValue();", "public interface JsonValue {\n\n /**\n * The enum Value type.\n */\n enum ValueType\n {\n /**\n * Json object value type.\n */\n JSON_OBJECT,\n /**\n * Json array value type.\n */\n JSON_ARRAY,\n /**\n * Json string value type.\n */\n JSON_STRING,\n /**\n * Json number value type.\n */\n JSON_NUMBER,\n /**\n * Json boolean value type.\n */\n JSON_BOOLEAN\n }\n\n /**\n * Gets json value type.\n *\n * @return the json value type\n */\n ValueType getJsonValueType();\n\n}", "public T read() throws IOException;", "ValueType getValue();", "protected abstract T getValue(ByteBuffer b);", "public int getValue(String name) {\n String path = ITEMS_PATH + name + \".json\";\n HashMap<String, Integer> item = null;\n Gson gson = new Gson();\n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(path));\n Type type = new TypeToken<HashMap<String, Integer>>() {\n }.getType();\n item = gson.fromJson(bufferedReader, type);\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe);\n }\n return item.get(\"value\");\n }", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "com.google.protobuf.ByteString getVal();", "public Object getRawValue();", "public final JSONNode value() throws RecognitionException {\n JSONNode node = null;\n\n ValueNode literal5 = null;\n\n ArrayNode array6 = null;\n\n ObjectNode object7 = null;\n\n\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:32:3: ( literal | array | object )\n int alt4=3;\n switch ( input.LA(1) ) {\n case STRING:\n case NUMBER:\n case FPNUMBER:\n case TRUE:\n case FALSE:\n case NULL:\n {\n alt4=1;\n }\n break;\n case ARRAY:\n {\n alt4=2;\n }\n break;\n case OBJECT:\n {\n alt4=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n }\n\n switch (alt4) {\n case 1 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:32:5: literal\n {\n pushFollow(FOLLOW_literal_in_value132);\n literal5=literal();\n\n state._fsp--;\n\n node = literal5;\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:33:5: array\n {\n pushFollow(FOLLOW_array_in_value140);\n array6=array();\n\n state._fsp--;\n\n node = array6;\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:34:5: object\n {\n pushFollow(FOLLOW_object_in_value148);\n object7=object();\n\n state._fsp--;\n\n node = object7;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return node;\n }", "public abstract T parse(Object valueToParse, Type type);", "public <T extends TBase> T readValue(byte[] src, Class<T> valueType) throws IOException {\n\n Validate.notNull(src, \"Source byte array is null\");\n Validate.notNull(valueType, \"Value type is null\");\n\n T value;\n try {\n value = valueType.newInstance();\n } catch (Exception e) {\n String message = String.format(\"Unable to instantiate object of type %s\", valueType.toString());\n throw new IllegalArgumentException(message, e);\n }\n\n try {\n deserializer.deserialize(value, src);\n } catch (TException e) {\n throw new IOException(e);\n }\n return value;\n }", "private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignored) {\n throw expected(\"integer error code\");\n }\n stepOver(JsonFormat.ERROR_MESSAGE_FIELD);\n stepOver(JsonToken.VALUE_STRING, \"string value\");\n String message = currentText();\n // TODO read custom error properties here (if we decide to support these)\n stepOver(JsonToken.END_OBJECT);\n return new ErrorValue(errorCode, message, null);\n }", "@Test\n public void testDecodeObjectWithInvalidNumberTrailingE() throws Exception {\n try {\n JSONDecoder.decode(\"{ \\\"myValue\\\": 123456e }\");\n fail(\"Expected NumberFormatException\");\n } catch (Exception e) {\n assertEquals(NumberFormatException.class, findRootCause(e).getClass());\n }\n }", "protected <T> T deserialize(final String value, final Class<T> type) throws JsonDeserializationException {\n return json.deserialize(value, type);\n }", "public String read();", "@Override\n public long readSInt64() throws IOException {\n long value = decoder.readVarint64();\n return (value >>> 1) ^ -(value & 1);\n }", "public Serializable read_value( InputStream is ){\r\n\t return is.read_value( new UtcTBase() );\r\n }", "public static <T> T loadJson(String content, Class<T> valueType){\n return (T)JsonMapper.fromJsonString(content, valueType);\n }", "public Object get(int index) {\n\t\tif(!has(index)) throw new JSONException(\"Index out of range\");\n\t\treturn values.get(index);\n\t}", "@JsProperty String getValue();", "String read();", "String read();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "@Test\n public void readUserClassSecretary() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Secretary\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Secretary properly\", Factory.createUser(\"Secretary\").getClass(), actual.getClass());\n }", "private static final void byteJSONValue(Object value, ByteArrayOutputStream out) throws JSONException, IOException{\n\t\tByteBuffer fourByteBuffer = ByteBuffer.allocate(4);\n\t\tByteBuffer eightByteBuffer = ByteBuffer.allocate(8);\n\t\tif (value instanceof JSONArray){\n\t\t\t//byteJSONArray((JSONArray)value, out);\n\t\t\tJSONArray array = (JSONArray)value;\n\t\t\tint length = array.length();\n\t\t\tout.write(ARRAY_INDICATOR);\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putInt(length);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t\tfor (int i = 0; i < length; i++){\n\t\t\t\tbyteJSONValue(array.get(i),out);\n\t\t\t}\n\t\t}\n\t\telse if (value instanceof Integer){\n\t\t\tout.write(INTEGER_INDICATOR);\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putInt((Integer)value);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t}\n\t\telse if (value instanceof Long){\n\t\t\tout.write(LONG_INDICATOR);\n\t\t\teightByteBuffer.rewind();\n\t\t\teightByteBuffer.putLong((Long)value);\n\t\t\tout.write(eightByteBuffer.array());\n\t\t\t\n\t\t}\n\t\telse if (value instanceof Boolean){\n\t\t\tout.write(BOOLEAN_INDICATOR);\n\t\t\tif ((Boolean)value){\n\t\t\t\tout.write(1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tout.write(0);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if (value instanceof Float){\n\t\t\tout.write(FLOAT_INDICATOR);\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putFloat((Float)value);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t}\n\t\telse if (value instanceof Double){\n\t\t\tout.write(DOUBLE_INDICATOR);\n\t\t\teightByteBuffer.rewind();\n\t\t\teightByteBuffer.putDouble((Double)value);\n\t\t\tout.write(eightByteBuffer.array());\n\t\t}\n\t\telse if (value instanceof String){\n\t\t\tbyte[] stringBytes = ((String)value).getBytes();\n\t\t\tout.write(STRING_INDICATOR);\n\t\t\tint length = stringBytes.length;\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putInt(length);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t\tout.write(stringBytes);\n\t\t}\n\t\telse if (value instanceof JSONObject){\n\t\t\t//byteJSONObject((JSONObject)value, out);\n\t\t\tJSONObject json = (JSONObject) value;\n\t\t\t@SuppressWarnings(\"unchecked\") // Assumption: All keys in the json are strings.\n\t\t\tIterator<String> iterator = json.keys();\n\t\t\tint length = json.length();\n\t\t\tout.write(MAP_INDICATOR);\n\t\t\tfourByteBuffer.rewind();\n\t\t\tfourByteBuffer.putInt(length);\n\t\t\tout.write(fourByteBuffer.array());\n\t\t\twhile (iterator.hasNext()){\n\t\t\t\tString key = iterator.next();\n\t\t\t\tObject val = json.get(key);\n\t\t\t\tbyteJSONValue(key,out);\n\t\t\t\tbyteJSONValue(val,out);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tthrow new JSONException(\"UNKNOWN TYPE IN JSON!\");\n\t\t}\n\t}", "public static ValueMember read(InputStream paramInputStream) {\n/* 138 */ ValueMember valueMember = new ValueMember();\n/* 139 */ valueMember.name = paramInputStream.read_string();\n/* 140 */ valueMember.id = paramInputStream.read_string();\n/* 141 */ valueMember.defined_in = paramInputStream.read_string();\n/* 142 */ valueMember.version = paramInputStream.read_string();\n/* 143 */ valueMember.type = paramInputStream.read_TypeCode();\n/* 144 */ valueMember.type_def = IDLTypeHelper.read(paramInputStream);\n/* 145 */ valueMember.access = paramInputStream.read_short();\n/* 146 */ return valueMember;\n/* */ }", "public native Object parse( Object json, String texturePath );", "void mo350a(C0636l c0636l, JsonValue jsonValue);", "public IValuable parse(String value);", "Object getValueFrom();", "public abstract byte read_octet();", "public Object readData(CodedInputByteBufferNano codedInputByteBufferNano) {\n try {\n return codedInputByteBufferNano.readPrimitiveField(this.type);\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Error reading extension field\", e);\n }\n }", "public void deserialize(JsonObject src);", "protected static Object getObjectFromValue(Value value)\n {\n switch (value.getDataType())\n {\n case Boolean:\n return value.getBoolean();\n case Integer:\n return value.getInteger();\n case Long:\n return value.getLong();\n case Double:\n return value.getDouble();\n default:\n return value.getString();\n }\n }", "public Object read(int index) throws IOException, ArrayIndexOutOfBoundsException {\r\n if (line == null) {\r\n throw new IOException(\"No content available - did you remeber to call next?\");\r\n }\r\n\r\n AttributeDescriptor attType = type.getDescriptor(index);\r\n\r\n String stringValue = null;\r\n boolean isEmpty = \"\".equals(stringValue);\r\n try {\r\n // read the value\r\n stringValue = text[index];\r\n } catch (RuntimeException e1) {\r\n e1.printStackTrace();\r\n stringValue = null;\r\n }\r\n // check for special <null> flag\r\n if (\"<null>\".equals(stringValue)) {\r\n stringValue = null;\r\n isEmpty = true;\r\n }\r\n if (stringValue == null) {\r\n if (attType.isNillable()) {\r\n return null; // it was an explicit \"<null>\"\r\n }\r\n }\r\n // Use of Converters to convert from String to requested java binding\r\n Object value = Converters.convert(stringValue, attType.getType().getBinding());\r\n\r\n if (attType.getType() instanceof GeometryType) {\r\n // this is to be passed on in the geometry objects so the srs name gets encoded\r\n CoordinateReferenceSystem crs = ((GeometryType) attType.getType())\r\n .getCoordinateReferenceSystem();\r\n if (crs != null) {\r\n // must be geometry, but check anyway\r\n if (value != null && value instanceof Geometry) {\r\n ((Geometry) value).setUserData(crs);\r\n }\r\n }\r\n }\r\n return value;\r\n }", "public BencodeValue decodeBytes() throws IOException {\n int c = this.getNextIndicator();\n int num = c - '0';\n if (num < 0 || num > 9)\n throw new BencodeFormatException(\"Next char should be a digit, instead it is: '\"\n + (char)c + \"'\");\n this.indicator = 0;\n\n c = this.read();\n int i = c - '0';\n while (i >= 0 && i <= 9) {\n num = num*10 + i; //reconstruct a number digit by digit\n c = this.read();\n i = c - '0';\n }\n\n if (c != ':') {\n throw new BencodeFormatException(\"Next char should be a colon, instead it is: '\" +\n (char)c + \"'\");\n }\n return new BencodeValue(read(num));\n }", "@Test\n public void readUserClassDoctor() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Doctor\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Doctor properly\", Factory.createUser(\"Doctor\").getClass(), actual.getClass());\n }", "protected T _deserializeFromSingleValue(JsonParser p, DeserializationContext ctxt)\n throws IOException\n {\n final JsonDeserializer<?> valueDes = _valueDeserializer;\n final TypeDeserializer typeDeser = _valueTypeDeserializer;\n final JsonToken t = p.getCurrentToken();\n\n final Object value;\n\n if (t == JsonToken.VALUE_NULL) {\n if (_skipNullValues) {\n return _createEmpty(ctxt);\n }\n value = _nullProvider.getNullValue(ctxt);\n } else if (typeDeser == null) {\n value = valueDes.deserialize(p, ctxt);\n } else {\n value = valueDes.deserializeWithType(p, ctxt, typeDeser);\n }\n return _createWithSingleElement(ctxt, value);\n\n }", "String getValue(String type, String key);", "T mo512a(C0636l c0636l, JsonValue jsonValue);", "@Test\n public void readSystemObjectClassMedicine() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Medicine\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Medicine properly\", object.getClass(), actual.getClass());\n }", "public JValue getValue() {\n\t\treturn value;\n\t}", "@Test\n public void testDeSerialize() throws Exception {\n\n\n StructObjectInspector soi = (StructObjectInspector) instance.getObjectInspector();\n\n StructField sfr = soi.getStructFieldRef(\"stuff\");\n\n assertEquals(sfr.getFieldObjectInspector().getCategory(), ObjectInspector.Category.UNION);\n\n UnionObjectInspector uoi = (UnionObjectInspector) sfr.getFieldObjectInspector();\n\n // first, string\n Writable w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\":\\\"Italian\\\"}\");\n JSONObject result = (JSONObject) instance.deserialize(w);\n Object val = soi.getStructFieldData(result, sfr) ;\n assertEquals(\"Italian\", uoi.getField(val));\n\n uoi.getTypeName();\n\n // now, int\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\":2}\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertEquals(\"2\", val);\n assertEquals(0, uoi.getTag(val));\n\n // now, struct\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\": { \\\"a\\\": \\\"OK\\\" } }\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertTrue(val instanceof JSONObject);\n assertEquals(3, uoi.getTag(val));\n\n // now, array\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\": [ 1, 2 ] }\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertTrue(val instanceof JSONArray);\n assertEquals(2, uoi.getTag(val));\n }", "@Test\n public void readSystemObjectClassDoctorFeedback() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"DoctorFeedback\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return DoctorFeedback properly\", object.getClass(), actual.getClass());\n }" ]
[ "0.6739551", "0.666905", "0.64912426", "0.64743215", "0.6392956", "0.6349202", "0.613125", "0.60519505", "0.6041249", "0.59936357", "0.5891945", "0.583156", "0.5785544", "0.57751226", "0.568685", "0.566481", "0.562216", "0.561381", "0.559015", "0.555796", "0.54535896", "0.5448982", "0.54462284", "0.54191375", "0.54160726", "0.541334", "0.5406631", "0.539331", "0.5392933", "0.53638303", "0.53228796", "0.52828074", "0.5269648", "0.52263504", "0.52177495", "0.52140254", "0.5213748", "0.520781", "0.520781", "0.520781", "0.5207392", "0.5201958", "0.51899123", "0.51805514", "0.5165357", "0.51595795", "0.51580215", "0.51363695", "0.5131284", "0.5115314", "0.51152414", "0.5104242", "0.5103474", "0.5100006", "0.5089181", "0.5084498", "0.508416", "0.5081435", "0.50801426", "0.5074808", "0.5072813", "0.5072784", "0.50667673", "0.5065894", "0.5065634", "0.50649774", "0.5062451", "0.5055403", "0.5033548", "0.5032689", "0.5032539", "0.5032539", "0.50320715", "0.50320715", "0.50320715", "0.50320715", "0.50320715", "0.50320715", "0.50320715", "0.5025529", "0.50186837", "0.50054526", "0.5005085", "0.5004808", "0.49965942", "0.49903357", "0.4989614", "0.49873164", "0.4975873", "0.49561283", "0.49531853", "0.49459657", "0.49411154", "0.49321347", "0.49304432", "0.4928628", "0.4926323", "0.49157807", "0.49119312", "0.49099323" ]
0.6389723
5
Initializes the controller class.
public void initImages(ArrayList<Produit> l) { if (l.size() > 0) { loadImage1(l.get(0).getImg_url()); } if (l.size() > 1) { loadImage2(l.get(1).getImg_url()); } if (l.size() > 2) { loadImage3(l.get(2).getImg_url()); } if (l.size() > 3) { loadImage4(l.get(3).getImg_url()); } if (l.size() > 4) { loadImage5(l.get(4).getImg_url()); } if (l.size() > 5) { loadImage6(l.get(5).getImg_url()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public WorkerController(){\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
System.out.println(""); System.out.println("index :"+i); System.out.println("");
public void loadPreviousPage() { // System.out.println("index :"+i); // System.out.println("##########"); lisOfProduct = serv.read(); CurrP--; if (CurrP < nbP) { i = 0; indexOfImage = CurrP * 6 + i; loadImage1(lisOfProduct.get(x).getImg_url()); i++; x = CurrP * 6 + i; System.out.println(" i: " + i + "Curr: " + CurrP + "i in page: " + x); loadImage1(lisOfProduct.get(indexOfImage).getImg_url()); indexOfImage++; loadImage2(lisOfProduct.get(indexOfImage).getImg_url()); indexOfImage++; loadImage3(lisOfProduct.get(indexOfImage).getImg_url()); indexOfImage++; loadImage4(lisOfProduct.get(indexOfImage).getImg_url()); indexOfImage++; loadImage5(lisOfProduct.get(indexOfImage).getImg_url()); indexOfImage++; loadImage6(lisOfProduct.get(indexOfImage).getImg_url()); indexOfImage++; } indexOfImage -= 5; // IntStream.range(0, 1).forEach( // i -> next.fire() // ); // CurrP = 0; // i = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getIndex(){\r\n\t\treturn index;\r\n\t}", "public int getIndex(){\r\n \treturn index;\r\n }", "public static void main(String[] args) {\n\t\tint[] ia= {940,880,830,790,750,660,590,510,440};\n\t\tSystem.out.println(\"Size of the array \\\"ia\\\": \"+ia.length);\n\t\tSystem.out.println(\"First index of the array ia: \"+\"0\");\n\t\tSystem.out.println(\"Last index of the array ia: \"+(ia.length-1));\n\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[0]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[1]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[2]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[3]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[4]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[5]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[6]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[7]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[8]);\n\t\tSystem.out.println(\"Element of ia at index 0: \"+ia[9]);\n\t\t\n\t\tfor (int i = 0; i <= 9; i++) {\n\t\t\tSystem.out.println(\"Element of ia at index \"+i+\": \"+ia[i]);\n\t\t}\n\t\tfor (int i = 0; i <= ia.length; i++) {\n\t\t\tSystem.out.println(\"Element of ia at index \"+i+\": \"+ia[i]);\n\t\t}\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tSystem.out.println(\"Element of ia at index \"+i+\": \"+ia[i]);\n\t\t}\n\t\t\n\t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public void print(){\n\t\t\n\t\tfor(int i=0;i<maxindex;i++)\n\t\t{\n\t\t\tif(data[i] != 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(data[i]+\"x\"+i+\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n int i[]={10,20,30,40,50}; //Array declation //here 10 store in i[0] 20 stored in i[1] and onwards\r\n \r\n for (int j = 0; j < i.length; j++) {\r\n System.out.println(i[j]); //printing array elements with for loop\r\n }\r\n }", "int index();", "public final int getPos() { return i; }", "public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}", "@Override\r\n\tpublic void print()\r\n\t{\t//TODO méthode à compléter (TP1-ex11)\r\n\t\tfor (IndexEntry indexEntry : data) {\r\n\t\t\tif(indexEntry ==null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(indexEntry.toString());\r\n\t\t}\r\n\t}", "public int getIndex(\n )\n {return index;}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "private int getIndex()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"\");\n System.out.print(\"Indtast index: \");\n return scanner.nextInt();\n }", "public void setIndex(int i) {\n\t\t\n\t}", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "public int getIndex() {\n \t\treturn index;\n \t}", "public static void main(String[] args) {\n\t\tint lo = 1;\n\t\tint hi = 1;\n\t\tString mark;\n\t\tSystem.out.printf(\"1: %d%n\", lo);\n\t\tfor (int i = 2; i <= MAX_INDEX; i++) {\n\t\t\tif (hi % 2 == 0)\n\t\t\t\tmark = \" *\";\n\t\t\telse\n\t\t\t\tmark = \"\";\n\t\t//System.out.printf(i + \": \" + hi + mark);\n\t\tSystem.out.printf(\"%d: %d%s%n\", i, hi, mark);\n\t\thi = lo + hi;\n\t\tlo = hi - lo;\n\t\t}\n\t}", "public abstract void printOneValue(int index);", "void show() {\n System.out.println(\"i and j : \" + i + \" \" + j);\n }", "void show() {\n System.out.println(\"i and j : \" + i + \" \" + j);\n }", "public int getIndex() {\n\t\treturn 0;\n\t}", "int getIndex() {\n\t\treturn index;\n\t}", "public static void main(String[] args) {\nfor(int i=0;i<5;i++)\n{\n\tSystem.out.println(i);\n}\n\t}", "public static void main(String[] args) {\n\t\tint a[]=new int[5];\n\t\t// 2 4 9 5 1\n\t\t// 0 1 2 3 4 index\n\t\ta[0]=2;\n\t\ta[1]=4;\n\t\ta[2]=9;\n\t\ta[3]=5;\n\t\ta[4]=1;\n\t\t\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]+\" \");\n\t\t\t\n\t\t}\n\t}", "public static int getIndex(int i,int j){\r\n\t\t return i+(Variables.N+2)*j;\r\n\t }", "public static void main(String[] args) {\n\t\tint[] intArr2= {11,12,13,14,15};\n\t\tint index=2;\n\t\tSystem.out.println(\"length of array is \"+intArr2.length);\n\t\t\n\t\tif(intArr2.length>index)\n\t\t{\n\t\t\t\n\t\t\tSystem.out.println(\"index found value is \\n\"+intArr2[index]);\n\t\t\tfor(int i=0;i<=index;i++)\n\t\t\t{\n\t\t\t\t System.out.println(\"values are \"+ intArr2[i]);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"index not found at\");\n\t\t}\n\t\t\n\t\t\n\t\n\t\t}", "public int index();", "public int getIndex() { return this.index; }", "@Override\n\tpublic String toString() {\n\t\treturn index.toString();\n\t}", "public void printAll(){\nfor(int i=0;i<size ;i++){\n System.out.println(\"a[%d]\"+data[i]); \n}\n System.out.println(\"size\"+size); \n}", "@Override\n public String toString() {\n\t\treturn i+\",\"+j; \n }", "public static void main(String[] args) {\n\t\tint[] myList ={ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };\r\n\t\tfor (int j = 1; j <=myList.length; j++) {\r\n\t\t\tSystem.out.println(myList[1]);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\t\r\n\t\t\t}", "public static void main(String[] args) {\n int[] array = new int[6];\n array[0] = 33;\n int[] arr = { 2, 3, 5, 7 };\n \n //1 2,5 4,7\n for (int i = 0; i < arr.length; i++) {\n // for ctrl space to bring for loop\n //3,6\n System.out.println(arr[i]);\n\t}\n\n}", "public String toString() {\r\n return Integer.toString(index);\r\n }", "public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "public int getIndex()\n {\n return index;\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "public final int getIndex(){\n return index_;\n }", "public static void main(String[] args) {\n\t\tint[] abc = {2,3,4,2,5,5};\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"enter searching index\");\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println(abc[n]);\n\t\t\n\t\tint num = sc.nextInt();\n\t\tfor(int i=0;i<abc.length;i++)\n\t\t{\n\t\t\tif(num==abc[i])\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}", "public void displayAtIndex(int index)\r\n\t{\r\n\t\tif (index >= 1 && index <= numItems) \r\n\t\t{\r\n\t\t\tString book = bookArray[index -1];\r\n\t\t\tSystem.out.print(book);\r\n\t\t} else \r\n\t\t{ \r\n\t\t\tSystem.out.println(\"The index you specified is out of range\");\r\n\t\t} \r\n\t}", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "public void test(){\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.position[i][p]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.Ari[i][p]);\n\t\t\t}\n\t\t}\n\t}", "public void getResult (int i){\n\t\tString result = items.get(i).toString();\n\t\tformatText(result);\n\t System.out.println(result);\n\t}", "public int getIndex()\n {\n return index;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(i);\n\t}", "public static void main(String[] args) {\n int i=1; \n \n System.out.println(\"i++ : \"+ (i++) + \n \" || ++i :\" + (++i) +\n \" || i \"+ (i) +\n \", i++\"+ (i++) );\n \n \n }", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "public void print()\n {\n for (int i=0; i<list.length; i++)\n System.out.println(i + \":\\t\" + list[i]);\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public static void main(String[] args)\n {\n int[] array = { 32, 27, 64, 18, 95, 14, 90, 70, 60, 37 };\n System.out.printf(\"%s%8s%n\", \"Index\", \"Value\"); // column headings\n \n // output each array element's value\n for (int counter = 0; counter < array.length; counter++)\n System.out.printf(\"%5d%8d%n\", counter, array[counter]);\n}", "private static void print(int[] a) {\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.println(\"i is \"+ i +\" value is \"+ a[i]);\n\t\t}\n\t}", "public void printSpies(){\n \r\n for(int i =0;i<fibSpies.size();i++){\r\n \r\n System.out.println(\"index : \" + i + \" \" + fibSpies.get(i));\r\n \r\n }\r\n \r\n\r\n}", "public static void main(String[] args) {\n\t\t\n\t\tint i[]=new int[3];\n\t\t\n\t\ti[0]=10;\n\t\ti[1]=20;\n\t\ti[2]=30;\n\t\t\n\t\t//System.out.println(i[0]);\n\t\tfor(int j=0;j<i.length;j++)\n\t\t{\n\t\t\tSystem.out.println(i[j]);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n \n\t\tint[] arr= {1,2,3,5,3,6,7,1};\n\t\tSystem.out.println(FirstIndex(arr,0,3));\n\t}", "public static void main(String[] args) {\n\t\tint i[] = new int[10];\n\t\t//i[-1]=45;\n\t\ti[0]=10;\n\t\ti[1]=20;\n\t\ti[2]=30;\n\t\ti[3]=40;\n\t\ti[6]=80;\n\t\tSystem.out.println(\"+++++++++++++++++++++++++++++++++\");\n\t\tSystem.out.println(i[6]);\n\t\tSystem.out.println(\"+++++++++++++++++++++++++++++++++\");\n//\t\tSystem.out.println(i[0]);//10\n//\t\tSystem.out.println(i[4]);//ArrayIndexOutOfBoundsException\n//\t\tSystem.out.println(i[-1]);//ArrayIndexOutOfBoundsException\n\t\t\n for(int k=0;k<i.length;k++) {\n \t System.out.println(i[k]);\n }\n\t//2.double array\n double d[]= new double[2];\n d[0]=12.33;\n d[1]=13.55;\n \n \n //3.char array\n char c[]= new char[3];\n c[0]='s';\n c[1]='o';\n c[2]='w';\n \n //4.String array\n String names[]=new String[3];\n names[0]=\"divaya\";\n names[1]=\"ravi\";\n names[2]= \"kavitha\";\n \n System.out.println(names[0]);\n for(int f=0;f<names.length; f++) {\n \t System.out.println(names[f]);\n }\n System.out.println(\"======================\");\n //for each loop\n for(String e : names) {\n \t System.out.println(e);\n \t \n }\n \n \n\t}", "@Override\n\tpublic void selog(String c, String i) {\n\t\tSystem.out.println(c + \" : \" + i + \"\\n\");\n\t}", "private void info3(int i) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint[] input = {3,0,6,1,5};\n\t\tSystem.out.println(hIndex(input));\n\t}", "public static void main(String[] args) {\nArrayList<String>mylist =new ArrayList<String>();\r\nmylist.add(\"anu\");\r\nmylist.add(\"ammu\");\r\nmylist.add(\"renu\");\r\nSystem.out.println(mylist);\r\nfor(int i=0;i<3;i++)\r\n{\r\n\tSystem.out.println(i+\"=\" + mylist.get(i));\r\n}\r\n\t}", "public static void main(String[] args) {\n\n for(int i=1;i<0;i++)\n {\n System.out.println(i);\n }\n\n System.out.println(\"program ended\");\n\n // int i=1;\n // System.out.println(i);\n // i++;\n\n // System.out.println(i);\n // i++;\n\n // System.out.println(i);\n // i++;\n\n // System.out.println(i);\n // i++;\n\n // System.out.println(i);\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public static void main(String[] args) {\n\r\n\t\tint [] arreglo= {32,52,37,12,32,5};\r\n\t\t\r\n\t\tSystem.out.printf(\"%s %8s\\n\", \"Indice\",\"Valor\");\r\n\t\tfor(int contador=0;contador<arreglo.length;contador++)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"%5d %8d\\n\", contador,arreglo[contador]);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\tpublic int getIndexStep() {\n\t\t\r\n\t\treturn 2;\r\n\t}", "public int getIndex() {\n return index;\n }", "public static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Anisha sinhA\");\n\t\t\n\t\tSystem.out.println(\"index of h--\"+sb.indexOf(\"h\"));\n\t\t//System.out.println(\"last index of a--\"+sb.lastIndexOf(\"a\"));\n\t\t//System.out.println(\"5th position of a --\"+sb.charAt(5));\n\t\t\n\t\tSystem.out.println(\"5th position of a -->\"+sb.indexOf(\"a\", 5));\n\t\t\n\t\t\n\t\t\n\n\t}", "public int getIndex() {\r\n return index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public static void main(String[] args) {\nint i=10;\nint j=20;\n\nString x=\"lionel\";\nString y=\"messi\";\n\nSystem.out.println(i+j);\nSystem.out.println(x+y);\nSystem.out.println(x+y+i);\nSystem.out.println(x+i+j);\nSystem.out.println(\"helloworld\");\nSystem.out.println(\"the value of i is:\"+i);\n\t}", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public int getIndex();", "public int getIndex();", "public int getIndex();", "@Override\n public String toString() {\n\treturn \"\"+rowIndex+colIndex; \n }", "final void jbk()\n\t{\n\t\tfor(int i=0;i<5;i++)\n\t\t\tSystem.out.println(\"value of i=n\"+i);\n\t\t}", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public static void main(String[] args) {\n\t\tint arr[] = {4,3,6,1,7,2};\r\n\t\tquick(arr,0,arr.length-1);\r\n\t\tfor(int i :arr){\r\n\t\t\tSystem.out.print(i+\" \");\r\n\t\t}\r\n\t}", "public int i() {\n \treturn i; \n }" ]
[ "0.67145914", "0.65625423", "0.64793754", "0.64603233", "0.64603233", "0.6417402", "0.6403859", "0.63936013", "0.6332785", "0.6329237", "0.63156825", "0.6309979", "0.6304934", "0.6304934", "0.6304934", "0.6287191", "0.6284219", "0.6280712", "0.6275039", "0.62701124", "0.626212", "0.6251908", "0.62258846", "0.62258846", "0.62251925", "0.6217787", "0.6192916", "0.6180013", "0.61700857", "0.6169482", "0.6157834", "0.61487854", "0.6146523", "0.61328524", "0.6117214", "0.6113592", "0.6101081", "0.6087797", "0.608702", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.6071607", "0.60707724", "0.60695374", "0.6062639", "0.60576487", "0.6052673", "0.6051069", "0.6041108", "0.6031543", "0.60286236", "0.6023229", "0.6022808", "0.60159343", "0.6011533", "0.6002977", "0.60029083", "0.60029083", "0.60029083", "0.5995753", "0.59946084", "0.5994181", "0.59767526", "0.59683555", "0.59644383", "0.59488195", "0.59475297", "0.59468764", "0.5942487", "0.5936865", "0.5932533", "0.59319484", "0.5931118", "0.59244525", "0.59098554", "0.59015393", "0.5898131", "0.5898131", "0.58774513", "0.5865082", "0.5865082", "0.5865082", "0.58511996", "0.58511996", "0.58511996", "0.58463556", "0.58412087", "0.58404565", "0.5839582", "0.58369076", "0.58135617" ]
0.0
-1
This function sets motor speeds, will set to static speed when bumper is pressed There is a debug at the end
public void setMotors(final double speed, double spinnerSafetySpeedMod) { spinnerMotorCan.set(ControlMode.PercentOutput, speed); /// DEBUG CODE /// if (RobotMap.driveDebug) { System.out.println("Spinner Speed : " + speed); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setMotorSpeed(double speed){\n setLeftMotorSpeed(speed);\n setRightMotorSpeed(speed);\n }", "private void updateMotors() {\n\t\t//Pass filtered values to ChopperStatus.\n\t\tmStatus.setMotorFields(mMotorSpeed);\n\t\tString logline = Long.toString(System.currentTimeMillis()) + \" \" + mMotorSpeed[0] + \" \" + mMotorSpeed[1] + \" \" + mMotorSpeed[2] + \" \" + mMotorSpeed[3] + \"\\n\";\n\t\ttry {\n\t\t\tif (logfile != null) {\n\t\t\t\tlogfile.write(logline);\n\t\t\t\tlogfile.flush();\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\t//Log.e(TAG, \"Cannot write to logfile\");\n\t\t}\n\t\t//Pass motor values to motor controller!\n\t\tMessage msg = Message.obtain();\n\t\tmsg.what = SEND_MOTOR_SPEEDS;\n\t\tmsg.obj = mMotorSpeed;\n\t\tmBt.sendMessageToHandler(msg);\n\t\t//Log.i(TAG, \"Guidance sending message.\");\n\t\t\n\t}", "public void setCurrentSpeed (double speed);", "public void setSpeed(float val) {speed = val;}", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }", "private void setSpeed() {\n double cVel = cAccel*0.1;\n speed += round(mpsToMph(cVel), 2);\n speedOutput.setText(String.valueOf(speed));\n }", "void setSpeed(RobotSpeedValue newSpeed);", "void changeUpdateSpeed();", "public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}", "public void setSpeed(int wpm);", "public void setSpeeds(int speed) {\n\t\tleftMotor.setSpeed(speed);\n\t\trightMotor.setSpeed(speed);\n\t}", "public void setSpeed(double multiplier);", "public static void setSpeed(int speed) {\n leftMotor.setSpeed(speed);\n rightMotor.setSpeed(speed);\n }", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "public void SetSpeedRaw(double speed)\n {\n Motors.Set(speed);\n }", "public void setSpeed(int value) {\n this.speed = value;\n }", "public abstract void setSpeed(int sp);", "public void changeSpeed(int speed);", "public void setMotor(double speed) {\n //set the master motor directly\n m_masterMotor.set(ControlMode.PercentOutput, speed);\n\n //set all other motors to follow\n m_closeSlaveMotor.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor1.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor2.follow(m_masterMotor, FollowerType.PercentOutput);\n }", "public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }", "void atras(){\n\t\tMotorA.stop();\n\t\tMotorB.setSpeed(700);\n\t\tMotorC.setSpeed(700);\n\t\t\n\t\tMotorB.backward();\n\t\tMotorC.backward();\n\t}", "public void setSpeed(float speed) {\n this.speed = (int) speed * 13;\n }", "private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setMotors(double leftSpeed, double rightSpeed, double multiplier){\n double z = 0.1;\n if(multiplier<0){\n z = (1-Math.abs(multiplier))*0.5+0.25;\n }\n else{\n z = multiplier*0.25+0.75;\n }\n m_leftMotor.set(leftSpeed*z); \n m_rightMotor.set(rightSpeed*z);\n}", "@Override\n\tpublic void setSpeed(double speed) {\n\n\t}", "@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}", "public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }", "@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}", "public void drive(double direction, double speed) {\n if (mode != SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.setSetpoint(direction);\n }\n \t\tmodules.get(0).setSpeed(speed * -1);\n \t\tmodules.get(1).setSpeed(speed);\n \t\tmodules.get(2).setSpeed(speed * -1);\n \t\tmodules.get(3).setSpeed(speed);\n\n\n }\n\n}", "public void setFrontSpeed(double speed) { \r\n fmMotor.set(speed);\r\n }", "public void setSpeed(int speed) {\n this.speed = speed;\n }", "public void setControlPanelMotor(double speed) {\n controlPanelMotor.set(ControlMode.PercentOutput, speed);\n }", "public void setMotors(double rate) {\n\t\tclimberMotor1.set(rate);\n\t}", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "void setFastSpeed () {\n if (stepDelay == fastSpeed)\n return;\n stepDelay = fastSpeed;\n step();\n resetLoop();\n }", "public void set(double speed) {\n\t\tcurrentSpeed = speed;\n\t\tmotor.set(speed);\n\t}", "public void go()\n {\n for( int i = 0; i<3; i++)m[i].setSpeed(720);\n step();\n for( int i = 0; i<3; i++)m[i].regulateSpeed(false);\n step();\n }", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "void changeSpeed(int speed) {\n\n this.speed = speed;\n }", "@Override\n public void run() {\n while (!stop) {\n /**change the variable that controls the speed of the chassis using the bumpers*/\n if (gamepad1.right_bumper) {\n v = 1;\n } else if (gamepad1.left_bumper) {\n v = 2;\n }\n /**getting the gamepad joystick values*/\n forward = gamepad1.left_stick_y;\n right = -gamepad1.left_stick_x;\n clockwise = gamepad1.right_stick_x;\n\n /**calculating the power for motors */\n df = forward + clockwise - right;\n ss = -forward + clockwise + right;\n sf = -forward + clockwise - right;\n ds = forward + clockwise + right;\n\n /**normalising the power values*/\n max = abs(sf);\n if (abs(df) > max) {\n max = abs(df);\n }\n if (abs(ss) > max) {\n max = abs(ss);\n }\n if (abs(ds) > max) {\n max = abs(ds);\n }\n if (max > 1) {\n sf /= max;\n df /= max;\n ss /= max;\n ds /= max;\n }\n /** setting the speed of the chassis*/\n if (v == 1) {\n POWER(df / 5, sf / 5, ds / 5, ss / 5);\n } else if (v == 2) {\n POWER(df, sf, ds, ss);\n }\n }\n }", "public void up() {\n\t\tmotor1.set( Constants.CLAW_MOTOR_SPEED );\n\t\t}", "@Override\n public void loop() {\n float left = -gamepad1.left_stick_y;\n float right = -gamepad1.right_stick_y;\n // clip the right/left values so that the values never exceed +/- 1\n right = Range.clip(right, -1, 1);\n left = Range.clip(left, -1, 1);\n\n // scale the joystick value to make it easier to control\n // the robot more precisely at slower speeds.\n right = (float)scaleInput(right);\n left = (float)scaleInput(left);\n\n // write the values to the motors\n if (motor1!=null) {\n motor1.setPower(right);\n }\n if (motor2!=null) {\n motor2.setPower(left);\n }\n if (motor3!=null) {\n motor3.setPower(right);\n }\n if (motor4!=null) {\n motor4.setPower(left);\n }\n\n if (gamepad1.right_bumper && motor5Timer + 150 < timer) {\n motor5Forward = !motor5Forward;\n motor5Backward = false;\n motor5Timer = timer;\n } else if (gamepad1.left_bumper && motor5Timer + 150 < timer) {\n motor5Forward = false;\n motor5Backward = !motor5Backward;\n motor5Timer = timer;\n }\n if (motor5!=null) {\n if (gamepad1.dpad_left)\n {\n motor5Forward = false;\n motor5.setPower(1);\n }\n else if (gamepad1.dpad_right)\n {\n motor5Backward = false;\n motor5.setPower(-1);\n }\n else if (motor5Forward)\n {\n motor5.setPower(1);\n }\n else if (motor5Backward)\n {\n motor5.setPower(-1);\n }\n else\n {\n motor5.setPower(0);\n }\n }\n if (motor6!=null) {\n if (gamepad1.dpad_up)\n {\n motor6.setPower(1);\n }\n else if (gamepad1.dpad_down)\n {\n motor6.setPower(-1);\n }\n else\n {\n motor6.setPower(0);\n }\n\n\n }\n if (motor7!=null) {\n if (gamepad1.dpad_left)\n {\n motor7.setPower(1);\n }\n else if (gamepad1.dpad_right)\n {\n motor7.setPower(-1);\n }\n else\n {\n motor7.setPower(0);\n }\n }\n if (motor8!=null) {\n if (gamepad1.dpad_up)\n {\n motor8.setPower(1);\n }\n if (gamepad1.dpad_down)\n {\n motor8.setPower(-1);\n }\n else\n {\n motor8.setPower(0);\n }\n }\n if (timer == 0) {\n servo1pos=0.5;\n servo2pos=0.5;\n servo3pos=0.5;\n servo4pos=0.5;\n servo5pos=0.5;\n servo6pos=0.5;\n }\n timer++;\n\n if (servo1!=null){\n if (gamepad1.right_bumper) {\n servo1pos += 0.01;\n }\n if (gamepad1.left_bumper) {\n servo1pos -= 0.01;\n }\n servo1pos = Range.clip(servo1pos, 0.00, 1.0);\n\n servo1.setPosition(servo1pos);\n }\n if (servo2!=null){\n if (gamepad1.x) {\n servo2pos += 0.01;\n }\n if (gamepad1.y) {\n servo2pos -= 0.01;\n }\n servo2pos = Range.clip(servo2pos, 0.00, 1.0);\n\n servo2.setPosition(servo2pos);\n }\n if (servo3!=null){\n if (gamepad1.a) {\n servo3pos += 0.01;\n }\n if (gamepad1.b) {\n servo3pos -= 0.01;\n }\n servo3pos = Range.clip(servo3pos, 0.00, 1.0);\n\n servo3.setPosition(servo3pos);\n }\n if (servo4!=null){\n if (gamepad1.right_bumper) {\n servo4pos -= 0.01;\n }\n if (gamepad1.left_bumper) {\n servo4pos += 0.01;\n }\n servo4pos = Range.clip(servo4pos, 0.00, 1.0);\n\n servo4.setPosition(servo4pos);\n }\n if (servo5!=null){\n if (gamepad1.x) {\n servo5pos -= 0.01;\n }\n if (gamepad1.y) {\n servo5pos += 0.01;\n }\n servo5pos = Range.clip(servo5pos, 0.00, 1.0);\n\n servo5.setPosition(servo5pos);\n }\n if (servo6!=null){\n if (gamepad1.a) {\n servo6pos -= 0.01;\n }\n if (gamepad1.b) {\n servo6pos += 0.01;\n }\n servo6pos = Range.clip(servo6pos, 0.00, 1.0);\n\n servo6.setPosition(servo6pos);\n }\n if (servo1!=null){\n telemetry.addData(\"servoBumpers\", servo1.getPosition());}\n if (servo2!=null){\n telemetry.addData(\"servoX/Y\", servo2.getPosition());}\n if (servo3!=null){\n telemetry.addData(\"servoA/B\", servo3.getPosition());}\n if (servo4!=null){\n telemetry.addData(\"servoBumpers-\", servo4.getPosition());}\n if (servo5!=null){\n telemetry.addData(\"servoX/Y-\", servo5.getPosition());}\n if (servo6!=null){\n telemetry.addData(\"servoA/B-\", servo6.getPosition());}\n if (motor1 != null) {\n telemetry.addData(\"Motor1\", motor1.getCurrentPosition());\n }\n }", "public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public void start() {\n rfMotor.setPower(1);\n rrMotor.setPower(1);\n lfMotor.setPower(1);\n lrMotor.setPower(1);\n }", "public void driveRaw (double speed) {\n leftBackMotor.set(speed);\n leftMiddleMotor.set(speed);\n leftFrontMotor.set(speed);\n rightBackMotor.set(speed);\n rightMiddleMotor.set(speed);\n rightFrontMotor.set(speed);\n }", "public void setLeftMotors(double speed){\n motorLeft1.set(speed);\n // motorLeft2.set(-speed);\n }", "protected void execute() {\n \t// Scales the speed based on a proportion of ideal voltage over actual voltage\n \tRobot.shooter.talon.set(0.59 * (12.5 / Robot.pdp.getVoltage()));\n// \tRobot.shooter.talon.enable();\n// \tRobot.shooter.talon.set(Shooter.IDEAL_SPEED * (12.5 / Robot.pdp.getVoltage()));\n }", "public void setVehicleSpeed(float value) {\n this.vehicleSpeed = value;\n }", "public void startEngine(){\n currentSpeed = 0.1;\n }", "public void drive(double speed){\n \t\tsetRight(speed);\n \t\tsetLeft(speed);\n \t}", "public void setVelocity(double velocity) {\n //set the velocity of the motors\n m_masterMotor.set(ControlMode.Velocity, velocity);\n \n //set our slave motors to follow master\n m_closeSlaveMotor.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor1.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor2.follow(m_masterMotor, FollowerType.PercentOutput);\n }", "void adelante(int speed){\n\t\tMotorA.setSpeed(speed);\n\t\tMotorB.setSpeed(speed);\n\t\tMotorC.setSpeed(speed);\n\t\t\n\t\tMotorA.backward();\n\t\tMotorB.forward();\n\t\tMotorC.forward();\n\t}", "public void setSpeed(int newSpeed)\n\t{\n\t\tspeed = newSpeed;\n\t}", "public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }", "public void setEditSpeedPressed() {\n String value = JOptionPane.showInputDialog(this, this.applicationDelayText, this.setApplicationDelayText, 3);\n if (value != null) {\n int newSpeed = Integer.parseInt(value.toString());\n this.setSpeed(newSpeed);\n }\n }", "@Override\n @Deprecated // Deprecated so developer does not accidentally use\n public void setSpeed(int speed) {\n }", "public void setSpeed( Vector2 sp ) { speed = sp; }", "void setPWMRate(double rate);", "public void setSpeedStrumMotor(int speed) {\r\n\t\tif (speed == 0)\r\n\t\t\tstrumMotor.stop();\r\n\t\telse\r\n\t\t\tstrumMotor.rotate(speed);\r\n\t}", "public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}", "public static void setSpeeds(int leftSpeed, int rightSpeed) {\n leftMotor.setSpeed(leftSpeed);\n rightMotor.setSpeed(rightSpeed);\n }", "public void setSpeed(int speed) {\n this.movementSpeed = speed;\n }", "protected void setMotorSpeeds(int lSpeed, int rSpeed) {\n setLeftMotorSpeed(lSpeed);\n setRightMotorSpeed(rSpeed);\n }", "public void set(double speed) {\n\t\tfor (Motor motor : this) {\n\t\t\t((TalonSRX) motor).set(speed);\n\t\t}\n\t}", "public void setDriveSpeed(double speed) {\n\t\tdriveMotor.set(speed);\n\t}", "public void intake(double up_speed, double down_speed) //上面&下面的intake\n {\n intake_up.set(ControlMode.PercentOutput, up_speed);\n intake_down.set(ControlMode.PercentOutput, down_speed);\n }", "public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}", "public void setMotorBehaviors(){\n motors = new ArrayList<>();\n motors.add(rf);\n motors.add(rb);\n motors.add(lf);\n motors.add(lb);\n\n //reset motor encoders\n rf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //Set motor behaviors\n rf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rf.setDirection(DcMotorSimple.Direction.REVERSE);\n rb.setDirection(DcMotorSimple.Direction.REVERSE);\n relic_extension.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n lift.setDirection(DcMotorSimple.Direction.REVERSE);\n\n //Set servo behaviors\n leftWheel2.setDirection(DcMotorSimple.Direction.REVERSE);\n rightWheel1.setDirection(DcMotorSimple.Direction.REVERSE);\n\n }", "void simulationSpeedChange(int value);", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(final double speed) {\n m_X.set(ControlMode.PercentOutput, speed); \n }", "public void setSpeed(int speed) {\n thread.setSpeed(speed);\n }", "public void setSpeed(double rpm) {\n\n if (rpm > MAX_SPEED_RPM) {\n rpm = MAX_SPEED_RPM;\n }\n\n m_targetSpeedRPM = rpm;\n double ticks = convertRpmToTicksPer100ms(rpm);\n shooterWheelLeft.set(ControlMode.Velocity, ticks);\n shooterWheelRight.set(ControlMode.Velocity, ticks);\n }", "public void init() {\n delayingTimer = new ElapsedTime();\n\n // Define and Initialize Motors and Servos: //\n tailMover = hwMap.dcMotor.get(\"tail_lift\");\n grabberServo = hwMap.servo.get(\"grabber_servo\");\n openGrabber();\n\n // Set Motor and Servo Directions: //\n tailMover.setDirection(DcMotorSimple.Direction.FORWARD);\n\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n tailMover.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n int prevEncoder = tailMover.getCurrentPosition();\n tailMover.setPower(-0.15);\n mainHW.opMode.sleep (300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n runtime.reset();\n while((Math.abs(prevEncoder - tailMover.getCurrentPosition()) > 10)&& (runtime.seconds()<3.0)){\n prevEncoder = tailMover.getCurrentPosition();\n mainHW.opMode.sleep(300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n }\n tailMover.setPower(0.0);\n // Set Motor and Servo Modes: //\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n tailMover.setTargetPosition(0);\n tailMover.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n closeGrabber();\n }", "public void setElevatorSpeed(double spd)\n {\n mSpeed = spd;\n }", "@Override\n public void loop() {\n\n\n if (gamepad1.right_bumper) {\n leftDrive.setDirection(DcMotor.Direction.FORWARD);\n leftDrive.setPower(3);\n } else if (gamepad1.left_bumper) {\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n leftDrive.setPower(3);\n\n }\n\n }", "public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}", "public void setSpeed(int speed) {\n if (speed < 0) {\n this.speed = 0;\n lblVelocidade.setText(this.applicationDelayText + \": 0\");\n return;\n }\n this.speed = speed;\n sliderSpeed.setValue(speed / 10);\n lblVelocidade.setText(this.applicationDelayText + \": \" + speed);\n }", "public void setVelocity () {\n\t\t\tfb5.getCommunicationModule().setClientHandler(null);\n\t\t\tif(state == BotMove.SHARP_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)0);\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT){\n\t\t\t\tfb5.setVelocity((byte)100,(byte)200);\n\t\t\t}\n\t\t\telse if(state == BotMove.SOFT_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)100);\n\t\t\t}\n\t\t\telse if(state == BotMove.FORWARD){\n\t\t\t\twt.turning = false;\n\t\t\t\tLog.d(TAG,\"Setting forward velocity\");\n\t\t\t\tfb5.setVelocity((byte)150,(byte)150);\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(state == BotMove.STOP){\n\t\t\t\twt.turning = false;\n\t\t\t\tfb5.setVelocity((byte)0,(byte)0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfb5.moveForward();\n\t\t\tfb5.accModifiedStart();\n\t\t}", "public void setSpeed(int newSpeed){\n\t\tmyVaisseau=Isep.getListeVaisseau();\n\t\tspeed=newSpeed;\t\t\n\t}", "public void up() {\n double speed = RobotContainer.m_BlackBox.getPotValueScaled(Constants.OIConstants.kControlBoxPotY, 0.0, 1.0);\n m_hook.set(speed);\n SmartDashboard.putNumber(\"forward speed\", speed);\n }", "public void PIDSpeed(double rpm) {\n\t\tsuper.enableControl();\n\t\tPIDTargetSpeed = rpm;\n\t\t// double speed = rpm * (4096.0 / 6000.0);\n\n\t\t// SmartDashboard.sendData(this.getChannel() + \"RPM\", rpm);\n\t\t// SmartDashboard.sendData(this.getChannel() + \"Speed\", speed);\n\t\tsuper.changeControlMode(TalonControlMode.Speed);\n\t\tsuper.set(rpm);\n\t\t// SmartDashboard.sendData(\"Talon \" + this.getChannel() + \" Speed\",\n\t\t// getSpeed());\n\t}", "private void setSpeedValues(){\n minSpeed = trackingList.get(0).getSpeed();\n maxSpeed = trackingList.get(0).getSpeed();\n averageSpeed = trackingList.get(0).getSpeed();\n\n double sumSpeed =0.0;\n for (TrackingEntry entry:trackingList) {\n\n sumSpeed += entry.getSpeed();\n\n //sets min Speed\n if (minSpeed > entry.getSpeed()){\n minSpeed = entry.getSpeed();\n }\n //sets max Speed\n if (maxSpeed < entry.getSpeed()) {\n maxSpeed = entry.getSpeed();\n }\n\n }\n\n averageSpeed = sumSpeed/trackingList.size();\n }", "void OnSpeedChanges(float speed);", "public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }", "public void accelerationSet(double speed){\n\t\tdouble currentDelta = Math.abs(currentSpeed - speed);\r\n\t\tif(currentDelta > maxDelta){\r\n\t\t\tif(speed > currentSpeed){\r\n\t\t\t\tspeed = currentSpeed + maxDelta;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tspeed = currentSpeed - maxDelta;\r\n\t\t\t}\r\n\t\t}\r\n\t//\tSystem.out.println(\"Speed:\" + speed);\r\n\t\tcurrentSpeed = speed;\r\n\t\tsuper.set(speed * motorDirection);\r\n\t}", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00000800;\n speed_ = value;\n onChanged();\n return this;\n }", "public Builder setSpeed(int value) {\n \n speed_ = value;\n onChanged();\n return this;\n }", "public void manualControl(double power){\n leftMotor.set(power);\n rightMotor.set(power);\n }", "public void set(double speed) {\n climb_spark_max.set(speed);\n }", "public void setDefaultSpeed (double speedUp, double speedDown){\n m_defaultLiftSpeedUp = speedUp;\n m_defaultLiftSpeedDown = speedDown;\n }", "public Builder setSpeed(int value) {\n bitField0_ |= 0x00000080;\n speed_ = value;\n onChanged();\n return this;\n }" ]
[ "0.74853665", "0.73734987", "0.7282789", "0.7213817", "0.71929985", "0.71244", "0.70715433", "0.7062565", "0.7039658", "0.698736", "0.6979108", "0.6955857", "0.69310266", "0.69257516", "0.69242424", "0.69239557", "0.68566227", "0.6813019", "0.6806751", "0.67756706", "0.6773967", "0.67673206", "0.6761833", "0.6756923", "0.6738528", "0.67330956", "0.67330956", "0.6715438", "0.6706835", "0.66945624", "0.6689329", "0.66850394", "0.66836536", "0.66817856", "0.6656707", "0.6653091", "0.6652805", "0.66521657", "0.66521657", "0.6649986", "0.6642168", "0.66363424", "0.66309726", "0.662261", "0.65833235", "0.6570831", "0.65644354", "0.6562964", "0.6546642", "0.6541453", "0.65396553", "0.6518403", "0.6497854", "0.6494256", "0.6491467", "0.6490228", "0.64857525", "0.64851326", "0.64840335", "0.64807934", "0.64723015", "0.64614135", "0.6447062", "0.64334214", "0.6428418", "0.6418647", "0.64139193", "0.6408052", "0.64069074", "0.64045906", "0.6400794", "0.63902605", "0.6390041", "0.6377694", "0.6363837", "0.63541603", "0.63541603", "0.63541603", "0.63336235", "0.6327892", "0.63251215", "0.63203895", "0.6318479", "0.63163996", "0.63048816", "0.630298", "0.63021237", "0.63002783", "0.6284178", "0.6282785", "0.62802327", "0.6279655", "0.62745154", "0.626979", "0.62641937", "0.6261496", "0.6253636", "0.6248113", "0.62375593", "0.62317866" ]
0.6866853
16
This function returns a double based on the values of two safety variables
public static double configSpeed(final double speed, final double speedMod) { final double returnVar; returnVar = speed * speedMod; /// DEBUG CODE /// if (RobotMap.driveDebug) { System.out.println("Error in configSpeed"); /// Return 0 /// return 0; } return returnVar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getDoubleValue2();", "double getDoubleValue1();", "double getDoubleValue3();", "public double calculateValue () {\n return double1 * double2;\n }", "public double evaluateAsDouble();", "public double utility();", "double getBasedOnValue();", "Double getValue();", "Double getDoubleValue();", "public static double equivalence(double one, double two) {\n return two/one;\n }", "public abstract Double get(T first, T second);", "double getValue();", "double getValue();", "double getValue();", "@Override\n\tpublic double calc(double d1, double d2) {\n\t\treturn 0;\n\t}", "public Double getResult();", "protected abstract double doubleOp(double d1, double d2);", "public double getDouble();", "double getRealValue();", "private double calculateTemp(){\n if (!((Double)mplTemp).isNaN() && !((Double)shtTemp).isNaN()){\n return (mplTemp + shtTemp)/2;\n }\n\n return Double.NaN;\n }", "@Test\n public void test_GetDouble() {\n Assert.assertEquals(\"Values werent the same\", 0.98765432123456789D, SecureEnvironment.getDouble(\"test_key_double\"), 0.00000000000000001D);\n }", "public double doubleValue();", "public abstract double compute(double value);", "public static double getDouble (String ask, double min, double max)\r\n {\r\n // ...\r\n return 0.0;\r\n }", "@Override\n\tpublic Double apply(Double d1, Double d2) {\n\t\treturn null;\n\t}", "private double d(Point a, Point b){\n\t\treturn Math.sqrt(Math.pow(b.getX()-a.getX(),2) + Math.pow(a.getY() - b.getY(), 2));\r\n\t}", "public abstract double getasDouble(int tuple, int val);", "public int sumDouble(int a, int b) {\n int sum = a + b;\n if (a == b){\n sum *= 2;\n }\n\n return sum; \n}", "public double returnValue(double x, double y);", "public double getValue();", "public abstract double getValue();", "double apply(double x, double y) {\n switch (this) {\n case PLUS: return x + y;\n case MINUS: return x - y;\n case TIMES: return x * y;\n case DEVICE: return x / y;\n }\n throw new AssertionError(\"unknwon op: \" + this);\n }", "static double getMax(double a, double b) {\n\t\treturn (a > b) ? a : b;\n\t}", "private static double calculaDistancia(double[] param1, double[] param2){\n\t\tdouble res1= Math.pow((param1[0]-param2[0]), 2);\n\t\tdouble res2= Math.pow((param1[1]-param2[1]), 2);\n\t\tdouble res3= Math.pow((param1[2]-param2[2]), 2);\n\t\tdouble res4= res1 + res2 + res3;\n\t\tdouble res5= res4/3;\n\t\tdouble res6= Math.sqrt(res5);\n\t\treturn res6;\n\t}", "public static double datodouble(){\n try {\n Double f=new Double(dato());\n return(f.doubleValue());\n } catch (NumberFormatException error) {\n return(Double.NaN);\n }\n }", "private double stateToDouble(State state)\n {\n if(state == null)\n return 0;\n switch (state)\n {\n case FOOD:\n return 1;\n case TAIL:\n return -1;\n }\n return 0;\n }", "double getEDouble();", "public double getDoubleWert() {\n\t\treturn (double) p / (double) q;\n\t}", "public abstract double evaluate(double value);", "@Test\n\tpublic void test_TCM__double_getDoubleValue() {\n\t\tAttribute attr = new Attribute(\"test\", \"11111111111111\");\n\t\ttry {\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == 11111111111111d );\n\n\t\t\tattr.setValue(\"0\");\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == 0 );\n\n\t\t\tattr.setValue(Double.toString(java.lang.Double.MAX_VALUE));\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == java.lang.Double.MAX_VALUE);\n\n\t\t\tattr.setValue(Double.toString(java.lang.Double.MIN_VALUE));\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == java.lang.Double.MIN_VALUE);\n\n\t\t} catch (DataConversionException e) {\n\t\t\tfail(\"couldn't convert boolean value\");\n\t\t}\n\n\t\ttry {\n\t\t\tattr.setValue(\"foo\");\n\t\t\tfail(\"incorrectly returned double from non double value\" + attr.getDoubleValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\n\t}", "public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }", "public boolean isDouble();", "private Point2D.Double calcVec(Point2D.Double a, Point2D.Double b)\n\t{\n\t\treturn new Point2D.Double((b.getX() - a.getX()), (b.getY() - a.getY()));\n\t}", "public double getDoubleValue2() {\n return doubleValue2_;\n }", "public double getValue(){\n return (double) numerator / (double) denominator;\n }", "public double getMinDoubleValue();", "double doubleValue()\n {\n double top = 1.0 * numerator;\n double bottom=1.0*denominator;\n top=top/bottom;\n return top;\n\n }", "@NotNull\n BigDecimal calculate(@NotNull BigDecimal first, @NotNull BigDecimal second);", "public static double d(Prototype one, Prototype two)\r\n {\r\n return Math.sqrt(squaredEuclideanDistance(one, two));\r\n }", "double getDouble(String key, double defaultValue);", "public double getValue(double[] parameters);", "public abstract double computeValue(Density density);", "private static double exactTest(double[] dataA, double[] dataB) {\n\t\tdouble[][] tblData = new double[dataA.length][2];\r\n\t\tfor(int i =0; i < tblData.length; i++){\r\n\t\t\ttblData[i][0] = dataA[i];\r\n\t\t\ttblData[i][1] = dataB[i];\r\n\t\t}\r\n\t\tDataTable tbl = new DataTable(tblData);\r\n\t\tWilcoxonTest wil = new WilcoxonTest(tbl);\r\n\t\t\r\n\t\t//get p value\r\n\t\twil.doTest();\r\n\t\treturn wil.getExactDoublePValue();\r\n\t}", "double function(double xVal){\n\t\tdouble yVal = xVal*xVal*xVal;\n\t\treturn yVal;\n\t}", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n double x = s.nextDouble();\n double y = s.nextDouble();\n double a = s.nextDouble();\n double b = s.nextDouble();\n \n DecimalFormat df = new DecimalFormat(\"#.000000000000\");\n double dp = x*a + y*b;\n double el =Math.sqrt(a*a + b*b);\n //double mel = dp/Double.valueOf(df.format(el*el));\n double mel = dp/(el*el);\n double as = mel*a;\n double bs = mel*b;\n double n = (x-mel*a)/(-1*b);\n //System.out.println(dp + \" \" + el + \" \" + mel + \" \" + as + \" \" + bs + \" \" + n);\n System.out.println(mel);\n System.out.println(n);\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default double asDouble() {\n \n return notSupportedCast(BasicTypeID.DOUBLE);\n }", "public double get_double() {\n return local_double;\n }", "public double doubleValue()\n\t\t{\n\t\t\t// Converts BigIntegers to doubles and then divides \n\t\t\treturn (numerator.doubleValue()*1)/denominator.doubleValue();\n\t\t}", "public\n double getProperty_double(String key)\n {\n if (key == null)\n return 0.0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0.0;\n\n double ret_double = 0.0;\n try\n {\n Double workdouble = new Double(val);\n ret_double = workdouble.doubleValue();\n }\n catch(NumberFormatException e)\n {\n ret_double = 0.0;\n }\n\n return ret_double;\n }", "double d();", "public double getDoubleValue2() {\n return doubleValue2_;\n }", "double doubleTheValue(double input) {\n\t\treturn input*2;\n\t}", "public double getBidEvaluation(Bid bid) {\n\t\tdouble result = 0;\n\t\tif (issueEvaluationList.isReady()) {\n\t\t\tList<Issue> issues = negotiationSession.getUtilitySpace().getDomain().getIssues();\n\n\t\t\tdouble totalEstimatedUtility = 0;\n\t\t\tfor (Issue issue : issues) {\n\t\t\t\ttry {\n\t\t\t\t\tint issueID = issue.getNumber();\n\n\t\t\t\t\t// Get the estimated normalized weight of the issue, which\n\t\t\t\t\t// indicates how important the issue is.\n\t\t\t\t\tdouble issueWeight = this.issueEvaluationList.getNormalizedIssueWeight(issueID);\n\n\t\t\t\t\t// Get the estimated normalized weight of the value of the\n\t\t\t\t\t// issue, which corresponds to the value that has\n\t\t\t\t\t// been offered in the bid.\n\t\t\t\t\tValue offeredValue = bid.getValue(issueID);\n\t\t\t\t\tAIssueEvaluation issueEvaluation = this.issueEvaluationList.getIssueEvaluation(issueID);\n\t\t\t\t\tdouble offeredValueWeight = issueEvaluation.getNormalizedValueWeight(offeredValue);\n\n\t\t\t\t\t// Since all issueWeights combined should add up to 1, and\n\t\t\t\t\t// the maximum value of the valueWeight is 1,\n\t\t\t\t\t// the estimated utility should be exactly 1 if all offered\n\t\t\t\t\t// valueWeights are 1. So to calculate the partial estimated\n\t\t\t\t\t// utility for this specific issue-value combination, we\n\t\t\t\t\t// need to multiply the weights.\n\t\t\t\t\ttotalEstimatedUtility += (issueWeight * offeredValueWeight);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Make sure to remove roundoff errors from the utility.\n\t\t\tresult = Math.min(1, Math.max(0, totalEstimatedUtility));\n\t\t}\n\t\treturn result;\n\t}", "double value(double x) {\n double a = left.value(x);\n\n // value of the right operand expression tree\n double b = right.value(x);\n\n switch (op) {\n case \"+\":\n return a + b;\n case \"-\":\n return a - b;\n case \"*\":\n return a * b;\n default:\n return a / b;\n }\n }", "static double interpolateDouble(double x, double a, double b, double a1, double b1) {\n // assertTrue(a != b);\n // To get results that are accurate near both A and B, we interpolate starting from the closer\n // of the two points.\n if (Math.abs(a - x) <= Math.abs(b - x)) {\n return a1 + (b1 - a1) * (x - a) / (b - a);\n } else {\n return b1 + (a1 - b1) * (x - b) / (a - b);\n }\n }", "public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}", "public void dataNotDouble() {\n MarketDataBundle marketDataBundle = new MapMarketDataBundle(\n new MarketDataEnvironmentBuilder()\n .add(SecurityId.of(SEC1.getExternalIdBundle()), \"not a double\")\n .add(SecurityId.of(SEC2.getExternalIdBundle()), 2.0)\n .valuationTime(ZonedDateTime.now())\n .build());\n MarketDataShock shock = MarketDataShock.relativeShift(0.5, MATCHER1);\n FilteredScenarioDefinition scenarioDef = new FilteredScenarioDefinition(shock);\n SimpleEnvironment env = new SimpleEnvironment(ZonedDateTime.now(), marketDataBundle, scenarioDef);\n\n assertFalse(FN.foo(env, SEC1).isSuccess());\n assertEquals(2d, FN.foo(env, SEC2).getValue(), DELTA);\n }", "public double sampleDouble() {\n double x = sample01();\n if ( x < (b-a)/(c-a))\n x = Math.sqrt(x*(b-a)*(c-a)) + a;\n else\n x = c- Math.sqrt((1-x)*(c-a)*(c-b));\n return x;\n }", "double getReliability();", "public double getDouble(String name)\n/* */ {\n/* 1015 */ return getDouble(name, 0.0D);\n/* */ }", "private double convertDouble()\n\t{\n\t\tString val = tokens[10];\n\t\tdouble value = 0.0;\n\t\ttry {\n\t\t\tvalue = Double.parseDouble(tokens[10]);\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\tSystem.err.print(\"\");\n\t\t}\n\t\treturn value;\n\t}", "public static double getDouble(Key key) {\n return getDouble(key, 0);\n }", "private double convertToDbl(Object a) {\n double result = 0;\n\n //If the object is a Character...\n if(a instanceof Character){\n char x = (Character)a;\n result = (double)(x - '0'); // -'0' as it will convert the ascii number (e.g 4 is 52 in ascii) to the standard number\n }\n\n //If it is a Double...\n else if(a instanceof Double){\n result = (Double)a;\n }\n\n return result;\n }", "private double min(double value1 , double value2){\n double minValue = 0.0;\n if(value1 <= value2){\n minValue = value1;\n }else{\n minValue = value2;\n }\n\n return minValue;\n }", "public double getAsDouble() {\n if (totalAttempts == 0) {\n return 0;\n }\n return (double) correctAttempts / totalAttempts;\n }", "public double compute(Object o1, Object o2) throws jcolibri.exception.NoApplicableSimilarityFunctionException {\n\t\tif ((o1 == null) || (o2 == null))\n\t\t\treturn 0;\n\t\tif (!(o1 instanceof java.lang.Number))\n\t\t\tthrow new jcolibri.exception.NoApplicableSimilarityFunctionException(this.getClass(), o1.getClass());\n\t\tif (!(o2 instanceof java.lang.Number))\n\t\t\tthrow new jcolibri.exception.NoApplicableSimilarityFunctionException(this.getClass(), o2.getClass());\n\n\n\t\tNumber i1 = (Number) o1;\n\t\tNumber i2 = (Number) o2;\n\t\treturn (double) compare(i1.doubleValue(), i2.doubleValue());\n\t}", "public double getDouble(String key)\n {\n return getDouble(key, 0);\n }", "public static double getDouble() throws Exception {\n return getDouble(null);\n }", "@Override\r\n public double getBidEvaluation(Bid bid) {\r\n double BidUtil = 0;\r\n try {\r\n BidUtil = opponentUtilitySpace.getUtility(bid);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return BidUtil;\r\n }", "@VTID(14)\r\n double getValue();", "public double adicao (double numero1, double numero2){\n\t}", "private double pow(double x, double y) {\r\n double value;\r\n try {\r\n value = Math.pow(x, y) ; }\r\n catch( ArithmeticException e ) {\r\n value = Double.NaN ; }\r\n return value;\r\n }", "boolean hasDouble();", "public abstract Double getMontant();", "public double getMaxDoubleValue();", "public double getDouble(String prompt) {\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tString item = getToken(prompt);\r\n\t\t\t\tDouble number = Double.valueOf(item);\r\n\t\t\t\treturn number.doubleValue();\r\n\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\tSystem.out.println(\"Please input a number.\");\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "public double getUtility(double consumption);", "public static Double getltd(){\n // Log.e(\"LAT\",sharedPreferences.getString(USER_LTD, String.valueOf(0.0)));\n return Double.parseDouble(sharedPreferences.getString(USER_LTD, String.valueOf(0.0)));\n }", "double getPValue();", "public double getDouble (String variable){\r\n if (matlabEng==null) return 0.0;\r\n return matlabEng.engGetScalar(id,variable);\r\n }", "public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }", "public abstract Double toDouble(T t);", "public double valueAt(double x) {\n \treturn (this.f1.valueAt(this.f2.valueAt(x)));\n }", "public Double visitVariable(simpleCalcParser.VariableContext ctx){\n\t\tString varname = ctx.x.getText();\n\t\tDouble d = env.get(varname);\n\t\tif (d==null){\n\t\t\tSystem.err.println(\"Variable \" + varname + \" is not defined. \\n\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t \treturn d;\n \t}", "double get();", "public static double getPrinciple(List<? extends Number> numbers)\r\n {\r\n double val = 0.0;\r\n for (Number num : numbers)\r\n val += num.doubleValue();\r\n return val;\r\n\r\n }", "public double calculateValue(Map<String, Double> variables) throws InvalidVariableNameException;", "public static float dif(double a, double b){\n if(a > b) return (float) (Math.abs(a) - Math.abs(b));\n return (float) (Math.abs(b) - Math.abs(a));\n }", "double getFloatingPointField();", "public double getDoubleValue1() {\n return doubleValue1_;\n }", "float determinante (){\r\n //lo de adentro de la raiz\r\n float det= (float)(Math.pow(b, 2)-4*a*c);\r\n //(float) por que pow tiene valores por defecto de double\r\n //entonces, hacemos casting: poniendole el (float) antes de\r\n //toda la funcion.\r\n return det; \r\n }" ]
[ "0.7027152", "0.66362196", "0.6621033", "0.6607653", "0.6578242", "0.6504947", "0.6493745", "0.641602", "0.6279954", "0.623022", "0.61946696", "0.61384463", "0.61384463", "0.61384463", "0.6043229", "0.601391", "0.600114", "0.5978358", "0.5963149", "0.59571946", "0.59566003", "0.5951416", "0.5947086", "0.5924579", "0.58620495", "0.5851338", "0.584403", "0.5834216", "0.58321816", "0.5805486", "0.580464", "0.5767242", "0.5762761", "0.57402164", "0.57290715", "0.57259065", "0.572017", "0.5719962", "0.5717114", "0.56856436", "0.56676596", "0.5665326", "0.5663852", "0.56605554", "0.5655134", "0.56435597", "0.56379163", "0.56276584", "0.562481", "0.5610183", "0.56064034", "0.56047004", "0.55991405", "0.55980355", "0.55956185", "0.5586314", "0.5583633", "0.55829173", "0.55817074", "0.5577866", "0.5577805", "0.55755275", "0.55634123", "0.55441177", "0.55415964", "0.5535755", "0.5533709", "0.5533558", "0.55309546", "0.5522176", "0.5509344", "0.5508655", "0.55025727", "0.55012673", "0.54943883", "0.54923606", "0.54892415", "0.54870045", "0.548674", "0.5486106", "0.547559", "0.5474519", "0.5473808", "0.5455076", "0.5454003", "0.5450967", "0.5442543", "0.5437852", "0.54316485", "0.5428587", "0.5426842", "0.542664", "0.5426104", "0.54252964", "0.54242456", "0.5423224", "0.5422243", "0.541895", "0.5413494", "0.54127955", "0.5409144" ]
0.0
-1
Loads commands from src/main/resources/METAINF/services/fr.ign.validation.command.Command
private void loadRegistredCommands() { ServiceLoader<Command> loader = ServiceLoader.load(Command.class); for (Command command : loader) { addCommand(command); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommandLoader {\n\n\t/**\n\t * Gets list of commands in bundle\n\t * @return\n\t */\n\tList<CommandInfo> list();\n\t\n\t/**\n\t * Executes command\n\t * @param cmdName command name\n\t * @return\n\t */\n\tObject execute(String cmdName, String param);\n}", "public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }", "private void registerCommands() {\n }", "public CommandManager() {}", "protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.backCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.helpCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.quitCommand));\r\n\t}", "public CommandParser(){\n setLanguage(\"ENGLISH\");\n commandTranslations = getPatterns(new String[] {TRANSLATION});\n commands = new ArrayList<>();\n addErrors();\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "public interface CommandManagerService {\n\n\t/**\n\t * This method gets the available command types on the edge server and the\n\t * ID of the ReaderFactory that the command type works with.\n\t * \n\t * @return A set of CommandConfigPluginDTOs\n\t */\n\tSet<CommandConfigFactoryDTO> getCommandConfigFactories();\n\n\t/**\n\t * Get all the CommandConfigFactoryID associated with a readerFactoryID.\n\t * \n\t * @param readerFactoryID\n\t * @return\n\t */\n\tSet<CommandConfigFactoryDTO> getCommandConfigFactoriesByReaderID(String readerFactoryID);\n\n\t/**\n\t * Get the CommandConfigurationFactory\n\t * @param commandFactoryID\n\t * @return\n\t */\n\tCommandConfigFactoryDTO getCommandConfigFactory(\n\t\t\tString commandFactoryID);\n\n\t/**\n\t * Gets the DTOs for configured commands.\n\t * \n\t * @return a set of configured commands\n\t */\n\tSet<CommandConfigurationDTO> getCommands();\n\n\t/**\n\t * Gets the DTO for a given Command Configuration.\n\t * \n\t * @param commandConfigurationID\n\t * The ID of the commandConfiguration to get\n\t * @return A DTO for the configured command, or null if no command\n\t * configuration is available for the given ID\n\t */\n\tCommandConfigurationDTO getCommandConfiguration(\n\t\t\tString commandConfigurationID);\n\n\t/**\n\t * Gets the meta information necessary to construct a new Command.\n\t * \n\t * @param commandType\n\t * the type of command to make\n\t * @return an MBeanInfo object that describes how to make a new command\n\t */\n\tMBeanInfo getCommandDescription(String commandType);\n\n\t/**\n\t * Create a new Command.\n\t * \n\t * @param commandType\n\t * The type of the Command to make\n\t * @param properties\n\t * the properties of a Command\n\t * @return the id of new created command\n\t */\n\tString createCommand(String commandType, AttributeList properties);\n\n\t/**\n\t * Sets the properties of a Command.\n\t * \n\t * @param commandID\n\t * the ID of the command to set\n\t * @param properties\n\t * the new properties of the command\n\t */\n\tvoid setCommandProperties(String commandID, AttributeList properties);\n\n\t/**\n\t * Delete a command configuration.\n\t * \n\t * @param commandConfigurationID\n\t * the ID of the commandConfiguration to delete\n\t */\n\tvoid deleteCommand(String commandID);\n}", "private void loadFromMethod() {\n // The first parameter is the command sender, so we skip it\n argumentTypes = Arrays.copyOfRange(method.getParameterTypes(), 1, method.getParameterCount());\n\n boolean commandAnnotationFound = false;\n for (Annotation annotation : method.getAnnotations()) {\n if (annotation instanceof Command) {\n commandAnnotationFound = true;\n } else if (annotation instanceof RequiresPlayer) {\n requiresPlayer = true;\n } else if (annotation instanceof RequiresPermissions) {\n requiredPermissions = ((RequiresPermissions) annotation).value();\n } else if (annotation instanceof Arguments) { // Otherwise, multiple arguments are wrapped in here\n arguments = ((Arguments) annotation).value();\n } else if(annotation instanceof Argument) { // If there is one argument then it isn't wrapped\n arguments = new Argument[]{(Argument) annotation};\n } else if (annotation instanceof Description) {\n description = ((Description) annotation).value();\n }\n }\n\n // Sanity checking\n if (!commandAnnotationFound) {\n throw new InvalidCommandException(\"Command methods require the command annotation\");\n }\n }", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }", "public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }", "public CommandManager(String path) {\n\n myParser = new TextParser(path);\n myTracker = new VariableTracker();\n preloadCommands();\n\n }", "public static void reloadCommands() {\n\t\tinstances.clear();\n\t\tCommands.initializeCommands();\n\t}", "private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}", "public CommandDirector() {\n\t\t//factory = ApplicationContextFactory.getInstance();\n\t\t//context = factory.getClassPathXmlApplicationContext();\n\t\t\n\t\t//commands.put(\"createEntry\", context.getBean(\"creationEntryCommand\", CreationEntryCommand.class));\n\t\t//commands.put(\"searchEntry\", context.getBean(\"searchingEntryCommand\", SearchingEntryCommand.class));\n\t\t\n\t\tcommands.put(\"createEntry\", new CreationEntryCommand());\n\t\tcommands.put(\"searchEntry\", new SearchingEntryCommand());\n\t\t\n\t}", "Commands createCommands();", "CommandsFactory getCommandsFactory();", "public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}", "public CommandMAN() {\n super();\n }", "private Map<CommandName, Command> loadCommands(ArrayList<XMLCommand> commands) {\n\t\tMap<CommandName, Command> defaultMap = new HashMap<>();\n\t\tCommandName name;\n\t\tClass reflectObject;\n\t\tfor (XMLCommand command : commands) {\n\t\t\ttry {\n\t\t\t\treflectObject = Class.forName(command.getCommandPath() + command.getName());\n\t\t\t\tCommand builder = (Command) reflectObject.newInstance();\n\t\t\t\tif ((name = CommandName.valueOf(command.getEnumInterpretation())) != null) {\n\t\t\t\t\tdefaultMap.put(name, builder);\n\t\t\t\t}\n\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t/* Not for user info about reflection exceptions */\n\t\t\t}\n\t\t}\n\t\treturn defaultMap;\n\t}", "public CcUpdateLoadRules(String command) {\r\n super(command);\r\n }", "private Command getCommand(String s) throws Exception {\n Class c = Class.forName(\"model.command.\" + this.getSymbol(this.getSymbol(s, translations), commandTranslations));\n Constructor ct = c.getConstructor();\n return (Command) ct.newInstance();\n }", "CommandTypes(String command) {\n this.command = command;\n }", "private Command() {\n initFields();\n }", "public interface Command {\n\n\n}", "CommandHandler() {\n registerArgument(new ChallengeCmd());\n registerArgument(new CreateCmd());\n }", "public interface CommandProvider {\n /**\n * Provide command hospital command.\n *\n * @param uri the uri\n * @return the hospital command\n */\n HospitalCommand provideCommand(String uri);\n}", "public Command() {\n }", "public void register() {\n\t\tloadCommandsFromPackage(\"net.frozenorb.Raven.CommandSystem.Commands\");\n\t}", "public static RhizomeCommand getCommand(CommandConfiguration cconf, RepositoryManager rm)\n\t\t\tthrows CommandNotFoundException, CommandInitializationException {\n\t\tRhizomeCommand command = null;\n\t\tString classname = cconf.getCommandClassname();\n\t\t\n\t\tif(classname == null) \n\t\t\tthrow new CommandNotFoundException(\"Command \" + cconf.getName()\n\t\t\t\t\t+ \" has no associated class.\");\n\t\t\n\t\ttry {\n\t\t\tClass<?> comClass = Class.forName(classname);\n\t\t\t//Class<?> comClass = altClassLoader(classname);\n\t\t\tcommand = (RhizomeCommand)comClass.newInstance();\n\t\t\t\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tString cpath = System.getProperty(\"java.class.path\");\n\t\t\tString errmsg = String.format(\"Cannot load class: %s. Class not found in %s.\", classname, cpath);\n\t\t\tthrow new CommandNotFoundException(errmsg, e);\n\t\t} catch (Exception e) {\n\t\t\tString errmsg = String.format(\"Cannot create object of class %s (%s)\", \n\t\t\t\t\tclassname, \n\t\t\t\t\te.getMessage());\n\t\t\tthrow new CommandNotFoundException(errmsg, e);\n\t\t}\n\t\t\n\t\tcommand.init(cconf, rm);\n\t\treturn command;\n\t}", "private void putCommands() {\r\n ShellCommand charset = new CharsetCommand();\r\n commands.put(charset.getCommandName(), charset);\r\n ShellCommand symbol = new SymbolCommand();\r\n commands.put(symbol.getCommandName(), symbol);\r\n ShellCommand exit = new ExitCommand();\r\n commands.put(exit.getCommandName(), exit);\r\n ShellCommand cat = new CatCommand();\r\n commands.put(cat.getCommandName(), cat);\r\n ShellCommand copy = new CopyCommand();\r\n commands.put(copy.getCommandName(), copy);\r\n ShellCommand ls = new LsCommand();\r\n commands.put(ls.getCommandName(), ls);\r\n ShellCommand mkdir = new MkdirCommand();\r\n commands.put(mkdir.getCommandName(), mkdir);\r\n ShellCommand hexdump = new HexdumpCommand();\r\n commands.put(hexdump.getCommandName(), hexdump);\r\n ShellCommand tree = new TreeCommand();\r\n commands.put(tree.getCommandName(), tree);\r\n ShellCommand help = new HelpCommand();\r\n commands.put(help.getCommandName(), help);\r\n ShellCommand pwd = new PwdCommand();\r\n commands.put(pwd.getCommandName(), pwd);\r\n ShellCommand cd = new CdCommand();\r\n commands.put(cd.getCommandName(), cd);\r\n ShellCommand pushd = new PushdCommand();\r\n commands.put(pushd.getCommandName(), pushd);\r\n ShellCommand popd = new PopdCommand();\r\n commands.put(popd.getCommandName(), popd);\r\n ShellCommand listd = new ListdCommand();\r\n commands.put(listd.getCommandName(), listd);\r\n ShellCommand dropd = new DropdCommand();\r\n commands.put(dropd.getCommandName(), dropd);\r\n ShellCommand rmtree = new RmtreeCommand();\r\n commands.put(rmtree.getCommandName(), rmtree);\r\n ShellCommand cptree = new CptreeCommand();\r\n commands.put(cptree.getCommandName(), cptree);\r\n ShellCommand massrename = new MassrenameCommand();\r\n commands.put(massrename.getCommandName(), massrename);\r\n }", "private ConsoleCommand[] registerCommands(){\r\n\t\tHelpCommand help = new HelpCommand(this.application, \"Help\", \"?\");\r\n\t\t\r\n\t\tConsoleCommand[] commands = {\r\n\t\t\t\tnew WebServicesCommand(this.application, \"WebService\"),\r\n\t\t\t\tnew ScannerCommand(this.application, \"Scanner\"),\r\n\t\t\t\tnew ShowConfigCommand(this.application, \"System.Config\", \"Config\"),\r\n\t\t\t\tnew ShowStatsCommand(this.application, \"System.Stats\", \"Stats\"),\r\n\t\t\t\tnew ShutdownCommand(this.application, \"System.Shutdown\", \"Exit\", \"Shutdown\"),\r\n\t\t\t\tnew DisableUserCommand(this.application, \"User.Disable\"),\r\n\t\t\t\tnew EnableUserCommand(this.application, \"User.Enable\"),\r\n\t\t\t\tnew ListUsersCommand(this.application, \"User.List\"),\r\n\t\t\t\tnew SetPasswordCommand(this.application, \"User.SetPassword\"),\r\n\t\t\t\tnew UnlockUserCommand(this.application, \"User.Unlock\"),\r\n\t\t\t\tnew AddUserCommand(this.application, \"User.Add\"),\r\n\t\t\t\tnew ShowEventsCommand(this.application, \"ShowEvents\"),\r\n\t\t\t\tnew TaskListCommand(this.application, \"Task.List\"),\r\n\t\t\t\tnew TaskStopCommand(this.application, \"Task.Stop\"),\r\n\t\t\t\tnew EventLogLastCommand(this.application, \"EventLog.Last\"),\r\n\t\t\t\tnew EventLogViewCommand(this.application, \"EventLog.View\"),\r\n\t\t\t\thelp\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\tdefaultCommand = help;\r\n\t\thelp.setCommands(commands);\r\n\t\t\r\n\t\treturn commands;\r\n\t}", "@Override\n public Cli<C> build() {\n ParserMetadata<C> parserConfig = this.parserBuilder.build();\n\n CommandMetadata defaultCommandMetadata = null;\n List<CommandMetadata> allCommands = new ArrayList<CommandMetadata>();\n if (defaultCommand != null) {\n defaultCommandMetadata = MetadataLoader.loadCommand(defaultCommand, baseHelpSections, parserConfig);\n }\n\n List<CommandMetadata> defaultCommandGroup = defaultCommandGroupCommands != null\n ? MetadataLoader.loadCommands(defaultCommandGroupCommands, baseHelpSections, parserConfig)\n : new ArrayList<CommandMetadata>();\n\n allCommands.addAll(defaultCommandGroup);\n if (defaultCommandMetadata != null)\n allCommands.add(defaultCommandMetadata);\n\n // Build groups\n List<CommandGroupMetadata> commandGroups;\n if (groups != null) {\n commandGroups = new ArrayList<CommandGroupMetadata>();\n for (GroupBuilder<C> groupBuilder : groups.values()) {\n commandGroups.add(groupBuilder.build());\n }\n } else {\n commandGroups = new ArrayList<>();\n }\n\n // Find all commands registered in groups and sub-groups, we use this to\n // check this is a valid CLI with at least 1 command\n for (CommandGroupMetadata group : commandGroups) {\n allCommands.addAll(group.getCommands());\n if (group.getDefaultCommand() != null)\n allCommands.add(group.getDefaultCommand());\n\n // Make sure to scan sub-groups\n Queue<CommandGroupMetadata> subGroups = new LinkedList<CommandGroupMetadata>();\n subGroups.addAll(group.getSubGroups());\n while (!subGroups.isEmpty()) {\n CommandGroupMetadata subGroup = subGroups.poll();\n allCommands.addAll(subGroup.getCommands());\n if (subGroup.getDefaultCommand() != null)\n allCommands.add(subGroup.getDefaultCommand());\n subGroups.addAll(subGroup.getSubGroups());\n }\n }\n\n // add commands to groups based on the value of groups in the @Command\n // annotations\n // rather than change the entire way metadata is loaded, I figured just\n // post-processing was an easier, yet uglier, way to go\n MetadataLoader.loadCommandsIntoGroupsByAnnotation(allCommands, commandGroups, defaultCommandGroup,\n baseHelpSections, parserConfig);\n\n // Build restrictions\n // Use defaults if none specified\n if (restrictions.size() == 0)\n withDefaultRestrictions();\n\n if (allCommands.size() == 0)\n throw new IllegalArgumentException(\"Must specify at least one command to create a CLI\");\n\n // Build metadata objects\n GlobalMetadata<C> metadata = MetadataLoader.<C> loadGlobal(name, description, defaultCommandMetadata,\n ListUtils.unmodifiableList(defaultCommandGroup), ListUtils.unmodifiableList(commandGroups),\n ListUtils.unmodifiableList(restrictions), Collections.unmodifiableCollection(baseHelpSections.values()),\n parserConfig);\n\n return new Cli<C>(metadata);\n }", "public void setCommand(String command) {\n this.command = command;\n }", "public void initDefaultCommand() {\n \n }", "public ReloadCommand() {\n super(\"reload\");\n }", "private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}", "@Override\n public Command parseCommand(String commandText, ViewController viewController, Cli cli) throws InvalidCommandException {\n\n System.out.println(this+\": \"+commandText);\n String word = \"\";\n Resource resource;\n String prefix = \"\";\n String suffix = \"\";\n boolean found = false;\n ArrayList<Resource> resources = new ArrayList<>();\n\n if (commandText.length() == 0)\n throw new InvalidCommandException();\n\n commandText = Command.deleteInitSpaces(commandText);\n\n for (int i = 0;i<commandText.length();i++){\n if (commandText.charAt(i) != ' '){\n prefix = prefix + commandText.charAt(i);\n } else {\n for (i++;i<commandText.length();i++)\n suffix = suffix + commandText.charAt(i);\n }\n }\n\n if (prefix.equals(\"coin\") || prefix.equals(\"rock\") || prefix.equals(\"shield\") || prefix.equals(\"servant\")){\n\n resource = Command.fromStringToResource(prefix);\n resources.add(resource);\n\n for (int i = 0;i<suffix.length();i++){\n if (suffix.charAt(i) != ' '){\n word = word + suffix.charAt(i);\n } else {\n resource = Command.fromStringToResource(word);\n if(resource != null )\n for(Resource r : possibleResources)\n if (r == resource)\n resources.add(resource);\n word = \"\";\n }\n }\n resource = Command.fromStringToResource(word);\n if(resource != null )\n for(Resource r : possibleResources)\n if (r == resource)\n resources.add(resource);\n\n if (resources.size() != numberOfWhiteMarbles){\n throw new InvalidCommandException();\n }\n return new WhiteMarbleCommand(resources,cli);\n } else {\n switch (prefix) {\n case \"exit\": {\n return new ExitCommand();\n }\n case \"help\": {\n return new HelpCommand();\n }\n case \"showGameboard\": {\n return new ShowGameBoardCommand(cli);\n }\n case \"showMarket\": {\n return new ShowMarketCommand(cli);\n }\n case \"showPlayer\": {\n\n int n = 0;\n int temp;\n found = false;\n\n for (int i = 0; i < suffix.length() && !found; i++) {\n if (suffix.charAt(i) != ' ') {\n temp = suffix.charAt(i) - '0';\n if (temp < 0 || temp > 9)\n throw new InvalidCommandException();\n n = temp;\n found = true;\n }\n\n }\n if (n < 1 || n > 4)\n throw new InvalidCommandException();\n return new ShowPlayerCommand(n, viewController);\n\n }\n case \"showProductionDecks\": {\n return new ShowProductionDeckCommand(cli);\n }\n case \"showReserve\": {\n return new ShowReserveCommand(cli);\n }\n default: {\n throw new InvalidCommandException();\n }\n }\n }\n }", "@Override\n public void addCommand(CommandConfig command) {\n }", "@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:/crash/*\"};\n\n // Comma-separated list of commands to disable.\n String[] disabledCommands = new String[]{\"jpa*\", \"jdbc*\", \"jndi*\"};\n\n // Comma-separated list of plugins to disable. Certain plugins are disabled by default\n // based on the environment.\n String[] disabledPlugins = new String[0];\n\n FS commandFileSystem = createFileSystem(\n commandPathPatterns,\n disabledCommands);\n FS configurationFileSystem = createFileSystem(\n configPathPatterns, new String[0]);\n\n PluginDiscovery discovery = new BeanFactoryFilteringPluginDiscovery(\n this.resourceLoader.getClassLoader(), this.beanFactory,\n disabledPlugins);\n\n PluginContext context = new PluginContext(discovery,\n createPluginContextAttributes(), commandFileSystem,\n configurationFileSystem, this.resourceLoader.getClassLoader());\n\n context.refresh();\n start(context);\n }", "public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}", "@Override\n public void initDefaultCommand() {\n\n }", "Command createCommand();", "public void initDefaultCommand() \n {\n }", "Set<CommandConfigurationDTO> getCommands();", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n \n }", "@Override\n public void initDefaultCommand() \n {\n }", "private interface Command {\n public void execute();\n }", "interface CommandBase {}", "public void initDefaultCommand() {\n\t}", "public IManagedCommandLineGenerator getCommandLineGenerator();", "@StartStep(localName=\"command-engineering\", after={\"config\"})\n public static void startCommandEngineering(LifecycleContext context) \n {\n // for each class that is a Catalog or Command, create an entry for those in the context.\n ClassScanner classScanner = new ClassScanner(context);\n classScanner.scan();\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "public interface CommandFactory {\n Command fromString(String s) throws UnknownCommandException;\n}", "public CommandsFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public void initDefaultCommand()\n {\n }", "void readCommand(String command) throws IOException, ClassNotFoundException, InterruptedException;", "public interface Command {\n \n /**\n * Méthode utilisée pour réaliser l'action voulue.\n */\n public void execute();\n \n /**\n * Méthode utilisée pour annuler la dernière action.\n */\n public void undo();\n}", "public void setCommand(String command) {\n this.command = command;\n }", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "public void setCommand(String command)\n {\n this.command = command;\n }", "private CommandMapper() {\n }", "@Override\n public void initDefaultCommand() {\n }", "public CommandFactory() {\n command = new HashMap<>();\n command.put(\"GET/login\", new EmptyCommand());\n command.put(\"POST/login\", new LoginCommand());\n command.put(\"GET/admin\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"GET/user\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"GET/profile\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"POST/ban\", new BanUserCommand());\n command.put(\"POST/changelang\", new ChangeLanguageCommand());\n command.put(\"POST/unban\", new UnbanUserCommand());\n command.put(\"POST/add\", new AddPublicationCommand());\n command.put(\"POST/delete\", new DeletePublicationCommand());\n command.put(\"GET/main\", new ForwardToMainCommand());\n command.put(\"GET/controller/error\", new ForwardToErrorCommand());\n command.put(\"GET/logout\", new LogoutCommand());\n command.put(\"POST/subscribe\", new SubscribeCommand());\n command.put(\"POST/unsubscribe\", new UnsubscribeCommand());\n command.put(\"POST/changename\", new ChangeNameCommand());\n command.put(\"POST/changepassword\", new ChangePasswordCommand());\n command.put(\"POST/adminchangename\", new SetUserNameCommand());\n command.put(\"POST/changebalance\", new SetUserBalanceCommand());\n command.put(\"POST/changepublicationprice\", new SetPublicationPriceCommand());\n command.put(\"POST/changepublicationname\", new SetPublicationNameCommand());\n command.put(\"POST/changepublicationtype\", new SetPublicationTypeCommand());\n command.put(\"GET/admin/publications\", new ForwardToProfileCommand(Pages.PUBLICATIONS_PATH, Pages.USER_PATH));\n command.put(\"GET/user/payments\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.PAYMENTS_PATH));\n command.put(\"GET/admin/users\", new ForwardToProfileCommand(Pages.USERS_PATH, Pages.USERS_PATH));\n command.put(\"POST/login/restore\", new RestorePasswordCommand());\n\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }" ]
[ "0.6790442", "0.6440591", "0.62500834", "0.5960908", "0.59331024", "0.58868706", "0.57956415", "0.57955784", "0.5704906", "0.56278783", "0.56207883", "0.5594443", "0.55798984", "0.55672354", "0.5567099", "0.55616826", "0.55610573", "0.5548339", "0.5513751", "0.55107194", "0.54960424", "0.5492061", "0.5490084", "0.5478213", "0.5416158", "0.54029197", "0.53845286", "0.53786075", "0.53610694", "0.5356528", "0.53503674", "0.53403616", "0.5320624", "0.5318733", "0.5306732", "0.5301418", "0.52940017", "0.5282234", "0.5278602", "0.52764654", "0.5276404", "0.526192", "0.5258009", "0.5227802", "0.5220315", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.52193445", "0.5186661", "0.51828516", "0.5182728", "0.517269", "0.51675963", "0.51671547", "0.5166843", "0.5165325", "0.5165325", "0.5165325", "0.5165325", "0.5165325", "0.5165325", "0.5165325", "0.5164562", "0.5155669", "0.51551557", "0.5153062", "0.5137359", "0.5126549", "0.5124512", "0.5124512", "0.51218235", "0.51076996", "0.5107639", "0.51070595", "0.5085612", "0.5085612", "0.5085612", "0.5085612" ]
0.77243084
0
Get command by name
private Command getCommandByName(String name) { for (Command command : commands) { if (command.getName().equals(name)) { return command; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Commands getCommand(String cmdName) {\n return cmdMap.get(cmdName);\n }", "private Command findCommand( String commandName )\n {\n Command command = null;\n CommandLine[] commands = commandList;\n\n for (int cmd = 0; cmd < commandList.length; ++cmd)\n {\n if (commandList[cmd].equals( commandName ))\n {\n command = commandList[cmd].command;\n break;\n }\n }\n\n return (command);\n }", "public static Command get(String commandName) {\n if (commandName == null || !commands.containsKey(commandName)) {\n log.trace(\"Command not found, name --> \" + commandName);\n return commands.get(\"noCommand\");\n }\n\n return commands.get(commandName);\n }", "java.lang.String getCommand();", "String getCommand();", "ACommand CheckCommand(String NameCommand);", "public Optional<ChatCommand> getCommand(final String name, final ConfigManager config) {\n final Locale locale = config.getLocale();\n final long guildID = config.getGuildID();\n //Checks if we find built in command by that name\n return this.commands.getBuiltInCommand(name, locale).or(() -> {\n //Did not find built in command, return optional from templateManager\n try {\n return this.templates.getCommand(name, guildID);\n } catch (SQLException e) {\n LOGGER.error(\"Loading templates from database failed: {}\", e.getMessage());\n LOGGER.trace(\"Stack trace: \", e);\n return Optional.empty();\n }\n });\n }", "@RequestMapping(value = \"/name/{name:.+}\", method = RequestMethod.GET)\n @Override\n public List<Command> commandForName(@PathVariable String name) {\n try {\n return repos.findByName(name);\n } catch (Exception e) {\n logger.error(\"Error getting command: \" + e.getMessage());\n throw new ServiceException(e);\n }\n }", "java.lang.String getCommand(int index);", "public MonitorGetCommand mapGetCommand(String dottedName)\n throws MalformedNameException {\n ParsedDottedName result = parseDottedName(dottedName, CLI_COMMAND_GET);\n MonitorGetCommand command;\n if (result.monitoredObjectType != null) {\n command = new MonitorGetCommand(result.objectName,\n result.monitoredObjectType, result.attributeName);\n } else {\n command = new MonitorGetCommand(result.objectName,\n result.attributeName);\n }\n return command;\n }", "public Command get(String word)\n {\n return (Command)commands.get(validCommands.get(word));\n }", "public ICommand getCommand(HttpServletRequest request) {\n\n ICommand command = commands.get(request.getParameter(\"command\"));\n\n if (command == null) {\n command = new NoCommand();\n }\n\n return command;\n }", "int getCommand();", "public java.lang.String getCommand(int index) {\n return command_.get(index);\n }", "public String getCommand(){\n return getCommand(null);\n }", "public java.lang.String getCommand(int index) {\n return command_.get(index);\n }", "public AbstractCommand getCommand(HttpServletRequest request) {\n LOGGER.info(\"request key is \" + request.getMethod() + request.getPathInfo());\n String method = request.getMethod();\n String pathInfo = request.getPathInfo();\n return command.get(method + pathInfo);\n }", "java.lang.String getCommandName();", "@SuppressWarnings(\"unchecked\")\n public static <T extends CommandBase> T getFromName(String cmdName,\n Class<T> cmdClass) throws CommandNotFoundException {\n T cmd = null;\n try {\n Method getFullClassName = cmdClass.getMethod(\"getFullClassName\", String.class);\n cmdName = (String)getFullClassName.invoke(null, cmdName);\n\n Class<?> specificClass = Class.forName(cmdName);\n cmd = (T) specificClass.newInstance();\n } catch (NoSuchMethodException e) {\n // Este tipo de erro nao pode passar em branco. Alguem esqueceu de implementar\n // o metodo estatico \"getFullClassName\" na superclasse de comando\n Logger.error(\"getFullClassName nao esta definifo - \" + cmdClass.getName());\n throw new RuntimeException(\"getFullClassName nao esta definido em \"\n + cmdClass.getName());\n } catch (Exception e) {\n // Qualquer outro problema durante a instanciacao do comando\n // e tratado como command not found\n Logger.error(\"Exception durante a criacao do comando!\", e);\n throw new CommandNotFoundException(e);\n }\n return cmd;\n }", "public CommandBase removeCmd(String name){\n\t\treturn cmds.remove(name.toLowerCase());\n\t}", "public Command getCurrentCommand();", "private Command getCommand(String s) throws Exception {\n Class c = Class.forName(\"model.command.\" + this.getSymbol(this.getSymbol(s, translations), commandTranslations));\n Constructor ct = c.getConstructor();\n return (Command) ct.newInstance();\n }", "public abstract String getCommand();", "public Command getCommand() {\n String userInput = in.nextLine();\n String[] words = userInput.split(\" \", 2);\n try {\n return new Command(words[0].toLowerCase(), words[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n return new Command(words[0].toLowerCase(), Command.BLANK_DESCRIPTION);\n }\n }", "private static Command<?> getCommand(@NonNull String inputStr) {\n int seperatorIndex = inputStr.indexOf(' ');\n String commandStr = seperatorIndex == -1 ? inputStr : inputStr.substring(0, seperatorIndex);\n String paramStr = seperatorIndex == -1 ? \"\" : inputStr.substring(seperatorIndex + 1).trim();\n\n if (\"Tag\".equalsIgnoreCase(commandStr)) {\n List<String> tagList = Splitter.on(\",\")\n .trimResults()\n .omitEmptyStrings()//可以 选择是否对 空字符串 做处理\n .splitToList(paramStr.replace(',', ','));\n return new TagCommand(tagList.toArray(new String[]{}));\n } else if (\"Name\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify file path\");\n }\n return new NameCommand(paramStr);\n } else if (\"Where\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify search criteria\");\n }\n return new WhereCommand(paramStr);\n } else if (\"Analyze\".equalsIgnoreCase(commandStr)) {\n return new AnalyzeCommand();\n } else if (\"Export\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify export file path\");\n }\n return new ExportCommand(paramStr);\n } else {\n throw new IllegalArgumentException(\"Use either Tag, Where, Name, Export, or Analyze\");\n }\n }", "int getCmd();", "public static Keywords getCommand(String s) {\n \tKeywords command = commands.get(s.toLowerCase());\n \tif(command == null) {\n \t\treturn Keywords.ERROR;\n \t}\n \treturn command;\n }", "public static CommandEnum getCommand(String theString) {\n return validCommands.get(theString);\n }", "public String getCommandName() {\n try {\n if (command != null) {\n if (command.has(GnsProtocol.COMMANDNAME)) {\n return command.getString(GnsProtocol.COMMANDNAME);\n }\n }\n } catch (JSONException e) {\n // Just ignore it\n }\n return \"unknown\";\n }", "private Command getCommandOrFunction(String s) {\n\t\tCommand c;\n\t\tif (myDictionary.getCommand(s) != null) {\n\t\t\ttry {\n\t\t\t\tc = commandGenerator.create(myDictionary.getCommand(s),myTurtles, myVis);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tthrow new SLogoException(\"Invalid command entry found: \" + s);\n\t\t\t}\n\t\t}\n\t\telse if(commandMatch.matcher(s).matches()) {\n\t\t\tc = myDictionary.getFunction(s);\n\t\t} \n\t\telse {\n\t\t\tif(Pattern.compile(END_GROUP).matcher(s).matches())\n\t\t\t\tthrow new SLogoException(\"End of grouping command reached with insufficient arguments for a function.\");\n\t\t\tif(Pattern.compile(END_LIST).matcher(s).matches())\n\t\t\t\tthrow new SLogoException(\"End of list reached with insufficient arguments for a function.\");\n\t\t\tthrow new SLogoException(\"Invalid expression found in parsing: \" + s);\n\t\t}\n\t\treturn c;\n\t}", "private List<Command> getCommands(String name) {\r\n\t\tList<Command> result = new ArrayList<>();\r\n\t\tfor (Command command : commands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (LearnedCommand command : learnedCommands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static String getCommand(String cmd) throws IOException {\n Scanner s = new Scanner(Runtime.getRuntime().exec(cmd).getInputStream()).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "public String getCommand() { return command; }", "public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}", "static String getCommand() {\n\t\tString command;\n\t\twhile (true) {\n\t\t\tScanner sca = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tcommand = sca.next();\n\t\t\tif (command.equals(\"ac\") || command.equals(\"dc\") || command.equals(\"as\") || command.equals(\"ds\") || command.equals(\"p\") || command.equals(\"q\"))\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Invalid command: \" + command);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t// System.out.println(command);\n\t\treturn command;\n\t}", "String getCommandName();", "public static CmdProperties getCommandPropertiesFromName(String name) {\n return commandClasses.get(name);\n }", "public String getCommand() {\n String command = \"\";\n switch (turnCount) {\n case 0:\n command = \"NAME Bot0\";\n break;\n case 1:\n command = \"PASS\";\n break;\n case 2:\n command = \"HELP\";\n break;\n case 3:\n command = \"SCORE\";\n break;\n case 4:\n command = \"POOL\";\n break;\n default:\n command = \"H8 A AN\";\n break;\n }\n turnCount++;\n return command;\n }", "Optional<String> command();", "public String getCommand() {\r\n return command;\r\n }", "public String getUserCommand();", "RecipeCommand findCommandById(Long id);", "public String getCommand() {\n return command;\n }", "public String getCommand() {\n return command;\n }", "public void getCommand() {\n\t\t\n\t\tSystem.out.println(\"Enter a command:\");\n\t\tString Input = reader.nextLine(); //takes the user's input and places it in String Input\n\t\t\n\t\t//in the collection of commands, will run loop once for each item in that collection and \n\t\t//stores the item it is looking in the variable created\n\t\tfor (Commandable command : Commands) { \n\t\t\t\n\t\t\tif (command.matchCommand(Input)) {\n\t\t\t\t\n\t\t\t\tcommand.doCommand();\n\t\t\t\treturn;\t//this ends the method to break out of the loop\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Command not recognized\");\n\t}", "String getCommandId();", "@Override\n public final Command getCommand() {\n return commandIdentifier;\n }", "public Command getCommand(String userInput) {\n return this.parser.parse(userInput);\n }", "private Command getCommandFromConversationManager(String userInput) throws DukeException {\n conversationManager.converse(userInput);\n return conversationManager.getCommand();\n }", "public String getCommand() {\n\n return command;\n }", "public abstract String getCommandName();", "public abstract String getCommandName();", "public CommandManager getCommand() {\n\treturn command;\n }", "public static final String getCommandName(int cmd) {\n \n //\tGet the command name\n \n String cmdName = \"\";\n \n if ( cmd >= 0 && cmd < _cmdNames1.length) {\n\n //\tGet the command name from the main name table\n \n cmdName = _cmdNames1[cmd];\n }\n else {\n \n //\tMask the command to determine the command table to index\n \n switch ( cmd & 0x00F0) {\n \tcase 0x70:\n \t cmdName = _cmdNames2[cmd - 0x70];\n \t break;\n \tcase 0x80:\n \t\tcmdName = _cmdNames3[cmd - 0x80];\n \t\tbreak;\n \tcase 0xA0:\n \t cmdName = _cmdNames4[cmd - 0xA0];\n \t\tbreak;\n \tcase 0xC0:\n \t cmdName = _cmdNames5[cmd - 0xC0];\n \t break;\n \tcase 0xD0:\n \t cmdName = _cmdNames6[cmd - 0xD0];\n \t break;\n \tdefault:\n \t cmdName = \"0x\" + Integer.toHexString(cmd);\n \t\tbreak;\n }\n }\n \n //\tReturn the command name string\n \n return cmdName;\n }", "public Boolean whichCmd(String s){\n if (s.charAt(0) == '!' || s.charAt(0) == '?'){\n return cmd.get(s.substring(0,1)).apply(s.substring(1));\n }\n else return histOrPile(s);\n }", "public java.lang.String getCommand() {\n java.lang.Object ref = command_;\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 command_ = s;\n }\n return s;\n }\n }", "private void getCommand(String cmlet) {\n\t\tSystem.out.println(\"Command Version\");\n\t\tSystem.out.println(\"----------- -------\");\n\t\tSystem.out.println(\" Exit 1.0\");\n\t\tSystem.out.println(\" Get-Host 1.0\");\n\t\tSystem.out.println(\" Get-Command 1.0\");\n\t\tSystem.out.println(\" Write-Host 1.0\");\n\t}", "public static Command getCommand(Character c) {\n\t\treturn null == commandMap.get(c) ? commandMap.get(null) : commandMap.get(c);\n\t}", "public String Command() {\n\treturn command;\n }", "public String getCommand() {\n return this.command;\n }", "public String getCommand() {\n\t\tString[] lines = commandLine.getText().split(\"\\n\");\n\t\treturn lines[commandLine.getLineCount() - 2];\n\t}", "public network.message.PlayerResponses.Command getCommand() {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "@Override\n public String getCommandName() {\n return s_name;\n }", "public Command getEnteredCommand(String enteredCommand) {\r\n\t\t\treturn this.getPlayer().getPlayerCommands().get(enteredCommand);\r\n\t\t}", "public network.message.PlayerResponses.Command getCommand() {\n if (commandBuilder_ == null) {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n } else {\n if (responseCase_ == 2) {\n return commandBuilder_.getMessage();\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }\n }", "public String getCommand(){\n return command;\n }", "String getCommand(){\n\t\tString command=\"\";\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcommand = br.readLine();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Somethinf went wrong with the system input!! Please try again.\");\n\t\t}\n\t\treturn command;\n\t}", "public String getToolCommand();", "private Command parseCommand(String input) {\r\n\r\n String[] splittedInput = input.toUpperCase().split(\" \");\r\n String command = splittedInput[0];\r\n\r\n switch (command) {\r\n case \"PLACE\":\r\n return new PlaceCommand(input);\r\n case \"MOVE\":\r\n return new MoveCommand();\r\n case \"LEFT\":\r\n return new RotateLeftCommand();\r\n case \"RIGHT\":\r\n return new RotateRightCommand();\r\n case \"REPORT\":\r\n return new ReportCommand();\r\n default:\r\n return new IgnoreCommand();\r\n }\r\n }", "public static String getCommand(String input) {\n String[] strArr = input.split(\" \", 2);\n return strArr[0];\n }", "public String readCommand() {\n Scanner sc = new Scanner(System.in);\n return sc.nextLine();\n }", "@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}", "public Optional<ChatCommand> getAction(final CommandMatcher matcher, final ConfigManager config) {\n final Optional<String> optName = matcher.getCommand();\n if (optName.isEmpty()) {\n return Optional.empty();\n }\n final String commandName = optName.get();\n return getCommand(commandName, config);\n }", "Command createCommand();", "public int getCommand() {\r\n\t\tif(this.command == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.command.ordinal();\r\n\t}", "public MinigameCommand(String name){\n super(name);\n commandAliases = Collections.singletonList(name);\n }", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n @Override\n public Command command(@PathVariable String id) {\n try {\n Command cmd = repos.findOne(id);\n if (cmd == null)\n throw new NotFoundException(Command.class.toString(), id);\n return cmd;\n } catch (NotFoundException nfE) {\n throw nfE;\n } catch (Exception e) {\n logger.error(\"Error getting command: \" + e.getMessage());\n throw new ServiceException(e);\n }\n }", "public int getCommand() {\n return command_;\n }", "public MonitorCommand mapCliCommand(String command, String dottedName)\n throws MalformedNameException {\n MonitorCommand monitorCommand = null;\n if (CLI_COMMAND_GET.equalsIgnoreCase(command)) {\n monitorCommand = mapGetCommand(dottedName);\n } else if (CLI_COMMAND_LIST.equalsIgnoreCase(command)) {\n monitorCommand = mapListCommand(dottedName);\n } else {\n\t\t\tString msg = localStrings.getString( \"admin.monitor.unknown_cli_command\", command );\n throw new IllegalArgumentException( msg );\n }\n return monitorCommand;\n }", "public CommandPack executeCommandClient(String s) throws NullPointerException, NoSuchElementException {\n\n int index = s.indexOf(' ');\n\n String commandName;\n String keyWords;\n\n if (index > -1) {\n commandName = s.substring(0, index);\n keyWords = s.substring(index + 1);\n } else {\n commandName = s;\n keyWords = \"\";\n }\n try {\n\n if (history.size() > 5) {\n history.poll();\n }\n history.add(commandName);\n commands.get(commandName).onCall(keyWords);\n\n } catch (NullPointerException e) {\n System.out.println(\"There is no such command\");\n return null;\n } catch (IOException e) {\n System.out.println(\"we don't have a permission to interact with a file (or an unknown error occurred)\");\n return null;\n }\n return (new CommandPack(commandName, additionalOutputToServer, currentUserInfo));\n }", "public String readCommand() {\n return scanner.nextLine();\n }", "private String interpredCommand(String[] data, String commandName) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n\n\t\tString ClassCommandName = String.valueOf(commandName.charAt(0)).toUpperCase() + commandName.substring(1);\n\t\tClass<?> commandClass = Class.forName(COMMAND_PATH + ClassCommandName + COMMAND_SUFIX_NAME);\n\n\t\tConstructor<?> declareContructor = commandClass.getDeclaredConstructor(String[].class, Repository.class,\n\t\t\t\tUnitFactory.class);\n\n\t\tExecutable command = (Executable) declareContructor.newInstance(data, this.repository, this.unitFactory);\n\t\treturn command.execute();\n\n\t}", "public Command commandType() {\r\n if (command.startsWith(\"push\")) {\r\n return Command.C_PUSH;\r\n } else if (command.startsWith(\"pop\")) {\r\n return Command.C_POP;\r\n } else if (isArithmeticCmd()) {\r\n return Command.C_ARITHMETIC;\r\n } else if (command.startsWith(\"label\")) {\r\n return Command.C_LABEL;\r\n } else if (command.startsWith(\"goto\")) {\r\n return Command.C_GOTO;\r\n } else if (command.startsWith(\"if-goto\")) {\r\n return Command.C_IF;\r\n } else if (command.startsWith(\"function\")) {\r\n return Command.C_FUNCTION;\r\n } else if (command.startsWith(\"call\")) {\r\n return Command.C_CALL;\r\n } else if (command.startsWith(\"return\")) {\r\n return Command.C_RETURN;\r\n } else {\r\n return null;\r\n }\r\n }", "private Command convertToCommand(String input){\n try {\n return Command.valueOf(input.toUpperCase().trim());\n } catch (IllegalArgumentException e){\n return null;\n }\n }", "public static CommandWord getCommandWord(String commandWord)\n {\n CommandWord command = CommandWord.UNKNOWN;\n \n for(CommandWord c : CommandWord.values()) {\n if(c.toString().equalsIgnoreCase(commandWord)) {\n command = c;\n }\n } \n return command;\n }", "public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCommand() {\n if (words.length == 0) {\n return NO_INPUT;\n }\n return words[0].toLowerCase();\n }", "public static Command getCommand(String strScanned) throws InvalidCommandException{\r\n \r\n String[] tabScanned = strScanned.split(\" \");\r\n String sCommand;\r\n if(tabScanned[0].length() > 3) {\r\n sCommand = tabScanned[0].substring(0, 3);\r\n }\r\n else {\r\n sCommand = tabScanned[0];\r\n }\r\n \r\n String cmd = sCommand.toUpperCase();\r\n Command c;\r\n \r\n switch(cmd) {\r\n \r\n case \"GO\":\r\n c = Command.GO;\r\n break;\r\n case \"HEL\":\r\n c = Command.HELP;\r\n break;\r\n case \"LOO\":\r\n c = Command.LOOK;\r\n break;\r\n case \"BAG\":\r\n c = Command.BAG;\r\n break;\r\n case \"TAK\":\r\n c = Command.TAKE;\r\n break;\r\n case \"QUI\":\r\n c = Command.QUIT;\r\n break;\r\n case \"USE\":\r\n c = Command.USE;\r\n break; \r\n case \"YES\":\r\n c = Command.YES; \r\n break;\r\n case \"NO\":\r\n c = Command.NO;\r\n break;\r\n case \"ATT\":\r\n \tc = Command.ATTACK;\r\n \tbreak;\r\n default:\r\n c = Command.INVALID;\r\n break;\r\n }\r\n \r\n if(c == Command.INVALID) {\r\n throw new InvalidCommandException();\r\n }\r\n \r\n return c;\r\n }", "@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}", "public int getCommand() {\n return command_;\n }", "public int getCommand()\n\t{\n\t\treturn this.command;\n\t}", "public DynamicMethod retrieveMethod(String name) {\n return getMethods().get(name);\n }", "public String getCmd() {\r\n return cmd;\r\n }" ]
[ "0.80245507", "0.7724539", "0.7714949", "0.7488315", "0.74508584", "0.72367364", "0.719698", "0.7141017", "0.7128828", "0.69755405", "0.6953135", "0.6831036", "0.6820455", "0.68004453", "0.6772535", "0.67518735", "0.67486274", "0.67445093", "0.6727549", "0.66868216", "0.6628394", "0.6608342", "0.65948695", "0.6513645", "0.6483222", "0.646942", "0.6468582", "0.6449077", "0.6419362", "0.64184284", "0.639687", "0.6388706", "0.6347304", "0.6337682", "0.63372415", "0.63151354", "0.63087404", "0.6265373", "0.6256491", "0.62403095", "0.62314767", "0.62216157", "0.61952245", "0.61952245", "0.6186714", "0.61743015", "0.61670053", "0.6165856", "0.6157166", "0.61423963", "0.6138128", "0.6138128", "0.61329347", "0.61318916", "0.61241674", "0.6123953", "0.61125773", "0.61070967", "0.60916007", "0.60892963", "0.606388", "0.6053937", "0.60493183", "0.6045066", "0.6045066", "0.6045066", "0.6045066", "0.6045066", "0.6045066", "0.6045066", "0.60349214", "0.6027601", "0.602131", "0.6017772", "0.6012093", "0.6005071", "0.60047376", "0.5995044", "0.5992064", "0.598386", "0.5977502", "0.5975529", "0.59628457", "0.59589934", "0.5949579", "0.5944303", "0.5939417", "0.5935205", "0.59283376", "0.5925416", "0.5925011", "0.592432", "0.5915859", "0.5914431", "0.5901923", "0.590093", "0.5895833", "0.5895223", "0.58942753", "0.58886623" ]
0.8324972
0
Format item for help.
private String formatHelpItem(String name, String description) { return "\t" + name + " - " + description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void encodeItemConfig(Formatter fmt, FacesContext context, UIComponent item, String text) {\n String icon = getItemIcon(context, item);\n String styleClass = (String)item.getAttributes().get(\"styleClass\");\n String disabledClass = (String)item.getAttributes().get(\"disabledClass\");\n String activeClass = (String)item.getAttributes().get(\"activeClass\");\n\n fmt.format(\"text:%s\", HtmlEncoder.enquote(text, '\\''));\n fmt.format(\",plugins:new Ext.ux.plugins.MenuItemPlugin()\");\n if (icon != null)\n fmt.format(\",icon:%s\", HtmlEncoder.enquote(icon, '\\''));\n if (HtmlRenderer.isDisabled(item))\n fmt.format(\",disabled:true\");\n if (styleClass != null)\n fmt.format(\",itemCls:'%s'\", styleClass);\n if (disabledClass != null)\n fmt.format(\",disabledClass:'%s'\", disabledClass);\n if (activeClass != null)\n fmt.format(\",activeClass:'%s'\", activeClass);\n }", "private String getAgendaItemDescription(AgendaItem item) {\n StringBuilder description = new StringBuilder();\n description.append(Parser.parseToHTML(item.getDescription(), true));\n description.append(\"<br/>\");\n description.append(\"<br/><b>Wie</b>: \" + item.getWho());\n description.append(\"<br/><b>Wat</b>: \" + item.getWhat());\n description.append(\"<br/><b>Waar</b>: \" + item.getLocation());\n description.append(\"<br/><b>Wanneer</b>: \" + item.getWhen());\n description.append(\"<br/><b>Kosten</b>: \" + item.getCosts());\n\n return description.toString();\n }", "private void sendFormattedHelpLine(CommandSender sender, String title, String command, String perm) {\n StringBuilder message = new StringBuilder(\" §7 \");\n StringBuilder hiddenCommand = new StringBuilder(\"§c§k\");\n\n message.append(title).append(\": \");\n\n for (int i = 0; i < command.length(); i++)\n hiddenCommand.append(\"-\");\n\n if (EUtil.senderHasPerm(sender, perm))\n message.append(command);\n else\n message.append(hiddenCommand);\n\n sender.sendMessage(message.toString());\n }", "public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }", "public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }", "public String getDescription() {return \"Use an item in your inventory\"; }", "private static String formatEntry(Object entry){\n return QUOTE + entry.toString() + QUOTE + DELIM;\n }", "@Override\r\n \tpublic String toString() {\r\n \t\tStringBuilder result = new StringBuilder();\r\n \t\tresult.append('[');\r\n \t\tif(numItems > 0) {\r\n \t\t\tresult.append(items[0].toString());\r\n \t\t\t// We want number of spaces to be equal to numItems - 1\r\n \t\t\tfor(int i=1; i<numItems; i++) {\r\n \t\t\t\tresult.append(' ');\r\n \t\t\t\tresult.append(items[i].toString());\r\n \t\t\t}\r\n \t\t}\r\n \t\tresult.append(']');\r\n \t\treturn result.toString();\r\n \t}", "@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}", "@Override\n\tprotected String formatted(Walue _) {\n\t\treturn \"\";\n\t}", "public static void printInventoryHelpMessage() {\n\n UI.printEmptyLine();\n System.out.println(\"Here is a list of Inventory commands: \");\n\n UI.printEmptyLine();\n int[] lengthPara = {10,60,50};\n printer(new String[]{HELP_HEADER_COMMAND, HELP_HEADER_DESCRIPTION, HELP_HEADER_FORMAT}, lengthPara);\n UI.showLongLine();\n printer(new String[]{HELP_COMMAND, INVENTORY_HELP_DESCRIPTION, MARK_BLANK}, lengthPara);\n printer(new String[]{ADD_COMMAND, INVENTORY_ADD_DESCRIPTION, INVENTORY_ADD_FORMAT}, lengthPara);\n printer(new String[]{LIST_COMMAND, INVENTORY_LIST_DESCRIPTION, INVENTORY_LIST_FORMAT}, lengthPara);\n printer(new String[]{DELETE_COMMAND, INVENTORY_DELETE_DESCRIPTION, INVENTORY_DELETE_FORMAT}, lengthPara);\n printer(new String[]{RETURN_COMMAND, RETURN_DESCRIPTION, MARK_BLANK}, lengthPara);\n }", "public abstract String getHelpInfo();", "public String getFormattedOption(int offset, int descriptionStart, int width) {\n StringBuilder sb = new StringBuilder();\n if(required && ansiMode)\n sb.append(ANSI.BOLD);\n if(offset > 0)\n sb.append(String.format(\"%\" + offset+ \"s\", \"\"));\n if(shortName != null)\n sb.append(\"-\").append(shortName);\n if(name != null && name.length() > 0) {\n if(shortName != null)\n sb.append(\", \");\n sb.append(\"--\").append(name);\n }\n if(argument != null && argument.length() > 0) {\n sb.append(\"=<\").append(argument).append(\">\");\n }\n if(required && ansiMode)\n sb.append(ANSI.BOLD_OFF);\n if(description != null && description.length() > 0) {\n //int descOffset = descriptionStart - sb.length();\n int descOffset = descriptionStart - getFormattedLength() - offset;\n if(descOffset > 0)\n sb.append(String.format(\"%\"+descOffset+\"s\", \"\"));\n else\n sb.append(\" \");\n\n sb.append(description);\n }\n\n return sb.toString();\n }", "protected String getHelp() {\r\n return UIManager.getInstance().localize(\"renderingHelp\", \"Help description\");\r\n }", "@Override\n public String getItemDescription() {\n\treturn \"<html>The rare goblin sword: <br>+4 Strength, +1 craft<br>\"\n\t\t+ \"If you unequipped or loose the sword, you lose 2 lives,<br> unless it would kill you.\";\n }", "public void createHelpList() {\t\n\t\tcommandList.add(\"add event with deadline\");\n\t\tcommandList.add(\"add event with timeline\");\n\t\tcommandList.add(\"add event with timeline, single day\");\n\t\tcommandList.add(\"add event with no deadline\");\n\t\tcommandList.add(\"add event with rank\");\n\t\tcommandList.add(\"add recurring tasks with deadline\");\n\t\tcommandList.add(\"add recurring tasks with timeline\");\n\t\tcommandList.add(\"add timeline events with blocking ability\");\n\t\tcommandList.add(\"edit date only\");\n\t\tcommandList.add(\"edit title only\");\n\t\tcommandList.add(\"edit timeline only\");\n\t\tcommandList.add(\"edit rank only\");\n\t\tcommandList.add(\"deleting event\");\n\t\tcommandList.add(\"undo\");\n\t\tcommandList.add(\"redo\");\n\t\tcommandList.add(\"display default\");\n\t\tcommandList.add(\"display by date\");\n\t\tcommandList.add(\"display by importance\");\n\t\tcommandList.add(\"display alphabetically\");\n\t\tcommandList.add(\"search by title\");\n\t\tcommandList.add(\"search by date\");\n\t\tcommandList.add(\"search by importance\");\n\t\tcommandList.add(\"change directory\");\n\t\tcommandList.add(\"marking task as complete\");\n\t\tcommandList.add(\"clear file\");\n\t\tcommandList.add(\"help\");\n\t\tcommandList.add(\"exit\");\n\t\t\n\t\tinputCommand.add(\"add <description> by <deadline>\");\n\t\tinputCommand.add(\"add <description> from <start date time> to \"\n\t\t\t\t + \"<end date time> \");\n\t\tinputCommand.add(\"add <description> on <date> from <start time> \"\n\t\t\t\t + \"to <end time>\");\n\t\tinputCommand.add(\"add <description>\");\n\t\tinputCommand.add(\"add <description> by <deadline> rank <number>\");\n\t\tinputCommand.add(\"add <description> repeat <repeat period>\"\n\t\t\t\t + \" <monthly/yearly/daily> \" + \"on <date>\");\n\t\tinputCommand.add(\"add <description> repeat <repeat period>\" + \" <monthly/yearly/daily> \" + \"from <startDate> to <endDate>\");\n\t\tinputCommand.add(\"add <description> block <start date> to <end date>\");\n\t\tinputCommand.add(\"edit <task index> by date <new date>\");\n\t\tinputCommand.add(\"edit <task index> by title <updated title>\");\n\t\tinputCommand.add(\"edit <task index> by time from <new start date> \"\n\t\t\t\t + \"to <new end date>\");\n\t\tinputCommand.add(\"edit <task index> by impt <new rank>\");\n\t\tinputCommand.add(\"delete <task index>\");\n\t\tinputCommand.add(\"undo\");\n\t\tinputCommand.add(\"redo\");\n\t\tinputCommand.add(\"display\");\n\t\tinputCommand.add(\"display date\");\n\t\tinputCommand.add(\"display impt\");\n\t\tinputCommand.add(\"display alpha\");\n\t\tinputCommand.add(\"search <title>\");\n\t\tinputCommand.add(\"search date <date>\");\n\t\tinputCommand.add(\"search impt <rank>\");\n\t\tinputCommand.add(\"cd <new directory>\");\n\t\tinputCommand.add(\"complete <task index>\");\n\t\tinputCommand.add(\"clear\");\n\t\tinputCommand.add(\"help\");\n\t\tinputCommand.add(\"exit\");\n\t}", "@Override\r\n\tprotected String getHelpInfor() {\n\t\treturn \"\";\r\n\t}", "private static String detailedDescriptionWeapon(WeaponLM weapon){\n return \"Cost to reload: \" + costToString(weapon.getAmmoCostReload()) +\n \",\\tCost to buy: \" + costToString(weapon.getAmmoCostBuy()) +\n \"\\nDescription: \" + weapon.getDescription();\n }", "public String getItemInformation()\n {\n return this.aDescription + \" qui a un poids de \" + this.aWeight;\n\n }", "default String toHelpString() {\n // Builder\n StringBuilder builder = new StringBuilder();\n // Name\n builder.append(ChatColor.RED).append(getName()).append(\" \");\n // Parameter\n Iterator<PowreedCommandParameter> iterator = this.getParameters().iterator();\n while (iterator.hasNext()) {\n PowreedCommandParameter next = iterator.next();\n\n if (next.isRequired()) {\n builder.append(ChatColor.GOLD).append(\"<\").append(next.getName()).append(\">\");\n } else {\n builder.append(ChatColor.DARK_GRAY).append(\"[\").append(next.getName()).append(\"]\");\n }\n\n if (iterator.hasNext()) {\n builder.append(\" \");\n }\n }\n // Description\n builder.append(ChatColor.RED).append(\": \").append(ChatColor.GRAY).append(getDescription());\n // Return to string\n return builder.toString();\n }", "Help createHelp();", "public void helpGenericAction() {\n new Help(getGenericHelpTitle(), getGenericHelp());\n }", "public static String createShareString(Item item){\n\n return String.format(\"*Little Italy Pizzeria*\\nBuy our %s %s for only *$ %.2f*.\\n\\n%s\\n\\n%s\", item.getName(), item.getType(), item.getPrice(), item.getImageURL(), item.getDescription());\n\n }", "private String getMeetingDescription(MeetingItem item) {\n StringBuilder descriptionBuilder = new StringBuilder();\n\n if(!item.getMeeting().getAgenda().isEmpty()) {\n descriptionBuilder.append(\"<h3>Agenda</h3>\");\n descriptionBuilder.append(\"<p><pre>\" + item.getMeeting().getAgenda() + \"</pre></p>\");\n }\n\n if(!item.getMeeting().getNotes().isEmpty() || !item.getMeeting().getPlannotes().isEmpty()) {\n descriptionBuilder.append(\"<h3>Opmerkingen</h3>\");\n\n if(!item.getMeeting().getNotes().isEmpty())\n descriptionBuilder.append(\"<p>\" + item.getMeeting().getNotes() + \"</p>\");\n\n if(!item.getMeeting().getPlannotes().isEmpty())\n descriptionBuilder.append(\"<p>\" + item.getMeeting().getPlannotes() + \"</p>\");\n }\n\n return descriptionBuilder.toString();\n }", "public String getHelp(){\r\n\t\tString out=\"\";\r\n\r\n\t\tout+=this.beforeTextHelp;\r\n\r\n\t\t//uso\r\n\t\tout += \"\\nUsage: \"+this.programName+\" \";\r\n\t\t//short arg\r\n\t\tout += \"[\";\r\n\t\tint i = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"-\"+opts.get(i).getArgument();\r\n\t\t\tif(i<opts.size()-1){out+=\"|\";}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout += \"] \";\r\n\r\n\t\t//long arg\r\n\t\tout += \"[\";\r\n\t\ti = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"--\"+opts.get(i).getLongArgument();\r\n\t\t\tif(i<opts.size()-1){out+=\"|\";}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout += \"]\\n\\n\";\r\n\r\n\t\tout += \"*\\tArgument required\\n\";\r\n\t\tout += \"**\\tValue required\\n\\n\";\r\n\r\n\t\t//lista degli argomenti\r\n\t\ti = 0;\r\n\t\twhile(i<opts.size()){\r\n\t\t\tout += \"-\"+opts.get(i).getArgument()+\"\\t\"; //short arg\r\n\t\t\tif(opts.get(i).getLongArgument().equals(null)){out += \"\\t\\t\";}else{out += \"--\"+opts.get(i).getLongArgument()+\"\\t\";} //long arg\r\n\t\t\tout += opts.get(i).getDescription()+\"\\n\";//description\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tout +=\"\\n\";\t\r\n\r\n\t\tout+=this.afterTextHelp;\r\n\r\n\t\tout +=\"\\n\";\r\n\t\treturn out;\r\n\t}", "@Override\n\tpublic String getHelp() {\n\n\t\treturn \"EXAMINE|EXAMINAR\";\n\t}", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n if(validItem) {\n builder.append(amount);\n builder.append(\"x\\t\" + itemInfo.getName() + \"\\n\");\n builder.append(\"Item description:\\n\" + itemInfo.getDescription() + \"\\n\");\n } else {\n builder.append(\"INVALID ITEM\\n\");\n }\n builder.append(\"Running total: \");\n builder.append(salePrice);\n builder.append(\"\\n\");\n return builder.toString();\n }", "public String produceHelpMessage() {\n\t\t// first calculate how much space is necessary for the options\n\t\tint maxlen = 0;\n\t\tfor (OptionContainer oc : options) {\n\t\t\tfinal String shorta = oc.getShort();\n\t\t\tfinal String longa = oc.getLong();\n\t\t\tint len = 0;\n\t\t\tif (shorta != null)\n\t\t\t\tlen += shorta.length() + 1 + 1;\n\t\t\tif (longa != null)\n\t\t\t\tlen += longa.length() + 1 + (longa.charAt(0) == 'X' ? 0 : 1) + 1;\n\t\t\t// yes, we don't care about branch mispredictions here ;)\n\t\t\tif (maxlen < len)\n\t\t\t\tmaxlen = len;\n\t\t}\n\n\t\t// get the individual strings\n\t\tfinal StringBuilder ret = new StringBuilder();\n\t\tfor (OptionContainer oc : options) {\n\t\t\tret.append(produceHelpMessage(oc, maxlen));\n\t\t}\n\n\t\treturn ret.toString();\n\t}", "String getHelpText();", "@Override\n\tprotected void handleHelp(ClickEvent event) {\n\t\t\n\t}", "public void printHelp() throws IOException {\n\n HelpFormatter hf = new HelpFormatter();\n hf.setShellCommand(m_name);\n hf.setGroup(m_options);\n hf.print();\n }", "public String print() {\n\t\treturn new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)\n\t\t\t\t.append(\"ItemTemplate\", super.print())\n\t\t\t\t.append(\"smallCost\", smallCost)\n\t\t\t\t.append(\"mediumCost\", mediumCost)\n\t\t\t\t.append(\"bigCost\", bigCost)\n\t\t\t\t.append(\"largeCost\", largeCost)\n\t\t\t\t.append(\"weightPercent\", weightPercent)\n\t\t\t\t.append(\"armorType\", armorType)\n\t\t\t\t.toString();\n\t}", "@Override\n protected void convertHead(BaseViewHolder helper, MySectionEntity item) {\n helper.setText(R.id.tv_headTitle, item.header);\n }", "public String getHelp();", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }", "String getHelpString();", "@Override\n\tpublic String getHelp()\n\t{\n\t\treturn \"<html>Enter two before values and one after value<br>\"\n\t\t\t\t+ \"from the solution. Click the calculate button<br>\"\n\t\t\t\t+ \"to find the remaining after value.</html>\";\n\t}", "@Override\n public String getHelp() {\n return name;\n }", "@Override\n public String toString()\n {\n \treturn getName() + \" (\" + numItem + \")\";\n }", "@Override\n \t\t\t\tpublic void doHelp() {\n \n \t\t\t\t}", "private void updateHelpText(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\t((QuestionDef)propertiesObj).setHelpText(txtHelpText.getText());\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}", "public String getItemString() \r\n \t{\r\n \t\tString itemString = \"Regarde s'il y a des objets ici: \";\r\n \t\t\r\n \t\tif (!items.getHashMap().isEmpty())\r\n \t\t{\r\n \t\t\tSet<String> cles = items.getKeys();\r\n \t\t\tfor (String nom : cles) \r\n \t\t\t{\r\n \t\t\t\tif(nom != \"beamer\")\r\n \t\t\t\t{\r\n \t\t\t\t\tItem valeurs = items.getValue(nom);\r\n \t\t\t\t\titemString += \"\\n\" + valeurs.getDescriptionItem() + \" qui pèse \" + valeurs.toString() + \" kg\";\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\titemString = \"Il n'y a pas d'objet ici\";\r\n \t\t}\r\n \t\t\r\n \r\n \t\r\n \t\t/********** L'ArrayList des potions **********/\r\n \t\titemString += \"\\n\";\r\n \t\tfor (int i = 0; i < potion.size(); i++) {\r\n \t\t\titemString += \"\\n\" + potion.get(i).getNomPotion();\r\n \t\t}\r\n \t\t/****************************************************************/\r\n \r\n \t\treturn itemString;\r\n \r\n \t}", "public String clientToString(){\n return leftPad(itemId, 15) + itemDescription;\n }", "B itemCaption(ITEM item, Localizable caption);", "private String printHelp()//refactored\n { String result = \"\";\n result += \"\\n\";\n result += \"You are weak if you have to ask me\\n\";\n result += \"Try not to die, while i´am mocking you.\\n\";\n result += \"\\n\";\n result += \"\" + currentRoom.getDescription() + \"\\n\"; //new\n result += \"\\nExits: \" + currentRoom.getExitDescription() + \"\\n\";//new\n result += \"\\nCommand words:\\n\";\n result += ValidAction.getValidCommandWords();\n result += \"\\n\";\n \n return result;\n }", "private SlackerOutput handleHelp() {\n logger.debug(\"Handling help request\");\n List<WorkflowMetadata> metadata = registry.getWorkflowMetadata();\n Collections.sort(metadata, new Comparator<WorkflowMetadata>() {\n @Override\n public int compare(WorkflowMetadata m1, WorkflowMetadata m2) {\n String p1 = StringUtils.join(m1.getPath(), \"::\");\n String p2 = StringUtils.join(m2.getPath(), \"::\");\n return p1.compareTo(p2);\n }\n });\n StringBuilder sb = new StringBuilder(\"I can understand:\\n\");\n for (WorkflowMetadata wm : metadata) {\n sb.append(StringUtils.join(wm.getPath(), \" \"))\n .append(\" \")\n .append(trimToEmpty(wm.getArgsSpecification()))\n .append(\"\\n\").append(\" \")\n .append(trimToEmpty(wm.getName()))\n .append(\" - \").append(trimToEmpty(wm.getDescription()))\n .append(\"\\n\");\n }\n return new TextOutput(sb.toString());\n }", "protected abstract String format();", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"ListItem \" + item;\n\t\t}", "public String getGenericHelpTitle() {\n return genericHelpTitle;\n }", "@Override\n\tpublic ItemDescription getItemDescription() {\n\t\tItemDescription item = new ItemDescription();\n\t\titem.title = \"电池充电测试\";\n\t\titem.board = \"通用\";\n\t\titem.desc = \"电池充电\";\n\t\treturn item;\n\t}", "public String toString(){\n return \"item1: \" + item1.toString() + \" | item2: \" + item2.toString();\n }", "@Override\n public String toString(){\n return \"\" + item.name + \" \" + item.price + \" Coins\";\n }", "public JComponent decorateMenuComponent(JComponent item) {\n item.setFont(getFont());\n item.setBackground(Color.WHITE);\n item.setForeground(Color.BLACK);\n item.setBorder(BorderFactory.createEmptyBorder(0,1,0,0));\n return item;\n }", "public abstract String getHelpId();", "public String getFormattedString() {\n return String.format(\"E | %s | %s | %s\", super.getStatusIcon(), description, info);\n }", "public String toString() {\n return (\"Item: \" + itemCode + \" \" + itemName + \" \" + itemQuantityInStock + \" price: $\" + df.format(itemPrice) +\" cost: $\"+ df.format(itemCost) + \" farm supplier: \" + farmName);\n }", "@Override\n\tpublic void createHtml(ModelItemList list) {\n\t\t\n\t}", "public String showHelp() {\n String helpMessage = \"I don't know nothin' about other commands but \"\n + \"here are the list of commands I understand!\\n\"\n + \"help: displays the list of commands available\\n\"\n + \"\\n\"\n + \"list: displays the list of tasks you have\\n\"\n + \"\\n\"\n + \"find *keyword*: displays the tasks with that keyword\\n\"\n + \"eg find karate\\n\"\n + \"\\n\"\n + \"todo *task description*: adds a task without any\\n\"\n + \"date/time attached to it\\n\" + \"eg todo scold spongebob\\n\"\n + \"\\n\"\n + \"deadline *task description* /by *date+time*: adds a\\n\"\n + \"task that needs to be done before a specific date and time\\n\"\n + \"(date and time to be written in yyyy-mm-dd HHMM format)\\n\"\n + \"eg deadline build spaceship /by 2019-10-15 2359\\n\"\n + \"\\n\"\n + \"event *task description* /at *date+time*: adds a task that\\n\"\n + \"starts at a specific time and ends at a specific time\\n\"\n + \"(date and time to be written in yyyy-mm-dd HHMM format)\\n\"\n + \"eg event karate competition /at 2019-10-15 1200\\n\"\n + \"\\n\"\n + \"done *task number*: marks the task with that number as done\\n\"\n + \"eg done 1\\n\"\n + \"\\n\"\n + \"delete *task number*: deletes the task with that number from the list\\n\"\n + \"eg delete 1\\n\"\n + \"\\n\"\n + \"update *task number* /name *task name*: updates the name of the task with \"\n + \"that number from the list\\n\" + \"update 1 /name help spongebob\\n\"\n + \"\\n\"\n + \"update *task number* /date *task date*: (only for deadline or event tasks!) \"\n + \"updates the date and time of the task with that number from the list\\n\"\n + \"update 1 /date 2020-02-20 1200\\n\"\n + \"\\n\"\n + \"bye: ends the session\";\n return helpMessage;\n }", "@Override\n\tpublic String textHelp() {\n\t\treturn \" HELP: Muestra esta ayuda.\"+\n\t\t\t\tSystem.getProperty(\"line.separator\");\n\t}", "public String getHelpMessage ( ) {\r\n\t\tString html = \"<html><body>\";\r\n\t\thtml += \"<p>\";\r\n\t\thtml += \"TASS Mark IV Patches Catalog<br>\";\r\n\t\thtml += \"Astronomical Data Center catalog No. 2271<br>\";\r\n\t\thtml += \"</p><p>\";\r\n\t\thtml += \"Download:\";\r\n\t\thtml += \"<blockquote>\";\r\n\t\thtml += \"<u><font color=\\\"#0000ff\\\">http://spiff.rit.edu/tass/patches/</font></u>\";\r\n\t\thtml += \"</blockquote>\";\r\n\t\thtml += \"</p>\";\r\n\t\thtml += \"</body></html>\";\r\n\t\treturn html;\r\n\t}", "private void helpCommand() {\n output.println(\"HELP COMMAND\");\n output.println(\"read tasks: 'r all/today/before/after', write new task: 'w dd/mm/yyyy taskName' (wrong format of date -> default today date)\");\n }", "protected void processTextElement(XMLTag elementTag)\n throws SAXException\n {\n\tif (elementTag == XMLTag.LABEL)\n\t {\n\t // one line, no formatting, applies to either\n\t // control or menu item.\n\t if (currentControl != null)\n\t {\n\t\tString label = (String) xlatedText.get(0);\n\t\tcurrentControl.setLabelText(label);\n\t\tString labelKey = (String) textKey.get(0);\n\t\tcurrentControl.setLabelKey(labelKey);\n\t\t}\n\t }\n\telse if (elementTag == XMLTag.TITLE)\n\t {\n\t if (currentPanel != null)\n\t {\n\t\tString title = (String) xlatedText.get(0);\n\t\tcurrentPanel.setTitle(title);\n\t\t} \n\t }\n\telse if (elementTag == XMLTag.HELP)\n\t {\n\t // Need to concatenate all strings and format\n\t // as HTML - will be embedded in another HTML\n\t // document, so we can leave off the <HTML> and <BODY>\n\t StringBuffer helpString = new StringBuffer();\n\t String[] keys = new String[textKey.size()];\n boolean bInList = false;\n\t for (int i = 0; i < xlatedText.size(); i++)\n\t {\n\t\tString temp = replaceAngleBrackets((String) xlatedText.get(i));\n\t\tXMLTag tTag = (XMLTag) textTag.get(i);\n\t\tif (tTag == XMLTag.PARAGRAPH)\n\t\t {\n if (bInList)\n\t\t {\n\t\t helpString.append(\"</dl>\\n\"); \n bInList = false;\n\t\t\t}\n\t\t if (i == 0)\n\t\t {\n\t\t\t //~~\t\thelpString.append(\"<P>\");\n\t\t\t}\n\t\t else\n\t\t {\n\t\t helpString.append(\"<p>\");\n\t\t\t}\n helpString.append(temp);\n\t\t }\n\t\telse if (tTag == XMLTag.LISTITEM)\n\t\t {\n if (!bInList)\n\t\t {\n\t\t helpString.append(\"<dl>\\n\");\n\t\t\tbInList = true;\n\t\t\t}\n\t\t if (i > 0)\n\t\t helpString.append(\"\\n\");\n\t\t helpString.append(\"<dd>\" + temp + \"</dd>\\n\");\n\t\t }\n\t\telse\n\t\t {\n\t\t helpString.append(temp);\n\t\t }\n\t\tkeys[i] = (String) textKey.get(i);\n\t\t}\n if (bInList)\n\t {\n helpString.append(\"</dl>\\n\");\n\t\t}\n\t helpString.append(\"</p></FONT>\\n\");\n\t // could apply to either a control or a menu item.\n\t if (currentControl != null)\n\t {\n\t\tcurrentControl.setHelpString(helpString.toString());\n\t\tcurrentControl.setHelpKeys(keys);\n\t\t}\n\t }\n\telse if (elementTag == XMLTag.CHOICES)\n\t {\n\t // only relevant if the current control is a combo, radio,\n\t // or checkbutton\n\t if (currentControl.isChoiceControl())\n\t {\n\t\tString[] keys = new String[textKey.size()];\n\t\tString[] choices = new String[xlatedText.size()];\n\t\tfor (int i = 0; i < xlatedText.size(); i++)\n\t\t {\n\t\t choices[i] = (String) xlatedText.get(i);\n\t\t keys[i] = (String) textKey.get(i);\n\t\t }\n\t\tcurrentControl.setChoiceStrings(choices);\n\t\tcurrentControl.setChoiceKeys(keys);\n\t\t}\n\t }\n\telse if (elementTag == XMLTag.TOOLTIP)\n\t {\n\t // just ignore \n\t // only relevant to menu items\n\n\t }\n\telse if (elementTag == XMLTag.DEFAULT)\n\t {\n if (currentControl != null)\n\t {\n\t\tString text = (String) xlatedText.get(0);\n\t\tcurrentControl.setDefaultValue(text);\n\t\tString key = (String)textKey.get(0);\n\t\tcurrentControl.setDefaultKey(key);\n\t }\n\t }\n\t// get rid of text and tags - we are done with them\n\txlatedText.clear();\n\txlatedText = null;\n\ttextTag.clear();\n\ttextTag = null;\n\t}", "Argument help(String help);", "public String getItemDesc() {\n return itemDesc;\n }", "@Override\n public String showHelp()\n {\n return new String(ChatColour.RED + \"Usage: \" + ChatColour.AQUA + this.getName());\n }", "public ArrayList<ItemListElement> formatOutputForList() {\n \t\n \tArrayList<ItemListElement> item = new ArrayList<ItemListElement>();\n \t\n \tfor (int i = 0;i < currentTaskItems.size(); i++) {\n \t\n \t\t//map for item\n \t\t//0 -> number of item\n \t\t//1 -> item type\n \t\t//2 -> description\n \t\tString[] s = currentTaskItems.get(i);\n \t\tString top = s[0] + \" \" + s[1] + \" file(s)\";\n \t\tString bottom = \"Description: \" + s[2];\n \t\t\n \t\t//add the item to the list\n \t\titem.add(new ItemListElement(\n \t\t Utility.getIconFromString(s[1]), \n \t\t top, bottom));\n \t} \t\n \treturn item; \t\n }", "@Override\n\t\t\tpublic void render(com.google.gwt.cell.client.Cell.Context context,\n\t\t\t\t\tString value, SafeHtmlBuilder sb) {\n\t\t\t \n\t\t\t \t sb.appendHtmlConstant(\"<span class=\\\"ui-icon ui-icon-help\\\"></span>\");\n\t\t\t\n\t\t\t \n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Item [UID=\" + UID + \", TITLE=\" + TITLE + \", NOOFCOPIES=\" + NOOFCOPIES + \"]\";\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.help_action) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.help_title);\n builder.setMessage(R.string.help_text);\n builder.setPositiveButton(android.R.string.ok, null);\n builder.show();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "protected String getHelpText() {\n return \"\";\n }", "public String getPrintableFormat() {\n String output = new String(\"Articoli del gruppo \" + groupName + \":\\n\");\n for (int i = 0; i < list.size(); i++) {\n Article article = list.get(i);\n output += String.format(\"%2d %s\\n\",i,article.getPrintableFormat());\n }\n return output;\n }", "@Override\n public String toString() {\n String temp;\n int nb_new_lines, i;\n String result = \"\";\n\n String res = \"%-\" + Manager.ALINEA_DISHNAME + \"s %-\" +\n Manager.DISHNAME_TEXT + \"s %-\" +\n Manager.PRICE + \"s %-\" +\n Manager.CURRENCY_SIZE +\"s\";\n\n if (getName().length() > Manager.DISHNAME_TEXT) {\n\n //Number of lines necessary to write the dish's name\n nb_new_lines = dishName.length() / Manager.DISHNAME_TEXT;\n\n //For each line\n for (i = 0; i< nb_new_lines; i++) {\n\n //If it is not the line finishing printing the dish's name: format the line without the price\n //If it is the line finishing printing the dish's name: format the line with the price\n if (i < nb_new_lines-1 | i == nb_new_lines-1) {\n temp = dishName.substring(i*(Manager.DISHNAME_TEXT-1), (i+1)*(Manager.DISHNAME_TEXT-1));\n result += String.format(res, \"\", temp.toUpperCase(), \"\", \"\") + \"\\n\";\n }\n }\n\n temp = dishName.substring((nb_new_lines)*(Manager.DISHNAME_TEXT-1), dishName.length());\n result += String.format(res, \"\", temp.toUpperCase(), price, Manager.CURRENCY) + \"\\n\";\n\n } else {\n result += String.format(res, \"\", dishName.toUpperCase(), price, Manager.CURRENCY) + \"\\n\";\n }\n\n return result;\n }", "public String getHelp() {\r\n String res = \"You can use the following commands:\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"north\\\" to go towards the north\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"south\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"east\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"west\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"attack\\\" to attack a monster\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"look\\\" to look around in the room\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"search\\\" to search the room for treasure\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"use\\\" to use somthing in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"gear\\\" to see what gear you got equipped\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"inventory\\\" to see what gear you have in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"savegame\\\" to save your progress\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"stop\\\" to quit the game.\" + System.lineSeparator();\r\n return res;\r\n }", "void format();", "protected void substituteObjectiveText(ItemStack item, Location loc) {\n ItemMeta meta = item.getItemMeta();\n if (meta instanceof BookMeta) {\n BookMeta bookMeta = (BookMeta) meta;\n ArrayList<String> newPages = new ArrayList<>();\n for (String page : bookMeta.getPages()) {\n newPages.add(MessageFormat.format(page,\n loc.getBlockX(),\n loc.getBlockY(),\n loc.getBlockZ()));\n }\n bookMeta.setPages(newPages);\n }\n\n List<String> lore = meta.getLore();\n if (lore != null && !lore.isEmpty()) {\n ArrayList<String> newLore = new ArrayList<>();\n for (String line : lore) {\n newLore.add(MessageFormat.format(line,\n loc.getBlockX(),\n loc.getBlockY(),\n loc.getBlockZ()));\n }\n meta.setLore(newLore);\n }\n item.setItemMeta(meta);\n }", "public void updateDescriptionText() {\n \n String toolTipText = new String(\"<html>\");\n \n if (!m_OptionsWereValid) {\n \n toolTipText += \"<font COLOR=\\\"#FF0000\\\">\"\n\t+ \"<b>Invalid Model:</b><br>\" + m_ErrorText + \"<br></font>\";\n }\n \n toolTipText += \"<TABLE>\";\n \n PropertyDescriptor properties[] = null;\n MethodDescriptor methods[] = null;\n \n try {\n BeanInfo bi = Introspector.getBeanInfo(m_Classifier.getClass());\n properties = bi.getPropertyDescriptors();\n methods = bi.getMethodDescriptors();\n } catch (IntrospectionException ex) {\n System.err.println(\"LibraryModel: Couldn't introspect\");\n return;\n }\n \n for (int i = 0; i < properties.length; i++) {\n \n if (properties[i].isHidden() || properties[i].isExpert()) {\n\tcontinue;\n }\n \n String name = properties[i].getDisplayName();\n Class type = properties[i].getPropertyType();\n Method getter = properties[i].getReadMethod();\n Method setter = properties[i].getWriteMethod();\n \n // Only display read/write properties.\n if (getter == null || setter == null) {\n\tcontinue;\n }\n \n try {\n\tObject args[] = {};\n\tObject value = getter.invoke(m_Classifier, args);\n\t\n\tPropertyEditor editor = null;\n\tClass pec = properties[i].getPropertyEditorClass();\n\tif (pec != null) {\n\t try {\n\t editor = (PropertyEditor) pec.newInstance();\n\t } catch (Exception ex) {\n\t // Drop through.\n\t }\n\t}\n\tif (editor == null) {\n\t editor = PropertyEditorManager.findEditor(type);\n\t}\n\t//editors[i] = editor;\n\t\n\t// If we can't edit this component, skip it.\n\tif (editor == null) {\n\t continue;\n\t}\n\tif (editor instanceof GenericObjectEditor) {\n\t ((GenericObjectEditor) editor).setClassType(type);\n\t}\n\t\n\t// Don't try to set null values:\n\tif (value == null) {\n\t continue;\n\t}\n\t\n\ttoolTipText += \"<TR><TD>\" + name + \"</TD><TD>\"\n\t+ value.toString() + \"</TD></TR>\";\n\t\n } catch (InvocationTargetException ex) {\n\tSystem.err.println(\"Skipping property \" + name\n\t + \" ; exception on target: \" + ex.getTargetException());\n\tex.getTargetException().printStackTrace();\n\tcontinue;\n } catch (Exception ex) {\n\tSystem.err.println(\"Skipping property \" + name\n\t + \" ; exception: \" + ex);\n\tex.printStackTrace();\n\tcontinue;\n }\n }\n \n toolTipText += \"</TABLE>\";\n toolTipText += \"</html>\";\n m_DescriptionText = toolTipText;\n }", "@Override\n public String storeItem() {\n return \"N/\" + description;\n }", "public String showHelp() {\r\n return ctrlDomain.getHidatoDescription();\r\n }", "@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(\"Item{\");\n sb.append(\"id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", listId=\").append(listId);\n sb.append(\", positionIndex=\").append(positionIndex);\n sb.append(\", title='\").append(title).append('\\'');\n sb.append(\", body='\").append(body).append('\\'');\n sb.append('}');\n return sb.toString();\n }", "public void help() {\n\t\tString format = \"%-20s%s%n\";\n\t\tString[] commands = new String[5];\n\t\tcommands[0] = \"help\";\n\t\tcommands[1] = \"learn\";\n\t\tcommands[2] = \"alphabet:create\";\n\t\tcommands[3] = \"alphabet:destroy\";\n\t\tcommands[4] = \"alphabet:compose\";\n\n\t\tString[] explanation = new String[5];\n\t\texplanation[0] = \"display this message\";\n\t\texplanation[1] = \"starts a learning process. Note: with a large alphabet, this\\ncan take a \"\n\t\t\t\t+ \"very long time!\";\n\t\texplanation[2] = \"creates an alphabet. Currently only working for Android, the\\n\"\n\t\t\t\t+ \"creation of an iOS alphabet has to be done more or less manually\";\n\t\texplanation[3] = \"deletes an existing alphabet\";\n\t\texplanation[4] = \"composes an alphabet from existing window dumps.\";\n\n\t\tfor (int i = 0; i < commands.length; i++) {\n\t\t\tSystem.out.printf(format, commands[i], explanation[i]);\n\t\t}\n\t}", "public void helpSpecificAction() {\n new Help(getSpecificHelpTitle(), getSpecificHelp());\n }", "private String _getUsage() {\n\n StringBuffer buf = new StringBuffer();\n \n // Add FEI version number string and copyright statement\n buf.append(Constants.COPYRIGHT + \"\\n\");\n buf.append(Constants.CLIENTVERSIONSTR + \"\\n\");\n buf.append(Constants.APIVERSIONSTR + \"\\n\\n\");\n\n // All usuage statements begin with Usage: command name\n buf.append(\"Usage:\\t\" + this._userScript + \" \");\n\n if (this._actionId.equals(Constants.CREDLOGIN))\n {\n buf.append(\"[<user name> [<server group>] ] [help]\");\n }\n else if (this._actionId.equals(Constants.CREDLOGOUT))\n {\n buf.append(\"[<server group>] [help]\");\n }\n else if (this._actionId.equals(Constants.CREDLIST))\n {\n buf.append(\"[help]\");\n }\n else if (this._actionId.equals(Constants.ADDFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [crc] [receipt]\\n\")\n .append(\"\\t[autodelete] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>...\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] \\n\")\n .append(\"\\t[autodelete] [crc] [receipt]\");\n }\n else if (this._actionId.equals(Constants.REPLACEFILE)) \n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [crc] [receipt]\\n\")\n .append(\"\\t[autodelete] [diff] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>...\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] \\n\")\n .append(\"\\t[autodelete] [crc] [receipt] [diff]\");\n }\n else if (this._actionId.equals(Constants.GETFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\'] \\n\")\n .append(\"\\t[output <path>] {[before|after <datetime>] | \\n\")\n .append(\"\\t[between <datetime1> and <datetime2>]} \\n\")\n .append(\"\\t[format \\'<date format>\\'] [crc] [saferead] [receipt] \\n\")\n .append(\"\\t{[replace|version]} [diff] [query <queryfile>] [replicate]\\n\")\n .append(\"\\t[replicateroot <rootdir>] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> [\\'<file name expression>\\']\\n\")\n .append(\"\\t[output <path>] {[before|after <date-time>] | \\n\")\n .append(\"\\t[between <date-time1> and <date-time2>]} \\n\")\n .append(\"\\t[format \\'<date format>\\'] [crc] [saferead] [receipt] \\n\")\n .append(\"\\t{[replace|version]} [diff]\");\n }\n else if (this._actionId.equals(Constants.AUTOGETFILES))\n {\n buf.append(\"[<server group:]<file type> \\n\")\n .append(\"\\t[output <path>] [restart] [using <option file>] {[pull|push]} \\n\")\n .append(\"\\t{[replace|version]} [format \\'<date format>\\'] [query <queryfile>]\\n\")\n .append(\"\\t[replicate] [replicateroot <rootdir>] [filehandler] [diff] [help]\\n\");\n buf.append(\"Option File Format:\\n\")\n .append(\"\\tcrc\\n\")\n .append(\"\\tdiff\\n\")\n .append(\"\\tinvoke <command>\\n\")\n .append(\"\\tinvokeExitOnError\\n\")\n .append(\"\\tinvokeAsync\\n\")\n .append(\"\\tlogFile <file name>\\n\")\n .append(\"\\tlogFileRolling {monthly|weekly|daily|hourly|minutely|halfdaily}\\n\")\n .append(\"\\tmailMessageFrom <email address>\\n\")\n .append(\"\\tmailMessageTo <email address, email address, ...>\\n\")\n .append(\"\\tmailReportAt <hh:mm am|pm, hh:mm am|pm, ...>\\n\")\n .append(\"\\tmailReportTo <email address, email address, ...>\\n\")\n .append(\"\\tmailSMTPHost <host name>\\n\")\n .append(\"\\tmailSilentReconnect\\n\")\n .append(\"\\treceipt\\n\").append(\"\\treplace\\n\")\n .append(\"\\tsaferead\\n\").append(\"\\tversion\");\n }\n else if (this._actionId.equals(Constants.AUTOSHOWFILES))\n {\n buf.append(\"[<server group:]<file type> \\n\")\n .append(\"\\t[output <path>] [restart] [using <option file>] {[pull|push]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [query <queryfile>] [filehandler]\\n\")\n .append(\"\\t[help]\\n\");\n buf.append(\"Option File Format:\\n\")\n .append(\"\\tinvoke <command>\\n\")\n .append(\"\\tinvokeExitOnError\\n\")\n .append(\"\\tinvokeAsync\\n\")\n .append(\"\\tlogFile <file name>\\n\")\n .append(\"\\tlogFileRolling {monthly|weekly|daily|hourly|minutely|halfdaily}\\n\")\n .append(\"\\tmailMessageFrom <email address>\\n\")\n .append(\"\\tmailMessageTo <email address, email address, ...>\\n\")\n .append(\"\\tmailReportAt <hh:mm am|pm, hh:mm am|pm, ...>\\n\")\n .append(\"\\tmailReportTo <email address, email address, ...>\\n\")\n .append(\"\\tmailSMTPHost <host name>\\n\")\n .append(\"\\tmailSilentReconnect\\n\");\n }\n else if (this._actionId.equals(Constants.MAKECLEAN))\n {\n buf.append(\"[<server group>:]<file type> [help]\");\n }\n else if (this._actionId.equals(Constants.DELETEFILE))\n {\n buf.append(\"[<server group>:]<file type> \\'<file name expression>\\' \\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\");\n }\n else if (this._actionId.equals(Constants.SHOWFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\'] \\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]} \\n\")\n .append(\"\\t[query <queryfile>] [filehandler] [help]\");\n }\n else if (this._actionId.equals(Constants.SETREFERENCE))\n {\n buf.append(\"[<server group>:]<file type> <file name> \\n\")\n .append(\"\\tvft <VFT name> reference <ref name> [help]\");\n }\n else if (this._actionId.equals(Constants.RENAMEFILE))\n {\n buf.append(\"[<server group>:]<file type> <old file name> <new file name>\\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\")\n .append(this._userScript)\n .append(\" using <option file>\\n\")\n .append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <old file name> <new file name>\");\n }\n else if (this._actionId.equals(Constants.COMMENTFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name> comment \\n\")\n .append(\"\\t\\'<comment text>\\' [filehandler] [help]\");\n }\n else if (this._actionId.equals(Constants.COMPUTECHECKSUM))\n {\n buf.append(\"<file name expression> [help]\");\n }\n else if (this._actionId.equals(Constants.CHECKFILES))\n {\n buf.append(\"[<server group>:]<file type> [\\'<file name expression>\\']\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]} [help]\\n\\n\")\n .append(\"Usage:\\t\")\n .append(this._userScript + \" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] {[long | verylong]}\");\n }\n else if (this._actionId.equals(Constants.DISPLAY))\n {\n buf.append(\"[<server group>:]<file type> <file name> [help]\");\n }\n else if (this._actionId.equals(Constants.ACCEPT))\n {\n buf.append(\"[<server group>:]<file type> for <add|replace|get|delete>\\n\")\n .append(\"\\t[output <path>] [crc] [saferead] [autodelete] {[replace|version]}\\n\")\n .append(\"\\t[diff] [help]\");\n }\n else if (this._actionId.equals(Constants.SHOWTYPES))\n {\n buf.append(\"{\\'[<server group>:][<file type expression>]\\'|[srvgroups]}\\n\")\n .append(\"\\t[classic] [help]\\n\");\n }\n else if (this._actionId.equals(Constants.CHECK))\n {\n buf.append(\"[help]\");\n }\n else if (this._actionId.equals(Constants.REGISTERFILE))\n {\n buf.append(\"[<server group>:]<file type> <file name expression>\\n\")\n .append(\"\\t[replace] [force] [comment \\'<comment text>\\']\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [receipt] [filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> <file name>... [replace] [force]\\n\")\n .append(\"\\t{[before|after <date-time>] | [between <date-time1> and <date-time2>]}\\n\")\n .append(\"\\t[format \\'<date format>\\'] [comment \\'<comment text>\\'] [receipt]\");\n }\n else if (this._actionId.equals(Constants.UNREGISTERFILE))\n {\n buf.append(\"[<server group>:]<file type> \\'<file name expression>\\' \\n\")\n .append(\"\\t[filehandler] [help]\\n\\n\")\n .append(\"Usage:\\t\").append(this._userScript)\n .append(\" using <option file>\\n\");\n buf.append(\"Option File Format (per line):\\n\")\n .append(\"\\t[<server group>:]<file type> \\'<file name expression>\\'\");\n }\n else if (this._actionId.equals(Constants.LOCKFILETYPE))\n {\n buf.append(\"[<server group>:]<file type> [owner | group] [help]\\n\"); \n }\n else if (this._actionId.equals(Constants.UNLOCKFILETYPE))\n {\n buf.append(\"[<server group>:]<file type> [owner | group] [help]\\n\"); \n }\n else if (this._actionId.equals(Constants.CHANGEPASSWORD))\n {\n buf.append(\"<server group> [help]\\n\"); \n }\n else\n {\n }\n \n \n \n return buf.toString();\n }", "char displayHelp(SideType s) {\n switch (s) {\n case IN:\n return SIDE_IN;\n case OUT:\n return SIDE_OUT;\n case FLAT:\n return SIDE_FLAT;\n }\n // in case of a problem\n return '*';\n }", "public void setHelp (String Help);", "public String getSpecificHelp() {\n return specificHelp;\n }", "public String generateToolTip(XYDataset data, int series, int item) {\n\n return getToolTipText(series, item);\n\n }", "private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\n }", "public String getTitle()\n {\n return \"Booking Line Items\";\n }", "public String toString(){\n\t\treturn \"HELP\";\n\t}", "public String toString() {\r\n return String.format(\"%-5s %-20s %-10s %-7s %-15s\", toolId, toolName, toolQuantity, toolPrice, toolSupplier.getName());\r\n }", "public String getWriteFormatDescription(int formatIndex);", "@Override\n\tpublic String toString() {\n\t\treturn \"# \" + title + \" :\\n\" + context ;\n\t}", "public String getInfo()\r\n\t{\r\n\t\treturn theItem.getNote();\r\n\t}", "@Override\n public void printHelp() {\n\n }", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tint qty = quantity;\n\n\t\tif ( qty > 999 )\n\t\t\tqty = 999;\n\n\t\treturn Utility.pad(title, TITLE_LENGTH) + ' ' + Utility.pad(qty, QUANTITY_LENGTH) + ' ' + status.getCode() + ' ' + Utility.pad(price, PRICE_LENGTH);\n\t}", "public String getGenericHelp() {\n return genericHelp;\n }", "private void printHelp() {\n TablePrinter helpTableHead = new TablePrinter(\"Command Name : \", \"textconvert\");\n helpTableHead.addRow(\"SYNOPSIS : \", \"textconvert [OPTION]...\");\n helpTableHead.addRow(\"DESCRIPTION : \", \"Convert text/file to Binary, Hexadecimal, Base64.\");\n helpTableHead.print();\n TablePrinter helpTable = new TablePrinter(\"Short Opt\", \"Long Opt\", \"Argument\", \"Desc\", \"Short Option Example\", \"Long Option Example\");\n helpTable.addRow(\"-h\", \"--help\", \"not required\", \"Show this help.\", \"help -h\", \"help --help\");\n helpTable.addRow(\"-f\", \"--file\", \"required\", \"Path to file\", \"textconvert -f /PATH/TO/FILE\", \"textconvert --file /PATH/TO/FILE\");\n helpTable.addRow(\"-ttb\", \"--texttobinary\", \"not required\", \"Convert text to Binary\", \"textconvert -ttb -f /PATH/TO/FILE\", \"textconvert --texttobinary --file /PATH/To/File\");\n helpTable.addRow(\"-btt\", \"--binarytotext\", \"not required\", \"Convert Binary to text\", \"textconvert -btt -f /PATH/To/FileWithBinaryData\", \"textconvert --binarytotext --file /PATH/To/FileWithBinaryData\");\n helpTable.print();\n this.done = true;\n }", "@Override\n public String toString() {\n return \"Book:\" + \" \" + itemTitle + \" \" + itemPath + \" \" + itemYear + \" \" + itemAuthor;\n }", "public String getHelp() {\n\t\tfinal StringBuilder helpBuilder = new StringBuilder(\"HELP MANUAL\\n\\n\");\n\t\tfor (final Argument arg : registeredArguments) {\n\t\t\thelpBuilder.append(\n\t\t\t\t\tString.format(\"- %1s : %2s | %3s\\n\", arg.getArgName(), arg.getShortCall(), arg.getLongCall()));\n\t\t\thelpBuilder.append(arg.getHelpLine());\n\t\t\thelpBuilder.append(\"\\n\");\n\t\t\tif (arg.isMandatory()) {\n\t\t\t\thelpBuilder.append(\"This argument is mandatory on the command line.\\n\");\n\t\t\t} else {\n\t\t\t\thelpBuilder.append(\"This argument is not mandatory on the command line.\\n\");\n\t\t\t}\n\t\t\tif (arg.isValueNotRequired()) {\n\t\t\t\thelpBuilder.append(\"This argument has no value. If a value is present, it will be ignored.\\n\");\n\t\t\t}\n\t\t\thelpBuilder.append(\"\\n\");\n\t\t}\n\t\treturn helpBuilder.toString();\n\t}" ]
[ "0.60555583", "0.5932985", "0.59148055", "0.58876795", "0.5803681", "0.57036626", "0.56776404", "0.5637026", "0.55823874", "0.55531687", "0.55448854", "0.5516748", "0.5497486", "0.54954726", "0.54890954", "0.5488375", "0.5466627", "0.54651016", "0.5459602", "0.54525006", "0.54449236", "0.5441841", "0.5437318", "0.54294676", "0.54167145", "0.5391807", "0.53904116", "0.5386164", "0.53841233", "0.535161", "0.53487366", "0.5346259", "0.5343038", "0.5340731", "0.5338493", "0.53361344", "0.53349453", "0.533243", "0.53271395", "0.5323681", "0.5323064", "0.5318146", "0.53152496", "0.5306515", "0.53055066", "0.5295484", "0.52800715", "0.5269256", "0.5264968", "0.52550304", "0.5252889", "0.5241958", "0.5232806", "0.52277386", "0.52180326", "0.5211966", "0.52037895", "0.51996374", "0.519899", "0.51966286", "0.5174988", "0.5174053", "0.5170399", "0.5166558", "0.51581746", "0.5148309", "0.5146185", "0.5137087", "0.51330346", "0.5132298", "0.513182", "0.51242274", "0.51199645", "0.51172143", "0.51171666", "0.5112676", "0.51096636", "0.5099026", "0.509639", "0.5091559", "0.50896955", "0.5082427", "0.5080965", "0.50789994", "0.5078415", "0.50702184", "0.5059733", "0.5057088", "0.50556654", "0.5052179", "0.50479037", "0.50439954", "0.50379014", "0.5032669", "0.5025918", "0.5021942", "0.5021543", "0.5012405", "0.50102055", "0.5009614" ]
0.7579072
0
Allows to replace writes to out.
public void setStdout(PrintStream stdout) { this.stdout = stdout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final Object writeReplace() throws ObjectStreamException {\n return replacement;\n }", "@Override\n protected void doWriteTo(StreamOutput out) throws IOException {\n }", "public Object writeReplace() {\n getDescription();\n return this;\n }", "public void setOutput(File out) {\r\n this.output = out;\r\n incompatibleWithSpawn = true;\r\n }", "WriteExecutor<R> replace(T newValue);", "private Object writeReplace()\n {\n return Channel.current().export( Acceptor.class, this );\n }", "private Object writeReplace() throws ObjectStreamException {\n return new SerialProxy(locationNode.getNodeNumber());\n }", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "protected VerschluesseltWriter(Writer out) { // FilterWriter arbeitet immer mit Writer-Objekt zusammen, FilterWriter verschlüsselt, Writer übernimmt schreibvorgang\r\n\t\tsuper(out);\t\t\t\t\t\t\r\n\t}", "private void outRestore() throws IOException {\n if (lastWriteOffset > 0) {\n outSeek(lastWriteOffset);\n lastWriteOffset = -1;\n }\n }", "com.google.spanner.v1.Mutation.Write getReplace();", "protected abstract void _write(DataOutput output) throws IOException;", "void write(Writer out) throws IOException;", "@Override\n\tpublic void write(OutStream outStream) {\n\t}", "@Override\n public void write() {\n\n }", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "@Override // java.time.chrono.AbstractChronology\n public Object writeReplace() {\n return super.writeReplace();\n }", "@Serial\n\tprivate Object writeReplace() {\n\t\treturn new SerialProxy(SerialProxy.TRACK, this);\n\t}", "@Override\n public long writeTo(OutputStream out) {\n // read file and write to 'out'\n if (position == -1) {\n // whole file\n return new ReaderWriter().readFile(out, storageKey);\n } else {\n // range\n return new ReaderWriter().readFile(out, storageKey,\n position, count);\n }\n }", "public abstract void write(DataOutput out) throws IOException;", "public abstract JsonWriter newWriter(OutputStream out);", "public void write(final File out) throws IOException;", "void decorate(Writer out, String content) throws IOException;", "protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}", "public static OutputStream wrapOutput(OutputStream out) throws IOException {\r\n out.write(MARKER);\r\n return new DeflaterOutputStream(new Base64EncoderOutputStream(out));\r\n // you'd think the wrap order would be reversed, but it's not\r\n }", "void output(OUT out) throws IOException;", "private Object writeReplace() throws ObjectStreamException {\n return INSTANCE;\n }", "public void rewrite() throws FitsException, IOException;", "@Override\n\tpublic Object replaceObject(Object obj) throws IOException {\n\t numObjectsCached++;\n\t if (enableReplaceObject) {\n\t\treturn aout.replaceObject(obj);\n\t } else {\n\t\treturn defaultReplaceObject(obj);\n\t }\n\t}", "private Object writeReplace () {\n return new java.io.Serializable () {\n /** serial version UID */\n static final long serialVersionUID=-3874531277726540941L;\n\n private void writeObject (ObjectOutputStream oos) throws IOException {\n TopManager.getDefault ().getRepository ().writeExternal (oos);\n }\n\n private void readObject (ObjectInputStream ois)\n throws IOException, ClassNotFoundException {\n TopManager.getDefault ().getRepository ().readExternal (ois);\n }\n\n /** @return the default pool */\n public Object readResolve () {\n return TopManager.getDefault ().getRepository ();\n }\n };\n }", "@Before\n public void changeOutStream() {\n PrintStream printStream = new PrintStream(outContent);\n System.setOut(printStream);\n }", "@Override\n public Object writeReplace() {\n return new ResolvableHelper();\n }", "private void writeStream(OutputStream os, String out) {\n try {\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, \"utf-8\"));\n writer.write(out);\n writer.flush();\n writer.close();\n os.close();\n } catch (IOException e) {\n }\n }", "public void doWrite() throws IOException {\n bbout.flip();\n sc.write(bbout);\n bbout.compact();\n processOut();\n updateInterestOps();\n }", "public void doWrite() throws IOException {\n bbout.flip();\n sc.write(bbout);\n bbout.compact();\n processOut();\n updateInterestOps();\n }", "public void doWrite() throws IOException {\n\t\tbbout.flip();\n\t\tsc.write(bbout);\n\t\tbbout.compact();\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}", "@After\n\tpublic void restoreStreams() {\n\t\tSystem.setOut(originalOut);\n\t}", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "@Override\n protected Object replaceObject(Object obj) throws IOException{\n\treturn d.defaultReplaceObject(obj);\n }", "public Mol2Writer(Writer out) {\n \tlogger = new LoggingTool(this);\n \ttry {\n \t\tif (out instanceof BufferedWriter) {\n writer = (BufferedWriter)out;\n } else {\n writer = new BufferedWriter(out);\n }\n } catch (Exception exc) {\n }\n }", "void resetOutput(){\n\t\tSystem.setOut(oldOut);\n\t}", "public void stringOverWrite (String stringToFind, String stringToOverWrite) throws IOException{\n if (stringToOverWrite==null){\n return;\n }\n StringBuilder text = new StringBuilder();\n String line;\n while ((line=fileRead.readLine())!= null){\n text.append(line.replace(stringToFind, stringToOverWrite)).append(\"\\r\\n\");\n }\n fileWrite = new BufferedWriter(new FileWriter(filePATH));\n\n fileWrite.write(text.toString());\n fileWrite.flush();\n }", "Write createWrite();", "Object writeReplace() {\n return NodeSerialization.from(this);\n }", "public void writeOut(PrintWriter pw){}", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "public final void write(FastWriter out, Context data) \n throws IOException\n {\n \n // thread policy: Access to _content is unsynchronized here at \n // the cost of having a slightly stale copy. This is OK, because \n // you might have requested it slightly earlier anyway. You will \n // always get a consistent copy--either the current one, or one \n // that was the current one a few milliseconds ago. This is because\n // a thread setting _content may not update main memory immediately,\n // and this thread may not update its copy of _content immediately\n // (it may have a stale copy it read earlier).\n \n Block content = _content; // copy to a local var in case it changes\n \n // Make sure that all the contents of \"content\" are up to date--that\n // our thread is fully synchronized with main memory, so that we don't\n // have a half-created version. Synchronize on anything to do this: \n // we will use an object we don't share with any other thread.\n synchronized(data) { } \n \n if (content == null) {\n try {\n synchronized(this) {\n // double check under the lock\n if (_content == null) {\n parse(); \n }\n content = _content;\n }\n } catch (Exception e) {\n _log.exception(e);\n _log.error(\"Template: Unable to read template: \" + this);\n out.write(\"<!--\\n Template failed to read. Reason: \");\n out.write(e.toString());\n out.write(\" \\n-->\");\n }\n } \n \n try {\n content.write(out,data);\n } catch (ContextException e) {\n _log.exception(e);\n String warning = \n \"Template: Missing data in Map passed to template \" + this;\n _log.warning(warning);\n \n out.write(\"<!--\\n Could not interpret template. Reason: \");\n out.write(warning);\n out.write(e.toString());\n out.write(\" \\n-->\");\n }\n }", "public void write(File output) throws IOException {\n }", "public static void RedirectOutput() {\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"ybus.txt\"));\n\t\t\tSystem.setOut(out); //Re-assign the standard output stream to a file.\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setOutputFile(File out) {\n rnaFile = out;\n }", "public Object writeReplace() {\n return new SerializedForm(this.prototype.getAlgorithm(), this.bytes, this.toString);\n }", "private void writeObject(final ObjectOutputStream out) throws IOException\n\t{\n\t\t// Read the data\n\t\tif (dfos.isInMemory())\n\t\t{\n\t\t\tcachedContent = get();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcachedContent = null;\n\t\t\tdfosFile = dfos.getFile();\n\t\t}\n\n\t\t// write out values\n\t\tout.defaultWriteObject();\n\t}", "public void writeOutput() {\n // Create json object to be written\n Map<String, Object> jsonOutput = new LinkedHashMap<>();\n // Get array of json output objects for consumers\n List<Map<String, Object>> jsonConsumers = writeConsumers();\n // Add array for consumers to output object\n jsonOutput.put(Constants.CONSUMERS, jsonConsumers);\n // Get array of json output objects for distributors\n List<Map<String, Object>> jsonDistributors = writeDistributors();\n // Add array for distributors to output objects\n jsonOutput.put(Constants.DISTRIBUTORS, jsonDistributors);\n // Get array of json output objects for producers\n List<Map<String, Object>> jsonProducers = writeProducers();\n // Add array for producers to output objects\n jsonOutput.put(Constants.ENERGYPRODUCERS, jsonProducers);\n // Write to output file and close\n try {\n ObjectMapper mapper = new ObjectMapper();\n ObjectWriter writer = mapper.writer(new DefaultPrettyPrinter());\n writer.writeValue(Paths.get(outFile).toFile(), jsonOutput);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public void setOutputStream(OutputStream out) {\n this.output = out;\n }", "protected abstract boolean replace(String string, Writer w, Status status) throws IOException;", "void setOpp(PrintWriter out_opp){ this.out_opp = out_opp; }", "public static JsonWriter newWriter(OutputStream out) {\n if (provider == JsonProvider.UNKNOWN) {\n init();\n }\n return provider.newWriter(out);\n }", "private void placeInOutput(Tuple tuple) {\n\t\tif (outputBuffer.size() < bufferCapacity) {\n\t\t\toutputBuffer.add(tuple);\n\t\t} else {\n\t\t\tflushOutputBuffer();\n\t\t\tif (outputBuffer.size() < bufferCapacity) {\n\t\t\t\toutputBuffer.add(tuple);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"MAJOR ERROR IN WRITING TO ES OUTPUT BUFFER\");\n\t\t\t}\n\t\t\twriterFlushes++;\n\t\t\t// next bucket when we have written numInputBuffers^passNumber\n\t\t\tif (writerFlushes % Math.pow(numInputBuffers, passNumber) == 0) {\n\t\t\t\twriterBucketID++;\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\t}", "public abstract void write(PrintWriter out)\n throws IOException;", "void write();", "@Override\n\t\tpublic void close() throws IOException {\n\t\t\tout.close();\n\t\t}", "public static void flush() {\n if (outputEnabled)\n out.flush();\n }", "public void writeHolders() {\n File tmp = new File(store_dir + \"/\" + repository_dir, repository_name + \".tmp\");\n File bak = new File(store_dir + \"/\" + repository_dir, repository_name + \".bak\");\n File orig = new File(store_dir + \"/\" + repository_dir, repository_name);\n try {\n this.writer = new BufferedWriter(new FileWriter(tmp));\n } catch (Exception ex) {\n ex.printStackTrace();\n throw new RuntimeException(\"Unable to open temp rep for write\");\n }\n try {\n serializer.writeResources(holders, writer);\n } catch (Exception ex) {\n ex.printStackTrace();\n throw new RuntimeException(\"Unable to write repository\");\n }\n if (!orig.renameTo(bak)) {\n System.out.println(\"unable to rename \" + orig + \" to \" + bak);\n } else {\n if (!tmp.renameTo(orig)) {\n bak.renameTo(orig);\n System.out.println(\"unable to rename \" + tmp + \" to \" + orig);\n } else {\n }\n }\n }", "private Object writeReplace() {\n\t\t\tlogProxy.info(\"writeReplace for Client Account\");\n\t\t\treturn this;\n\t\t}", "public abstract void saveToFile(PrintWriter out);", "public static void endWrite()\r\n\t{\r\n\t\r\n\t}", "public abstract void write(NetOutput out) throws IOException;", "public final void serialize(OutputStream out){\n }", "void writeTo(DataSink dataSink, boolean overWrite) throws IOException;", "@Override\n\tpublic void pipeOutput() {\n\n\t}", "protected Object writeReplace() {\r\n\t\tList<DestructionAwareBeanPostProcessor> serializablePostProcessors = null;\r\n\t\tif (beanPostProcessors != null) {\r\n\t\t\tserializablePostProcessors = new ArrayList<DestructionAwareBeanPostProcessor>();\r\n\t\t\tfor (DestructionAwareBeanPostProcessor postProcessor : beanPostProcessors) {\r\n\t\t\t\tif (postProcessor instanceof Serializable) {\r\n\t\t\t\t\tserializablePostProcessors.add(postProcessor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new DisposableBeanAdapter(bean, beanName, invokeDisposableBean, \r\n\t\t\tnonPublicAccessAllowed, destroyMethodName, serializablePostProcessors);\r\n\t}", "@Override\n\tpublic void writeFile(String file_out) {\n\t\tthis.writeFile(Mode.POINT_ONLY, 0, DEFAULT_AND_LOAD_FACTOR, file_out);\n\t}", "@After\n public void returnOutStream() { //\n System.setOut(System.out);\n }", "@DSSink({DSSinkKind.IO})\n @DSSpec(DSCat.IO)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:52.264 -0400\", hash_original_method = \"C10E35B15C5C34D2F11AD8F56A8AFBE7\", hash_generated_method = \"8538DC9FDF04C178771F287DC9084D00\")\n \n@Override\r\n public void write(int idx) throws IOException {\r\n try {\r\n beforeWrite(1);\r\n out.write(idx);\r\n afterWrite(1);\r\n } catch (IOException e) {\r\n handleIOException(e);\r\n }\r\n }", "protected synchronized void writeOut(String data) {\n\t\t\n\t\tif(output != null)\n\t\t\toutput.println(data);\n\t\telse\n\t\t\tSystem.out.println(this.name + \" output not initialized\");\n\t}", "private Object writeReplace() {\n if (Channel.current() == null) {\n return this;\n }\n if (kubeconfigSource == null || kubeconfigSource.isSnapshotSource()) {\n return this;\n }\n return CredentialsProvider.snapshot(this);\n }", "protected void writeData(OutputStream out) throws IOException {\r\n out.write(content);\r\n }", "public void FilesBufferWrite2Append() throws IOException {\n \ttry { \t\n \t\t\n \t \t/* This logic will check whether the file\n \t \t \t * exists or not. If the file is not found\n \t \t \t * at the specified location it would create\n \t \t \t * a new file*/\n \t \t \tif (!file.exists()) {\n \t \t\t file.createNewFile();\n \t \t \t}\n \t\t\n \t \t \t//KP : java.nio.file.Files.write - NIO is buffer oriented & IO is stream oriented!]\n \t\tString str2Write = \"\\n\" + LocalDateTime.now().toString() + \"\\t\" + outPrintLn + \"\\n\";\n \t\tFiles.write(Paths.get(outFilePath), str2Write.getBytes(), StandardOpenOption.APPEND);\n \t\t\n \t}catch (IOException e) {\n\t \t// TODO Auto-generated catch block\n\t \te.printStackTrace();\t\t\n\t\t\tSystem.out.print(outPrintLn);\n\t\t\tSystem.out.println(outPrintLn);\t\n \t}\n }", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void overWriteFile(String output, String filePath,\n FileSystem fs) {\n File outFile = openFile(filePath, fs);\n if (outFile != null) {\n outFile.clearContent();\n outFile.appendContent(output);\n }\n }", "public void setLogWriter(PrintWriter out) throws ResourceException {\n log.finest(\"setLogWriter()\");\n logwriter = out;\n }", "TemplateOutputStream getOutput();", "private void doWrite() throws IOException {\n\t\t\tbb.flip();\n\t\t\tsc.write(bb);\n\t\t\tbb.compact();\n\n\t\t\tupdateInterestOps();\n\t\t}", "@Override\n public void close() throws IOException\n {\n _out.close();\n }", "private static void prepareOutputFile() {\n try {\n outputFileBuffer = new BufferedWriter(new FileWriter(PATH+OUTPUT_FILE_NAME));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public Object writeReplace() {\n return new ResolvableHelper(preferredComponentId);\n }", "public void save(DataOutput out, final boolean tests) throws IOException {\n final Set<String> deleted = tests? myDeletedTests : myDeletedProduction;\n out.writeInt(deleted.size());\n for (String path : deleted) {\n IOUtil.writeString(path, out);\n }\n final Map<File, Set<File>> recompile = tests? myTestsToRecompile : mySourcesToRecompile;\n out.writeInt(recompile.size());\n for (Map.Entry<File, Set<File>> entry : recompile.entrySet()) {\n final File root = entry.getKey();\n IOUtil.writeString(FileUtil.toSystemIndependentName(root.getPath()), out);\n final Set<File> files = entry.getValue();\n out.writeInt(files.size());\n for (File file : files) {\n IOUtil.writeString(FileUtil.toSystemIndependentName(file.getPath()), out);\n }\n }\n }", "public void write(ArrayDataOutput out) throws FitsException, IOException;", "public void reopen() throws IOException {\r\n writer.close();\r\n writer = new BufferedWriter(new java.io.FileWriter(file));\r\n }", "protected void close()\n {\n out.close();\n }", "@Override\n public Writer getOutputStreamWriter() throws IOException {\n return new OutputStreamWriter(getOutputStream());\n }", "@Override\r\n\t\t\tpublic void setLogWriter(PrintWriter out) throws SQLException {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void setLogWriter(PrintWriter out) throws SQLException {\n\t\t\t\t\r\n\t\t\t}", "public static void overwrite() {\n\t\tdefaultOverwriteMode = OVERWRITE;\n\t}", "void serialize(@NotNull OutputStream out) throws IOException;", "private void writeObject(ObjectOutputStream out) throws IOException {\n out.defaultWriteObject();\n }", "@Override \n public void write(OutputStream output) throws IOException, \n WebApplicationException {\n IOUtils.copy(inputStream, output); \n }", "public void close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void copyXML(final WriteXML out, final Map<String, String> replace) {\r\n\t\tfinal StringBuilder text = new StringBuilder();\r\n\t\tint depth = 0;\r\n\t\tint ch;\r\n\t\tcopyAttributes(out, replace);\r\n\t\tfinal String contain = this.in.getTag().getName();\r\n\r\n\t\tout.beginTag(contain);\r\n\r\n\t\twhile ((ch = this.in.read()) != -1) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\r\n\t\t\tif (ch == 0) {\r\n\t\t\t\tif (type == Type.BEGIN) {\r\n\t\t\t\t\tif (text.length() > 0) {\r\n\t\t\t\t\t\tout.addText(text.toString());\r\n\t\t\t\t\t\ttext.setLength(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tcopyAttributes(out, null);\r\n\t\t\t\t\tout.beginTag(this.in.getTag().getName());\r\n\t\t\t\t\tdepth++;\r\n\t\t\t\t} else if (type == Type.END) {\r\n\t\t\t\t\tif (text.length() > 0) {\r\n\t\t\t\t\t\tout.addText(text.toString());\r\n\t\t\t\t\t\ttext.setLength(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (depth == 0) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tout.endTag(this.in.getTag().getName());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdepth--;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttext.append((char) ch);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tout.endTag(contain);\r\n\t}", "@Override\n public void write(OutputStream outputStream) throws IOException {\n try {\n final Stopwatch watch = new Stopwatch();\n IOUtils.copy(inputStream, outputStream);\n LOGGER.debug(\"Streamed from the cache without resolving in {}\",\n watch);\n } finally {\n inputStream.close();\n // N.B.: Restlet will close the output stream.\n }\n }" ]
[ "0.66176707", "0.652256", "0.6391617", "0.6117145", "0.6106531", "0.60658884", "0.6050625", "0.6008649", "0.5975499", "0.5974005", "0.5968267", "0.5952056", "0.59292424", "0.59257543", "0.59233177", "0.59171945", "0.5905088", "0.58469045", "0.5845529", "0.584436", "0.5834822", "0.58291405", "0.58196074", "0.5796193", "0.57809955", "0.57719654", "0.57447344", "0.5706643", "0.5692889", "0.5691534", "0.5659977", "0.5651239", "0.56090045", "0.55954593", "0.55954593", "0.55937356", "0.5584026", "0.55655277", "0.5559139", "0.5553673", "0.55522835", "0.5544562", "0.5509508", "0.5502865", "0.5500489", "0.54977506", "0.5487211", "0.54855514", "0.5480596", "0.54801387", "0.5477753", "0.5467021", "0.5449462", "0.5443539", "0.5437393", "0.5430875", "0.5410617", "0.54075587", "0.54047996", "0.5401516", "0.538317", "0.53679127", "0.5347876", "0.5345327", "0.53408486", "0.5339872", "0.5324078", "0.53225785", "0.53194404", "0.5318453", "0.5317374", "0.5307098", "0.5270967", "0.52707934", "0.52658856", "0.5262712", "0.52613026", "0.52567387", "0.52525723", "0.52454334", "0.52419156", "0.5232098", "0.5223989", "0.52237195", "0.52150816", "0.5214857", "0.5211919", "0.52115875", "0.51986665", "0.51938117", "0.51926756", "0.51911783", "0.5188432", "0.5188432", "0.5171897", "0.5170716", "0.5170687", "0.5166366", "0.51661366", "0.5162697", "0.51589" ]
0.0
-1
Disable error reporting from nontest threads found during tearDown(). The idea is that odd issue find while coming down are not important, as they are usually timing issues. Note: this doesn't quite work as intended. This should be run before each other tearDown() method, but junit offers no way to do that. If you can figure out how to make that work, then update this code.
@After // named differently than tearDown(), so subclasses do not override it public void dockingTearDown() { ConcurrentTestExceptionHandler.disable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void runBare() throws Throwable {\n Throwable exception= null;\n setUp();\n try {\n runTest();\n } catch (Throwable running) {\n exception= running;\n }\n finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (exception == null) exception= tearingDown;\n }\n }\n if (exception != null) throw exception;\n }", "@Override\n protected void tearDown() throws Exception {\n shutdown.set(true);\n for (Thread t : threads) {\n t.interrupt();\n t.join();\n }\n brokerService.stop();\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n FailureTestHelper.unloadConfig();\r\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tSystem.setOut(null);\n\t\tSystem.setErr(null);\n\n\t}", "@Override\n protected void tearDown() throws Exception {\n worker.stop();\n }", "protected void tearDown() throws Exception {\n super.tearDown();\n FailureTestHelper.unloadData();\n FailureTestHelper.unloadConfig();\n }", "protected void tearDown() throws Exception {\r\n this.testedInstances = null;\r\n super.tearDown();\r\n }", "protected void tearDown() throws Exception {\r\n this.testedInstances = null;\r\n super.tearDown();\r\n }", "protected void tearDown() throws Exception {\n TestHelper.clearConfig();\n super.tearDown();\n }", "@Test\n public void shouldNotShutdownIfGlobalShutdownDisabledAndReuseEnabledAndCloseOnFailEnabled() throws InvocationTargetException, IllegalAccessException {\n when(this.config.shutDownWebdriver()).thenReturn(false);\n when(this.config.reuseWebDriver()).thenReturn(true);\n when(this.config.closeVisualWebDriveronFail()).thenReturn(true);\n\n when(this.webDriver.manage()).thenReturn(this.options);\n\n this.context.setFailed();\n\n boolean rtn = (Boolean)shutdownMethod.invoke(this.std, this.context);\n\n Assert.assertThat(\"shouldNotShutdownIfGlobalShutdownDisabledAndReuseEnabledAndCloseOnFailEnabled\", rtn, is(false));\n\n }", "public void testSoThatTestsDoNotFail() {\n\n }", "public void testTearDown() throws Throwable {\n\t\tif (TaskUtils.getAlertDialog() != null){\r\n\t\t\tlogScreenCapture();\r\n\t\t\tTaskUtils.dismissAlert();\r\n\t\t}\r\n\t\t\r\n\t}", "protected void tearDown()\r\n {\r\n /* Add any necessary cleanup code here (e.g., close a socket). */\r\n }", "@After\n public void performanceTearDown() {\n try {\n Thread.sleep(300);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@BeforeTest\n\t\t\tpublic void checkTestSkip(){\n\t\t\t\t\n\t\t\t\tif(!TestUtil.isTestCaseRunnable(suiteCxls,this.getClass().getSimpleName())){\n\t\t\t\t\tAPP_LOGS.debug(\"Skipping Test Case\"+this.getClass().getSimpleName()+\" as runmode set to NO\");//logs\n\t\t\t\t\tthrow new SkipException(\"Skipping Test Case\"+this.getClass().getSimpleName()+\" as runmode set to NO\");//reports\n\t\t\t\t}\n\t\t\t\t\t\t}", "protected void tearDown()\n {\n /* Add any necessary cleanup code here (e.g., close a socket). */\n }", "@Test\n public void shouldStartupIfGlobalShutdownDisabledAndReuseDisabledAndCloseOnFailEnabled() {\n when(this.config.shutDownWebdriver()).thenReturn(false);\n when(this.config.reuseWebDriver()).thenReturn(false);\n when(this.config.closeVisualWebDriveronFail()).thenReturn(true);\n\n this.context.setFailed();\n this.std.basePreScenarioSetup();\n\n verify(this.factory).createWebDriver();\n }", "@Test (timeout=180000)\n public void testErrorReporter() throws Exception {\n try {\n MockErrorReporter.calledCount = 0;\n doFsck(conf, false);\n assertEquals(MockErrorReporter.calledCount, 0);\n\n conf.set(\"hbasefsck.errorreporter\", MockErrorReporter.class.getName());\n doFsck(conf, false);\n assertTrue(MockErrorReporter.calledCount > 20);\n } finally {\n conf.set(\"hbasefsck.errorreporter\",\n PrintingErrorReporter.class.getName());\n MockErrorReporter.calledCount = 0;\n }\n }", "@AfterMethod(alwaysRun = true)\n\tpublic void tearDown_global() throws Exception {\n\n\t\ttry {\n\t\t\tpassed = AssertionHelper.assertValue(this.checkpoints);\n\t\t\tpassed = true;\n\n\t\t} catch (Exception e) {\n\t\t} finally {\n\t\t\tHelper.pause(1000);\n\t\t\tswitch (sBrowser) {\n\t\t\tcase \"FireFox\":\n\t\t\t\tSeleniumBrowsers.quitDriver();\n\t\t\t\tbreak;\n\t\t\tcase \"Chrome\":\n\t\t\t\tSeleniumBrowsers.quitDriver();\n\t\t\t\tbreak;\n\t\t\tcase \"IE\":\n\t\t\t\tSeleniumBrowsers.quitDriver();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSeleniumBrowsers.closeBrowser();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString verificationErrorString = verificationErrors.toString();\n\t\tif (!\"\".equals(verificationErrorString)) {\n\t\t\tAssert.fail(verificationErrorString);\n\t\t}\n\t}", "@Before\n public void setUp() {\n Log.getFindings().clear();\n Log.enableFailQuick(false);\n }", "protected void tearDown() {\n // empty\n }", "@After\n public void assertNoUnexpectedLog() {\n loggings.assertNoUnexpectedLog();\n }", "@After\n public void assertNoUnexpectedLog() {\n loggings.assertNoUnexpectedLog();\n }", "public void tearDown() {\n tearDown(true);\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n // remove the namespace\r\n ConfigManager cm = ConfigManager.getInstance();\r\n for (Iterator <?> iter = cm.getAllNamespaces(); iter.hasNext();) {\r\n String nameSpace = (String) iter.next();\r\n if (nameSpace.equals(\"com.topcoder.util.log\")) {\r\n continue;\r\n }\r\n cm.removeNamespace(nameSpace);\r\n }\r\n processor = null;\r\n }", "public void tearDown() throws Exception {\n TestHelper.clearTemp();\n super.tearDown();\n }", "protected void tearDown() {\n\n\t\tif (isNetwork) {\n\t\t\tserver.stop();\n\t\t\tserver = null;\n\t\t\tisServer = false;\n\t\t}\n\t}", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n clearFiles();\r\n StressTestHelper.clearConfig();\r\n }", "@Test\n public void shouldShutdownIfGlobalShutdownDisabledAndReuseDisabledAndCloseOnFailEnabled() throws InvocationTargetException, IllegalAccessException {\n when(this.config.shutDownWebdriver()).thenReturn(false);\n when(this.config.reuseWebDriver()).thenReturn(false);\n when(this.config.closeVisualWebDriveronFail()).thenReturn(true);\n\n when(this.webDriver.manage()).thenReturn(this.options);\n\n this.context.setFailed();\n\n boolean rtn = (Boolean)shutdownMethod.invoke(this.std, this.context);\n\n Assert.assertThat(\"shouldShutdownIfGlobalShutdownDisabledAndReuseDisabledAndCloseOnFailEnabled\", rtn, is(true));\n }", "protected void tearDown() throws Exception {\n TestHelper.clearConfig();\n\n offset = null;\n edge = null;\n }", "protected void tearDown() throws Exception {\r\n log = null;\r\n\r\n // close the print stream\r\n if (printStream != null) {\r\n printStream.close();\r\n }\r\n\r\n // clear file\r\n AccuracyTestsHelper.clearFile(FILE);\r\n }", "@BeforeClass\n\tpublic static void setUpOnce() {\n\t\tFailOnThreadViolationRepaintManager.install();\n\t}", "public abstract void tearDown();", "protected void tearDown() throws Exception {\n }", "protected void tearDown() {\n\t}", "protected void tearDown() throws Exception {\n\t\tsuper.tearDown();\r\n\t}", "@Override\n public void tearDown() {\n // No action required\n }", "@AfterClass\n\tpublic static void tearDown() throws Exception {\n\n\t\tlogger.info(\"Total test case running:\" + BaseTestCase.getCount());\n\t\tlogger.info(\"Total Failed:\" + BaseTestCase.getFailCount());\n\t\tlogger.info(\"Total Succeeded:\" + BaseTestCase.getSuccCount());\n\n\t}", "@BeforeTest\n\tpublic void checkTestSkip()\n\t{\n\t\tAPP_LOGS.debug(\" Executing Test Case -> \"+this.getClass().getSimpleName());\n\t\t\n\t\tif(!TestUtil.isTestCaseRunnable(stakeholderDashboardSuiteXls,this.getClass().getSimpleName()))\n\t\t{\n\t\t\tAPP_LOGS.debug(\"Skipping Test Case\"+this.getClass().getSimpleName()+\" as runmode set to NO\");//logs\n\t\t\tthrow new SkipException(\"Skipping Test Case\"+this.getClass().getSimpleName()+\" as runmode set to NO\");//reports\n\t\t}\n\t\trunmodes=TestUtil.getDataSetRunmodes(stakeholderDashboardSuiteXls, this.getClass().getSimpleName());\n\t}", "@Test\n public void shouldShutdownIfGlobalShutdownEnabledAndReuseEnabledAndCloseOnFailDisabled() throws InvocationTargetException, IllegalAccessException {\n when(this.config.shutDownWebdriver()).thenReturn(true);\n when(this.config.reuseWebDriver()).thenReturn(true);\n when(this.config.closeVisualWebDriveronFail()).thenReturn(false);\n\n when(this.webDriver.manage()).thenReturn(this.options);\n\n this.context.setFailed();\n\n boolean rtn = (Boolean)shutdownMethod.invoke(this.std, this.context);\n\n Assert.assertThat(\"shouldShutdownIfGlobalShutdownEnabledAndReuseEnabledAndCloseOnFailDisabled\", rtn, is(true));\n\n }", "protected void forceMockUpMode(){\n teardown();\n }", "@AfterMethod\r\n\tpublic void tearDown() {\r\n\t\tdriver.quit();\r\n\t\tsoftAssert.assertAll();\r\n\t}", "public void tearDown() throws Exception {\n\n super.tearDown();\n\n Thread.currentThread().setName(threadName);\n }", "abstract void tearDown() throws Exception;", "protected void tearDown() {\n config = null;\n }", "@Test\n public void shouldShutdownIfGlobalShutdownEnabledAndReuseDisabledAndCloseOnFailEnabled() throws InvocationTargetException, IllegalAccessException {\n when(this.config.shutDownWebdriver()).thenReturn(true);\n when(this.config.reuseWebDriver()).thenReturn(false);\n when(this.config.closeVisualWebDriveronFail()).thenReturn(true);\n\n when(this.webDriver.manage()).thenReturn(this.options);\n\n this.context.setFailed();\n\n boolean rtn = (Boolean)shutdownMethod.invoke(this.std, this.context);\n\n Assert.assertThat(\"shouldShutdownIfGlobalShutdownEnabledAndReuseDisabledAndCloseOnFailEnabled\", rtn, is(true));\n }", "@After\r\n\tpublic void tearDown()\r\n\t{\n\t\twhile (Transaction.current().isRunning())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tLOG.warn(\"test \" + getClass().getSimpleName() + \" found open transaction - trying rollback ...\");\r\n\t\t\t\tTransaction.current().rollback();\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e)\r\n\t\t\t{\r\n\t\t\t\t// can't help it\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void tearDown() throws Exception {\n instance = null;\n manager = null;\n AccuracyTestsHelper.clearConfig();\n }", "@AfterClass\n public static void shutDown() {\n // \"override\" parent shutDown\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n }", "protected void tearDown() throws Exception {\n action = null;\n manager = null;\n activityGraph = null;\n state = null;\n\n TestHelper.clearProjectConfiguration();\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n TestHelper.clearNamespaces();\r\n }", "@AfterTest\n\tpublic void tearDown() throws Exception\n\t{\n\t\tlog.info(\"Starting tear Down\");\n//\t\t\t\tdriver.close();\n\t}", "@Test\n public void shouldNotShutdownIfGlobalShutdownDisabledAndReuseEnabledAndCloseOnFailDisabledAndTestPasses() throws InvocationTargetException, IllegalAccessException {\n when(this.config.shutDownWebdriver()).thenReturn(false);\n when(this.config.reuseWebDriver()).thenReturn(true);\n when(this.config.closeVisualWebDriveronFail()).thenReturn(false);\n\n\n boolean rtn = (Boolean)shutdownMethod.invoke(this.std, this.context);\n\n Assert.assertThat(\"shouldNotShutdownIfGlobalShutdownDisabledAndReuseEnabledAndCloseOnFailDisabledAndTestPasses\", rtn, is(false));\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tif (additionalNodes != null) {\n\t\t\tfor (SgsTestNode node : additionalNodes) {\n\t\t\t\tif (node != null) {\n\t\t\t\t\tnode.shutdown(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\tadditionalNodes = null;\n\t\t}\n\t\tserverNode.shutdown(true);\n\t}", "@BeforeTest\r\n\tpublic void checkTestSkip(){\r\n\t\t\t\t\r\n\t\t\t\tif(!TestUtil.isTestCaseRunnable(suite_cart_xls,this.getClass().getSimpleName())){\r\n\t\t\t\t\tAPP_LOGS.debug(\"Skipping Test Case\"+this.getClass().getSimpleName()+\" as runmode set to NO\");//logs\r\n\t\t\t\t\tthrow new SkipException(\"Skipping Test Case\"+this.getClass().getSimpleName()+\" as runmode set to NO\");//reports\r\n\t\t\t\t}\r\n\trunmodes=TestUtil.getDataSetRunmodes(suite_cart_xls, this.getClass().getSimpleName());\t\r\n\t\t\t}", "@AfterSuite\r\n\tpublic void tearDown() {\r\n\t\tSystem.out.println(\"Driver teared down\");\r\n\t}", "@Test\n public void shouldShutdownIfGlobalShutdownEnabledAndReuseEnabledAndCloseOnFailEnabled() throws InvocationTargetException, IllegalAccessException {\n when(this.config.shutDownWebdriver()).thenReturn(true);\n when(this.config.reuseWebDriver()).thenReturn(true);\n when(this.config.closeVisualWebDriveronFail()).thenReturn(true);\n\n when(this.webDriver.manage()).thenReturn(this.options);\n\n this.context.setFailed();\n\n boolean rtn = (Boolean)shutdownMethod.invoke(this.std, this.context);\n\n Assert.assertThat(\"shouldShutdownIfGlobalShutdownEnabledAndReuseEnabledAndCloseOnFailEnabled\", rtn, is(true));\n\n }", "protected void tearDown() throws Exception {\n super.tearDown();\n }", "@Override\r\n\t@After\r\n\tpublic void callTearDown() throws Exception\r\n\t{\r\n\t\tsuper.callTearDown();\r\n\t}", "public void nonTestCase(boolean isTestAll, boolean didCompileFail) { }", "public void nonTestCase(boolean isTestAll) { }", "@After\r\n\tpublic void tearDown() throws Exception {\n\t\tdriver.quit();\r\n\r\n\t\t// TODO Figure out how to determine if the test code has failed in a\r\n\t\t// manner other than by EISTestBase.fail() being called. Otherwise,\r\n\t\t// finish() will always print the default passed message to the console.\r\n\t\tfinish();\r\n}", "protected void tearDown() throws Exception {\r\n\t\tsuper.tearDown();\r\n\t\t// Add additional tear down code here\r\n\t}", "public void onTestSkipped() {}", "protected void tearDown()\n {\n }", "protected void tearDown()\n {\n }", "@AfterClass\n public static void tearDownClass() throws Exception {\n CountDownLatch countdown = new CountDownLatch(1);\n countdown.await(10, TimeUnit.SECONDS);\n }", "@AfterSuite\n\tpublic void teardown() {\n\t\tlogger.info(\"ALL TESTS COMPLETED: Quiting driver\");\n\t\tgmailPg.quitDriver();\n\t}", "@Test(groups={\"it\"})\r\n\tpublic void testUnusedCaptureAreDeletedWhenTestFails() throws Exception {\r\n\t\t\r\n\t\texecuteSubTest(1, new String[] {\"com.seleniumtests.it.stubclasses.StubTestClassForDriverTest\"}, ParallelMode.METHODS, new String[] {\"testDriverWithFailure\"});\r\n\t\t\r\n\t\t// check files are there\r\n\t\tAssert.assertEquals(Paths.get(SeleniumTestsContextManager.getGlobalContext().getOutputDirectory(), \"testDriverWithFailure\", \"htmls\").toFile().listFiles().length, 2);\r\n\t\tAssert.assertEquals(Paths.get(SeleniumTestsContextManager.getGlobalContext().getOutputDirectory(), \"testDriverWithFailure\", \"screenshots\").toFile().listFiles().length, 2);\r\n\t\t\r\n\t\t// if a file belongs to a step, it's renamed\r\n\t\tfor (File htmlFile: Paths.get(SeleniumTestsContextManager.getGlobalContext().getOutputDirectory(), \"testDriverWithFailure\", \"htmls\").toFile().listFiles()) {\r\n\t\t\tAssert.assertTrue(htmlFile.getName().startsWith(\"testDriverWithFailure\"));\r\n\t\t}\r\n\t\tfor (File imgFile: Paths.get(SeleniumTestsContextManager.getGlobalContext().getOutputDirectory(), \"testDriverWithFailure\", \"screenshots\").toFile().listFiles()) {\r\n\t\t\tAssert.assertTrue(imgFile.getName().startsWith(\"testDriverWithFailure\"));\r\n\t\t}\r\n\t}", "@Override\r\n protected void tearDown() {\r\n // nothing yet\r\n }", "@AfterClass\n public static void cleanup() throws Exception {\n try {\n if (client != null) client.close();\n if (runners != null) {\n int i = 0;\n for (final NodeRunner runner: runners) {\n print(false, false, \"<<< stoping the JPPF node \" + (++i));\n runner.shutdown();\n }\n }\n if (driver != null) {\n print(false, false, \"<<< shutting down driver\");\n driver.shutdown();;\n }\n } finally {\n BaseTestHelper.generateClientThreadDump();\n }\n }", "@Override\n public final void preTearDown() throws Exception {\n Invoke.invokeInEveryVM(() -> ConcurrentIndexUpdateWithoutWLDUnitTest.destroyRegions());\n Invoke.invokeInEveryVM(CacheTestCase::closeCache);\n }", "protected void tearDown() throws Exception {\n actionManager = null;\n TestHelper.clearConfig();\n super.tearDown();\n }", "@After\r\n\tpublic void tearDown() {timeslots = null; timetable = null; System.setOut(null);}", "@AfterSuite\n public static void teardown() {\n Reporter.loadXMLConfig(new File(\"src/main/resources/extent-config.xml\"));\n Reporter.setSystemInfo(\"user\", System.getProperty(\"user.name\"));\n Reporter.setSystemInfo(\"os\", System.getProperty(\"os.name\"));\n Reporter.setSystemInfo(\"Selenium\", \"3.4.0\");\n Reporter.setSystemInfo(\"Cucumber\", \"1.2.5\");\n }", "protected void tearDown() throws Exception\n {\n context = null;\n\n ManagerManagerTest.updateManager(NetworkInterfaceManager.class, NetworkInterfaceManagerImpl.class, true, null);\n\n super.tearDown();\n }", "@AfterClass\n public static void stop() {\n }", "@Override\n\tprotected void tearDown() throws Exception {\n\t\tsuper.tearDown();\n\t\tmCore.destroy();\n\t\tmCore=null;\n\t}", "protected void tearDown() throws Exception {\n\t\tthis.tmpDir.clear();\r\n\t}", "private void runAfterClassMethods(RunNotifier notifier) {\n for (Method method : getTargetMethods(AfterClass.class)) {\n try {\n invoke(method, null);\n } catch (Throwable t) {\n t = augmentStackTraceNoContext(t, runnerRandomness);\n notifier.fireTestFailure(new Failure(suiteDescription, t));\n }\n }\n }", "@Override\n public void tearDown() throws Exception {}", "@After\r\n public void tearDown() throws Exception {\r\n org.apache.log4j.LogManager.shutdown();\r\n new File(TestsHelper.LOG_FILE).delete();\r\n }", "@Disabled\n void ignoredTestMethod() {\n }", "@Override\n public void test_tearDown() throws Exception {\n UiBinderContext.disposeSharedGWTState();\n super.test_tearDown();\n }", "@After\n public void tearDown(){\n final String standardOutput = myOut.toString();\n final String standardError = myErr.toString();\n assertEquals(\"You used 'System.out' in your assignment, This is not allowed.\",true, standardOutput.length() == 0);\n assertEquals(\"You used 'System.err' in your assignment, This is not allowed.\",true, standardError.length() == 0);\n System.err.flush();\n System.out.flush();\n System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));\n System.setErr(new PrintStream(new FileOutputStream(FileDescriptor.err)));\n }", "@After\n\tpublic void tearDown() throws Exception{\n\t\t// Don't need to do anything here.\n\t}", "@After\n public void tearDown() {\n System.out.println(\"@After - Tearing Down Stuffs: Pass \"\n + ++tearDownCount);\n }", "@Test\n public void testitFailNeverTwoThreads() throws Exception {\n File testDir = ResourceExtractor.simpleExtractResources(getClass(), \"/mng-0095\");\n\n Verifier verifier = newVerifier(testDir.getAbsolutePath());\n verifier.setAutoclean(false);\n verifier.deleteDirectory(\"target\");\n verifier.deleteDirectory(\"subproject1/target\");\n verifier.deleteDirectory(\"subproject2/target\");\n verifier.deleteDirectory(\"subproject3/target\");\n verifier.addCliArgument(\"--fail-never\");\n verifier.setLogFileName(\"log-fn-mt2.txt\");\n verifier.addCliArgument(\"-Dmaven.threads.experimental=2\");\n verifier.addCliArgument(\"org.apache.maven.its.plugins:maven-it-plugin-touch:touch\");\n verifier.execute();\n\n verifier.verifyFilePresent(\"target/touch.txt\");\n verifier.verifyFileNotPresent(\"subproject1/target/touch.txt\");\n verifier.verifyFilePresent(\"subproject2/target/touch.txt\");\n verifier.verifyFilePresent(\"subproject3/target/touch.txt\");\n }", "@Override\n protected void tearDown() throws Exception\n {\n super.tearDown();\n chronometer.stop();\n logger.info(\"Total Time = \" + chronometer);\n PipeBlockingQueueService.destroyAllQueue();\n }", "@Override\n\tprotected void tearDown() throws Exception\n\t{\n\t\tsuper.tearDown();\n\t}", "@After\n public void tearDown() throws Exception {\n Thread.sleep(1000);\n server.stop();\n }", "protected void tearDown() throws Exception {\r\n \t\tarchetype = null;\r\n \t}", "@Override\r\n protected void tearDown()\r\n throws Exception\r\n {\r\n // Included only for Javadoc purposes--implementation adds nothing.\r\n super.tearDown();\r\n }", "public void tearDown() {\n }", "public void disable() {\n\t\tm_runner.disable();\n\t}", "@After\r\n\tpublic void tearDown() throws Exception {\n\t\tdriver.quit();\r\n\r\n\t\t// TODO Figure out how to determine if the test code has failed in a\r\n\t\t// manner other than by EISTestBase.fail() being called. Otherwise,\r\n\t\t// finish() will always print the default passed message to the console.\r\n\t\tfinish();\r\n\t}", "@AfterClass\n public static final void tearDownAfterClass() throws Exception\n {\n // Empty\n }", "@Test\n public void shouldNotStartupIfGlobalShutdownDisabledAndReuseEnabledAndCloseOnFailEnabled() throws InvocationTargetException, IllegalAccessException {\n when(this.config.shutDownWebdriver()).thenReturn(false);\n when(this.config.reuseWebDriver()).thenReturn(true);\n when(this.config.closeVisualWebDriveronFail()).thenReturn(true);\n\n this.context.setFailed();\n\n boolean rtn = (Boolean)shouldStartupMethod.invoke(this.std, this.context);\n\n Assert.assertThat(\"shouldNotStartupIfGlobalShutdownDisabledAndReuseEnabledAndCloseOnFailEnabled\", rtn, is(false));\n\n }", "@After\n public final void tearDown() throws Throwable\n {\n myLog.debug( \"entering...\" );\n\n try\n {\n if ( Files.exists( Testconstants.ROOT_DIR ) )\n {\n Helper.deleteDirRecursive( Testconstants.ROOT_DIR );\n }\n \n Files.deleteIfExists( myExcludeFile );\n \n myLog.debug( \"leaving...\" );\n }\n catch ( Throwable t )\n {\n myLog.error( \"Throwable caught in tearDown()\", t );\n throw t;\n }\n }" ]
[ "0.66109586", "0.66088474", "0.65019995", "0.64681244", "0.64556855", "0.63430303", "0.6324708", "0.6324708", "0.62981427", "0.62890667", "0.6268144", "0.621852", "0.6214248", "0.62007827", "0.61938244", "0.61914796", "0.6186454", "0.6183828", "0.6171222", "0.61679405", "0.61607367", "0.6157729", "0.6157729", "0.61468315", "0.613772", "0.6131769", "0.6122162", "0.61221236", "0.61142874", "0.61060524", "0.6098437", "0.60836256", "0.6079724", "0.6074926", "0.6060957", "0.6060804", "0.6059969", "0.6056829", "0.6045165", "0.6042005", "0.60391635", "0.60308355", "0.60291", "0.6005983", "0.5990658", "0.59901714", "0.59882617", "0.5984379", "0.5983677", "0.59769243", "0.5976273", "0.5970398", "0.5967513", "0.5966612", "0.5961779", "0.5953185", "0.59444743", "0.59306294", "0.5926976", "0.5919472", "0.59169436", "0.59148407", "0.59090745", "0.5893917", "0.5888504", "0.5887165", "0.5887165", "0.5885657", "0.5884785", "0.5876865", "0.58689404", "0.586084", "0.5856909", "0.5854182", "0.58478963", "0.5842378", "0.58419275", "0.58401835", "0.58401006", "0.58351606", "0.58325714", "0.5831157", "0.5813823", "0.5807001", "0.5804952", "0.58006704", "0.5796901", "0.57898706", "0.5785233", "0.5782848", "0.5782666", "0.5779877", "0.57791287", "0.5774135", "0.57697654", "0.5762006", "0.57608026", "0.5757711", "0.5738097", "0.5735307" ]
0.69937426
0
make sure swing has handled any pending changes
public static void waitForUpdateOnChooser(GhidraFileChooser chooser) throws Exception { waitForSwing(); // Use an artificially high wait period that won't be reached most of the time. We // need this because file choosers use the native filesystem, which can have 'hiccups' int timeoutMillis = PRIVATE_LONG_WAIT_TIMEOUT; int totalTime = 0; while (pendingUpdate(chooser) && (totalTime < timeoutMillis)) { Thread.sleep(DEFAULT_WAIT_DELAY); totalTime += DEFAULT_WAIT_DELAY; } if (totalTime >= timeoutMillis) { Assert.fail("Timed-out waiting for directory to load"); } // make sure swing has handled any pending changes waitForSwing(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateGUIStatus() {\r\n\r\n }", "@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }", "static private void change_do(BSUIWindow ui) {\n\t\tui.getPanel().removeAll();\n\t\tui.getPanel().setBackground(background);\n\t\tui.getPanel().setForeground(text);\n\t\tui.getPanel().setLayout(new SpringLayout());\n\t\tui.init();\n\t\tui.getPanel().validate();\n\t\twindow.setVisible(true);\n\t}", "public void forceUpdateUI() {\n\t\tupdateUI();\n\t}", "@Override\r\n public void updateUI() {\r\n }", "private void init () {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \tSwingOperatorView.stateOnCurrentObject();\n }\n\t\t});\n\t}", "public void actionPerformed(ActionEvent ae){\n if(waitingForRepaint){\n repaint();\n }\n }", "void gui(){\n _hasGUI = true;\n }", "public void doChanges0() {\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jScrollPane1-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n // parentId-compId-dimension-compAlignment\n lm.removeComponent(\"jScrollPane1\", true);\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "public void doChanges0() {\n lm.setChangeRecording(true);\n changeMark = lm.getChangeMark();\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 59, 20)};\n Point hotspot = new Point(102, 106);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(400, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "private void setupComponentBehavior() {\n\t\tfileTextField.setEditable(false);\n\t\tprocessButton.setEnabled(false);\n\n summaryTextArea.setEditable(false);\n summaryTextArea.setLineWrap(true);\n summaryTextArea.setWrapStyleWord(true);\n\n\t\tfileBrowseButton.addActionListener(this);\n\t\tprocessButton.addActionListener(this);\n\t}", "private void repositoryCheckButtonActionPerformed() {\n checkRepositoryMismatch = true;\n CopyToASpaceButtonActionPerformed();\n }", "public void doChanges2() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel4\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(59, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(60, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 59, 20)};\n Point hotspot = new Point(135, 120);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(397, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "public void updateUI(){}", "@Override\n protected boolean isRepaintRequiredForRevalidating() {\n return false;\n }", "public void designerStateModified(DesignerEvent e);", "public void actionPerformed(java.awt.event.ActionEvent actionEvent) {\r\n Object source = actionEvent.getSource();\r\n try{\r\n //blockEvents(true);\r\n dlgRates.setCursor(new Cursor(Cursor.WAIT_CURSOR));\r\n if( source.equals(ratesBaseWindow.btnOK) ) {\r\n try{\r\n saveRatesData();\r\n }catch (CoeusUIException coeusUIException){\r\n //Validation failed\r\n }\r\n }else if( source.equals(ratesBaseWindow.btnCancel) ) {\r\n performWindowClosing();\r\n }\r\n }finally{\r\n dlgRates.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\r\n // blockEvents(false);\r\n \r\n //Bug Fix: 1742: Performance Fix - Start 2\r\n dlgRates.remove(ratesBaseWindow);\r\n ratesBaseWindow = null;\r\n dlgRates = null;\r\n //Bug Fix: 1742: Performance Fix - End 2\r\n \r\n }\r\n }", "protected void _updateWidgets()\n\t{\n\t\t// Show the title\n\t\tString title = _spItem.getTitleAttr() ;\n\t\tif( title != null )\n\t\t\t_obsTitle.setText( title ) ;\n\t\telse\n\t\t\t_obsTitle.setText( \"\" ) ;\n\n\t\tString state = _avTab.get( \"state\" ) ;\n\t\tif( state == null )\n\t\t\t_obsState.setText( \"Not in Active Database\" ) ;\n\t\telse\n\t\t\t_obsState.setText( state ) ;\n\n\t\tignoreActions = true ; // MFO\n\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\t\n\t\t// Set the priority\n\t\tint pri = obs.getPriority() ;\n\t\t_w.jComboBox1.setSelectedIndex( pri - 1 ) ;\n\n\t\t// Set whether or not this is a standard\n\t\t_w.standard.setSelected( obs.getIsStandard() ) ;\n\n\t\t// Added for OMP (MFO, 7 August 2001)\n\t\t_w.optional.setValue( obs.isOptional() ) ;\n\n\t\tint numberRemaining = obs.getNumberRemaining();\n\t\t_w.setRemainingCount(numberRemaining);\n\n\t\t_w.unSuspendCB.addActionListener( this ) ;\n\n\t\tignoreActions = false ;\n\n\t\t_w.estimatedTime.setText( OracUtilities.secsToHHMMSS( obs.getElapsedTime() , 1 ) ) ;\n\n\t\t_updateMsbDisplay() ;\n\t}", "@Override\n\tpublic void stateChanged() {\n\t\t\n\t}", "public void requestRepaint() {\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "private void setComponentStatus() {}", "protected void recheckDirty ()\n {\n // refresh the 'gbox' in each manager, the GroupItem will toString() differently if dirty\n for (int ii = 0, nn = _tabs.getComponentCount(); ii < nn; ii++) {\n SwingUtil.refresh(((ManagerPanel)_tabs.getComponentAt(ii)).gbox);\n }\n }", "public void doChanges3() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel5\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(72, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(59, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(73, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(60, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 59, 20)};\n Point hotspot = new Point(175, 125);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "public void postInitComponents(){\r\n btnOk.addActionListener(this);\r\n btnPrint.addActionListener(this);\r\n btnPrint.setVisible(false);\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n java.awt.Component[] components = {btnOk,btnPrint};\r\n ScreenFocusTraversalPolicy traversePolicy = new ScreenFocusTraversalPolicy( components );\r\n setFocusTraversalPolicy(traversePolicy);\r\n setFocusCycleRoot(true);\r\n }", "@Override\r\n\tpublic void ThinkingInterrupted() {\r\n\t\tthis.panel.changeToManual();\r\n\t}", "public void actionPerformed(ActionEvent evt) {\r\n if (evt.getActionCommand().equals(\"OK\")) {\r\n dispose();\r\n runRefactoring();\r\n } else if (evt.getActionCommand().equals(\"Cancel\")) {\r\n dispose();\r\n }\r\n\r\n if (currentPackage != null) {\r\n currentPackage.repaint();\r\n }\r\n }", "public void requestRepaintRequests() {\n }", "private void editLibraries() {\n\t\tJOptionPane.showMessageDialog(this, \"No implemented yet!\");\n\t}", "@Override\n protected void windowInit ()\n {\n }", "public void doChanges1() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel3\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(53, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(52, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 59, 20)};\n Point hotspot = new Point(99, 126);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "private void updateDockIconPreviewLater() {\n\t\tEventQueue.invokeLater( () -> {\n\t\t\tif( dockIcon != null )\n\t\t\t\tupdateDockIconPreview();\n\t\t} );\n\t}", "void outOfTime() {\r\n\r\n disableOptionButtons();\r\n }", "public void lost() {\n\t\tremoveAll();\n\t\tvalidate();\n\t\trepaint();\n\t}", "@Override\n\tpublic void windowStateChanged(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic boolean takeControl() {\n\t\treturn false;\n\t}", "@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tMyButtonEditor.this.fireEditingCanceled(); \n\t\t\t\tnew WarningDialog(jtb).jd.show();\n\t\t\t}", "public @Override void actionPerformed(ActionEvent e) {\n assert false;\n }", "public void actionPerformed ( java.awt.event.ActionEvent e ) {\n SwingUtilities.invokeLater( new Runnable() {\n public void run() {\n toggleNetEdit();\n } } ); }", "public void fireIntermediateEvents() {\n fireActionPerformed();\n }", "private void dialogChanged() {\n\t\tIResource container = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.findMember(new Path(getContainerName().get(\"ProjectPath\")));\n\n\t\tif(!containerSourceText.getText().isEmpty() && !containerTargetText.getText().isEmpty())\n\t\t{\n\t\t\tokButton.setEnabled(true);\n\t\t}\n\n\t\tif (getContainerName().get(\"ProjectPath\").length() == 0) {\n\t\t\tupdateStatus(\"File container must be specified\");\n\t\t\treturn;\n\t\t}\n\t\tif (container == null\n\t\t\t\t|| (container.getType() & (IResource.PROJECT | IResource.FOLDER)) == 0) {\n\t\t\tupdateStatus(\"File container must exist\");\n\t\t\treturn;\n\t\t}\n\t\tif (!container.isAccessible()) {\n\t\t\tupdateStatus(\"Project must be writable\");\n\t\t\treturn;\n\t\t}\n\t\tupdateStatus(null);\n\t}", "@Override public void onAfterStateSwitch() {\n assert SwingUtilities.isEventDispatchThread();\n assert isVisible();\n try {\n license = manager().load();\n onLicenseChange();\n manager().verify();\n } catch (final Exception failure) {\n JOptionPane.showMessageDialog(\n this,\n failure instanceof LicenseValidationException\n ? failure.getLocalizedMessage()\n : format(LicenseWizardMessage.display_failure),\n format(LicenseWizardMessage.failure_title),\n JOptionPane.ERROR_MESSAGE);\n }\n }", "public void actionPerformed(ActionEvent evt) {\n\t\tsetEnabled(true);\n\t\t\n\t\tSwingUtils.showCentered(getFrame(), getDialog());\n\n\t\tif (ButtonConstants.OK == getDialog().getTerminatingButton()) {\t\t\n\t\t\tSystem.out.println(\"abandon changes in model\");\n\t\t\n\t\t\tsetEnabled(false);\n\t\t}\n\t}", "private void initComponents() {\n\n setFocusLostBehavior(javax.swing.JFormattedTextField.COMMIT);\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n protected void applyChangesTo(Component component) {\n component.revalidate();\n component.repaint();\n }", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "public void updateChooser()\r\n\t{\r\n\t\t/*\twhat shall we do here ? */\r\n\t}", "@Override\n \t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t\t\t\tList<Pair<Text, Button>> texts = inputFields.get(fp);\n \t\t\t\ttexts.remove(pair);\n \t\t\t\tupdateState();\n \t\t\t\tremoveButton.dispose();\n \t\t\t\ttext.dispose();\n\t\t\t\taddButtons.get(fp).setEnabled(true);\n \t\t\t\tif (texts.size() == fp.getMinOccurrence())\n \t\t\t\t\tfor (Pair<Text, Button> otherPair : texts)\n \t\t\t\t\t\totherPair.getSecond().setEnabled(false);\n \n \t\t\t\t// do layout\n \t\t\t\t((Composite) getControl()).layout();\n \t\t\t\t// pack to make wizard smaller if possible\n \t\t\t\tgetWizard().getShell().pack();\n \t\t\t}", "private void notifyForbiddenTile(){\n\t\t\tJPanel pnl = EditorGUI.current;\n\t\t\tColor oldColor = pnl.getBackground();\n\t\t\t\n\t\t\tpnl.setBackground(new Color(240,125,125));\n\t\t\tnew Timer(delay, new ActionListener() {\t\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tpnl.setBackground(oldColor);\n\t\t\t\t\t((Timer) e.getSource()).stop();\n\t\t\t\t}\n\t\t\t}).start();\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if (model.getHintsUsed() < model.getPuzzle().getDifficulty().getMaxHints()) {\n model.getPuzzle().hint(false);\n model.setHintsUsed(model.getHintsUsed() + 1);\n update();\n System.err.println(\"HINT USED: \" + model.getStringHintsUsed());\n if (model.getHintsUsed() == model.getPuzzle().getDifficulty().getMaxHints()) {\n view.getGamePanel().getHintBtn().setEnabled(false);\n JOptionPane.showOptionDialog(getParent(), \"Let's not make it too easy!\\nThat was the last hint for this game.\\n\\nDid you Know?\\nSudokus can likely prevent Alzheimer's disease\\nand Dementia, so don't make it too easy.\", \"Out of Hints\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, null);\n }\n checkGridCompletion();\n }\n }", "private void jMenuItem8ActionPerformed(ActionEvent evt) {\n\t\tInpainter.halt = false;\n\t\tInpainter.completed = false;\n\t\tif (inpaintThread == null) {\n\t\t\tentry.setDisabled();\n\t\t\tinpaintThread = new Thread(this);\n\t\t\tinpaintThread.start();\n\t\t}\n\t}", "public void tryLockFocus() {\n }", "public void actionPerformed( ActionEvent actionEvent )\n {\n if ( _currentEntries == null || _core == null )\n return;\n\n _core.load( _currentEntries[ _comboBox.getSelectedIndex() ] );\n\n _main.requestFocus();\n // Workaround for focus handling bug in jdk1.4. BugParade 4478706.\n // TODO retest if needed on jdk1.4 -> defect is marked as fixed.\n //Window w = (Window)\n //SwingUtilities.getWindowAncestor( (JComponent)actionEvent.getSource() );\n //if ( w != null )\n //w.requestFocus();\n }", "private void postSwitchPanel()\n {\n switchPanel = false;\n }", "public void afterWaitForShutdown()\n {\n SwingUtilities.invokeLater(directConnectionsCheckboxUnselector);\n }", "private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }", "private void changeFrame() {\n\t\t\n\t\tselected.setVisible(!selected.isVisible());\n\t}", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}", "@Override\r\n\tprotected void done() {\r\n\t\ttry {\r\n\t\t\tthis.get();\r\n\r\n\t\t\tRunnable run = new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tMainFrame mf = GUITools.getMainFrame();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// try to restore the window at the last location\r\n\t\t\t\t\t\tPropertyManager pm = PropertyManager.getManager(mf);\r\n\t\t\t\t\t\tProperties p = pm.read();\r\n\t\t\t\t\t\t// first run, write default values\r\n\t\t\t\t\t\tif (p.isEmpty()){\r\n\t\t\t\t\t\t\tDimension dimScreen = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\t\t\t\t\tint width = (int) dimScreen.getWidth() / 9 * 8;\r\n\t\t\t\t\t\t\tint height = (int) dimScreen.getHeight() / 9 * 8;\r\n\t\t\t\t\t\t\tmf.setLocation(width / 9 * 1 / 2, height / 9 * 1 / 3);\r\n\t\t\t\t\t\t\tmf.setPreferredSize(new Dimension(width, height));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tp.setProperty(\"loc_x\", String.valueOf(mf.getLocation().x));\r\n\t\t\t\t\t\t\tp.setProperty(\"loc_y\", String.valueOf(mf.getLocation().y));\r\n\t\t\t\t\t\t\tp.setProperty(\"width\", String.valueOf(width));\r\n\t\t\t\t\t\t\tp.setProperty(\"height\", String.valueOf(height));\r\n\t\t\t\t\t\t\tp.setProperty(\"extendedState\", String.valueOf(JFrame.MAXIMIZED_BOTH));\r\n\t\t\t\t\t\t\tpm.write();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tmf.setVisible(true);\r\n\t\t\t\t\t\t// start like last time\r\n\t\t\t\t\t\tmf.setLocation(new Point(Integer.valueOf(p.getProperty(\"loc_x\")), Integer.valueOf(p.getProperty(\"loc_y\")))); \r\n\t\t\t\t\t\tmf.setSize(Integer.valueOf(p.getProperty(\"width\")), Integer.valueOf(p.getProperty(\"height\")));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Integer.valueOf(p.getProperty(\"extendedState\")) != JFrame.MAXIMIZED_BOTH){\r\n\t\t\t\t\t\t\tmf.setExtendedState(JFrame.NORMAL);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (Exception e) {\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\t// finally display (from EDT)\r\n\t\t\tSwingUtilities.invokeLater(run);\r\n\r\n\t\t\tSystem.gc();\r\n\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\tSystem.out.println(\"IQM Fatal: \"+ e1);\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e1, true);\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (ExecutionException e1) {\r\n\t\t\tSystem.out.println(\"IQM Fatal: \"+ e1);\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e1, true);\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"IQM Fatal: \"+ e);\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "private void helperAcceptButtonListener() {\n refresh();\n editDialog.dispose();\n }", "@Override\n public boolean canUpdate() { return false; }", "public final void m15087c() {\n synchronized (this.f20399d) {\n this.f20409o = false;\n setEnabled(true);\n this.f20399d.setEnabled(true);\n }\n ViewTreeObserver viewTreeObserver = this.f20399d.getViewTreeObserver();\n if (viewTreeObserver.isAlive()) {\n viewTreeObserver.dispatchOnGlobalLayout();\n }\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(null == frame){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tframe = new CompareWin();\r\n\t\t\t\t\t\tframe.setVisible(true);\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\tframe.setFocusable(true);\r\n\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}", "private void checkChanges() {\n CertificationStyleWrapper wrapper = (CertificationStyleWrapper) cbCertificationStyle.getSelectedItem();\n if (wrapper != null && settings.getCertificationStyle() != wrapper.style) {\n settings.setCertificationStyle(wrapper.style);\n }\n\n // set NFO filenames\n settings.clearNfoFilenames();\n if (chckbxTvShowNfo1.isSelected()) {\n settings.addNfoFilename(TvShowNfoNaming.TV_SHOW);\n }\n\n settings.clearEpisodeNfoFilenames();\n if (chckbxEpisodeNfo1.isSelected()) {\n settings.addEpisodeNfoFilename(TvShowEpisodeNfoNaming.FILENAME);\n }\n }", "public void verify() {\n lblPaletteContent();\n treePaletteContentsTree();\n lblJLabel();\n btMoveUp();\n btMoveDown();\n btRemove();\n btNewCategory();\n btAddFromJAR();\n btAddFromLibrary();\n btAddFromProject();\n btResetPalette();\n btClose();\n }", "public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n }", "public void doRepaint() {\n window.getApplication().doRepaint();\n }", "public void designerInputModified(DesignerEvent e);", "private void preSwitchPanel()\n {\n switchPanel = true;\n configureNext = true;\n configurePrevious = true;\n }", "private void performDirectEdit() {\n\t}", "public void update(){\n\t\tthis.setVisible(true);\n\t}", "@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }", "public final void change() {\n\t\tBSUIWindow.change_do(this);\n\t}", "@Override\n public void update() {\n this.blnDoUpdate.set(true);\n }", "private void initiateInternal() {\n\n //define adaptation listener\n this.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n adapt(e);\n }\n });\n\n //solve problem with unloading of internal components\n setExtendedState(ICONIFIED | MAXIMIZED_BOTH);\n //the set visible must be the last thing called \n pack();\n setExtendedState(MAXIMIZED_BOTH);\n setVisible(true);\n }", "private void reEnableCopyButtons() {\n // re-enable the buttons the relevant buttons\n copyToASpaceButton.setEnabled(true);\n repositoryCheckButton.setEnabled(true);\n copyProgressBar.setValue(0);\n\n if (copyStopped) {\n if (ascopy != null) ascopy.saveURIMaps();\n copyStopped = false;\n copyProgressBar.setString(\"Cancelled Copy Process ...\");\n } else {\n copyProgressBar.setString(\"Done\");\n }\n }", "@Override\r\n public void done() {\r\n \t\r\n \tjdp.setVisible(false);\r\n }", "public void preDispose() {\n\t\ttextField.removeActionListener(changeListener);\n\t}", "void reset () {\n\t if ( solid != null )\n\t SwingUtilities.invokeLater( new Runnable() {\n\t @Override\n\t public void run () {\n\t if ( solid != null ) {\n\t app.stop();\n\t app.setNostopOperaPanelBean( solid.connBean, solid.nonStopBean, solid.ea );\n\t app.start();\n\t }\n\t }\n\t } );\n\t}", "public static void markAsModified() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tsaveMenuItem.setEnabled(true);\n\t\t\tif(GUIReferences.currentFile != null) {\n\t\t\t\tGUIReferences.viewPort.setTitle(\"*\"+GUIReferences.currentFile.getName());\n\t\t\t} else {\n\t\t\t\tGUIReferences.viewPort.setTitle(\"*Untitled\");\n\t\t\t}\n\t\t}\n\t}", "void updateSave(boolean modified) {\n if (boxChanged != modified) {\n boxChanged = modified;\n this.jButtonSave.setEnabled(modified);\n this.jMenuItemSave.setEnabled(modified);\n rootPane.putClientProperty(\"windowModified\", modified);\n // see http://developer.apple.com/qa/qa2001/qa1146.html\n }\n }", "public void run() {\n\t\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsetStatusMessage(UI.EMPTY_STRING);\r\n\t\t\t\t}", "@Override\n public void done() {\n Toolkit.getDefaultToolkit().beep();\n //release_plan_btn.setEnabled(true);\n setCursor(null); //turn off the wait cursor\n JOptionPane.showMessageDialog(null, \"Plan released !\\n\");\n\n }", "@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tInvoker.getInstance()\n\t\t\t\t\t.executeCommand(new GraphicElementEditCommitCommand(model, dialog.getGraphicElement()));\n\t\t\tdialog.setVisible(false);\n\t\t}", "@Override\n public void done() {\n Toolkit.getDefaultToolkit().beep();\n //close_plan_btn.setEnabled(true);\n setCursor(null); //turn off the wait cursor\n JOptionPane.showMessageDialog(null, \"Plan released !\\n\");\n\n }", "protected boolean isRepaintReason(int reason) {\n \t\treturn CONFIGURATION == reason || INTERNAL == reason;\n \t}", "void updateIfNeeded()\n throws Exception;", "public void updateUI() {\n/* 393 */ setUI((ScrollPaneUI)UIManager.getUI(this));\n/* */ }", "public void update() {\n \t\t\t\t// XXX: workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=206111\n \t\t\t\tif (fOperationCode == ITextOperationTarget.REDO)\n \t\t\t\t\treturn;\n \n \t\t\t\tboolean wasEnabled= isEnabled();\n \t\t\t\tboolean isEnabled= (fOperationTarget != null && fOperationTarget.canDoOperation(fOperationCode));\n \t\t\t\tsetEnabled(isEnabled);\n \n \t\t\t\tif (wasEnabled != isEnabled) {\n \t\t\t\t\tfirePropertyChange(ENABLED, wasEnabled ? Boolean.TRUE : Boolean.FALSE, isEnabled ? Boolean.TRUE : Boolean.FALSE);\n \t\t\t\t}\n \t\t\t}", "@Override\n public void checkEditing() {\n }", "private void validation() {\n this.validate();\n this.repaint();\n }", "private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n \n if(checkRange()) {\n //save changes to channel object before disposing GUI\n updateChannelObject();\n this.dispose();\n }\n }", "private void updateState (Throwable t) {\n if (exceptions == null) {\n // the dialog is not shown\n exceptions = new QueueEnumeration ();\n current = t;\n update ();\n dialog.show ();\n } else {\n // add the exception to the queue\n exceptions.put (t);\n next.setVisible (true);\n }\n }", "public void refreshPanelComponents() {\r\n }", "@Override\n\tprotected void deInitUIandEvent()\n\t{\n\t}" ]
[ "0.6607065", "0.64587134", "0.6418883", "0.6215543", "0.6181347", "0.6080787", "0.6078154", "0.60576105", "0.6031606", "0.59995306", "0.59965974", "0.59878004", "0.5986522", "0.59742904", "0.5968546", "0.59557056", "0.59526813", "0.59511423", "0.59287447", "0.5915278", "0.5915047", "0.590487", "0.590487", "0.5899994", "0.58964705", "0.5895293", "0.5878892", "0.5878035", "0.58690155", "0.5853271", "0.58530515", "0.5852963", "0.5835095", "0.581605", "0.57998234", "0.57980156", "0.5791359", "0.57908434", "0.5789507", "0.5787553", "0.57729423", "0.5770392", "0.57619894", "0.5760917", "0.57592857", "0.5746409", "0.574112", "0.574112", "0.574112", "0.5736532", "0.57342", "0.57319957", "0.5712427", "0.5699311", "0.5698755", "0.5695973", "0.56922257", "0.5687611", "0.56748235", "0.56589997", "0.56547916", "0.5651402", "0.56505907", "0.56468296", "0.5638522", "0.562915", "0.5628775", "0.5626497", "0.5621101", "0.5616673", "0.5615484", "0.56085765", "0.5603865", "0.55943435", "0.55902207", "0.55771524", "0.5576985", "0.5575071", "0.5572669", "0.557166", "0.557025", "0.55642307", "0.5557431", "0.5555594", "0.55476964", "0.55428934", "0.5540659", "0.55385804", "0.5538115", "0.55265194", "0.5524453", "0.5519785", "0.5518237", "0.55180675", "0.551725", "0.55115134", "0.55103403", "0.55070096", "0.5505236", "0.55035025", "0.54980326" ]
0.0
-1
Waits for the system error dialog to appear
public static AbstractErrDialog waitForErrorDialog() { return waitForDialogComponent(AbstractErrDialog.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n waitDialog.dismiss();\n\n //show an error dialog\n\n\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "private void showErrorDialog(int errorCode) {\n\t\t\n }", "private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }", "private void showErrorMessage(String msgRes)\r\n {\r\n applicationContext.getGUISynchronizer().asyncInvoke(\r\n createErrorRunnable(msgRes));\r\n }", "private static void displayError(Shell shell, String msg) {\n MessageBox mbox = new MessageBox(shell, SWT.ICON_ERROR|SWT.OK);\n mbox.setMessage(msg);\n mbox.setText(\"USBDM - Can't create launch configuration\");\n mbox.open();\n }", "void ShowWaitDialog(String title, String message);", "public void waitForAlertDisplay()\n {\n new WebDriverWait(driver,\n DEFAULT_TIMEOUT, 5000).ignoring(StaleElementReferenceException.class).ignoring(\n WebDriverException.class).\n until(ExpectedConditions.alertIsPresent());\n }", "@Override\n public void onError(Status status) {\n createToast(\"Error occurred, please wait\");\n }", "private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}", "void alertTimeout(String msg)\n { /* alertTimeout */\n this.sleepFlag= false;\t/* flag for waiting */ \n updatePopupDialog(msg, \"\", null, 0);\n }", "private void displayError(Exception ex)\n {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Error dialog\");\n alert.setHeaderText(null);\n alert.setContentText(ex.getMessage());\n\n alert.showAndWait();\n }", "void displayUserTakenError(){\n error.setVisible(true);\n }", "public abstract void showErrorBox(Throwable error);", "protected static synchronized void writeError(String errorMessage) {\n JOptionPane optionPane = new JOptionPane(errorMessage, JOptionPane.ERROR_MESSAGE);\n JDialog dialog = optionPane.createDialog(\"Error\");\n dialog.setAlwaysOnTop(true);\n dialog.setVisible(true);\n }", "void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }", "public void waitForScreenLoad() throws Exception {\n try {\n Thread.sleep(2000);\n //TODO implement generic way of handling screen loading, page transaction\n } catch (Exception e) {\n error(\"Exception Occurred in while waiting screen to get loaded\");\n error(Throwables.getStackTraceAsString(e));\n throw new Exception(Throwables.getStackTraceAsString(e));\n }\n }", "void showSyncFailMessage();", "public static void showErrorDialog(final Shell shell, Throwable t) {\n\t\tMultiStatus status = createMultiStatus(t.getLocalizedMessage(), t);\n\t\t// show error dialog\n\t\tErrorDialog.openError(shell, \"Error\", \"This is an error\", status);\n\t}", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }", "public void waitFor() {\n try {\n myProcess.waitFor();\n }\n catch (final InterruptedException ie) {\n final AssertionError error = new AssertionError(\n \"Failed to wait for the process to exit gracefully.\");\n error.initCause(ie);\n\n throw error;\n }\n }", "private void showErrorDialog(int resultCode) {\n // Get the error dialog from Google Play Services\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(\n resultCode, this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n if (errorDialog != null) {\n // Display error\n errorDialog.show();\n }\n }", "protected void finalizeSystemErr() {}", "private void ShowRetrievedErrorPopupDialog(){\n ShowWhaitSpinner();\n //there is an error, show popup message\n Context context;\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(R.string.error_message_download_resources)\n .setCancelable(false)\n .setPositiveButton(R.string.ok_button, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n startActivity(new Intent(getContext(), MainActivity.class));\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n }", "public synchronized void showErrorMessage(String message) {\r\n \t\tComponent parent = mainWindow;\r\n \t\tif (resultsWindow != null && resultsWindow.hasFocus()) {\r\n \t\t\tparent = resultsWindow;\r\n \t\t}\r\n \t\tJOptionPane.showMessageDialog(parent, message, \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t}", "private void displayError(String errorText) {\n\t\tMessageBox messageBox = new MessageBox(shell, SWT.OK);\n\t\tmessageBox.setMessage(errorText);\n\t\tmessageBox.setText(\"Alert\");\n\t\tmessageBox.open();\n\t}", "private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }", "private void error(String message) { \n Alert alert = new Alert(Alert.AlertType.ERROR, message);\n alert.setTitle(I18n.tr(\"imagesizedialog.error.title\"));\n alert.setContentText(message);\n alert.showAndWait();\n }", "static void waitServerResponse(){\n try {\n Thread.sleep(5000);\n }catch(InterruptedException e){\n System.out.println(\"The application close due to an error.\");\n System.exit(-1);\n }\n }", "public static void showErrorDialog(Shell shell, Exception e) {\r\n\t\tString message = \"Oops... an unexpected error occurred\";\r\n\t\tif (e != null) {\r\n\t\t\tif (e instanceof MusicTunesException) {\r\n\t\t\t\tmessage = e.getMessage();\r\n\t\t\t}\r\n\t\t}\r\n\t\tshowErrorDialog(shell, message);\r\n\t}", "public void onMoviesError() {\n\n // Hide progress indicator\n resultsProgressIndicator.setVisible(false);\n\n Platform.runLater(() -> {\n\n // Creating an alert dialog\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"Connectivity Error\");\n alert.setContentText(\"Poster Grabber could not connect. Your connection might be down for the moment or the host is down.\\nPlease check your internet connection and try again later.\");\n alert.initOwner(primaryStage);\n\n // Setting custom style\n DialogPane dialogPane = alert.getDialogPane();\n dialogPane.getStylesheets().add(getClass().getResource(\"/ErrorDialog.css\").toExternalForm());\n dialogPane.getStyleClass().add(\"myDialog\");\n\n // Displaying the alert dialog\n alert.show();\n });\n\n }", "private void showAlertSelectionFail(String title, String msg) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(title);\n\n // Header Text: null\n alert.setHeaderText(null);\n alert.setContentText(msg);\n alert.showAndWait();\n }", "@Override\r\n\tpublic void showErrReq() {\n\t\tdialog.cancel();\r\n\t\tshowNetView(true);\r\n\t}", "private void showAlertDBError() {\n showAlertSelectionFail(\"Database error\", \"Could not establish a connection to the database. Please visit the database settings to verify your connection.\");\n }", "public void run() {\n JOptionPane pane = new JOptionPane(\"<html>\"+\n \"<font color=black>\"+\n \"Waiting to load UI Components for \"+\n \"the </font><br>\"+\n \"<font color=blue>\"+svcName+\"</font>\"+\n \"<font color=black> service running \"+\n \"on<br>\"+\n \"machine: <font color=blue>\"+\n hostName+\n \"</font><font color=black> address: \"+\n \"</font><font color=blue>\"+\n hostAddress+\"</font><br>\"+\n \"<font color=black>\"+\n \"The timeframe is longer then \"+\n \"expected,<br>\"+\n \"verify network connections.\"+\n \"</font></html>\",\n JOptionPane.WARNING_MESSAGE);\n dialog = pane.createDialog(null, \"Network Delay\");\n dialog.setModal(false);\n dialog.setVisible(true);\n }", "public static void showErrorDialog(Shell shell, String message) {\r\n\t\tshowDialog(shell, \"Error\", message, SWT.ICON_ERROR);\r\n\t}", "public static void waitForEDT() {\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(() -> {});\n\t\t} catch (InvocationTargetException | InterruptedException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private void showAlertResetFail(String msg) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Database error\");\n\n // Header Text: null\n alert.setHeaderText(\"Could not reset database\");\n alert.setContentText(msg);\n alert.showAndWait();\n }", "private void displayErrorToast()\n {\n Toast.makeText(\n getApplicationContext(),\n \"Connection to the server failed, please try again!\",\n Toast.LENGTH_LONG ).show();\n }", "private void showConnectionError() {\n String couldNotConnect = Localization.lang(\"Could not connect to the update server.\");\n String tryLater = Localization.lang(\"Please try again later and/or check your network connection.\");\n if (manualExecution) {\n JOptionPane.showMessageDialog(this.mainFrame, couldNotConnect + \"\\n\" + tryLater,\n couldNotConnect, JOptionPane.ERROR_MESSAGE);\n }\n this.mainFrame.output(couldNotConnect + \" \" + tryLater);\n }", "private void displayError(Exception e)\n\t{\n\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t\te.toString(),\n\t\t\t\t\"EXCEPTION\",\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n if (progressDialog.isShowing()) {\n progressDialog.dismiss();\n }\n\n showErrorMessageDialogue(\"Some error just happened. \" +\n \"Please try again in a little bit.\");\n\n }", "protected void showErrorDialog(String msg) {\n JOptionPane.showMessageDialog(mainFrame, msg, errorDialogTitle, JOptionPane.ERROR_MESSAGE);\n }", "private void showErrorDialog(String msg) {\n\t\tJFXDialogLayout content = new JFXDialogLayout();\n\t\tcontent.setHeading(new Text(\"ERROR\"));\n\t\tcontent.setBody(new Text(msg));\n\t\tJFXDialog dialog = new JFXDialog(stackPane, content, JFXDialog.DialogTransition.CENTER);\n\t\t;\n\n\t\tJFXButton button = new JFXButton(\"I understand\");\n\t\tbutton.setButtonType(ButtonType.RAISED);\n\t\tbutton.setCursor(Cursor.HAND);\n\t\tbutton.setOnAction(e -> dialog.close());\n\t\tcontent.setActions(button);\n\t\tdialog.show();\n\t}", "protected void userErrorOccurred()\n {\n traceOK = false;\n }", "public void waitForNotificationOrFail() {\n new PollingCheck(5000) {\n @Override\n protected boolean check() {\n return mContentChanged;\n }\n }.run();\n mHT.quit();\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "private void displayErrorDialog(String message) {\n AlertDialog.Builder builder;\n\n builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.er_error))\n .setMessage(message)\n .setNegativeButton(getString(R.string.bt_close), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n }).setIcon(android.R.drawable.stat_notify_error).show();\n }", "public void showLoadingError() {\n showError(MESSAGE_LOADING_ERROR);\n }", "@Override\n\t\t\tpublic void onError(Exception e) {\n\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tLogUtil.d(TAG, \"Current thread id:\" + Thread.currentThread().getId());\n\t\t\t\t\t\t//Close process dialog.\n\t\t\t\t\t\tcloseProcessDialog();\n\t\t\t\t\t\t//Popup a toast notification.\n\t\t\t\t\t\tToast.makeText(ChooseAreaActivity.this, \"¼ÓÔØÊ§°Ü\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}", "public void messageErreur(Exception ex) throws HeadlessException {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }", "protected void sendError(final Throwable t) {\n main.post(new Runnable() {\n @Override\n public void run() {\n for (ErrWatcher ew : errWatchers) {\n try {\n Log.e(PULSE, \"Sending error to UI\", t);\n ew.onError(t);\n } catch (Error | Exception t) {\n Log.e(PULSE, \"Error while reporting error.\", t);\n }\n }\n }\n });\n }", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n mListener.onWaitFragmentInteractionHide();\n }", "public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}", "private void waitForAWT() throws Exception {\n Mutex.EVENT.readAccess(new Mutex.Action() {\n public Object run() {\n return null;\n }\n });\n }", "void showError() {\n Toast.makeText(this, \"Please select answers to all questions.\", Toast.LENGTH_SHORT).show();\n }", "public void showExceptionDialog(Exception InputException)\r\n {\r\n JOptionPane.showMessageDialog(MainFrame,\r\n InputException.getMessage(),\r\n \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }", "private void errorLogButtonActionPerformed() {\n ImportExportLogDialog logDialog;\n\n if(ascopy != null && ascopy.isCopying()) {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, ascopy.getCurrentProgressMessage());\n logDialog.setTitle(\"Current Data Transfer Errors\");\n } else {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, migrationErrors);\n logDialog.setTitle(\"Data Transfer Errors\");\n }\n\n logDialog.showDialog();\n }", "private void openSelectedProfileError() {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Error Opening Profile\");\n alert.setHeaderText(null);\n alert.setContentText(\"An error occurred while opening the selected profile.\");\n alert.showAndWait();\n }", "public void showGoogleErrorDialog(ConnectionResult connectionResult) {\n try {\n // Create a fragment for the error dialog\n connectionResult.startResolutionForResult(this, GoogleAPIConnectionConstants.REQUEST_RESOLVE_ERROR);\n }\n catch (IntentSender.SendIntentException e) {\n Log.e(MainActivity.TAG,\"SendIntentException occurred.\");\n checkGoogleApiAvailability();\n }\n }", "public abstract void showErrorBox(String errorMessage, Runnable callback);", "public void showErrorDialog(String header, String content) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(header);\n Label label = new Label(content);\n label.setWrapText(true);\n alert.getDialogPane().setContent(label);\n alert.showAndWait();\n }", "private void printErrorAlert(String title, String header, String message) {\r\n\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n\t\tif(title.length()>0)\r\n\t\t\talert.setTitle(title);\r\n\t\tif(header.length()>0)\r\n\t\t\talert.setHeaderText(header);\r\n\t\tif(message.length()>0)\r\n\t\t\talert.setContentText(message);\r\n\t\tStage stage = (Stage) alert.getDialogPane().getScene().getWindow();\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"x.png\").toString()));\r\n\t\talert.showAndWait();\r\n\t}", "public void waitForReport() {\n CountDownLatch localLatch = crashReportDoneLatch;\n if (localLatch != null) {\n try {\n localLatch.await();\n } catch (InterruptedException e) {\n log.debug(\"Wait for report was interrupted!\", e);\n // Thread interrupted. Just exit the function\n }\n }\n }", "private void showError(String msg)\n {\n \tJOptionPane.showMessageDialog(this, msg, \"Error\",\n \t\t\t\t JOptionPane.ERROR_MESSAGE);\n }", "protected void showAlertDialog(Exception e) {\n\t\tshowAlertDialog(\"Error\", e.toString());\n\t}", "public static void displayLaunchError(Shell shell, ILaunchConfiguration config, Exception e) {\n\t\tString title = \"Problem Occured\"; \n\t\tString message = \"Opening the configuration dialog has encoutered a problem.\\n\\n\" + e.getLocalizedMessage();\n\t\tMessageDialog.openError(shell, title, message);\n\t}", "public void timeout(){\n // close open loading dialogs\n Fragment dialog = getSupportFragmentManager().findFragmentByTag(\"loading\");\n if (dialog != null) {\n loadingDialog.dismiss();\n }\n timeoutDialog.show(getSupportFragmentManager(), \"timeout\");\n }", "private void showError(String text, String title){\n JOptionPane.showMessageDialog(this,\n text, title, JOptionPane.ERROR_MESSAGE);\n }", "private void showError(String message){\n\t\tsetupErrorState();\n\t\tsynapseAlert.showError(message);\n\t}", "public void showErrorMessageDialog(String error){\n JOptionPane.showMessageDialog(null,error, \"Error\",JOptionPane.ERROR_MESSAGE);\n }", "void errorBox(String title, String message);", "private void showErrorToast() {\n }", "public void ShowMessageBox(String text)\n {\n ShowMessageBox(getShell(), \"Error\", text, 0);\n }", "protected void waitUntilCommandFinished() {\n }", "private void popupMessage(String message) {\n\t\tJOptionPane.showMessageDialog(this, message, \"Error\", JOptionPane.ERROR_MESSAGE);\n\t}", "public static void setErrorMessage(String text) {\n\t JOptionPane optionPane = new JOptionPane(text,JOptionPane.ERROR_MESSAGE);\n\t JDialog dialog = optionPane.createDialog(\"Erro\");\n\t dialog.setAlwaysOnTop(true);\n\t dialog.setVisible(true);\n\t}", "void showError(String message);", "void showError(String message);", "@Override\n public void onError(List<String> errors) {\n DialogUtils.showLong(context, errors.get(0));\n progressBar.setVisibility(View.INVISIBLE);\n }", "private void displayGenericError(String errorMessage)\n {\n AlertDialog errorDialog = AlertBuilder.buildErrorDialog(this, errorMessage);\n errorDialog.show();\n }", "private void errorAlert(String msg) {\n Alert dialog = new Alert(Alert.AlertType.ERROR);\n dialog.setTitle(\"Error\");\n dialog.setHeaderText(\"!!\");\n dialog.setContentText(msg);\n dialog.show();\n }", "private void showErroAlert(String errorMessage) {\n LOGGER.log(Level.INFO, \"Showing Alert window with error message...\");\n Alert errorAlert = new Alert(Alert.AlertType.ERROR, errorMessage, ButtonType.OK);\n errorAlert.show();\n }", "public void onFailure(Throwable caught) {\n\t\t\t\t\t\t\tdialogBox.setText(\"Email Address Registration - Failure\");\r\n\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\tcloseButton.setFocus(true);\r\n\t\t\t\t\t\t\tdialogBox.show();\r\n\t\t\t\t\t\t}", "public void error(MediaPlayer mediaPlayer) {\n\t\t\t\t// Ukoliko event handler menja gui onda to moraju uraditi na Swing Event Dispatch Thread-u\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tDialogUtils.showMessage(\"Failed to play: \" + videoPath, \"Error\");\n\t\t\t\t\t}\t\n\t\t\t\t});\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tWindow.alert(\"Fail\");\n\t\t\t\t\t}", "public void showLoadingError() {\n System.out.println(\"Duke has failed to load properly.\");\n }", "@Override\n public void onError(int errorCode, String errorString) {\n ((StockTradeDetailActivity)mContext).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mExtraInfoProgressBar_II.setVisibility(View.GONE);\n showExtraInfoPrompt(mExtraInfoDataPromptViewII, EXTRA_INFO_STATUS_ERROR);\n }\n });\n }", "private void waitForDialogLoadingBackdropToFade( ) {\r\n\t\t\r\n\t\t/* --- Let's wait for 10 seconds, until the temporary overlay dialog disappears. - */\r\n\t\tWait.invisibilityOfElementLocated (driver, this.overlayDialogRefresher1Locator, 15 );\r\n\t\tWait.invisibilityOfElementLocated (driver, this.overlayDialogRefresher2Locator, 15 );\r\n\t}", "public static void showError (Exception e)\n\t{\n\t\tString message = getErrorMessage(e);\n\t\n\t\t// filter out cancelled actions by the user which end up as\n\t\t// ModelExceptions after veto\n\t\tif (message != null)\n\t\t{\n\t\t\tNotifyDescriptor desc = new NotifyDescriptor.Message(\n\t\t\t\tmessage, NotifyDescriptor.ERROR_MESSAGE);\n\n\t\t\tDialogDisplayer.getDefault().notify(desc);\n\t\t}\n\t}", "public TestingFailedAlert() {\n this.setResizable(false);\n this.setVisible(true);\n initComponents();\n }", "private void showErrorDialog(int errorCode) {\n\n\t\t// Get the error dialog from Google Play services\n\t\tDialog errorDialog = GooglePlayServicesUtil.getErrorDialog(errorCode, getActivity(), LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t// If Google Play services can provide an error dialog\n\t\tif (errorDialog != null) {\n\t\t\terrorDialog.show();\n\t\t}\n\t}", "void error() {\n status = ERROR;\n System.out.println(\"error\");\n stateChanged();\n }", "public void waitForCompletion() throws Exception {\n latch.await();\n if (exception != null) {\n throw new RuntimeException(\"Query submission failed\", exception);\n }\n }", "public void halt(final String errorMessage);", "public void waitForImportMessage()\n {\n\n waitForElement(IMPORT_MESSAGE, SECONDS.convert(getDefaultWaitTime(), MILLISECONDS));\n waitUntilElementDisappears(IMPORT_MESSAGE, SECONDS.convert(getDefaultWaitTime(), MILLISECONDS));\n }", "@Override\n public void onFailure(Throwable caught) {\n Window.alert(\"ERROR from SERVER\");\n }", "public void displayError(String e){\n\t\tJOptionPane.showMessageDialog(null, e, \"Error\", JOptionPane.ERROR_MESSAGE);\n\t}", "public void exception(String message) {\n JOptionPane.showMessageDialog(frame, message, \"exception\", JOptionPane.ERROR_MESSAGE);\n }" ]
[ "0.7038761", "0.63708246", "0.62744105", "0.6248411", "0.61255836", "0.61095524", "0.6093752", "0.60878706", "0.60618687", "0.60256344", "0.6023292", "0.6002634", "0.595824", "0.59355617", "0.58987385", "0.5849067", "0.584493", "0.5844505", "0.58328146", "0.5814521", "0.58022124", "0.57947963", "0.57931685", "0.579033", "0.57883024", "0.577728", "0.57653254", "0.5761186", "0.57468957", "0.5741227", "0.57310814", "0.5724575", "0.5715627", "0.5701269", "0.56973237", "0.56964844", "0.5683231", "0.56584585", "0.5646666", "0.56457144", "0.5638924", "0.56311876", "0.56261736", "0.56193334", "0.5617809", "0.5617112", "0.5613999", "0.561136", "0.5597923", "0.55938137", "0.55845785", "0.557887", "0.5559538", "0.55562234", "0.5553817", "0.5548813", "0.5548108", "0.5545006", "0.55446184", "0.55302674", "0.552705", "0.55231917", "0.5519955", "0.55195403", "0.55148304", "0.55129737", "0.5481928", "0.5479153", "0.54715204", "0.5470569", "0.5460569", "0.5460111", "0.54511994", "0.5441716", "0.5438837", "0.5435911", "0.54353595", "0.5427505", "0.54179806", "0.54179806", "0.5417892", "0.5416838", "0.5413362", "0.5412615", "0.54032326", "0.5393183", "0.5392755", "0.53866976", "0.5382112", "0.53795785", "0.5376973", "0.5375702", "0.53741664", "0.5367747", "0.53672117", "0.5360855", "0.53599584", "0.53595024", "0.53538346", "0.5351723" ]
0.69417053
1
Waits for the system info dialog to appear
public static OkDialog waitForInfoDialog() { return waitForDialogComponent(OkDialog.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "void show_info() {\n\t\tsetAlwaysOnTop(false);\n\n\t\tString msg = \"<html><ul><li>Shortcuts:<br/>\"\n\t\t\t\t+ \"(\\\") start macro<br/>\"\n\t\t\t\t+ \"(esc) exit<br/><br/>\"\n\t\t\t\t+ \"<li>Author: <b>Can Kurt</b></ul></html>\";\n\n\t\tJLabel label = new JLabel(msg);\n\t\tlabel.setFont(new Font(\"arial\", Font.PLAIN, 15));\n\n\t\tJOptionPane.showMessageDialog(null, label ,\"Info\", JOptionPane.INFORMATION_MESSAGE);\n\n\t\tsetAlwaysOnTop(true);\n\t}", "@Then(\"system displays account profile\")\n\tpublic void systemDisplays() throws InterruptedException {\n\t\tpause();\n\n\t\tString actualmsg = driver.findElement(By.xpath(propertyBag.getPageProperty(YOURACCOUNT_MESSAGE))).getText();\n\t\tString expectedmsg = \"Your details\";\n\t\tassertStringEquals(actualmsg, expectedmsg);\n\n\t\t\n\t}", "public void run() {\n JOptionPane pane = new JOptionPane(\"<html>\"+\n \"<font color=black>\"+\n \"Waiting to load UI Components for \"+\n \"the </font><br>\"+\n \"<font color=blue>\"+svcName+\"</font>\"+\n \"<font color=black> service running \"+\n \"on<br>\"+\n \"machine: <font color=blue>\"+\n hostName+\n \"</font><font color=black> address: \"+\n \"</font><font color=blue>\"+\n hostAddress+\"</font><br>\"+\n \"<font color=black>\"+\n \"The timeframe is longer then \"+\n \"expected,<br>\"+\n \"verify network connections.\"+\n \"</font></html>\",\n JOptionPane.WARNING_MESSAGE);\n dialog = pane.createDialog(null, \"Network Delay\");\n dialog.setModal(false);\n dialog.setVisible(true);\n }", "protected static synchronized void writeInfo(String information) {\n JOptionPane optionPane = new JOptionPane(information, JOptionPane.INFORMATION_MESSAGE);\n JDialog dialog = optionPane.createDialog(\"Information\");\n dialog.setAlwaysOnTop(true);\n dialog.setVisible(true);\n }", "private void showInfo() {\n JOptionPane.showMessageDialog(\n this,\n \"Пока что никакой\\nинформации тут нет.\\nДа и вряд ли будет.\",\n \"^^(,oO,)^^\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }", "protected void showNotify() {\n try {\n myJump.systemStartThreads();\n } catch (Exception oe) {\n myJump.errorMsg(oe);\n }\n }", "void ShowWaitDialog(String title, String message);", "public static void showInfoDialog(Shell shell, String title,\r\n\t\t\tString message) {\r\n\t\tshowDialog(shell, title, message, SWT.ICON_INFORMATION);\r\n\t}", "public void info(){\r\n System.out.println(\"Title : \" + title);\r\n System.out.println(\"Author . \" + author);\r\n System.out.println(\"Location : \" + location);\r\n if (isAvailable){\r\n System.out.println(\"Available\");\r\n }\r\n else {\r\n System.out.println(\"Not available\");\r\n }\r\n\r\n }", "public void showInformationMessage(String msg) {\r\n JOptionPane.showMessageDialog(this,\r\n\t\t\t\t msg, TmplResourceSingleton.getString(\"info.dialog.header\"),\r\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE);\r\n }", "private void dialogAbout() {\n\t\tGraphicalUserInterfaceAbout.start();\r\n\t}", "public static int showInformationDialog(Object[] options, String title, String message) {\n\t\treturn 0;\n\t}", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "private void discoverableRequest() {\n final AlertDialog.Builder dialog_builder = new AlertDialog.Builder(this);\n\n // Sets the title for the popup dialog\n dialog_builder.setTitle(\"Make Host Device Discoverable\");\n dialog_builder.setMessage(\"Top level stuff here. Sadly, you don't have appropriate permissions to do this.\");\n final AlertDialog dialog = dialog_builder.create();\n // Displays the dialogue\n dialog.show();\n }", "void askServerInfo();", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "static void giveInfo(String message){\n JOptionPane.showMessageDialog(null, message);\n }", "private void showStatus(final String msg, final int time) {\r\n _uiApp.invokeAndWait(new Runnable() {\r\n /**\r\n * @see Runnable#run()\r\n */\r\n public void run() {\r\n Status.show(msg, time);\r\n }\r\n });\r\n }", "public static void infoDialog(String title,String msgBody) throws IOException{\n \n }", "private void reportUIChange() {\r\n\t\tif (messengerToUI != null) {\r\n\t\t\ttry {\r\n\t\t\t\tmessengerToUI.send(Message.obtain(null, DRIVER2UI_DEV_STATUS));\r\n\t\t\t} catch (RemoteException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void infoMessage(String message) {\n JOptionPane.showMessageDialog(this, message,\n \"VSEGraf - user management\", JOptionPane.INFORMATION_MESSAGE);\n }", "public void displayInfo(String info){\n infoWindow.getContentTable().clearChildren();\n Label infoLabel = new Label(info, infoWindow.getSkin(), \"dialog\");\n infoLabel.setWrap(true);\n infoLabel.setAlignment(Align.center);\n infoWindow.getContentTable().add(infoLabel).width(500);\n infoWindow.show(guiStage);\n }", "public void clientInfo() {\n uiService.underDevelopment();\n }", "private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }", "public void waitForAlertDisplay()\n {\n new WebDriverWait(driver,\n DEFAULT_TIMEOUT, 5000).ignoring(StaleElementReferenceException.class).ignoring(\n WebDriverException.class).\n until(ExpectedConditions.alertIsPresent());\n }", "public void showWinMessage(String info) {\n\t\tAlert al = new Alert(AlertType.WARNING);\n\t\tal.setTitle(\"Se termino el juego\");\n\t\tal.setHeaderText(\"Ganaste\");\n\t\tal.setContentText(info);\n\t\tal.showAndWait();\n\t}", "public void startInfo() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter your name:\");\n\t\tString name = this.getInputString();\n\t\tSystem.out.println(\"Enter your mobile number:\");\n\t\tint number = this.getInputInteger();\n\t\tSystem.out.println(\"Enter your email:\");\n\t\tString email = this.getInputString();\n\t}", "private void showDialog() {\n\t\tAlertDialog.Builder ab = new AlertDialog.Builder(SplashActivity.this);\n\t\tab.setTitle(\"最新版本2.0\");\n\t\tab.setMessage(mDesc);\n\t\tab.setPositiveButton(\"立即更新\", new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// 在这使用xutils异步下载并提示安装,和显示下载进度条\n\n\t\t\t}\n\t\t});\n\n\t\tab.setNegativeButton(\"下次再说\", new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// 进入主界面\n\n\t\t\t}\n\t\t});\n\t\tab.create().show();\n\t}", "private void showAbout() {\n JOptionPane.showMessageDialog(this,\n \"TalkBox\\n\" + VERSION,\n \"About TalkBox\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void showProposalDescription() {\n\t\t// If we do not already have a pending update, then\n\t\t// create a thread now that will show the proposal description\n\t\tif (!pendingDescriptionUpdate) {\n\t\t\t// Create a thread that will sleep for the specified delay\n\t\t\t// before creating the popup. We do not use Jobs since this\n\t\t\t// code must be able to run independently of the Eclipse\n\t\t\t// runtime.\n\t\t\tRunnable runnable = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tpendingDescriptionUpdate = true;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(POPUP_DELAY);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t\tif (!isValid()) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tgetShell().getDisplay().syncExec(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t// Query the current selection since we have\n\t\t\t\t\t\t\t// been delayed\n\t\t\t\t\t\t\tProposal p = getSelectedProposal();\n\t\t\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\t\t\tString description = p.getDescription();\n\t\t\t\t\t\t\t\tif (description != null) {\n\t\t\t\t\t\t\t\t\tif (infoPopup == null) {\n\t\t\t\t\t\t\t\t\t\tinfoPopup = new InfoPopupDialog(getShell());\n\t\t\t\t\t\t\t\t\t\tinfoPopup.open();\n\t\t\t\t\t\t\t\t\t\tinfoPopup.getShell()\n\t\t\t\t\t\t\t\t\t\t\t\t.addDisposeListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew DisposeListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void widgetDisposed(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisposeEvent event) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinfoPopup = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinfoPopup.setContents(p.getDescription());\n\t\t\t\t\t\t\t\t} else if (infoPopup != null) {\n\t\t\t\t\t\t\t\t\tinfoPopup.close();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpendingDescriptionUpdate = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\t\t\tThread t = new Thread(runnable);\n\t\t\tt.start();\n\t\t}\n\t}", "private void displayProgressDialog() {\n pDialog.setMessage(\"Logging in.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "public void processScreenInformation() {\n\t\trunOnUiThread(new Runnable() {\n\t\t\t@SuppressLint(\"NewApi\")\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tboolean showActionBar = appIsActionBarEnabled;\n\t\t\t\t// screenInformation = screenInfo;\n\t\t\t\ttry {\n\t\t\t\t\tSessionData.getInstance().setScreenInformation(screenInformation);\n\t\t\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->processScreenInformation->screenInformation:\" + screenInformation);\n\t\t\t\t\tJSONObject screenInformationJson = new JSONObject(screenInformation);\n\t\t\t\t\t// Set the screen information JSON in the AppStartupManager\n\t\t\t\t\t// so that it can be used by other native screens like Map,\n\t\t\t\t\t// camera etc.\n\t\t\t\t\tAppStartupManager.setScreenInformation(screenInformationJson);\n\n\t\t\t\t\tmenuInformation = screenInformationJson.getJSONArray(\"menuInfo\");\n\n\t\t\t\t\tif (isICSOrHigher) {\n\t\t\t\t\t\t// This would dismiss existing menu items and would\n\t\t\t\t\t\t// invoke\n\t\t\t\t\t\t// 'onCreateOptionsMenu' again\n\t\t\t\t\t\tinvalidateOptionsMenu();\n\n\t\t\t\t\t\tString screenBack = screenInformationJson.getString(\"showBack\");\n\t\t\t\t\t\tif (actionbar != null) {\n\t\t\t\t\t\t\tif ((screenBack != null) && (screenBack.equalsIgnoreCase(\"Y\"))) {\n\t\t\t\t\t\t\t\t// That means the screen information has back\n\t\t\t\t\t\t\t\t// navigation\n\t\t\t\t\t\t\t\t// to be\n\t\t\t\t\t\t\t\t// handled\n\t\t\t\t\t\t\t\tactionbar.setHomeButtonEnabled(true);\n\t\t\t\t\t\t\t\tactionbar.setDisplayHomeAsUpEnabled(true);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tactionbar.setHomeButtonEnabled(false);\n\t\t\t\t\t\t\t\tactionbar.setDisplayHomeAsUpEnabled(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (showActionBar) {\n\t\t\t\t\t\t\t\tactionbar.show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tactionbar.hide();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Set the screen title on the Action bar\n\t\t\t\t\t\t\tString screenTitle = screenInformationJson.getString(\"title\");\n\t\t\t\t\t\t\tTextView actionBarCustomTextView = AppUtility.getTextViewWithProps(screenTitle, topbarTextColor);\n\t\t\t\t\t\t\tactionbar.setCustomView(actionBarCustomTextView);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// For devices running Android 2.3\n\t\t\t\t\t\tif (showActionBar) {\n\t\t\t\t\t\t\tsetTitle(screenInformationJson.getString(\"title\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// setTitle(screenTitle);\n\t\t\t\t} catch (JSONException je) {\n\t\t\t\t\t// TODO Add handling for this exception\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "protected void waitUntilCommandFinished() {\n }", "private void displayProgressDialog() {\n pDialog.setMessage(\"Logging In.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }", "public WaitingScreen() {\r\n super(\"Please wait...\", new Item[0]);\r\n mWaitString = new StringItem(\"Network\", \"\\nServer contacting...\");\r\n append(mWaitString);\r\n }", "private void showAboutDialog() {\n JOptionPane.showMessageDialog(this, \"Sea Battle II Version 1.0\\nCS 232 (Computer Programming II), Fall 2018\");\n }", "private void askForCurrentSettings() throws IOException {\n\t\tString monitorCommand=createCommand(4);\n\t\tSystem.err.println(\"monitorCommand is \"+monitorCommand);\n\t\t//TODO: - how long should we stay synchronized on output?\n\t\t/*\n\t\t * There shouldn't be anything else trying to use output stream at this point\n\t\t */\n\t\tSystem.err.println(\"askForCurrentSettings entering sync block at \"+System.currentTimeMillis());\n\t\tsynchronized (toDevice) {\n\t\t\tString cmdLength=String.format(\"%08d\", monitorCommand.length());\n\t\t\tString finalCmdToSend=cmdLength+monitorCommand;\n\t\t\ttoDevice.write(finalCmdToSend.getBytes());\n\t\t\ttoDevice.flush();\n\t\t\tSystem.err.println(\"askForCurrentSettings write and flush at \"+System.currentTimeMillis());\n\t\t\tlastCommandSent=finalCmdToSend;\n\t\t}\n\t\tSystem.err.println(\"askForCurrentSettings exited sync block at \"+System.currentTimeMillis());\n\t\t\n\t}", "private boolean isBusyNow() {\n if (tip.visibleProperty().getValue()){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"FTP Client\");\n alert.setHeaderText(\"Please wait current download finish!\");\n alert.initOwner(main.getWindow());\n alert.showAndWait();\n return true;\n }\n return false;\n }", "void alertTimeout(String msg)\n { /* alertTimeout */\n this.sleepFlag= false;\t/* flag for waiting */ \n updatePopupDialog(msg, \"\", null, 0);\n }", "public void displayLoadingWindowServerDown()\r\n\t{\r\n\t\tloadingWindow.hideLoadingBar();\r\n\t\tloadingWindow.setDescription(\"The HVMK server is down. Please try again later.\");\r\n\t}", "private void popupMenuAbout() {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAboutDialog aboutDialog = new AboutDialog(parent.getShell(), SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);\n\t\taboutDialog.open();\n\t}", "public void showInformationMessage(final String message) {\r\n JOptionPane.showMessageDialog(window, message, getTitle(), JOptionPane.INFORMATION_MESSAGE);\r\n }", "public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n System.out.println(\"╚══════════════════════════════╝\");\n }", "protected void showSystemMenu() {\n windowMenu.doClick(0);\n }", "public static void showAboutDialog(final AppD app) {\n\n\t\tfinal LocalizationD loc = app.getLocalization();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"<html><b>\");\n\t\tappendVersion(sb, app);\n\t\tsb.append(\"</b> (\");\n\t\tsb.append(\"Java \");\n\t\tAppD.appendJavaVersion(sb);\n\t\tsb.append(\", \");\n\n\t\tsb.append(app.getHeapSize() / 1024 / 1024);\n\t\tsb.append(\"MB, \");\n\t\tsb.append(App.getCASVersionString());\n\n\t\tsb.append(\")<br>\");\n\n\t\tsb.append(GeoGebraConstants.BUILD_DATE);\n\n\t\t// license\n\t\tString text = app.loadTextFile(AppD.LICENSE_FILE);\n\t\t// We may want to modify the window size when the license file changes:\n\t\tJTextArea textArea = new JTextArea(26, 72); // window size fine tuning\n\t\t\t\t\t\t\t\t\t\t\t\t\t// (rows, cols)\n\t\ttextArea.setEditable(false);\n\t\t// not sure if Monospaced is installed everywhere:\n\t\ttextArea.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n\t\ttextArea.setText(text);\n\t\ttextArea.setCaretPosition(0);\n\n\t\tJPanel systemInfoPanel = new JPanel(new BorderLayout(5, 5));\n\t\tsystemInfoPanel.add(new JLabel(sb.toString()), BorderLayout.CENTER);\n\n\t\t// copy system information to clipboard\n\n\t\tsystemInfoPanel.add(new JButton(\n\t\t\t\tnew AbstractAction(loc.getMenu(\"SystemInformation\")) {\n\n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\t\t\tcopyDebugInfoToClipboard(app);\n\n\t\t\t\t\t\tapp.showMessage(\n\t\t\t\t\t\t\t\tloc.getMenu(\"SystemInformationMessage\"));\n\t\t\t\t\t}\n\t\t\t\t}), loc.borderEast());\n\n\t\tJScrollPane scrollPane = new JScrollPane(textArea,\n\t\t\t\tScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\tJPanel panel = new JPanel(new BorderLayout(5, 5));\n\t\tpanel.add(systemInfoPanel, BorderLayout.NORTH);\n\t\tpanel.add(scrollPane, BorderLayout.SOUTH);\n\n\t\tJOptionPane infoPane = new JOptionPane(panel, JOptionPane.PLAIN_MESSAGE,\n\t\t\t\tJOptionPane.DEFAULT_OPTION);\n\n\t\tfinal JDialog dialog = infoPane.createDialog(app.getMainComponent(),\n\t\t\t\tloc.getMenu(\"AboutLicense\"));\n\n\t\tdialog.setVisible(true);\n\t}", "private void promptInternetConnect() {\n android.support.v7.app.AlertDialog.Builder builder = new android.support.v7.app.AlertDialog.Builder(AdminHomePage.this);\n builder.setTitle(R.string.title_alert_no_intenet);\n builder.setMessage(R.string.msg_alert_no_internet);\n String positiveText = getString(R.string.btn_label_refresh);\n builder.setPositiveButton(positiveText,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n //Block the Application Execution until user grants the permissions\n if (startStep2(dialog)) {\n //Now make sure about location permission.\n if (checkPermissions()) {\n //Step 2: Start the Location Monitor Service\n //Everything is there to start the service.\n startStep3();\n } else if (!checkPermissions()) {\n requestPermissions();\n }\n }\n }\n });\n android.support.v7.app.AlertDialog dialog = builder.create();\n dialog.show();\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void showSystemUi()\n\t{\n\t\tif (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB)\n\t\t\treturn;\n\n\t\tmUnityPlayer.setSystemUiVisibility(mUnityPlayer.getSystemUiVisibility() & ~getLowProfileFlag());\n\t}", "public void infoBox(String infoMessage, String titleBar) {\n JOptionPane.showMessageDialog(null, infoMessage, \"InfoBox: \" + titleBar, JOptionPane.INFORMATION_MESSAGE);\n }", "public void setTrayIcon()\n\t{\n\t\tImage image = new Image(display, PropertyManager.getInstance().getProperty(\"ICON_FOLDER\"));\n\t\tfinal Tray tray = display.getSystemTray();\n\n\t\tif (tray == null)\n\t\t{\n\t\t\tSystem.out.println(\"The system tray is not available\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal TrayItem item = new TrayItem(tray, SWT.NONE);\n\t\t\titem.setToolTipText(PropertyManager.getInstance().getProperty(\"SOFT_INFO\"));\n\n\t\t\tfinal Menu menu = new Menu(shell, SWT.POP_UP);\n\n\t\t\tMenuItem mi1 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi2 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi3 = new MenuItem(menu, SWT.PUSH);\n\t\t\tMenuItem mi4 = new MenuItem(menu, SWT.PUSH);\n\n\t\t\tmi1.setText(\"Show\");\n\t\t\tmi1.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi2.setText(\"Hide\");\n\t\t\tmi2.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi3.setText(\"Change Operator\");\n\t\t\tmi3.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tlogin = \"\";\n\t\t\t\t\tpassword = \"\";\n\t\t\t\t\tInputDialog opDialog = new InputDialog(shell, SWT.DIALOG_TRIM);\n\t\t\t\t\tshell.setEnabled(!shell.getEnabled());\n\t\t\t\t\tshell.setCursor(new Cursor(display, SWT.CURSOR_WAIT));\n\t\t\t\t\tString credential = opDialog.createDialogArea();\n\t\t\t\t\tlogin = credential.substring(0, credential.indexOf(File.separator));\n\t\t\t\t\tpassword = credential.substring(credential.indexOf(File.separator));\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t\tshell.setCursor(new Cursor(display, SWT.CURSOR_ARROW));\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tmi4.setText(\"Close\");\n\t\t\tmi4.addListener(SWT.Selection, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\tSystem.out.println(\"selection \" + event.widget);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\titem.addListener(SWT.MenuDetect, new Listener()\n\t\t\t{\n\t\t\t\tpublic void handleEvent(Event event)\n\t\t\t\t{\n\t\t\t\t\tmenu.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\titem.setImage(image);\n\t\t}\n\t}", "protected void execute() {\n \tTmSsAutonomous.getInstance().showAlgInfo();\n \tshowPreferenceSettings(); //P.println(\"[Preferences info TBD]\");\n }", "public void showInfo() {\n TextView nameTV = (TextView) findViewById(R.id.nameText);\n if (nameTV == null) {\n // Fragment is not loaded yet\n return;\n }\n nameTV.setText(\"Name: \" + name);\n TextView batteryTV = (TextView) findViewById(R.id.batteryText);\n batteryTV.setText(\"Battery: \" + battery);\n CheckBox stiffBox = (CheckBox) findViewById(R.id.stiffBox);\n stiffBox.setChecked(stiffness);\n\n LinearLayout robotInfo = (LinearLayout) findViewById(R.id.robotInfo);\n if (robotInfo == null) {\n return;\n }\n if (networkThread != null && networkThread.connected()) {\n robotInfo.setVisibility(View.VISIBLE);\n } else {\n robotInfo.setVisibility(View.INVISIBLE);\n }\n }", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "public void showReady();", "private void showRequestPermissionsInfoAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.permission_alert_dialog_title);\n builder.setMessage(R.string.permission_dialog_message);\n builder.setPositiveButton(R.string.action_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n requestReadAndSendSmsPermission();\n }\n });\n builder.show();\n }", "private void doSintStuff() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void notifyMessageFromUI() throws IOException {\r\n\t\tfor (IUIMessageGettable messageGettable : getUIMessageGettables()) {\r\n\t\t\tmessageGettable.messageReceivedFromUI(messageField.getText());\r\n\t\t}\r\n\t}", "@Override\n public void show()\n {\n boolean loginOK; // true if good user info was entered\n // multithreaded code does not execute properly in IDEs; true if IDE run detected\n boolean runningFromIDE = false;\n\n do // continue login process while user chooses to stay in login menu\n {\n loginOK = false;\n while(!loginOK) // do this while no good login info acquired, or user choose to bail.\n {\n System.out.println(splashStrings.LOGIN); // SPLASH WELCOME\n\n String userName = GET.getString(\"Indtast venligst bruger navn:\\n\\t|> \");\n\n char[] password;\n\n if(!runningFromIDE) // getPassword does not work in IDE\n {\n password = PasswordField.getPassword(System.in, \"Indtast venligst password:\\n\\t|> \");\n\n if(password == null)\n {\n // getPassword returns a null array reference, if no chars were captured, thus this.\n runningFromIDE = true;\n\n System.out.println(\"MELDING:\\nDet ser ud til at du kører programmet fra en IDE:\\t\" +\n \"Password masking slås fra.\" +\n \"\\nKør shorttest.jar, for at opnå den fulde bruger-oplevelse.\\n\");\n\n continue;\n }\n\n loginOK = checkCredentials(userName, new String(password));\n\n } else // option is chosen if IDE-execution detected\n {\n String passw = GET.getString(\"Indtast venligst password:\\n\\t|> \");\n loginOK = checkCredentials(userName, passw);\n }\n\n if(!loginOK) // if user input were no good, and ONLY if info were no good\n {\n System.out.println(\"De indtastede informationer fandtes ikke i systemet.\");\n if(GET.getConfirmation(\"Vil du prøve igen?\\n\\tja / nej\\n\\t|> \", \"nej\", \"ja\"))\n {\n System.out.println(\"Du valgte ikke at prøve igen, login afsluttes.\");\n break;\n }\n }\n }\n\n if(loginOK)\n {\n System.out.println(\"Login var en success. Fortsætter til første menu.\\n\");\n menuLoggedInto.show();\n }\n\n // when user returns from main menu, they get to choose if they want to log in again\n } while(GET.getConfirmation(\"Skal en anden logge ind?\\n\\t ja / nej\\n\\t|> \", \"ja\", \"nej\"));\n }", "public void displayInfo(Actor actor, String info){\n infoWindow.getContentTable().clearChildren();\n infoWindow.getContentTable().add(actor).row();\n Label infoLabel = new Label(info, infoWindow.getSkin(), \"dialog\");\n infoLabel.setWrap(true);\n infoLabel.setAlignment(Align.center);\n infoWindow.getContentTable().add(infoLabel).width(500);\n infoWindow.show(guiStage);\n }", "public void showGpsAlert() {\r\n final Dialog dialog = new Dialog(VenusActivity.appActivity, android.R.style.Theme_Translucent_NoTitleBar);\r\n dialog.setContentView(R.layout.gps);\r\n Button gps_yes = (Button)dialog.findViewById(R.id.button_yes);\r\n gps_yes.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tVenusActivity.appActivity.startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n Button gps_cancel = (Button)dialog.findViewById(R.id.button_cancel);\r\n gps_cancel.setOnClickListener(new OnClickListener() {\r\n \t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}\r\n });\r\n final Handler threadHandler = new Handler(); ; \r\n new Thread() {\r\n \t@Override\r\n \tpublic void run() {\r\n \t\t threadHandler.post( new Runnable(){\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tdialog.show();\r\n\t\t\t\t\t}\r\n \t\t });\r\n \t}\r\n }.start();\r\n\t}", "public void showSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n fullScreenMode = false;\r\n }\r\n });\r\n\r\n }", "public void showAboutWindow() {\n /*\n * Note: on Windows, this is called from the Windows system tray\n * handler thread (created in the Windows DLL), and not from the\n * Swing Event handler thread. It is unsafe to call\n * GUIMediator.shutdownAboutWindow();\n * directly as Swing is not synchronized!\n * Instead, we should create an AWT Event and post it to the\n * default Toookit's EventQueue, and the application should\n * implement a Listener for that Event.\n */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n GUIMediator.showAboutWindow();\n }\n });\n }", "void getInfo() {\n \tSystem.out.println(\"There doesn't seem to be anything here.\");\n }", "public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}", "private void updateSystemTrayToolTip()\n {\n if (OSUtil.IS_LINUX)\n this.systemTray.setToolTip(\"SFR WiFi Public : Connecté\");\n else\n this.systemTray.setToolTip(FrmMainController.APP_NAME + \" \" + FrmMainController.APP_VERSION + FrmMainController.LINE_SEPARATOR + \"SFR WiFi Public : Connecté\");\n }", "public WebElement waitForDisplay(final By by)\n {\n return waitForDisplay(by, DEFAULT_TIMEOUT);\n }", "public void verifySystemStatusTabIsDisplayed() {\n \tAssert.assertTrue(systemStatus.isDisplayed());\n }", "public void showTrayInformationMessage(final String title, final String message) {\r\n new AppTrayMessageWindow(this, title, message, AppTrayMessageWindow.MessageType.INFORMATION);\r\n }", "private void displayAboutDialog() {\n final String message = \"AUTHORS\\n\" + \"Kaitlyn Kinerk and Alan Fowler\\n\"\n + \"TCSS 305 - UW Tacoma - 6/8/2016\\n\" + \"\\nIMAGE CREDIT\\n\"\n + \"Background: \"\n + \"http://wallpapercave.com/purple-galaxy-wallpaper\";\n JOptionPane.showMessageDialog(null, message, \"About\", JOptionPane.PLAIN_MESSAGE,\n new ImageIcon(\"icon.gif\"));\n }", "public static void idle(){\n Logger.getGlobal().log(Level.INFO,\" Waiting....\");\n }", "public abstract int waitForObject (String appMapName, String windowName, String compName, long secTimeout)\n\t\t\t\t\t\t\t\t\t\t throws SAFSObjectNotFoundException, SAFSException;", "public native void show(GInfoWindow self)/*-{\r\n\t\tself.show();\r\n\t}-*/;", "void onSystemReady();", "public ChannelInfo showDialog() {\n\t\tthis.setVisible(true);\n\t\treturn this.info;\n\t}", "private void process() {\n final PluginsDialog dialog = new PluginsDialog();\n dialog.show();\n }", "@Override\r\n public final void displayInfo(final String message) {\r\n displayMessage(message, \"Info\", SWT.ICON_INFORMATION);\r\n }", "public void displayInfo(String message){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setContentText(message);\n //alert.initOwner(owner);\n alert.show();\n }", "public void notifyDisplayNotFound();", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void displayLoader() {\n pDialog = new ProgressDialog(RegisterActivity.this);\n pDialog.setMessage(\"Signing Up.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "public void displayPrompt(String text){\n promptWindow.getContentTable().clearChildren();\n Label infoLabel = new Label(text, infoWindow.getSkin(), \"dialog\");\n infoLabel.setWrap(true);\n infoLabel.setAlignment(Align.center);\n promptWindow.getContentTable().add(infoLabel).width(500);\n promptWindow.show(guiStage);\n }", "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}", "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}", "public void getSystemInfo(){\n //get system info\n System.out.println(\"System Information\");\n System.out.println(\"------------------\");\n System.out.println(\"Available Processors: \"+Runtime.getRuntime().availableProcessors());\n System.out.println(\"Max Memory to JVM: \"+String.valueOf(Runtime.getRuntime().maxMemory()/1000000)+\" MB\");\n System.out.println(\"------------------\");\n System.out.println();\n }", "private void updateInfo() {\n /* Show the current server address in use */\n String text = String.format(getResources().getString(R.string.main_activity_server_address),\n Utils.getAddress(), Utils.getPort());\n serverTextView.setText(text);\n\n /* Show information about current player */\n Player player = SharedDataManager.getPlayer(this);\n /* No player is logged in */\n if (player == null) {\n playerTextView.setText(getString(R.string.your_nickname));\n return;\n }\n /* Player is logged in, show some information about him */\n text = String.format(getResources().getString(R.string.main_activity_player_title),\n player.getNickname(), player.getScore());\n playerTextView.setText(text);\n }", "void logSystemDetails() throws CometApiException {\n sendSynchronously(restApiClient::logSystemDetails, SystemUtils.readSystemDetails());\n }", "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "public static void waitUserInfoPageToLoad(int timeOut,\r\n\t\t\tSeleniumUtil seleniumUtil)\r\n\t{\n\r\n\t}", "public void displayOpen() throws JSONException, InterruptedException {\r\n\t boolean done = false;\r\n\t \r\n\t do {\r\n\t\t logger.log(Level.INFO, \"\\n\" + openPrompt);\r\n\t\t String choice = in.nextLine();\r\n\t\t \r\n\t\t // search\r\n\t\t if (\"s\".equalsIgnoreCase(choice)) {\r\n\t\t\t done = true;\r\n\t\t\t displaySearch();\r\n\t\t }\r\n\t\t // filter\r\n\t\t else if (\"f\".equalsIgnoreCase(choice)) {\r\n\t\t\t done = true;\r\n\t\t\t displayFilter();\r\n\t\t }\r\n\t\t // list\r\n\t\t else if (\"l\".equalsIgnoreCase(choice)) {\r\n\t\t\t done = true;\r\n\t\t\t list();\r\n\t\t }\r\n\t\t // exit\r\n\t\t else if (\"e\".equalsIgnoreCase(choice)) {\r\n\t\t\t done = true;\r\n\t\t\t ; //exit\r\n\t\t }\r\n\t\t // invalid\r\n\t\t else \r\n\t\t\t logger.log(Level.INFO, \"Invalid option.\");\r\n\t\t \r\n\t } while (!done);\r\n }", "private static void initSystemTray() {\n if (SystemTray.isSupported()) {\n SystemTray tray = SystemTray.getSystemTray();\n PopupMenu menu = new PopupMenu();\n MenuItem exitItem = new MenuItem(Resources.strings().get(\"menu_exit\"));\n exitItem.addActionListener(a -> System.exit(0));\n menu.add(exitItem);\n\n trayIcon = new TrayIcon(Resources.images().get(\"litiengine-icon.png\"), Game.info().toString(), menu);\n trayIcon.setImageAutoSize(true);\n try {\n tray.add(trayIcon);\n } catch (AWTException e) {\n log.log(Level.SEVERE, e.getLocalizedMessage(), e);\n }\n }\n }", "public void showInfo() {\n\t\t\n\t\tsuper.showInfo();\n\t\tSystem.out.println(\"Your Checking Account features: \"\n\t\t\t\t+ \"\\nDebit Card Number: \" + debitCardNumber\n\t\t\t\t+ \"\\nDebit Card PIN: \" + debitCardPin\n\t\t\t\t+ \"\\n****************\"\n\t\t\t\t);\n\t\t\n\t}", "private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }", "public void processAbout() {\n AppMessageDialogSingleton dialog = AppMessageDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"About This Application\", \"Application Name: Metro Map Maker\\n\"\n + \"Written By: Myungsuk Moon and Richard McKenna\\n\"\n + \"Framework Used: DesktopJavaFramework (by Richard McKenna)\\n\"\n + \"Year of Work: 2017\");\n }" ]
[ "0.66886336", "0.62706834", "0.6237807", "0.61859477", "0.6126609", "0.6123649", "0.60530007", "0.60356283", "0.5983243", "0.5891926", "0.58408666", "0.5811555", "0.5750621", "0.572885", "0.57207686", "0.5712357", "0.56544834", "0.56529295", "0.56482285", "0.56341934", "0.5613816", "0.5600541", "0.5597994", "0.5595917", "0.5584101", "0.5571539", "0.5553167", "0.54795474", "0.5457668", "0.54562384", "0.54507256", "0.54264027", "0.5410159", "0.54085726", "0.5405932", "0.5405608", "0.54049635", "0.54031813", "0.5401215", "0.53878015", "0.5365629", "0.53609365", "0.53569347", "0.5349394", "0.53439695", "0.53411716", "0.5329761", "0.5316767", "0.5314475", "0.53132993", "0.53120524", "0.53026193", "0.5292359", "0.52809304", "0.52795815", "0.5269276", "0.5268982", "0.52686405", "0.52676827", "0.5258162", "0.52533555", "0.5248074", "0.5246177", "0.52458084", "0.5242032", "0.5239517", "0.5226229", "0.5221291", "0.52202505", "0.521119", "0.52025604", "0.51953197", "0.519443", "0.5194274", "0.51791006", "0.51784766", "0.51750815", "0.5173345", "0.5167566", "0.51654875", "0.51626325", "0.5160725", "0.5159906", "0.51567227", "0.51567227", "0.51567227", "0.5155706", "0.51555943", "0.51439124", "0.51439124", "0.5142267", "0.5139455", "0.5131251", "0.5130886", "0.5127333", "0.5116525", "0.5105046", "0.5104048", "0.50943863", "0.50899106" ]
0.6592629
1
try at least one time
public static Window waitForWindowByTitleContaining(String text) { Window window = getWindowByTitleContaining(null, text); if (window != null) { return window;// we found it...no waiting required } int totalTime = 0; int timeout = DEFAULT_WAIT_TIMEOUT; while (totalTime <= timeout) { window = getWindowByTitleContaining(null, text); if (window != null) { return window; } totalTime += sleep(DEFAULT_WAIT_DELAY); } throw new AssertionFailedError( "Timed-out waiting for window containg title '" + text + "'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean retry() {\n return tries++ < MAX_TRY;\n }", "public void retryRequired(){\n startFetching(query);\n }", "@Override\n public boolean callCheck() {\n return last == null;\n }", "private boolean mustTryConnection(int iteration) {\n\t\t\n\t\t//the goal is to not to retry so often when several attempts have been made\n\t\t//the first 3 attemps, will not retry (give time for the system to startup)\n\t\tif (iteration < ITERATIONS_WITHOUT_RETRIES) {\n\t\t\t//here it will enter with iteration 0..2\n\t\t\treturn false;\n\t\t}\n\t\tif (iteration < ITERATIONS_WITH_NORMAL_RATE) {\n\t\t\t//Here it will enter with iteration 3..40\n //Retry every 2 attempts.\n\t\t\t//in iteration 6, 8, 10, 12, 14\n\t\t\treturn iteration % STEPS_AT_NORMAL_RATE == 0;\n\t\t}\n\t\t//between 15 and 40 attempts, only retry every 10 steps\n\t\tif (iteration < ITERATIONS_WITH_MEDIUM_RATE) {\n\t\t\t//here it will enter with iteration 10, 20, 30\n\t\t\treturn iteration % STEPS_AT_MEDIUM_RATE == 0;\n\t\t}\n\t\t\n\t\t//after 40 attempts, retry every 100 * MIN_INTERVAL\n\t\treturn iteration % STEPS_AT_SLOW_RATE == 0;\n\t}", "private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }", "@Override\n\t\tpublic boolean isRetry() { return true; }", "public boolean needTryAgain() {\n boolean z = this.mRetryConnectCallAppAbilityCount < 6;\n this.mRetryConnectCallAppAbilityCount++;\n return z;\n }", "@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}", "public void check(){\n check1();\n check2();\n check3();\n check4();\n check5();\n check6();\n\t}", "@Override\n\tpublic boolean retry(ITestResult result) \n\t{\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean isRetry() { return false; }", "public void firstGameCheck()\n {\n if(count > 0)\n {\n this.gameStart();\n System.out.println(\"Result:\");\n this.printGameResult();\n System.out.print(\"\\n\");\n }else\n {\n System.out.println(\"\\nGame Running Failed! \\n >>>>>>>>>>>>>> Please setting game first\\n\");\n }\n }", "private void waitToRetry()\n {\n final int sleepTime = 2000000;\n\n if (keepTrying)\n {\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (Exception error)\n {\n log.error(\"Ignored exception from sleep - probably ok\", error);\n }\n }\n }", "private boolean waitForAO()\n {\n int countOfRetry = 15;\n do\n {\n try\n {\n log.debug(\"Attempting to wait for AO.\");\n activeObjects.count(MessageMapping.class);\n log.debug(\"Attempting to wait for AO - DONE.\");\n stop = true;\n return true;\n }\n catch (PluginException e)\n {\n countOfRetry--;\n try\n {\n Thread.sleep(5000);\n }\n catch (InterruptedException ie)\n {\n // nothing to do\n }\n }\n }\n while (countOfRetry > 0 && !stop);\n log.debug(\"Attempting to wait for AO - UNSUCCESSFUL.\");\n return false;\n }", "boolean pullingOnce();", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "private void tryARender() {\n \t\tif (Minecraft.theMinecraft.thePlayer == null)\n \t\t\treturn;\n \t\ttry {\n \t\t\tif (MinimapConfig.getInstance().isEnabled() && map.isDirty(Minecraft.theMinecraft.thePlayer.posX, Minecraft.theMinecraft.thePlayer.posZ)) {\n \t\t\t\tmapCalc();\n \t\t\t\tmap.timer = 1;\n \t\t\t}\n \t\t} catch (RuntimeException e) {\n \t\t\tthrow e;\n \t\t} finally {\n \t\t\tmap.timer++;\n \t\t}\n \t}", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "void tryToFindNextKing()\n {\n if (nodeIds.size() != 0)\n {\n int nextKingId = Collections.max(nodeIds);\n CommunicationLink nextKing = allNodes.get(nextKingId);\n nextKing.sendMessage(new Message(\n Integer.toString(nextKingId), nextKing.getInfo(), myInfo, KING_IS_DEAD));\n }\n }", "void checkRepeated() {\r\n Move check = listOfMoves.peek();\r\n if (map.containsKey(check)) {\r\n _repeated = true;\r\n _winner = map.get(check.from()).opponent();\r\n }\r\n _repeated = false;\r\n }", "void doRetry();", "private void checkForCompletion()\n\t\t\t{\n\t\t\t\tcompletionflag = true;\n\t\t\t\tfor (j = 0; j < 9; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (cpuflag[j] == false && flag[j] == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcompletionflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t}", "int getTries();", "@Override\n\t\tpublic void run() {\n\t\t\tcheck();\n\t\t}", "public boolean repairPouchesWithSingleCall() {\n\n this.bank.close();\n this.game.openTab(Game.TAB_MAGIC);\n Timer repairTimer = new Timer(5000);\n if (this.inventory.getCount(true, RunePouchHandler.COSMIC_RUNE_ID) > 0 && this.inventory.getCount(true, RunePouchHandler.ASTRAL_RUNE_ID) > 0 && this.inventory.getCount(true, RunePouchHandler.AIR_RUNE_ID) > 1) {\n if (magic.castSpell(Magic.SPELL_NPC_CONTACT)) {\n this.superClass.sleep(2000, 3000);\n RSComponent scrollbar = interfaces.getComponent(88, 20).getComponent(1);\n Point p = new Point(this.superClass.random(scrollbar.getCenter().x, scrollbar.getCenter().x + 3), this.superClass.random(scrollbar.getCenter().y, scrollbar.getCenter().y + 3));\n this.mouse.move(p);\n this.mouse.drag(this.superClass.random(460, 465), this.superClass.random(210, 220));\n Point p2 = new Point(this.superClass.random(385, 425), this.superClass.random(175, 200));\n this.mouse.click(p2, true);\n this.superClass.sleep(150, 200);\n repairTimer.reset();\n while (repairTimer.isRunning() && this.superClass.getMyPlayer().getAnimation() == 4413) {\n this.superClass.sleep(150, 200);\n }\n if (!repairTimer.isRunning()) { //Failed\n return false;\n }\n this.superClass.sleep(5000);\n for (int count = 0; count < 6; count++) {\n repairTimer.reset();\n while (repairTimer.isRunning() && !this.interfaces.clickContinue()) {\n this.superClass.sleep(25, 200);\n }\n if (!repairTimer.isRunning()) { //Failed\n return true;//??\n }\n this.superClass.sleep(678, 1234);\n }\n\n //Repair them\n repairTimer.reset();\n while (repairTimer.isRunning() && getComponentByString(\"Can you repair my pouches\") == null) {\n this.superClass.sleep(25, 200);\n }\n if (!repairTimer.isRunning()) { //Failed\n return true;//??\n } else {\n if (!getComponentByString(\"Can you repair my pouches\").doClick(true)) {\n return false; //?\n }\n }\n\n //click continue\n repairTimer.reset();\n while (repairTimer.isRunning() && !this.interfaces.clickContinue()) {\n this.superClass.sleep(25, 200);\n }\n if (!repairTimer.isRunning()) { //Failed\n return false;\n }\n }\n }\n return true;\n }", "private void noAnswer() {\n\n\t\ttry {\n\t\t\tthis.timeoutTimer.cancel();\n\t\t} catch (IllegalStateException e) {\n\t\t\tSystem.out.println(\"Unable to cancel timer\");\n\t\t}\n\n\t\tthis.timeoutTimer = new Timer();\n\n\t\t// Plus one failed try\n\t\tthis.tries++;\n\n\t\t// too many tries => tell listeners\n\t\tif (this.tries >= new Integer(EPursuit.properties.getProperty(\"maxTries\"))) {\n\t\t\tthis.state=CallState.TIMEOUT;\n\t\t\tfor (CallListener listener : this.listeners) {\n\t\t\t\tlistener.callNotAnswered(this.destination, this.agi);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.state=CallState.RETRY;\n\t\t\t// schedule retry\n\t\t\tthis.timeoutTimer.schedule(new TimerTask() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!Call.this.success) {\n\t\t\t\t\t\tCall.this.makeCall();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, new Long(EPursuit.properties.getProperty(\"retryTime\")));\n\t\t}\n\n\t}", "protected void ensureResultsAreFetched(int last) {\n\t\twhile(last > cacheStatus) {\n\t\t\tfetchNextBlock();\n\t\t}\n\t}", "private boolean sendTryTwice(byte[] head, byte[] chunk) {\n for (int action = 0; action < 2; action++) {\n if (send0(head, chunk)) {\n return true;\n }\n }\n return false;\n }", "public void resetTries() {\n this.tries = 0;\n }", "public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}", "private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }", "@Override\n protected void runOneIteration() throws Exception {\n }", "private void retry() {\n if (catalog == null) {\n if (--retries < 0) {\n inactive = true;\n pendingRequests.clear();\n log.error(\"Maximum retries exceeded while attempting to load catalog for endpoint \" + discoveryEndpoint\n + \".\\nThis service will be unavailabe.\");\n } else {\n try {\n sleep(RETRY_INTERVAL * 1000);\n _loadCatalog();\n } catch (InterruptedException e) {\n log.warn(\"Thread for loading CDS Hooks catalog for \" + discoveryEndpoint + \"has been interrupted\"\n + \".\\nThis service will be unavailable.\");\n }\n }\n }\n }", "public boolean isRetry();", "@Override\n\tpublic Boolean call() throws Exception {\n\t\tRandom rand = new Random();\n\t\tint seconds = rand.nextInt(6);\n\t\tif (seconds == 0) {\n\t\t\t// pretend there was an error\n\t\t\tthrow new RuntimeException(\"I love the new thread stuff!!! :)\");\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(seconds * 100);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t// even = true, odd = false\n\t\treturn seconds % 2 == 0;\n\t}", "@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }", "public void doLazyMatch() {}", "void doCheckHealthy();", "boolean allowRetry(int retry, long startTimeOfExecution);", "private boolean allWorkComplete(int attempt) {\n boolean workComplete = (sm == null || syncManager.getFilesInTransfer().isEmpty()) &&\n list.getListSizeIncludingReservedFiles() <= 0;\n\n if (!workComplete || (workComplete && attempt > 2)) {\n return workComplete;\n } else {\n // Wait before another attempt\n SyncProcessManagerImpl.this.sleep(2000);\n return allWorkComplete(attempt + 1);\n }\n }", "public void trySolve() {\n\t\tboolean change = true;\n\t\twhile (change) {\n\t\t\tchange = boardSolve();\n\t\t}\n\t}", "boolean doRetry() {\n synchronized (mHandler) {\n boolean doRetry = currentRetry < MAX_RETRIES;\n boolean futureSync = mHandler.hasMessages(0);\n\n if (doRetry && !futureSync) {\n currentRetry++;\n mHandler.postDelayed(getNewRunnable(), currentRetry * 15_000);\n }\n\n return mHandler.hasMessages(0);\n }\n }", "public boolean attempt(KeyType key) {\n if(counter.get(key) == null) {\n counter.put(key, new ErrorCooldownCounter(coolDownMinutes, minFailures, maxPercentage));\n }\n\n return counter.get(key).attempt();\n }", "private boolean tryAcc(int ticket) {\n int old = trackStatus[ticket].availablePermits();\n boolean r = trackStatus[ticket].tryAcquire();\n if (DEBUG) System.err.printf(\"Train: %d\\tTried: %d=%b:%d->%d\\n\", this.id, ticket, r, old, (trackStatus[ticket].availablePermits()));\n return r;\n }", "public boolean retry(ITestResult result) {\n\t\tif (counter < retryMaxLimit) {\n\t\t\tcounter++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\t\tpublic Boolean call() throws Exception {\n\t\t\tint count = 10;\r\n\t\t\tint deadlockCount = 0;\r\n\t\t\twhile (count > 0) {\r\n\t\t\t\tassertTrue(\"Too many deadlock exceptions\", deadlockCount < 10);\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Replace the annotations\r\n\t\t\t\t\tdboAnnotationsDao.replaceAnnotations(annos);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// Deadlock is the only acceptable exception here, just retry\r\n\t\t\t\t\tif (e.getMessage().indexOf(\"Deadlock found when trying to get lock\") > -1) {\r\n\t\t\t\t\t\tdeadlockCount++;\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthrow e;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcount--;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}", "public void readyNextAttackers() {\n if(battleAlly == null && battleEnemy == null){\n //if(battleAlly == null && battleEnemy == null && !isBattleOver()){\n battleAlly = battleAllies.get(0);\n battleEnemy = battleEnemies.get(0);\n }\n }", "private void checkRetries(final int counter) throws InterruptedException {\n\t\tif (counter > retries) {\n\t\t\tthrow new IllegalStateException(\"Remote server did not started correctly\");\n\t\t}\n\t\tThread.sleep(2000);\n\t}", "private void fail() {\n mFails++;\n if(mFails > MAX_NUMBER_OF_FAILS) {\n gameOver();\n }\n }", "@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}", "default boolean pollOnExecutionFailed() {\n return false;\n }", "@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}", "@Test\n public void writeTryLockFailedTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int threadNum = 2;\n final CountDownLatch countDownLatch = new CountDownLatch(threadNum);\n for (int i = 0; i < threadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountAndSleepInWriteTryLock(2000);\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n boolean result = false;\n if (testUse.count == 1000 || testUse.count == 999) {\n result = true;\n }\n Assert.assertTrue(result);\n }", "public void cantPlayGoNext() {\n\t switchTurn();\n }", "public boolean attempt() {\n if(coolDownReleaseDate != null) {\n if(coolDownReleaseDate.before(new Date())) {\n coolDownReleaseDate = null;\n errorRate = null;\n } else {\n return false;\n }\n }\n // else\n initErrorRateIfNeccessary();\n errorRate.incDenominator(); // another game service attempt\n return true;\n }", "@Override\n\tpublic void check() throws Exception {\n\t}", "public boolean checkAndIncrement() {\n\t\tsynchronized(lock) {\n\t\t\tif (passes == 0) {\n\t\t\t\tpasses++;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tpasses = 0;\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean tryAdvance(LongConsumer action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n return true;\n }else{\n return false;\n }\n }", "private boolean shouldRetryGetMaster(int tries, Exception e) {\n if (tries == numRetries - 1) {\n // This was our last chance - don't bother sleeping\n LOG.info(\"getMaster attempt \" + tries + \" of \" + numRetries +\n \" failed; no more retrying.\", e);\n return false;\n }\n LOG.info(\"getMaster attempt \" + tries + \" of \" + numRetries +\n \" failed; retrying after sleep of \" +\n ConnectionUtils.getPauseTime(this.pause, tries), e);\n return true;\n }", "@Override\n public boolean waitToProceed() {\n return false;\n }", "Block getTryBlock();", "@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}", "@Override\n protected boolean tryAcquire(long value) {\n return counter.longValue() > value;\n }", "default void hit() {\n\t\tcount(1);\n\t}", "@Override\n public void run() {\n do{\n try {\n Thread.sleep(4000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n if(loopTimes>loopLimit){\n if(MainActivity.IsShowLogCat)\n Log.e(\"LoopTimes\", \"設定失敗超過\"+loopLimit+\"次\");\n return;\n }\n if(isSet==0){\n if(MainActivity.IsShowLogCat)\n Log.e(\"isSet\", isSet+\"\");\n MainActivity.hWorker.post(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n transmit_set();\n }\n });\n }\n\n }while(isSet!=-1 && MainActivity.isExist);\n }", "private boolean tryInactivate() {\n if (active) {\n if (!pool.tryDecrementActiveCount())\n return false;\n active = false;\n }\n return true;\n }", "private boolean tryInactivate() {\n if (active) {\n if (!pool.tryDecrementActiveCount())\n return false;\n active = false;\n }\n return true;\n }", "private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = true;\n\t\t} else {\n\t\t\tisAbleToFire = false;\n\t\t}\n\t}", "boolean requiresRestart(Operation nextBestOp) {\n\t\t\treturn nextBestOp.val == Integer.MAX_VALUE;\n\n\t\t}", "private void increaseAttempts() {\n attempts++;\n }", "public boolean retry(ITestResult result) {\n //You could mentioned maxRetryCnt (Maximiun Retry Count) as per your requirement. Here I took 2, If any failed testcases then it runs two times\n int maxRetryCnt = 1;\n if (retryCnt < maxRetryCnt) {\n System.out.println(\"Retrying \" + result.getName() + \" again and the count is \" + (retryCnt+1));\n retryCnt++;\n return true;\n }\n return false;\n }", "@Override\n public boolean tryAdvance(DoubleConsumer action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n return true;\n }else{\n return false;\n }\n }", "public boolean trySuccess()\r\n/* 52: */ {\r\n/* 53: 84 */ return trySuccess(null);\r\n/* 54: */ }", "private void retryCall() {\n MyViewModel factory = new MyViewModel(this.getApplication(), Integer.toString(ids));\n weatherViewModel = new ViewModelProvider(this, factory).get(WeatherViewModel.class);\n weatherViewModel.init();\n weatherViewModel.getWeatherRepo().observe(this, this::getResponsFromLiveData);\n }", "@Test //loop test 0 passes\n\tpublic void testLoop0pass() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = -100;\n\t\tif(! items.isEmpty()) { //check if items is empty, if not get the first item's quality\n\t\t\titems.get(0).getQuality();\n\t\t}\n\t\t//assert quality is -100\n\t\tassertEquals(\"Quality -100 with 0 loop passes\", -100, quality);\n\t}", "private void checkLastLifeSign() {\n // > 0 means that client has already connected and meanwhile sent\n // one or more messages and the lifesign system is activated\n if (nextLifeSignAwaited > 0 && nextLifeSignAwaited < System.currentTimeMillis()) {\n // lifesign not in time\n System.out.println(\"Kein lifesign erhalten\");\n lifeSignSucceeded = true;\n stopped = true;\n try {\n socketLayer.close();\n } catch (Exception ex) {\n // nothing to do\n }\n }\n }", "private static void checkTimeoutAndRetry() {\n while (true) {\n for (ServerAckWindow window : windowsMap.values()) {\n window.responseCollectorMap.entrySet().stream()\n .filter(entry -> window.timeout(entry.getValue()))\n .forEach(entry -> window.retry(entry.getKey(), entry.getValue()));\n }\n }\n }", "private void check() {\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new RuntimeException(\"Queue is empty\");\r\n\t\t}\r\n\t}", "private boolean isExhausted() {\n return runnableTasks.isEmpty()\n && runnableActions.isEmpty() && runningTasks == 0;\n }", "public boolean isRetried ()\r\n {\r\n return hasFailed () && retried_;\r\n }", "public void doMore(){\n\t/**\n\t * ArithmeticExceptiont this exception occurs when an integer is \n\t * divided by zero.\n\t * \n\t * */\t\n\t\tint number=500/0;\n\t\t\n\t}", "void updateIfNeeded()\n throws Exception;", "@Override\n\tpublic boolean tryLock(long time, TimeUnit unit)\n\t\t\tthrows InterruptedException {\n\t\treturn false;\n\t}", "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "void ensure(int count);", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "@Override\r\n\tpublic boolean runAgain(CompilationUnit unit) {\n\t\treturn false;\r\n\t}", "protected void checkForFirstRequest() throws IOException {\n if(firstRequest) {\n while (!connected || (serveResponse = in.readLine()).isEmpty());\n firstRequest = false;\n }\n }", "@Test\n public void readTryLockInTimeFailedTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n final CountDownLatch countDownLatch = new CountDownLatch(2);\n final List<Integer> result = new ArrayList<Integer>();\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n testUse.minusCountAndSleepInWriteLock(2000);\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n Thread.sleep(10);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Integer r = testUse.getCountInReadTryLock(1000);\n if(r !=null){\n result.add(r);\n }\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n countDownLatch.await();\n Assert.assertEquals(0, result.size());\n }", "public final void run() {\n /*\n r6 = this;\n r1 = r6.zzapo;\n monitor-enter(r1);\n r0 = r6.zzapn;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzaph;\t Catch:{ RemoteException -> 0x006b }\n if (r0 != 0) goto L_0x0035;\n L_0x000b:\n r0 = r6.zzapn;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzgf();\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzis();\t Catch:{ RemoteException -> 0x006b }\n r2 = \"Failed to get conditional properties\";\n r3 = r6.zzant;\t Catch:{ RemoteException -> 0x006b }\n r3 = com.google.android.gms.internal.measurement.zzfh.zzbl(r3);\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzanr;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzans;\t Catch:{ RemoteException -> 0x006b }\n r0.zzd(r2, r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapo;\t Catch:{ RemoteException -> 0x006b }\n r2 = java.util.Collections.emptyList();\t Catch:{ RemoteException -> 0x006b }\n r0.set(r2);\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapo;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n L_0x0034:\n return;\n L_0x0035:\n r2 = r6.zzant;\t Catch:{ RemoteException -> 0x006b }\n r2 = android.text.TextUtils.isEmpty(r2);\t Catch:{ RemoteException -> 0x006b }\n if (r2 == 0) goto L_0x005b;\n L_0x003d:\n r2 = r6.zzapo;\t Catch:{ RemoteException -> 0x006b }\n r3 = r6.zzanr;\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzans;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzano;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zza(r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006b }\n L_0x004c:\n r0 = r6.zzapn;\t Catch:{ RemoteException -> 0x006b }\n r0.zzcu();\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapo;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n L_0x0056:\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n goto L_0x0034;\n L_0x0058:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n throw r0;\n L_0x005b:\n r2 = r6.zzapo;\t Catch:{ RemoteException -> 0x006b }\n r3 = r6.zzant;\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzanr;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzans;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zze(r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006b }\n goto L_0x004c;\n L_0x006b:\n r0 = move-exception;\n r2 = r6.zzapn;\t Catch:{ all -> 0x0093 }\n r2 = r2.zzgf();\t Catch:{ all -> 0x0093 }\n r2 = r2.zzis();\t Catch:{ all -> 0x0093 }\n r3 = \"Failed to get conditional properties\";\n r4 = r6.zzant;\t Catch:{ all -> 0x0093 }\n r4 = com.google.android.gms.internal.measurement.zzfh.zzbl(r4);\t Catch:{ all -> 0x0093 }\n r5 = r6.zzanr;\t Catch:{ all -> 0x0093 }\n r2.zzd(r3, r4, r5, r0);\t Catch:{ all -> 0x0093 }\n r0 = r6.zzapo;\t Catch:{ all -> 0x0093 }\n r2 = java.util.Collections.emptyList();\t Catch:{ all -> 0x0093 }\n r0.set(r2);\t Catch:{ all -> 0x0093 }\n r0 = r6.zzapo;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n goto L_0x0056;\n L_0x0093:\n r0 = move-exception;\n r2 = r6.zzapo;\t Catch:{ all -> 0x0058 }\n r2.notify();\t Catch:{ all -> 0x0058 }\n throw r0;\t Catch:{ all -> 0x0058 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzit.run():void\");\n }", "@Override\n public StabilityResult check() {\n boolean serviceStability = false;\n int count = 0;\n int count1 = 0;\n int count2 = 0;\n while (!serviceStability && count < attempts) {\n try {\n // We use the getAllServiceReferences method to ignore classloading issues. Anyway, we are not using\n // the service, just counting them.\n ServiceReference[] refs = context.getAllServiceReferences(null, null);\n count1 = refs.length;\n grace();\n refs = context.getAllServiceReferences(null, null);\n count2 = refs.length;\n serviceStability = count1 == count2;\n } catch (Exception e) {\n LOGGER.warn(\"An exception was thrown while checking the service stability\", e);\n serviceStability = false;\n // Nothing to do, while recheck the condition\n }\n count++;\n }\n\n if (count == attempts) {\n LOGGER.error(\"Service stability has not been reached after {} tries ({} != {})\", attempts, count1, count2);\n return StabilityResult.unstable(\"Cannot reach the service stability\");\n }\n return StabilityResult.stable();\n }", "boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }", "protected void checkIfReady() throws Exception {\r\n checkComponents();\r\n }", "public void check() {\n\t\t\ttry {\n\t\t\t\twhile (num < MAX) {\n\t\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\t\tlong workingNum = num;\n\t\t\t\t\tif (isPrime(workingNum)) {\n\t\t\t\t\t\tif (workingNum == 1)\n\t\t\t\t\t\t\tworkingNum = 2;\n\t\t\t\t\t\tmsg.obj = workingNum;\n\t\t\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t}\n\n\t\t\t\t\tnum += 2;\n\n\t\t\t\t}\n\n\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\tLog.d(TAG, \"Counter has reached Max\");\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"max\", \"Counter has reached Max\");\n\t\t\t\tmsg.setData(bundle);\n\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t// If the Thread is interrupted.\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tLog.d(TAG, \"Thread interrupted\");\n\t\t\t}\n\n\t\t}", "private void grabForever() {\n if (Platform.isFxApplicationThread()) {\n throw new IllegalStateException(\"This may not run on the FX application thread!\");\n }\n final Thread thread = Thread.currentThread();\n while (!thread.isInterrupted()) {\n boolean success = grabOnceBlocking();\n if (!success) {\n // Couldn't grab the frame, wait a bit to try again\n // This may be caused by a lack of connection (such as the robot is turned off) or various other network errors\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n thread.interrupt();\n }\n }\n }\n }", "@Test(expected = IllegalStateException.class)\n public void getScoreOne() {\n this.reset();\n this.bps.getScore();\n }", "@Test\n public void testResetAndCanRetry() {\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n rc.reset();\n\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}" ]
[ "0.68439627", "0.64358497", "0.60569274", "0.6015974", "0.5928207", "0.59256506", "0.58887213", "0.58800524", "0.5863321", "0.5855299", "0.5813067", "0.58111966", "0.5810897", "0.5807581", "0.5802951", "0.579762", "0.579762", "0.5790075", "0.5767517", "0.5767517", "0.57525134", "0.56991476", "0.5690164", "0.56625867", "0.56277543", "0.56100774", "0.55943555", "0.5576668", "0.5570927", "0.55692476", "0.5566878", "0.5550762", "0.55447865", "0.554396", "0.5536403", "0.55199677", "0.5507831", "0.55024695", "0.5501567", "0.5495246", "0.548547", "0.54811436", "0.5478033", "0.5477327", "0.5455631", "0.5449949", "0.54498476", "0.5447816", "0.5446609", "0.54463816", "0.5438957", "0.5429615", "0.54206514", "0.54080534", "0.5400572", "0.5389785", "0.5378684", "0.5377506", "0.53702354", "0.5369335", "0.5363204", "0.53621924", "0.536134", "0.5359606", "0.5359525", "0.53569025", "0.53521657", "0.5350989", "0.5350989", "0.53285027", "0.53256077", "0.5323267", "0.5320154", "0.53068817", "0.5306576", "0.5295906", "0.5291142", "0.5283566", "0.52822345", "0.5271094", "0.52691555", "0.5266403", "0.526511", "0.52590936", "0.52520794", "0.52505106", "0.52469105", "0.52457714", "0.52438426", "0.5243335", "0.52417094", "0.5237251", "0.5235368", "0.5229859", "0.5229824", "0.52287287", "0.5226917", "0.522401", "0.5216071", "0.52120996", "0.52120996" ]
0.0
-1
Waits for a window with the given name.
@Deprecated public static Window waitForWindow(String title, int timeoutMS) { return waitForWindow(title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Window waitForWindowByName(String name) {\n\n\t\tint time = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (time <= timeout) {\n\t\t\tSet<Window> allWindows = getAllWindows();\n\t\t\tfor (Window window : allWindows) {\n\t\t\t\tString windowName = window.getName();\n\t\t\t\tif (name.equals(windowName) && window.isShowing()) {\n\t\t\t\t\treturn window;\n\t\t\t\t}\n\n\t\t\t\ttime += sleep(DEFAULT_WAIT_DELAY);\n\t\t\t}\n\t\t}\n\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with name '\" + name + \"'\");\n\t}", "public static Window waitForWindow(String title) {\n\t\tWindow window = getWindow(title);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindow(title);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public static Window waitForWindowByTitleContaining(String text) {\n\t\tWindow window = getWindowByTitleContaining(null, text);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindowByTitleContaining(null, text);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\n\t\tthrow new AssertionFailedError(\n\t\t\t\"Timed-out waiting for window containg title '\" + text + \"'\");\n\t}", "public static JDialog waitForJDialog(String title) {\n\n\t\tint totalTime = 0;\n\t\twhile (totalTime <= DEFAULT_WINDOW_TIMEOUT) {\n\n\t\t\tSet<Window> winList = getAllWindows();\n\t\t\tIterator<Window> iter = winList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tWindow w = iter.next();\n\t\t\t\tif ((w instanceof JDialog) && w.isShowing()) {\n\t\t\t\t\tString windowTitle = getTitleForWindow(w);\n\t\t\t\t\tif (title.equals(windowTitle)) {\n\t\t\t\t\t\treturn (JDialog) w;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public Locomotive waitForWindow(String regex) {\n Set<String> windows = getDriver().getWindowHandles();\n for (String window : windows) {\n try {\n // Wait before switching tabs so that the new tab can load; else it loads a blank page\n try {\n Thread.sleep(100);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n getDriver().switchTo().window(window);\n\n p = Pattern.compile(regex);\n m = p.matcher(getDriver().getCurrentUrl());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n } else {\n // try for title\n m = p.matcher(getDriver().getTitle());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n }\n }\n } catch (NoSuchWindowException e) {\n if (attempts <= configuration.getRetries()) {\n attempts++;\n\n try {\n Thread.sleep(1000);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n return waitForWindow(regex);\n } else {\n Assertions.fail(\"Window with url|title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\", e);\n }\n }\n }\n\n // when we reach this point, that means no window exists with that title..\n if (attempts == configuration.getRetries()) {\n Assertions.fail(\"Window with title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\");\n return this;\n } else {\n Logger.info(\"#waitForWindow() : Window doesn't exist yet. [%s] Trying again. %s/%s\", regex, (attempts + 1), configuration.getRetries());\n attempts++;\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n Logger.error(e);\n }\n return waitForWindow(regex);\n }\n }", "public window get(String sname) {\n return getWindow(sname);\n }", "public window getWindow(String sname) {\n return (window) windows.getObject(sname);\n }", "public void chooseWindowSceneLoaded(String username) throws IOException{\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n out.println(username + \" chooseWindowOk\");\n out.close();\n socket.close();\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "private static boolean switchWindow(WebDriver webDriver, String windowTitle) throws Exception {\n boolean found = false;\n long start = System.currentTimeMillis();\n while (!found) {\n for (String name : webDriver.getWindowHandles()) {\n try {\n webDriver.switchTo().window(name);\n if (webDriver.getTitle().equals(windowTitle)) {\n found = true;\n break;\n }\n } catch (NoSuchWindowException wexp) {\n // some windows may get closed during Runtime startup\n // so may get this exception depending on timing\n System.out.println(\"Ignoring NoSuchWindowException \" + name);\n }\n }\n Thread.sleep(1000);\n if ((System.currentTimeMillis() - start) > 10*1000) {\n break;\n }\n }\n\n if (!found) {\n System.out.println(windowTitle + \" not found\");\n }\n return found;\n }", "public synchronized void goToWindow(String key)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep(1000);\r\n\t\t\taniWin.goToWindow(key);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void ShowWaitDialog(String title, String message);", "public void switchTotab(String showName) {\n\t\tArrayList<String> tabs = new ArrayList<String>(_eventFiringDriver.getWindowHandles());\n\t\tfor (String tab : tabs) {\n\t\t\t_eventFiringDriver.switchTo().window(tab);\n\t\t\tif (_eventFiringDriver.getTitle().contains(showName))\n\t\t\t\tbreak;\n\t\t}\n\t\tsleep(5);\n\t}", "public void handleWindow() throws InterruptedException {\n\t\tSet<String> windHandles = GlobalVars.Web_Driver.getWindowHandles();\n\t\tSystem.out.println(\"Total window handles are:--\" + windHandles);\n\t\tparentwindow = windHandles.iterator().next();\n\t\tSystem.out.println(\"Parent window handles is:-\" + parentwindow);\n\n\t\tList<String> list = new ArrayList<String>(windHandles);\n\t\twaitForElement(3);\n\t\tGlobalVars.Web_Driver.switchTo().window((list.get(list.size() - 1)));\n\t\tSystem.out.println(\"current window title is:-\" + GlobalVars.Web_Driver.getTitle());\n\t\treturn;\n\t}", "public void waitForAllWindowsDrawn() {\n forAllWindows((Consumer<WindowState>) new Consumer(this.mWmService.mPolicy) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$oqhmXZMcpcvgI50swQTzosAcjac */\n private final /* synthetic */ WindowManagerPolicy f$1;\n\n {\n this.f$1 = r2;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$waitForAllWindowsDrawn$24$DisplayContent(this.f$1, (WindowState) obj);\n }\n }, true);\n }", "public void waitModalWindow(By waitForElement) {\n\t\tBaseWaitingWrapper.waitForElementToBeVisible(waitForElement, driver);\r\n\t\t\r\n\r\n\t}", "public boolean wait(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd));\n\t}", "public boolean wait(final WinRefEx hWnd, final Integer timeout) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd), timeout);\n\t}", "public void waitForNumberOfWindowsToBe(int numberOfWindows){\r\n\t\twait.until(ExpectedConditions.numberOfWindowsToBe(numberOfWindows));\r\n\t}", "@Test\n public void testifyName() throws InterruptedException {\n onView(withId(R.id.name)).check(matches(isDisplayed()));\n }", "public void waitFileDisplayed(final String fileName) {\n waitState(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return checkFileDisplayed(fileName);\n }\n\n @Override\n public String getDescription() {\n return \"\\\"\" + fileName + \"\\\"file to be displayed\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.waitFileDisplayed.ComponentChooser{description = \" + getDescription() + '}';\n }\n });\n }", "public ITWindow ItemByName(String name) {\n\t\tDispatch item = Dispatch.call(object, \"ItemByName\", name).toDispatch();\n\t\treturn new ITWindow(item);\n\t}", "public void waitForFrameToBeReadyAndSwitchToIt(String frameName)\n {\n new WebDriverWait(driver, DEFAULT_TIMEOUT, DEFAULT_SLEEP_IN_MILLIS)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameName));\n }", "private Alert showWaitWindow(Window window) {\n // modify alert pane\n //Alert waitAlert = new Alert(Alert.AlertType.NONE);\n waitAlert.setTitle(null);\n waitAlert.setHeaderText(null);\n waitAlert.setContentText(\" Please wait while data is evaluated ...\");\n waitAlert.getDialogPane().setBackground(new Background(new BackgroundFill(Color.DARKGRAY, null, null)));\n waitAlert.getDialogPane().setBorder(new Border(new BorderStroke(Color.BLACK,\n BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n waitAlert.getDialogPane().setMaxWidth(250);\n waitAlert.getDialogPane().setMaxHeight(50);\n\n // center on window below (statistics window)\n final double windowCenterX = window.getX() + (window.getWidth() / 2);\n final double windowCenterY = window.getY() + (window.getHeight() / 2);\n // verify\n if (!Double.isNaN(windowCenterX)) {\n // set a temporary position\n waitAlert.setX(windowCenterX);\n waitAlert.setY(windowCenterY);\n\n // since the dialog doesn't have a width or height till it's shown, calculate its position after it's shown\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n waitAlert.setX(windowCenterX - (waitAlert.getWidth() / 2));\n waitAlert.setY(windowCenterY - (waitAlert.getHeight() / 2));\n }\n });\n }\n waitAlert.show();\n return waitAlert;\n }", "public abstract int waitForObject (String appMapName, String windowName, String compName, long secTimeout)\n\t\t\t\t\t\t\t\t\t\t throws SAFSObjectNotFoundException, SAFSException;", "public static void switchWindow(String windowName, WebDriver driver)\n\t{\n\t\tdriver.switchTo().window(windowName);\n\t}", "private static void findWindow() {\n\t\tCoInitialize();\n\t\t\n\t\thandle = user32.FindWindowA(\"WMPlayerApp\", \"Windows Media Player\");\n\t}", "public void switchToFrame(String name){\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,60);\n\t\t\twait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(name));\n\t\t\tLOGGER.info(\"Step : Switched to the frame with name\"+name+\" :Pass\");\n\t\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switched to Frame frame with name\"+name+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t\t}\n\t\t}", "void waitStartGameString();", "public boolean wait(final String title) {\n\t\treturn wait(title, (String) null);\n\t}", "public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }", "public void otherWin\n (String name);", "public Packet waitForQueueData(String name) throws InterruptedException {\n\t\ttry {\n\t\t\treturn namedQueues.get(name).take();\n\t\t} catch (NullPointerException e) {\n\t\t\taddNamedQueue(name);\n\t\t\treturn namedQueues.get(name).take();\n\t\t}\n\t}", "public boolean wait(final String title, final String text,\n\t\t\t\t\t\tfinal Integer timeout) {\n\t\treturn AutoItXImpl.autoItX.AU3_WinWait(AutoItUtils.stringToWString(AutoItUtils.defaultString(title)),\n\t\t\t\tAutoItUtils.stringToWString(text), timeout) != AutoItX.FAILED_RETURN_VALUE;\n\t}", "public void switchToNewlyOpenedWindow(){\n\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tdriver.getWindowHandles();\n\t\t\tfor(String handle : driver.getWindowHandles())\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t}\n\t\t\tLOGGER.info(\"Step : Switching to New Window : Pass\");\n\t\t} catch (InterruptedException e) {\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to newly opened window\");\n\t\t}\n\t}", "@Test\n\tpublic void switchWindows() throws InterruptedException{\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.findElement(By.xpath(\"(//input[@class='gLFyf gsfi'])[1]\")).sendKeys(\"cricbuzz\");\n\t\tdriver.findElement(By.xpath(\"(//input[@aria-label='Google Search'])[1]\")).click();;\n\t\tThread.sleep(3000);\n\n}", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "NativeWindow getWindowById(long id);", "public void switchToWindow(String title) {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t\tSystem.out.println(\"window title: \" + getDriver().getTitle());\n\t\t\tif (getDriver().getTitle().contains(title))\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void SwitchToWindow(String handle)\n\t{\n\t}", "public WebElement waitForDisplay(final By by)\n {\n return waitForDisplay(by, DEFAULT_TIMEOUT);\n }", "public void prePositionWaitAlert(Window window) {\n showWaitWindow(window);\n waitAlert.setResult(ButtonType.OK);\n waitAlert.close();\n }", "public void onWindowFreezeTimeout() {\n Slog.w(TAG, \"Window freeze timeout expired.\");\n this.mWmService.mWindowsFreezingScreen = 2;\n forAllWindows((Consumer<WindowState>) new Consumer() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$2HHBX1R6lnY5GedkE9LUBwsCPoE */\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$onWindowFreezeTimeout$23$DisplayContent((WindowState) obj);\n }\n }, true);\n this.mWmService.mWindowPlacerLocked.performSurfacePlacement();\n }", "public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }", "public WebElement waitForDisplay(final WebElement webelement)\n {\n return waitForDisplay(webelement, DEFAULT_TIMEOUT);\n }", "public void switchToWindow(String title) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tfor (String eachWindow : allWindows) {\r\n\t\t\t\tgetter().switchTo().window(eachWindow);\r\n\t\t\t\tif (getter().getTitle().equals(title)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"The Window Title: \"+title+\r\n\t\t\t\t\t\"is switched \");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"The Window Title: \"+title+\r\n\t\t\t\t\t\" not found\");\r\n\t\t}\r\n\t}", "public void testWindowSystem() {\n final ProjectsTabOperator projectsOper = ProjectsTabOperator.invoke();\n final FavoritesOperator favoritesOper = FavoritesOperator.invoke();\n\n // test attaching\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.AS_LAST_TAB);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.TOP);\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.RIGHT);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.AS_LAST_TAB);\n // wait until TopComponent is in new location and is showing\n final TopComponent projectsTc = (TopComponent) projectsOper.getSource();\n final TopComponent favoritesTc = (TopComponent) favoritesOper.getSource();\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object tc) {\n // run in dispatch thread\n Mode mode1 = (Mode) projectsOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(projectsTc);\n }\n });\n Mode mode2 = (Mode) favoritesOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(favoritesTc);\n }\n });\n return (mode1 == mode2 && favoritesTc.isShowing()) ? Boolean.TRUE : null;\n }\n\n @Override\n public String getDescription() {\n return (\"Favorites TopComponent is next to Projects TopComponent.\"); // NOI18N\n }\n }).waitAction(null);\n } catch (InterruptedException e) {\n throw new JemmyException(\"Interrupted.\", e); // NOI18N\n }\n favoritesOper.close();\n\n // test maximize/restore\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass2Node = new JavaNode(sample1Node, SAMPLE2_FILE_NAME);\n sampleClass2Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE2_FILE_NAME);\n eo.maximize();\n eo.restore();\n EditorOperator.closeDiscardAll();\n }", "public boolean wait(final String title, final String text) {\n\t\treturn wait(title, text, null);\n\t}", "public synchronized void wish(String name) {\n\t\tfor (int i=0; i<3; i++) {\n\t\t\tSystem.out.print(\"Good Morning: \");\n\t\t\ttry {\n\t\t\t\tThread.sleep(2000);\n\t\t\t}\n\t\t\tcatch (InterruptedException ie) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(name);\n\t\t}\n\t}", "public void switchToWindow(String windowTitle) {\n Set<String> windows = driver.get().getWindowHandles();\n\n for (String window : windows) {\n driver.get().switchTo().window(window);\n if (driver.get().getTitle().contains(windowTitle)) {\n LOGGER.log(Level.FINEST,\n \"Switching to window: \" + driver.get().getTitle());\n return;\n } else {\n LOGGER.log(Level.FINEST,\n \"No match for window: \" + driver.get().getTitle());\n }\n }\n }", "public void selectWindow(int index) {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(index));\n\t}", "public void run()\n {\n\n int sleepTime = 10; // milliseconds (tune this value accordingly)\n\n int totalTimeShown = 0;\n while(keepGoing)\n {\n // Force this window to the front.\n\n toFront();\n\n // Sleep for \"sleepTime\"\n\n try\n {\n Thread.sleep(sleepTime);\n }\n catch(Exception e)\n {}\n\n // Increment the total time the window has been shown\n // and exit the loop if the desired time has elapsed.\n\n totalTimeShown += sleepTime;\n if(totalTimeShown >= milliseconds)\n break;\n }\n\n // Use SwingUtilities.invokeAndWait to queue the disposeRunner\n // object on the event dispatch thread.\n\n try\n {\n SwingUtilities.invokeAndWait(disposeRunner);\n }\n catch(Exception e)\n {}\n }", "public void check_openfile_window_Presence() throws InterruptedException {\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tWebElement openfile_window = driver.findElementByName(\"How do you want to open this file?\");\r\n\t\tThread.sleep(3000);\r\n\t\t// return IsElementVisibleStatus(openfile_window);\r\n\t\tWebElement openfile_Adobe = driver.findElementByName(\"Adobe Reader\");\r\n\t\tclickOn(openfile_Adobe);\r\n\t\tWebElement ConfirmButton_ok = driver.findElementByAccessibilityId(\"ConfirmButton\");\r\n\t\tclickOn(ConfirmButton_ok);\r\n\t\tdriver.switchTo().activeElement();\r\n\t}", "public void openTopic(String name) {\n\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//h3[text()='\" + name + \"']\")));\n\t\tscroller.scrollTo(\".//h3[text()='\" + name + \"']\");\n\t\tdriver.findElement(By.xpath(\".//h3[text()='\" + name + \"']\")).click();\n\t}", "public void WaitForExpectedPageToDisplay(String expectedTitle, int timeInSecs) {\n\t\tString actualTitle = getPageTitle();\n\t\tint count = 0;\n\t\t\n\t\twhile (!actualTitle.equals(expectedTitle) && count < timeInSecs) {\n\t\t\tactualTitle = driver.getTitle();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcount++;\n\t\t}\n\t}", "public String handleWindows(String object, String data) throws InterruptedException {\n\t\tlogger.debug(\"Handling the windows....\");\n\t\ttry {\n\t\t\tString mainwindow = \"\";\n\t\t\tString newwindow = \"\";\n\t\t\tSet<String> windowids = driver.getWindowHandles();\n\t\t\tIterator<String> ite = windowids.iterator();\n\t\t\tmainwindow = ite.next();\n\t\t\tnewwindow = ite.next();\n\t\t\tdriver.switchTo().window(newwindow);\n\t\t\t//Thread.sleep(2000);\n\t\t\tdriver.close();\n\t\t\tdriver.switchTo().window(mainwindow);\n\t\t\treturn Constants.KEYWORD_PASS;\n\t\t} catch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\n\t}", "public void switchToWindow(int index) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tList<String> allhandles = new ArrayList<String>(allWindows);\r\n\t\t\tString windowIndex = allhandles.get(index);\r\n\t\t\tgetter().switchTo().window(windowIndex);\r\n\t\t\tSystem.out.println(\"The Window With index: \"+index+\r\n\t\t\t\t\t\" switched successfully\");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"The Window With index: \"+index+ \" not found\");\t\r\n\t\t}\t\r\n\t}", "private int waitUntilReady()\r\n {\r\n int rc = 0;\r\n // If a stock Item is in the Table, We do not want to start\r\n // The Lookup, if the name of the stock has not been identified.\r\n // here we will wait just a couple a second at a time.\r\n // until, the user has entered the name of the stock.\r\n // MAXWAIT is 20 minutes, since we are 1 second loops.\r\n // 60 loops is 1 minute and 20 of those is 20 minutes\r\n final int MAXWAIT = 60 * 20;\r\n int counter = 0;\r\n do\r\n {\r\n try\r\n {\r\n Thread.currentThread().sleep(ONE_SECOND);\r\n }\r\n catch (InterruptedException exc)\r\n {\r\n // Do Nothing - Try again\r\n }\r\n if (counter++ > MAXWAIT)\r\n { // Abort the Lookup for historic data\r\n this.cancel();\r\n return -1;\r\n }\r\n }\r\n while (\"\".equals(sd.getSymbol().getDataSz().trim()));\r\n\r\n return 0;\r\n }", "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "public static void awaitFor (By by, int timer)\n\t{\n\t\tawait ().\n\t\t\t\tatMost (timer, SECONDS).\n\t\t\t\tpollDelay (1, SECONDS).\n\t\t\t\tpollInterval (1, SECONDS).\n\t\t\t\tignoreExceptions ().\n\t\t\t\tuntilAsserted (() -> assertThat (getDriver ().findElement (by).isDisplayed ()).\n\t\t\t\t\t\tas (\"Wait for Web Element to be displayed.\").\n\t\t\t\t\t\tisEqualTo (true));\n\t}", "private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "public boolean wait(final String title, final Integer timeout) {\n\t\treturn wait(title, null, timeout);\n\t}", "public void Rooms_and_Guests() \r\n\t{\r\n\t\tExplicitWait(roomsandguests);\r\n\t\tif (roomsandguests.isDisplayed()) \r\n\t\t{\r\n\t\t\troomsandguests.click();\r\n\t\t\t//System.out.println(\"roomsandguests popup opened successfully\");\r\n\t\t\tlogger.info(\"roomsandguests popup opened successfully\");\r\n\t\t\ttest.log(Status.PASS, \"roomsandguests popup opened successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"roomsandguests popup not found\");\r\n\t\t\tlogger.error(\"roomsandguests popup not found\");\r\n\t\t\ttest.log(Status.FAIL, \"roomsandguests popup not found\");\r\n\r\n\t\t}\r\n\t}", "public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive, int index)\n\tthrows InterruptedException {\n\treturn(waitFrame(new FrameByTitleChooser(title, compareExactly, compareCaseSensitive), index));\n }", "private boolean sendAndWait(Message m){\r\n\t\tif (!sendMessage(m))\r\n\t\t\treturn false;\r\n\t\t// Wait for the reply\r\n\t\twhile(!messageList.containsKey(m.get(\"id\"))) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t}\r\n\r\n\t\t\t// Quit if the game window has closed\r\n\t\t\tif (!GameState.getRunningState()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean checkWaitingForWindows() {\n this.mHaveBootMsg = false;\n this.mHaveApp = false;\n this.mHaveWallpaper = false;\n this.mHaveKeyguard = true;\n if (getWindow(new Predicate() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$BgTlvHbVclnASzMrvERWxyMVA */\n\n @Override // java.util.function.Predicate\n public final boolean test(Object obj) {\n return DisplayContent.this.lambda$checkWaitingForWindows$20$DisplayContent((WindowState) obj);\n }\n }) != null) {\n return true;\n }\n boolean wallpaperEnabled = this.mWmService.mContext.getResources().getBoolean(17891452) && this.mWmService.mContext.getResources().getBoolean(17891393) && !this.mWmService.mOnlyCore;\n if (WindowManagerDebugConfig.DEBUG_SCREEN_ON) {\n Slog.i(TAG, \"******** booted=\" + this.mWmService.mSystemBooted + \" msg=\" + this.mWmService.mShowingBootMessages + \" haveBoot=\" + this.mHaveBootMsg + \" haveApp=\" + this.mHaveApp + \" haveWall=\" + this.mHaveWallpaper + \" wallEnabled=\" + wallpaperEnabled + \" haveKeyguard=\" + this.mHaveKeyguard);\n }\n if (!this.mWmService.mSystemBooted && !this.mHaveBootMsg) {\n return true;\n }\n if (!this.mWmService.mSystemBooted || ((this.mHaveApp || this.mHaveKeyguard) && (!wallpaperEnabled || this.mHaveWallpaper))) {\n return false;\n }\n return true;\n }", "public Frame waitFrame(ComponentChooser ch, int index)\n\tthrows InterruptedException {\n\tsetTimeouts(timeouts);\n\treturn((Frame)waitWindow(new FrameSubChooser(ch), index));\n }", "@Override\n public void run() {\n boolean pvp_net;\n //Start with negative state:\n pvp_net_changed(false);\n \n Window win = null;\n\n while(!isInterrupted()||true) {\n //Check whether window is running\n if(win==null) {\n win = CacheByTitle.initalInst.getWindow(ConstData.window_title_part);\n //if(win==null)\n // Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window from name failed...\");\n }\n else if(!win.isValid()) {\n win = null;\n //Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window is invalid...\");\n }\n else if(\n main.ToolRunning() && \n main.settings.getBoolean(Setnames.PREVENT_CLIENT_MINIMIZE.name, (Boolean)Setnames.PREVENT_CLIENT_MINIMIZE.default_val) &&\n win.isMinimized()) {\n win.restoreNoActivate();\n }\n pvp_net = win!=null;\n //On an change, update GUI\n if(pvp_net!=pvp_net_running) {\n pvp_net_changed(pvp_net);\n }\n \n /*thread_running = main.ToolRunning();\n if(thread_running!=automation_thread_running)\n thread_changed(thread_running);*/\n\n try {\n sleep(900L);\n //Wait some more if paused\n waitPause();\n }\n catch(InterruptedException e) {\n break; \n }\n } \n }", "public void waitDialog(String title) {\n Stage dialog = new Stage();\n Parent root = null;\n try {\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource(\"wait.fxml\")));\n Scene s1 = new Scene(root);\n dialog.setScene(s1);\n dialog.getIcons().add(new Image(\"images/cm_boardgame.png\"));\n overlayedStage = dialog;\n overlayedStage.initOwner(thisStage);\n overlayedStage.initModality(Modality.APPLICATION_MODAL);\n overlayedStage.setTitle(title);\n overlayedStage.initStyle(StageStyle.UNDECORATED);\n overlayedStage.setResizable(false);\n dialog.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void testCreateWindows() throws Exception\n {\n executeScript(SCRIPT);\n assertNotNull(\"No result window\", windowBuilderData.getResultWindow());\n assertNotNull(\"No named window\", windowBuilderData\n .getWindow(\"msgDialog\"));\n }", "public static void windowspwcw() {\n\t\tString windowHandle = driver.getWindowHandle();\n\t\tSystem.out.println(\"parent window is: \"+windowHandle);\n\t\tSet<String> windowHandles = driver.getWindowHandles();\n\t\tSystem.out.println(\"child window is \"+windowHandles);\n\t\tfor(String eachWindowId:windowHandles)\n\t\t{\n\t\t\tif(!windowHandle.equals(eachWindowId))\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(eachWindowId);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t}", "public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}", "int waitFor(String variable);", "@Test\n\tvoid HandleWindowPopUp() throws InterruptedException {\n\t\t//Invoke Browser\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/Suvarna/Downloads/chromedriver\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\t//Launch the website\n\t\tdriver.get(\"http://www.popuptest.com/goodpopups.html\");\n\t\t\n\t\t// Click on the pop-up3 link\n\t\tdriver.findElement(By.xpath(\"/html/body/table[2]/tbody/tr/td/font/b/a[3]\")).click();\n\t\t\n\t\t// wait for 2 second\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Call method to handle window \n\t\tSet<String> handler = driver.getWindowHandles();\n\t\tIterator<String> it = handler.iterator();\n\t\t\n\t\t// get the parent window id\n\t\tString parentWindowId = it.next();\n\t\tSystem.out.println(\"Parent Window id: \"+ parentWindowId);\n\t\t\n\t\t// Get the Pop-up window id\n\t\tString childWindowId =it.next();\n\t\tSystem.out.println(\"Child Window id: \"+ childWindowId);\n\t\t\n\t\t//Passing the control to pop up window ...Switch to pop-up window\n\t\tdriver.switchTo().window(childWindowId);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Get the title of the Pop-up Window\n\t\tSystem.out.println(\" Child window pop up title \"+ driver.getTitle()); \n\t\t\n\t\t//Close the pop-up window\n\t\tdriver.close();\n\t\t\n\t\t//Switch to Parent Window\n\t\tdriver.switchTo().window(parentWindowId);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t//Get the title of Parent window\n\t\tSystem.out.println(\" Parent window title \"+ driver.getTitle());\n\t\t\n\t\t// Close the main window\n\t\tdriver.close();\n\t\t\n\t}", "public boolean Wait(String name, int type, TOSListener stub, \r\n\t\t\t\t\t\tString threadName, int procid) \r\n\t\tthrows RemoteException, SyncException\r\n\t{\r\n\t\tSyncRecord rec;\r\n\t\ttry {\r\n\t\t\trec = findObject(name,type);\r\n\t\t} catch (NotFoundException e) {\r\n\t\t\tthrow new SyncException(\"No such sync object\");\r\n\t\t}\r\n\t\t// Increment count for semaphores and mutexes\r\n\t\ttry {\r\n\t\t\tif (rec.max!=0)\r\n\t\t\t{\r\n\t\t\t\trec.count++;\r\n\t\t\t\tif (rec.count<=rec.max)\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tString id = String.valueOf(procid)+threadName;\r\n\t\t\trec.addElement(id);\r\n\t\t\tsynchronized (threadTable) { threadTable.put(id,stub); }\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (e instanceof SyncException)\r\n\t\t\t\tthrow (SyncException)e;\r\n\t\t\tDebug.ErrorMessage(\"Wait\",e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "void letterWait(String path) {\n WebDriverWait newsWait = new WebDriverWait(chrome, 3);\n try {\n newsWait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(path)));\n chrome.findElement(By.xpath(path)).click();\n\n } catch (Throwable e) {\n// e.printStackTrace();\n }\n }", "public void switchToLastWindow() {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t}\n\t}", "public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }", "int waitFor(String variable, int count);", "private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }", "private String getWindowName(com.sun.star.awt.XWindow aWindow)\n throws com.sun.star.uno.Exception\n {\n if (aWindow == null)\n new com.sun.star.lang.IllegalArgumentException(\n \"Method external_event requires that a window is passed as argument\",\n this, (short) -1);\n\n // We need to get the control model of the window. Therefore the first step is\n // to query for it.\n XControl xControlDlg = (XControl) UnoRuntime.queryInterface(\n XControl.class, aWindow);\n\n if (xControlDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XControl from XWindow in method external_event.\");\n // Now get model\n XControlModel xModelDlg = xControlDlg.getModel();\n\n if (xModelDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XControlModel from XWindow in method external_event.\", this);\n \n // The model itself does not provide any information except that its\n // implementation supports XPropertySet which is used to access the data.\n XPropertySet xPropDlg = (XPropertySet) UnoRuntime.queryInterface(\n XPropertySet.class, xModelDlg);\n if (xPropDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XPropertySet from window in method external_event.\", this);\n\n // Get the \"Name\" property of the window\n Object aWindowName = xPropDlg.getPropertyValue(\"Name\");\n\n // Get the string from the returned com.sun.star.uno.Any\n String sName = null;\n try\n {\n sName = AnyConverter.toString(aWindowName);\n }\n catch (com.sun.star.lang.IllegalArgumentException ex)\n {\n ex.printStackTrace();\n throw new com.sun.star.uno.Exception(\n \"Name - property of window is not a string.\", this);\n }\n\n // Eventually we can check if we this handler can \"handle\" this options page.\n // The class has a member m_arWindowNames which contains all names of windows\n // for which it is intended\n for (int i = 0; i < SupportedWindowNames.length; i++)\n {\n if (SupportedWindowNames[i].equals(sName))\n {\n return sName;\n }\n }\n return null;\n }", "public void showResultsWindow() {\r\n \t\tshowResults.setSelected(true);\r\n \t\tshowResultsWindow(true);\r\n \t}", "public JPanel getWindow(String key)\r\n\t{\r\n\t\treturn aniWin.getWindow(key);\r\n\t}", "public void switchToWindow(String handle)\n\t{\n\t\ttry {\n\t\t\tdriver.switchTo().window(handle);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to window\");\n\n\t\t}\n\t}", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }", "public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive)\n\tthrows InterruptedException {\n\treturn(waitFrame(title, compareExactly, compareCaseSensitive, 0));\n }", "public Node getScreen(String name) {\r\n return screens.get(name);\r\n }", "public void verifyElementIsVisible(String elementName) {\n wait.forElementToBeDisplayed(5, returnElement(elementName), elementName);\n Assert.assertTrue(\"FAIL: Yellow Triangle not present\", returnElement(elementName).isDisplayed());\n }", "public String waitForElementVisibility(String object, String data) {\n logger.debug(\"Waiting for an element to be visible\");\n int start = 0;\n int time = (int) Double.parseDouble(data);\n try {\n while (true) {\n if(start!=time)\n {\n if (driver.findElements(By.xpath(OR.getProperty(object))).size() == 0) {\n Thread.sleep(1000L);\n start++;\n }\n else {\n break; }\n }else {\n break; } \n }\n } catch (Exception e) {\n return Constants.KEYWORD_FAIL + \"Unable to close browser. Check if its open\" + e.getMessage();\n }\n return Constants.KEYWORD_PASS;\n }", "public void afterSwitchToWindow(String windowName, WebDriver driver) {\n\t\t\r\n\t}", "public static void waitFor(String title, int timer, WebDriver driver) {\n\t\tWebDriverWait exists = new WebDriverWait(driver, timer);\n\t\texists.until(ExpectedConditions.refreshed(ExpectedConditions.titleContains(title)));\n\t}", "protected void openResultFrame(String name) {\n StringBuffer buffer = m_history.getNamedBuffer(name);\n JTabbedPane tabbedPane = m_framedOutputMap.get(name);\n\n if (buffer != null && tabbedPane == null) {\n JTextArea textA = new JTextArea(20, 50);\n textA.setEditable(false);\n textA.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n textA.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n textA.setText(buffer.toString());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Output\", new JScrollPane(textA));\n updateComponentTabs(name, tabbedPane);\n m_framedOutputMap.put(name, tabbedPane);\n \n final JFrame jf = new JFrame(name);\n jf.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n m_framedOutputMap.remove(jf.getTitle());\n jf.dispose();\n }\n });\n jf.setLayout(new BorderLayout());\n jf.add(tabbedPane, BorderLayout.CENTER);\n jf.pack();\n jf.setSize(550, 400);\n jf.setVisible(true);\n } \n }", "Stream<Pair<Object, T>> withWindow(@Nullable String name);", "public boolean waitActive(final WinRefEx hWnd, final Integer timeout) {\n\t\treturn (hWnd == null) ? false : waitActive(TitleBuilder.byHandle(hWnd), timeout);\n\t}", "public void waitForElementVisibility(String locator) {\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator)));\n }", "public static void wait(int ms) {\n try {\n Thread.sleep(ms);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }", "public static void switchTo_Window_with_title(String Exp_title)\r\n\t{\n\t\tSet<String> All_Window_IDS=driver.getWindowHandles();\r\n\t\t\r\n\t\t//Applying foreach window to iterator for all windows\r\n\t\tfor (String EachWindowID : All_Window_IDS) \r\n\t\t{\r\n\t\t\tdriver.switchTo().window(EachWindowID);\r\n\t\t\t//After switch get window title\r\n\t\t\tString Runtime_Title=driver.getTitle();\r\n\t\t\tSystem.out.println(Runtime_Title);\r\n\t\t\t\r\n\t\t\tif(Runtime_Title.contains(Exp_title))\r\n\t\t\t{\r\n\t\t\t\tbreak; //At what window it break , It keep browser controls at same window\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void showWaitingPage(String message) {\r\n\t\tmainFrame.showPage(waitingPage.getClass().getCanonicalName());\r\n\t\twaitingPage.start(message);\r\n\t}", "public void createNewWindow(String winType) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new RuntimeException(\"createNewWindow: called on non-event thread\");\n }\n\n final Parameters params = (Parameters)parameters.clone();\n if (!windowName.equals(\"\")) params.setWindowName(windowName);\n if (!winType.equals(\"\")) params.setWindowName(winType);\n\n manager.showDisplayUI(params);\n }", "public WebElement wait(WebElement webElement) {\n WebDriverWait webDriverWait = new WebDriverWait(driver, Integer.parseInt(testData.timeout));\n return webDriverWait.until(ExpectedConditions.visibilityOf(webElement));\n }" ]
[ "0.83356386", "0.6503099", "0.64917576", "0.5951411", "0.59218454", "0.57931554", "0.55775434", "0.55130935", "0.54625404", "0.5431215", "0.5414923", "0.5355884", "0.5342915", "0.53243756", "0.52972597", "0.5260902", "0.5257219", "0.5219599", "0.51930773", "0.5192455", "0.51704836", "0.5160968", "0.5160598", "0.51156193", "0.5114407", "0.5099033", "0.5091604", "0.5058758", "0.50425744", "0.5037161", "0.50231755", "0.50154394", "0.49865225", "0.49558347", "0.49339184", "0.49082634", "0.4904843", "0.48997632", "0.48974124", "0.48765314", "0.48534113", "0.48444366", "0.4842043", "0.4836055", "0.48303464", "0.48229814", "0.48196423", "0.4818602", "0.4803731", "0.47950655", "0.47904286", "0.47760576", "0.4773155", "0.47613522", "0.47439066", "0.4739318", "0.47324088", "0.47269294", "0.47145438", "0.470998", "0.47049594", "0.46962073", "0.46861258", "0.46847832", "0.46785498", "0.46725178", "0.4664155", "0.46637657", "0.46509752", "0.46472844", "0.46445337", "0.46418932", "0.4625052", "0.459657", "0.4589076", "0.45788145", "0.4578753", "0.45787427", "0.45602936", "0.45589104", "0.45585287", "0.4557105", "0.4551319", "0.45481494", "0.45392066", "0.45315778", "0.45199358", "0.4517644", "0.45169246", "0.45103267", "0.45057538", "0.44903496", "0.44810003", "0.44809198", "0.44724497", "0.44714797", "0.44665572", "0.44590497", "0.44581398", "0.44519016" ]
0.5265982
15
Waits for a window with the given name
public static Window waitForWindow(String title) { Window window = getWindow(title); if (window != null) { return window;// we found it...no waiting required } int totalTime = 0; int timeout = DEFAULT_WAIT_TIMEOUT; while (totalTime <= timeout) { window = getWindow(title); if (window != null) { return window; } totalTime += sleep(DEFAULT_WAIT_DELAY); } throw new AssertionFailedError("Timed-out waiting for window with title '" + title + "'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Window waitForWindowByName(String name) {\n\n\t\tint time = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (time <= timeout) {\n\t\t\tSet<Window> allWindows = getAllWindows();\n\t\t\tfor (Window window : allWindows) {\n\t\t\t\tString windowName = window.getName();\n\t\t\t\tif (name.equals(windowName) && window.isShowing()) {\n\t\t\t\t\treturn window;\n\t\t\t\t}\n\n\t\t\t\ttime += sleep(DEFAULT_WAIT_DELAY);\n\t\t\t}\n\t\t}\n\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with name '\" + name + \"'\");\n\t}", "public static Window waitForWindowByTitleContaining(String text) {\n\t\tWindow window = getWindowByTitleContaining(null, text);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindowByTitleContaining(null, text);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\n\t\tthrow new AssertionFailedError(\n\t\t\t\"Timed-out waiting for window containg title '\" + text + \"'\");\n\t}", "public Locomotive waitForWindow(String regex) {\n Set<String> windows = getDriver().getWindowHandles();\n for (String window : windows) {\n try {\n // Wait before switching tabs so that the new tab can load; else it loads a blank page\n try {\n Thread.sleep(100);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n getDriver().switchTo().window(window);\n\n p = Pattern.compile(regex);\n m = p.matcher(getDriver().getCurrentUrl());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n } else {\n // try for title\n m = p.matcher(getDriver().getTitle());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n }\n }\n } catch (NoSuchWindowException e) {\n if (attempts <= configuration.getRetries()) {\n attempts++;\n\n try {\n Thread.sleep(1000);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n return waitForWindow(regex);\n } else {\n Assertions.fail(\"Window with url|title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\", e);\n }\n }\n }\n\n // when we reach this point, that means no window exists with that title..\n if (attempts == configuration.getRetries()) {\n Assertions.fail(\"Window with title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\");\n return this;\n } else {\n Logger.info(\"#waitForWindow() : Window doesn't exist yet. [%s] Trying again. %s/%s\", regex, (attempts + 1), configuration.getRetries());\n attempts++;\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n Logger.error(e);\n }\n return waitForWindow(regex);\n }\n }", "public static JDialog waitForJDialog(String title) {\n\n\t\tint totalTime = 0;\n\t\twhile (totalTime <= DEFAULT_WINDOW_TIMEOUT) {\n\n\t\t\tSet<Window> winList = getAllWindows();\n\t\t\tIterator<Window> iter = winList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tWindow w = iter.next();\n\t\t\t\tif ((w instanceof JDialog) && w.isShowing()) {\n\t\t\t\t\tString windowTitle = getTitleForWindow(w);\n\t\t\t\t\tif (title.equals(windowTitle)) {\n\t\t\t\t\t\treturn (JDialog) w;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public window get(String sname) {\n return getWindow(sname);\n }", "public void chooseWindowSceneLoaded(String username) throws IOException{\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n out.println(username + \" chooseWindowOk\");\n out.close();\n socket.close();\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "private static boolean switchWindow(WebDriver webDriver, String windowTitle) throws Exception {\n boolean found = false;\n long start = System.currentTimeMillis();\n while (!found) {\n for (String name : webDriver.getWindowHandles()) {\n try {\n webDriver.switchTo().window(name);\n if (webDriver.getTitle().equals(windowTitle)) {\n found = true;\n break;\n }\n } catch (NoSuchWindowException wexp) {\n // some windows may get closed during Runtime startup\n // so may get this exception depending on timing\n System.out.println(\"Ignoring NoSuchWindowException \" + name);\n }\n }\n Thread.sleep(1000);\n if ((System.currentTimeMillis() - start) > 10*1000) {\n break;\n }\n }\n\n if (!found) {\n System.out.println(windowTitle + \" not found\");\n }\n return found;\n }", "void ShowWaitDialog(String title, String message);", "public synchronized void goToWindow(String key)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep(1000);\r\n\t\t\taniWin.goToWindow(key);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public window getWindow(String sname) {\n return (window) windows.getObject(sname);\n }", "public void handleWindow() throws InterruptedException {\n\t\tSet<String> windHandles = GlobalVars.Web_Driver.getWindowHandles();\n\t\tSystem.out.println(\"Total window handles are:--\" + windHandles);\n\t\tparentwindow = windHandles.iterator().next();\n\t\tSystem.out.println(\"Parent window handles is:-\" + parentwindow);\n\n\t\tList<String> list = new ArrayList<String>(windHandles);\n\t\twaitForElement(3);\n\t\tGlobalVars.Web_Driver.switchTo().window((list.get(list.size() - 1)));\n\t\tSystem.out.println(\"current window title is:-\" + GlobalVars.Web_Driver.getTitle());\n\t\treturn;\n\t}", "public void switchTotab(String showName) {\n\t\tArrayList<String> tabs = new ArrayList<String>(_eventFiringDriver.getWindowHandles());\n\t\tfor (String tab : tabs) {\n\t\t\t_eventFiringDriver.switchTo().window(tab);\n\t\t\tif (_eventFiringDriver.getTitle().contains(showName))\n\t\t\t\tbreak;\n\t\t}\n\t\tsleep(5);\n\t}", "public abstract int waitForObject (String appMapName, String windowName, String compName, long secTimeout)\n\t\t\t\t\t\t\t\t\t\t throws SAFSObjectNotFoundException, SAFSException;", "@Test\n public void testifyName() throws InterruptedException {\n onView(withId(R.id.name)).check(matches(isDisplayed()));\n }", "public void waitModalWindow(By waitForElement) {\n\t\tBaseWaitingWrapper.waitForElementToBeVisible(waitForElement, driver);\r\n\t\t\r\n\r\n\t}", "public void otherWin\n (String name);", "public void waitForAllWindowsDrawn() {\n forAllWindows((Consumer<WindowState>) new Consumer(this.mWmService.mPolicy) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$oqhmXZMcpcvgI50swQTzosAcjac */\n private final /* synthetic */ WindowManagerPolicy f$1;\n\n {\n this.f$1 = r2;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$waitForAllWindowsDrawn$24$DisplayContent(this.f$1, (WindowState) obj);\n }\n }, true);\n }", "@Deprecated\n\tpublic static Window waitForWindow(String title, int timeoutMS) {\n\t\treturn waitForWindow(title);\n\t}", "public void waitForNumberOfWindowsToBe(int numberOfWindows){\r\n\t\twait.until(ExpectedConditions.numberOfWindowsToBe(numberOfWindows));\r\n\t}", "public boolean wait(final WinRefEx hWnd, final Integer timeout) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd), timeout);\n\t}", "public boolean wait(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd));\n\t}", "private static void findWindow() {\n\t\tCoInitialize();\n\t\t\n\t\thandle = user32.FindWindowA(\"WMPlayerApp\", \"Windows Media Player\");\n\t}", "public void waitFileDisplayed(final String fileName) {\n waitState(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return checkFileDisplayed(fileName);\n }\n\n @Override\n public String getDescription() {\n return \"\\\"\" + fileName + \"\\\"file to be displayed\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.waitFileDisplayed.ComponentChooser{description = \" + getDescription() + '}';\n }\n });\n }", "void waitStartGameString();", "private Alert showWaitWindow(Window window) {\n // modify alert pane\n //Alert waitAlert = new Alert(Alert.AlertType.NONE);\n waitAlert.setTitle(null);\n waitAlert.setHeaderText(null);\n waitAlert.setContentText(\" Please wait while data is evaluated ...\");\n waitAlert.getDialogPane().setBackground(new Background(new BackgroundFill(Color.DARKGRAY, null, null)));\n waitAlert.getDialogPane().setBorder(new Border(new BorderStroke(Color.BLACK,\n BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n waitAlert.getDialogPane().setMaxWidth(250);\n waitAlert.getDialogPane().setMaxHeight(50);\n\n // center on window below (statistics window)\n final double windowCenterX = window.getX() + (window.getWidth() / 2);\n final double windowCenterY = window.getY() + (window.getHeight() / 2);\n // verify\n if (!Double.isNaN(windowCenterX)) {\n // set a temporary position\n waitAlert.setX(windowCenterX);\n waitAlert.setY(windowCenterY);\n\n // since the dialog doesn't have a width or height till it's shown, calculate its position after it's shown\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n waitAlert.setX(windowCenterX - (waitAlert.getWidth() / 2));\n waitAlert.setY(windowCenterY - (waitAlert.getHeight() / 2));\n }\n });\n }\n waitAlert.show();\n return waitAlert;\n }", "public void switchToFrame(String name){\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,60);\n\t\t\twait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(name));\n\t\t\tLOGGER.info(\"Step : Switched to the frame with name\"+name+\" :Pass\");\n\t\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switched to Frame frame with name\"+name+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t\t}\n\t\t}", "public void waitForFrameToBeReadyAndSwitchToIt(String frameName)\n {\n new WebDriverWait(driver, DEFAULT_TIMEOUT, DEFAULT_SLEEP_IN_MILLIS)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameName));\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Test\n\tpublic void switchWindows() throws InterruptedException{\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.findElement(By.xpath(\"(//input[@class='gLFyf gsfi'])[1]\")).sendKeys(\"cricbuzz\");\n\t\tdriver.findElement(By.xpath(\"(//input[@aria-label='Google Search'])[1]\")).click();;\n\t\tThread.sleep(3000);\n\n}", "public static void switchWindow(String windowName, WebDriver driver)\n\t{\n\t\tdriver.switchTo().window(windowName);\n\t}", "public ITWindow ItemByName(String name) {\n\t\tDispatch item = Dispatch.call(object, \"ItemByName\", name).toDispatch();\n\t\treturn new ITWindow(item);\n\t}", "public void SwitchToWindow(String handle)\n\t{\n\t}", "public void switchToNewlyOpenedWindow(){\n\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tdriver.getWindowHandles();\n\t\t\tfor(String handle : driver.getWindowHandles())\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t}\n\t\t\tLOGGER.info(\"Step : Switching to New Window : Pass\");\n\t\t} catch (InterruptedException e) {\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to newly opened window\");\n\t\t}\n\t}", "public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }", "public void testWindowSystem() {\n final ProjectsTabOperator projectsOper = ProjectsTabOperator.invoke();\n final FavoritesOperator favoritesOper = FavoritesOperator.invoke();\n\n // test attaching\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.AS_LAST_TAB);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.TOP);\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.RIGHT);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.AS_LAST_TAB);\n // wait until TopComponent is in new location and is showing\n final TopComponent projectsTc = (TopComponent) projectsOper.getSource();\n final TopComponent favoritesTc = (TopComponent) favoritesOper.getSource();\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object tc) {\n // run in dispatch thread\n Mode mode1 = (Mode) projectsOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(projectsTc);\n }\n });\n Mode mode2 = (Mode) favoritesOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(favoritesTc);\n }\n });\n return (mode1 == mode2 && favoritesTc.isShowing()) ? Boolean.TRUE : null;\n }\n\n @Override\n public String getDescription() {\n return (\"Favorites TopComponent is next to Projects TopComponent.\"); // NOI18N\n }\n }).waitAction(null);\n } catch (InterruptedException e) {\n throw new JemmyException(\"Interrupted.\", e); // NOI18N\n }\n favoritesOper.close();\n\n // test maximize/restore\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass2Node = new JavaNode(sample1Node, SAMPLE2_FILE_NAME);\n sampleClass2Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE2_FILE_NAME);\n eo.maximize();\n eo.restore();\n EditorOperator.closeDiscardAll();\n }", "public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }", "NativeWindow getWindowById(long id);", "public boolean wait(final String title) {\n\t\treturn wait(title, (String) null);\n\t}", "public void switchToWindow(String title) {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t\tSystem.out.println(\"window title: \" + getDriver().getTitle());\n\t\t\tif (getDriver().getTitle().contains(title))\n\t\t\t\tbreak;\n\t\t}\n\t}", "public String handleWindows(String object, String data) throws InterruptedException {\n\t\tlogger.debug(\"Handling the windows....\");\n\t\ttry {\n\t\t\tString mainwindow = \"\";\n\t\t\tString newwindow = \"\";\n\t\t\tSet<String> windowids = driver.getWindowHandles();\n\t\t\tIterator<String> ite = windowids.iterator();\n\t\t\tmainwindow = ite.next();\n\t\t\tnewwindow = ite.next();\n\t\t\tdriver.switchTo().window(newwindow);\n\t\t\t//Thread.sleep(2000);\n\t\t\tdriver.close();\n\t\t\tdriver.switchTo().window(mainwindow);\n\t\t\treturn Constants.KEYWORD_PASS;\n\t\t} catch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\n\t}", "public boolean wait(final String title, final String text,\n\t\t\t\t\t\tfinal Integer timeout) {\n\t\treturn AutoItXImpl.autoItX.AU3_WinWait(AutoItUtils.stringToWString(AutoItUtils.defaultString(title)),\n\t\t\t\tAutoItUtils.stringToWString(text), timeout) != AutoItX.FAILED_RETURN_VALUE;\n\t}", "public void check_openfile_window_Presence() throws InterruptedException {\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tWebElement openfile_window = driver.findElementByName(\"How do you want to open this file?\");\r\n\t\tThread.sleep(3000);\r\n\t\t// return IsElementVisibleStatus(openfile_window);\r\n\t\tWebElement openfile_Adobe = driver.findElementByName(\"Adobe Reader\");\r\n\t\tclickOn(openfile_Adobe);\r\n\t\tWebElement ConfirmButton_ok = driver.findElementByAccessibilityId(\"ConfirmButton\");\r\n\t\tclickOn(ConfirmButton_ok);\r\n\t\tdriver.switchTo().activeElement();\r\n\t}", "public void prePositionWaitAlert(Window window) {\n showWaitWindow(window);\n waitAlert.setResult(ButtonType.OK);\n waitAlert.close();\n }", "public void Rooms_and_Guests() \r\n\t{\r\n\t\tExplicitWait(roomsandguests);\r\n\t\tif (roomsandguests.isDisplayed()) \r\n\t\t{\r\n\t\t\troomsandguests.click();\r\n\t\t\t//System.out.println(\"roomsandguests popup opened successfully\");\r\n\t\t\tlogger.info(\"roomsandguests popup opened successfully\");\r\n\t\t\ttest.log(Status.PASS, \"roomsandguests popup opened successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"roomsandguests popup not found\");\r\n\t\t\tlogger.error(\"roomsandguests popup not found\");\r\n\t\t\ttest.log(Status.FAIL, \"roomsandguests popup not found\");\r\n\r\n\t\t}\r\n\t}", "public WebElement waitForDisplay(final By by)\n {\n return waitForDisplay(by, DEFAULT_TIMEOUT);\n }", "@Test\n\tvoid HandleWindowPopUp() throws InterruptedException {\n\t\t//Invoke Browser\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/Suvarna/Downloads/chromedriver\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\t//Launch the website\n\t\tdriver.get(\"http://www.popuptest.com/goodpopups.html\");\n\t\t\n\t\t// Click on the pop-up3 link\n\t\tdriver.findElement(By.xpath(\"/html/body/table[2]/tbody/tr/td/font/b/a[3]\")).click();\n\t\t\n\t\t// wait for 2 second\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Call method to handle window \n\t\tSet<String> handler = driver.getWindowHandles();\n\t\tIterator<String> it = handler.iterator();\n\t\t\n\t\t// get the parent window id\n\t\tString parentWindowId = it.next();\n\t\tSystem.out.println(\"Parent Window id: \"+ parentWindowId);\n\t\t\n\t\t// Get the Pop-up window id\n\t\tString childWindowId =it.next();\n\t\tSystem.out.println(\"Child Window id: \"+ childWindowId);\n\t\t\n\t\t//Passing the control to pop up window ...Switch to pop-up window\n\t\tdriver.switchTo().window(childWindowId);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Get the title of the Pop-up Window\n\t\tSystem.out.println(\" Child window pop up title \"+ driver.getTitle()); \n\t\t\n\t\t//Close the pop-up window\n\t\tdriver.close();\n\t\t\n\t\t//Switch to Parent Window\n\t\tdriver.switchTo().window(parentWindowId);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t//Get the title of Parent window\n\t\tSystem.out.println(\" Parent window title \"+ driver.getTitle());\n\t\t\n\t\t// Close the main window\n\t\tdriver.close();\n\t\t\n\t}", "public void run()\n {\n\n int sleepTime = 10; // milliseconds (tune this value accordingly)\n\n int totalTimeShown = 0;\n while(keepGoing)\n {\n // Force this window to the front.\n\n toFront();\n\n // Sleep for \"sleepTime\"\n\n try\n {\n Thread.sleep(sleepTime);\n }\n catch(Exception e)\n {}\n\n // Increment the total time the window has been shown\n // and exit the loop if the desired time has elapsed.\n\n totalTimeShown += sleepTime;\n if(totalTimeShown >= milliseconds)\n break;\n }\n\n // Use SwingUtilities.invokeAndWait to queue the disposeRunner\n // object on the event dispatch thread.\n\n try\n {\n SwingUtilities.invokeAndWait(disposeRunner);\n }\n catch(Exception e)\n {}\n }", "private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "public void onWindowFreezeTimeout() {\n Slog.w(TAG, \"Window freeze timeout expired.\");\n this.mWmService.mWindowsFreezingScreen = 2;\n forAllWindows((Consumer<WindowState>) new Consumer() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$2HHBX1R6lnY5GedkE9LUBwsCPoE */\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$onWindowFreezeTimeout$23$DisplayContent((WindowState) obj);\n }\n }, true);\n this.mWmService.mWindowPlacerLocked.performSurfacePlacement();\n }", "public WebElement waitForDisplay(final WebElement webelement)\n {\n return waitForDisplay(webelement, DEFAULT_TIMEOUT);\n }", "@Override\n public void run() {\n boolean pvp_net;\n //Start with negative state:\n pvp_net_changed(false);\n \n Window win = null;\n\n while(!isInterrupted()||true) {\n //Check whether window is running\n if(win==null) {\n win = CacheByTitle.initalInst.getWindow(ConstData.window_title_part);\n //if(win==null)\n // Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window from name failed...\");\n }\n else if(!win.isValid()) {\n win = null;\n //Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window is invalid...\");\n }\n else if(\n main.ToolRunning() && \n main.settings.getBoolean(Setnames.PREVENT_CLIENT_MINIMIZE.name, (Boolean)Setnames.PREVENT_CLIENT_MINIMIZE.default_val) &&\n win.isMinimized()) {\n win.restoreNoActivate();\n }\n pvp_net = win!=null;\n //On an change, update GUI\n if(pvp_net!=pvp_net_running) {\n pvp_net_changed(pvp_net);\n }\n \n /*thread_running = main.ToolRunning();\n if(thread_running!=automation_thread_running)\n thread_changed(thread_running);*/\n\n try {\n sleep(900L);\n //Wait some more if paused\n waitPause();\n }\n catch(InterruptedException e) {\n break; \n }\n } \n }", "public void waitDialog(String title) {\n Stage dialog = new Stage();\n Parent root = null;\n try {\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource(\"wait.fxml\")));\n Scene s1 = new Scene(root);\n dialog.setScene(s1);\n dialog.getIcons().add(new Image(\"images/cm_boardgame.png\"));\n overlayedStage = dialog;\n overlayedStage.initOwner(thisStage);\n overlayedStage.initModality(Modality.APPLICATION_MODAL);\n overlayedStage.setTitle(title);\n overlayedStage.initStyle(StageStyle.UNDECORATED);\n overlayedStage.setResizable(false);\n dialog.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void switchToWindow(String title) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tfor (String eachWindow : allWindows) {\r\n\t\t\t\tgetter().switchTo().window(eachWindow);\r\n\t\t\t\tif (getter().getTitle().equals(title)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"The Window Title: \"+title+\r\n\t\t\t\t\t\"is switched \");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"The Window Title: \"+title+\r\n\t\t\t\t\t\" not found\");\r\n\t\t}\r\n\t}", "public void WaitForExpectedPageToDisplay(String expectedTitle, int timeInSecs) {\n\t\tString actualTitle = getPageTitle();\n\t\tint count = 0;\n\t\t\n\t\twhile (!actualTitle.equals(expectedTitle) && count < timeInSecs) {\n\t\t\tactualTitle = driver.getTitle();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcount++;\n\t\t}\n\t}", "public void switchToWindow(String windowTitle) {\n Set<String> windows = driver.get().getWindowHandles();\n\n for (String window : windows) {\n driver.get().switchTo().window(window);\n if (driver.get().getTitle().contains(windowTitle)) {\n LOGGER.log(Level.FINEST,\n \"Switching to window: \" + driver.get().getTitle());\n return;\n } else {\n LOGGER.log(Level.FINEST,\n \"No match for window: \" + driver.get().getTitle());\n }\n }\n }", "int waitFor(String variable);", "public boolean wait(final String title, final String text) {\n\t\treturn wait(title, text, null);\n\t}", "public void selectWindow(int index) {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(index));\n\t}", "public void testCreateWindows() throws Exception\n {\n executeScript(SCRIPT);\n assertNotNull(\"No result window\", windowBuilderData.getResultWindow());\n assertNotNull(\"No named window\", windowBuilderData\n .getWindow(\"msgDialog\"));\n }", "public static void windowspwcw() {\n\t\tString windowHandle = driver.getWindowHandle();\n\t\tSystem.out.println(\"parent window is: \"+windowHandle);\n\t\tSet<String> windowHandles = driver.getWindowHandles();\n\t\tSystem.out.println(\"child window is \"+windowHandles);\n\t\tfor(String eachWindowId:windowHandles)\n\t\t{\n\t\t\tif(!windowHandle.equals(eachWindowId))\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(eachWindowId);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t}", "public Packet waitForQueueData(String name) throws InterruptedException {\n\t\ttry {\n\t\t\treturn namedQueues.get(name).take();\n\t\t} catch (NullPointerException e) {\n\t\t\taddNamedQueue(name);\n\t\t\treturn namedQueues.get(name).take();\n\t\t}\n\t}", "public void switchToWindow(int index) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tList<String> allhandles = new ArrayList<String>(allWindows);\r\n\t\t\tString windowIndex = allhandles.get(index);\r\n\t\t\tgetter().switchTo().window(windowIndex);\r\n\t\t\tSystem.out.println(\"The Window With index: \"+index+\r\n\t\t\t\t\t\" switched successfully\");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"The Window With index: \"+index+ \" not found\");\t\r\n\t\t}\t\r\n\t}", "public Frame waitFrame(ComponentChooser ch, int index)\n\tthrows InterruptedException {\n\tsetTimeouts(timeouts);\n\treturn((Frame)waitWindow(new FrameSubChooser(ch), index));\n }", "public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive, int index)\n\tthrows InterruptedException {\n\treturn(waitFrame(new FrameByTitleChooser(title, compareExactly, compareCaseSensitive), index));\n }", "public void openTopic(String name) {\n\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//h3[text()='\" + name + \"']\")));\n\t\tscroller.scrollTo(\".//h3[text()='\" + name + \"']\");\n\t\tdriver.findElement(By.xpath(\".//h3[text()='\" + name + \"']\")).click();\n\t}", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }", "public synchronized void wish(String name) {\n\t\tfor (int i=0; i<3; i++) {\n\t\t\tSystem.out.print(\"Good Morning: \");\n\t\t\ttry {\n\t\t\t\tThread.sleep(2000);\n\t\t\t}\n\t\t\tcatch (InterruptedException ie) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(name);\n\t\t}\n\t}", "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "int waitFor(String variable, int count);", "public boolean wait(final String title, final Integer timeout) {\n\t\treturn wait(title, null, timeout);\n\t}", "private int waitUntilReady()\r\n {\r\n int rc = 0;\r\n // If a stock Item is in the Table, We do not want to start\r\n // The Lookup, if the name of the stock has not been identified.\r\n // here we will wait just a couple a second at a time.\r\n // until, the user has entered the name of the stock.\r\n // MAXWAIT is 20 minutes, since we are 1 second loops.\r\n // 60 loops is 1 minute and 20 of those is 20 minutes\r\n final int MAXWAIT = 60 * 20;\r\n int counter = 0;\r\n do\r\n {\r\n try\r\n {\r\n Thread.currentThread().sleep(ONE_SECOND);\r\n }\r\n catch (InterruptedException exc)\r\n {\r\n // Do Nothing - Try again\r\n }\r\n if (counter++ > MAXWAIT)\r\n { // Abort the Lookup for historic data\r\n this.cancel();\r\n return -1;\r\n }\r\n }\r\n while (\"\".equals(sd.getSymbol().getDataSz().trim()));\r\n\r\n return 0;\r\n }", "void letterWait(String path) {\n WebDriverWait newsWait = new WebDriverWait(chrome, 3);\n try {\n newsWait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(path)));\n chrome.findElement(By.xpath(path)).click();\n\n } catch (Throwable e) {\n// e.printStackTrace();\n }\n }", "public void switchToWindow(String handle)\n\t{\n\t\ttry {\n\t\t\tdriver.switchTo().window(handle);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to window\");\n\n\t\t}\n\t}", "public static void switchTo_Window_with_title(String Exp_title)\r\n\t{\n\t\tSet<String> All_Window_IDS=driver.getWindowHandles();\r\n\t\t\r\n\t\t//Applying foreach window to iterator for all windows\r\n\t\tfor (String EachWindowID : All_Window_IDS) \r\n\t\t{\r\n\t\t\tdriver.switchTo().window(EachWindowID);\r\n\t\t\t//After switch get window title\r\n\t\t\tString Runtime_Title=driver.getTitle();\r\n\t\t\tSystem.out.println(Runtime_Title);\r\n\t\t\t\r\n\t\t\tif(Runtime_Title.contains(Exp_title))\r\n\t\t\t{\r\n\t\t\t\tbreak; //At what window it break , It keep browser controls at same window\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void askSpawn() throws RemoteException{\n respawnPopUp = new RespawnPopUp();\n respawnPopUp.setSenderRemoteController(senderRemoteController);\n respawnPopUp.setMatch(match);\n\n Platform.runLater(\n ()-> {\n try{\n respawnPopUp.start(new Stage());\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n );\n }", "public void switchToLastWindow() {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t}\n\t}", "public static void awaitFor (By by, int timer)\n\t{\n\t\tawait ().\n\t\t\t\tatMost (timer, SECONDS).\n\t\t\t\tpollDelay (1, SECONDS).\n\t\t\t\tpollInterval (1, SECONDS).\n\t\t\t\tignoreExceptions ().\n\t\t\t\tuntilAsserted (() -> assertThat (getDriver ().findElement (by).isDisplayed ()).\n\t\t\t\t\t\tas (\"Wait for Web Element to be displayed.\").\n\t\t\t\t\t\tisEqualTo (true));\n\t}", "public void showResultsWindow() {\r\n \t\tshowResults.setSelected(true);\r\n \t\tshowResultsWindow(true);\r\n \t}", "public JPanel getWindow(String key)\r\n\t{\r\n\t\treturn aniWin.getWindow(key);\r\n\t}", "public void switchToChildWindow(String parent) throws Exception {\r\n\t\t// get ra tat ca cac tab dang co\r\n\t\tSet<String> allWindows = driver.getWindowHandles();\r\n\t\tThread.sleep(3000);\r\n\t\tfor (String runWindow : allWindows) {\r\n\t\t\tif (!runWindow.equals(parent)) {\r\n\t\t\t\tdriver.switchTo().window(runWindow);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Given(\"^User launches the application$\")\r\npublic void user_launches_the_application() throws Throwable {\r\n\tdriver.get(prop.getProperty(\"url\"));\r\n WebDriverWait wait = new WebDriverWait(driver,60);\r\n\t wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(prop.getProperty(\"Popup\"))));\r\n\t driver.findElement(By.xpath(prop.getProperty(\"Popup\"))).click();Thread.sleep(5000);\r\n}", "public String waitForElementVisibility(String object, String data) {\n logger.debug(\"Waiting for an element to be visible\");\n int start = 0;\n int time = (int) Double.parseDouble(data);\n try {\n while (true) {\n if(start!=time)\n {\n if (driver.findElements(By.xpath(OR.getProperty(object))).size() == 0) {\n Thread.sleep(1000L);\n start++;\n }\n else {\n break; }\n }else {\n break; } \n }\n } catch (Exception e) {\n return Constants.KEYWORD_FAIL + \"Unable to close browser. Check if its open\" + e.getMessage();\n }\n return Constants.KEYWORD_PASS;\n }", "public void switchToParentWindow() throws InterruptedException {\n\t\tSet<String>windowid=driver.getWindowHandles();\n\t\tIterator<String>itr=windowid.iterator();\n\t\tString mainwindow=itr.next();\n\t\tString childwindow=itr.next();\n\t\tdriver.close();\n\t\tdriver.switchTo().window(mainwindow);\n\t\tdriver.switchTo().defaultContent();\n\t\tThread.sleep(5000);\n\t\t\n\t}", "private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }", "private String getWindowName(com.sun.star.awt.XWindow aWindow)\n throws com.sun.star.uno.Exception\n {\n if (aWindow == null)\n new com.sun.star.lang.IllegalArgumentException(\n \"Method external_event requires that a window is passed as argument\",\n this, (short) -1);\n\n // We need to get the control model of the window. Therefore the first step is\n // to query for it.\n XControl xControlDlg = (XControl) UnoRuntime.queryInterface(\n XControl.class, aWindow);\n\n if (xControlDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XControl from XWindow in method external_event.\");\n // Now get model\n XControlModel xModelDlg = xControlDlg.getModel();\n\n if (xModelDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XControlModel from XWindow in method external_event.\", this);\n \n // The model itself does not provide any information except that its\n // implementation supports XPropertySet which is used to access the data.\n XPropertySet xPropDlg = (XPropertySet) UnoRuntime.queryInterface(\n XPropertySet.class, xModelDlg);\n if (xPropDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XPropertySet from window in method external_event.\", this);\n\n // Get the \"Name\" property of the window\n Object aWindowName = xPropDlg.getPropertyValue(\"Name\");\n\n // Get the string from the returned com.sun.star.uno.Any\n String sName = null;\n try\n {\n sName = AnyConverter.toString(aWindowName);\n }\n catch (com.sun.star.lang.IllegalArgumentException ex)\n {\n ex.printStackTrace();\n throw new com.sun.star.uno.Exception(\n \"Name - property of window is not a string.\", this);\n }\n\n // Eventually we can check if we this handler can \"handle\" this options page.\n // The class has a member m_arWindowNames which contains all names of windows\n // for which it is intended\n for (int i = 0; i < SupportedWindowNames.length; i++)\n {\n if (SupportedWindowNames[i].equals(sName))\n {\n return sName;\n }\n }\n return null;\n }", "private boolean sendAndWait(Message m){\r\n\t\tif (!sendMessage(m))\r\n\t\t\treturn false;\r\n\t\t// Wait for the reply\r\n\t\twhile(!messageList.containsKey(m.get(\"id\"))) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t}\r\n\r\n\t\t\t// Quit if the game window has closed\r\n\t\t\tif (!GameState.getRunningState()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public void verifyVINCERegistrationPageInNewWindow() {\n\t\tAssert.assertTrue(notAUserText.isDisplayed());\n\t\t_normalWait(3000);\n\t}", "public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}", "public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive)\n\tthrows InterruptedException {\n\treturn(waitFrame(title, compareExactly, compareCaseSensitive, 0));\n }", "public void afterSwitchToWindow(String windowName, WebDriver driver) {\n\t\t\r\n\t}", "protected void openResultFrame(String name) {\n StringBuffer buffer = m_history.getNamedBuffer(name);\n JTabbedPane tabbedPane = m_framedOutputMap.get(name);\n\n if (buffer != null && tabbedPane == null) {\n JTextArea textA = new JTextArea(20, 50);\n textA.setEditable(false);\n textA.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n textA.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n textA.setText(buffer.toString());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Output\", new JScrollPane(textA));\n updateComponentTabs(name, tabbedPane);\n m_framedOutputMap.put(name, tabbedPane);\n \n final JFrame jf = new JFrame(name);\n jf.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n m_framedOutputMap.remove(jf.getTitle());\n jf.dispose();\n }\n });\n jf.setLayout(new BorderLayout());\n jf.add(tabbedPane, BorderLayout.CENTER);\n jf.pack();\n jf.setSize(550, 400);\n jf.setVisible(true);\n } \n }", "public boolean checkWaitingForWindows() {\n this.mHaveBootMsg = false;\n this.mHaveApp = false;\n this.mHaveWallpaper = false;\n this.mHaveKeyguard = true;\n if (getWindow(new Predicate() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$BgTlvHbVclnASzMrvERWxyMVA */\n\n @Override // java.util.function.Predicate\n public final boolean test(Object obj) {\n return DisplayContent.this.lambda$checkWaitingForWindows$20$DisplayContent((WindowState) obj);\n }\n }) != null) {\n return true;\n }\n boolean wallpaperEnabled = this.mWmService.mContext.getResources().getBoolean(17891452) && this.mWmService.mContext.getResources().getBoolean(17891393) && !this.mWmService.mOnlyCore;\n if (WindowManagerDebugConfig.DEBUG_SCREEN_ON) {\n Slog.i(TAG, \"******** booted=\" + this.mWmService.mSystemBooted + \" msg=\" + this.mWmService.mShowingBootMessages + \" haveBoot=\" + this.mHaveBootMsg + \" haveApp=\" + this.mHaveApp + \" haveWall=\" + this.mHaveWallpaper + \" wallEnabled=\" + wallpaperEnabled + \" haveKeyguard=\" + this.mHaveKeyguard);\n }\n if (!this.mWmService.mSystemBooted && !this.mHaveBootMsg) {\n return true;\n }\n if (!this.mWmService.mSystemBooted || ((this.mHaveApp || this.mHaveKeyguard) && (!wallpaperEnabled || this.mHaveWallpaper))) {\n return false;\n }\n return true;\n }", "public boolean Wait(String name, int type, TOSListener stub, \r\n\t\t\t\t\t\tString threadName, int procid) \r\n\t\tthrows RemoteException, SyncException\r\n\t{\r\n\t\tSyncRecord rec;\r\n\t\ttry {\r\n\t\t\trec = findObject(name,type);\r\n\t\t} catch (NotFoundException e) {\r\n\t\t\tthrow new SyncException(\"No such sync object\");\r\n\t\t}\r\n\t\t// Increment count for semaphores and mutexes\r\n\t\ttry {\r\n\t\t\tif (rec.max!=0)\r\n\t\t\t{\r\n\t\t\t\trec.count++;\r\n\t\t\t\tif (rec.count<=rec.max)\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tString id = String.valueOf(procid)+threadName;\r\n\t\t\trec.addElement(id);\r\n\t\t\tsynchronized (threadTable) { threadTable.put(id,stub); }\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (e instanceof SyncException)\r\n\t\t\t\tthrow (SyncException)e;\r\n\t\t\tDebug.ErrorMessage(\"Wait\",e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void run() {\n JOptionPane pane = new JOptionPane(\"<html>\"+\n \"<font color=black>\"+\n \"Waiting to load UI Components for \"+\n \"the </font><br>\"+\n \"<font color=blue>\"+svcName+\"</font>\"+\n \"<font color=black> service running \"+\n \"on<br>\"+\n \"machine: <font color=blue>\"+\n hostName+\n \"</font><font color=black> address: \"+\n \"</font><font color=blue>\"+\n hostAddress+\"</font><br>\"+\n \"<font color=black>\"+\n \"The timeframe is longer then \"+\n \"expected,<br>\"+\n \"verify network connections.\"+\n \"</font></html>\",\n JOptionPane.WARNING_MESSAGE);\n dialog = pane.createDialog(null, \"Network Delay\");\n dialog.setModal(false);\n dialog.setVisible(true);\n }", "@Given(\"^User enters the URL$\")\r\npublic void user_enters_the_URL() throws Throwable {\r\n\tdriver.get(prop.getProperty(\"url\"));Thread.sleep(4000);\r\n WebDriverWait wait = new WebDriverWait(driver,60);\r\n\t wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(prop.getProperty(\"Popup\"))));\r\n\t driver.findElement(By.xpath(prop.getProperty(\"Popup\"))).click();Thread.sleep(5000);\r\n}", "public static void waitFor(String title, int timer, WebDriver driver) {\n\t\tWebDriverWait exists = new WebDriverWait(driver, timer);\n\t\texists.until(ExpectedConditions.refreshed(ExpectedConditions.titleContains(title)));\n\t}", "public boolean waitActive(final WinRefEx hWnd, final Integer timeout) {\n\t\treturn (hWnd == null) ? false : waitActive(TitleBuilder.byHandle(hWnd), timeout);\n\t}", "public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }", "public void createNewWindow(String winType) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new RuntimeException(\"createNewWindow: called on non-event thread\");\n }\n\n final Parameters params = (Parameters)parameters.clone();\n if (!windowName.equals(\"\")) params.setWindowName(windowName);\n if (!winType.equals(\"\")) params.setWindowName(winType);\n\n manager.showDisplayUI(params);\n }" ]
[ "0.83102995", "0.6586516", "0.6151005", "0.61149603", "0.5848624", "0.5801215", "0.56955117", "0.5678787", "0.5659288", "0.5650635", "0.56177", "0.55916715", "0.5567714", "0.5477484", "0.5449996", "0.5443462", "0.5400526", "0.53648704", "0.5359121", "0.5344511", "0.53423166", "0.5336786", "0.5334602", "0.5313362", "0.5309542", "0.52916485", "0.5263063", "0.5206661", "0.5198793", "0.5191778", "0.51738805", "0.5171669", "0.51639545", "0.51634127", "0.51576823", "0.51565444", "0.5143676", "0.51280487", "0.51181465", "0.50801843", "0.5073762", "0.50730187", "0.50416875", "0.50195473", "0.5019234", "0.50063807", "0.5001705", "0.499914", "0.49878037", "0.49753734", "0.49723357", "0.49635714", "0.49610072", "0.49606782", "0.4952801", "0.49198475", "0.4919102", "0.49160543", "0.49128327", "0.4907106", "0.49042514", "0.48994604", "0.4884287", "0.4877328", "0.48645535", "0.48635277", "0.48600066", "0.48490277", "0.4831097", "0.48254278", "0.48197883", "0.4814016", "0.48025104", "0.4789842", "0.47886214", "0.47877476", "0.4780962", "0.47796118", "0.4774987", "0.47737807", "0.47714314", "0.47677985", "0.47666335", "0.4765915", "0.47609723", "0.47515124", "0.47450998", "0.47358438", "0.47347644", "0.47302744", "0.47240058", "0.47205433", "0.47187403", "0.471376", "0.47125873", "0.46774536", "0.4677432", "0.46728557", "0.46719718", "0.4671659" ]
0.65309966
2
Waits for a window with the given name.
public static Window waitForWindowByName(String name) { int time = 0; int timeout = DEFAULT_WAIT_TIMEOUT; while (time <= timeout) { Set<Window> allWindows = getAllWindows(); for (Window window : allWindows) { String windowName = window.getName(); if (name.equals(windowName) && window.isShowing()) { return window; } time += sleep(DEFAULT_WAIT_DELAY); } } throw new AssertionFailedError("Timed-out waiting for window with name '" + name + "'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Window waitForWindow(String title) {\n\t\tWindow window = getWindow(title);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindow(title);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public static Window waitForWindowByTitleContaining(String text) {\n\t\tWindow window = getWindowByTitleContaining(null, text);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindowByTitleContaining(null, text);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\n\t\tthrow new AssertionFailedError(\n\t\t\t\"Timed-out waiting for window containg title '\" + text + \"'\");\n\t}", "public static JDialog waitForJDialog(String title) {\n\n\t\tint totalTime = 0;\n\t\twhile (totalTime <= DEFAULT_WINDOW_TIMEOUT) {\n\n\t\t\tSet<Window> winList = getAllWindows();\n\t\t\tIterator<Window> iter = winList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tWindow w = iter.next();\n\t\t\t\tif ((w instanceof JDialog) && w.isShowing()) {\n\t\t\t\t\tString windowTitle = getTitleForWindow(w);\n\t\t\t\t\tif (title.equals(windowTitle)) {\n\t\t\t\t\t\treturn (JDialog) w;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public Locomotive waitForWindow(String regex) {\n Set<String> windows = getDriver().getWindowHandles();\n for (String window : windows) {\n try {\n // Wait before switching tabs so that the new tab can load; else it loads a blank page\n try {\n Thread.sleep(100);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n getDriver().switchTo().window(window);\n\n p = Pattern.compile(regex);\n m = p.matcher(getDriver().getCurrentUrl());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n } else {\n // try for title\n m = p.matcher(getDriver().getTitle());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n }\n }\n } catch (NoSuchWindowException e) {\n if (attempts <= configuration.getRetries()) {\n attempts++;\n\n try {\n Thread.sleep(1000);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n return waitForWindow(regex);\n } else {\n Assertions.fail(\"Window with url|title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\", e);\n }\n }\n }\n\n // when we reach this point, that means no window exists with that title..\n if (attempts == configuration.getRetries()) {\n Assertions.fail(\"Window with title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\");\n return this;\n } else {\n Logger.info(\"#waitForWindow() : Window doesn't exist yet. [%s] Trying again. %s/%s\", regex, (attempts + 1), configuration.getRetries());\n attempts++;\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n Logger.error(e);\n }\n return waitForWindow(regex);\n }\n }", "public window get(String sname) {\n return getWindow(sname);\n }", "public window getWindow(String sname) {\n return (window) windows.getObject(sname);\n }", "public void chooseWindowSceneLoaded(String username) throws IOException{\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n out.println(username + \" chooseWindowOk\");\n out.close();\n socket.close();\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "private static boolean switchWindow(WebDriver webDriver, String windowTitle) throws Exception {\n boolean found = false;\n long start = System.currentTimeMillis();\n while (!found) {\n for (String name : webDriver.getWindowHandles()) {\n try {\n webDriver.switchTo().window(name);\n if (webDriver.getTitle().equals(windowTitle)) {\n found = true;\n break;\n }\n } catch (NoSuchWindowException wexp) {\n // some windows may get closed during Runtime startup\n // so may get this exception depending on timing\n System.out.println(\"Ignoring NoSuchWindowException \" + name);\n }\n }\n Thread.sleep(1000);\n if ((System.currentTimeMillis() - start) > 10*1000) {\n break;\n }\n }\n\n if (!found) {\n System.out.println(windowTitle + \" not found\");\n }\n return found;\n }", "public synchronized void goToWindow(String key)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep(1000);\r\n\t\t\taniWin.goToWindow(key);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void ShowWaitDialog(String title, String message);", "public void switchTotab(String showName) {\n\t\tArrayList<String> tabs = new ArrayList<String>(_eventFiringDriver.getWindowHandles());\n\t\tfor (String tab : tabs) {\n\t\t\t_eventFiringDriver.switchTo().window(tab);\n\t\t\tif (_eventFiringDriver.getTitle().contains(showName))\n\t\t\t\tbreak;\n\t\t}\n\t\tsleep(5);\n\t}", "public void handleWindow() throws InterruptedException {\n\t\tSet<String> windHandles = GlobalVars.Web_Driver.getWindowHandles();\n\t\tSystem.out.println(\"Total window handles are:--\" + windHandles);\n\t\tparentwindow = windHandles.iterator().next();\n\t\tSystem.out.println(\"Parent window handles is:-\" + parentwindow);\n\n\t\tList<String> list = new ArrayList<String>(windHandles);\n\t\twaitForElement(3);\n\t\tGlobalVars.Web_Driver.switchTo().window((list.get(list.size() - 1)));\n\t\tSystem.out.println(\"current window title is:-\" + GlobalVars.Web_Driver.getTitle());\n\t\treturn;\n\t}", "public void waitForAllWindowsDrawn() {\n forAllWindows((Consumer<WindowState>) new Consumer(this.mWmService.mPolicy) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$oqhmXZMcpcvgI50swQTzosAcjac */\n private final /* synthetic */ WindowManagerPolicy f$1;\n\n {\n this.f$1 = r2;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$waitForAllWindowsDrawn$24$DisplayContent(this.f$1, (WindowState) obj);\n }\n }, true);\n }", "@Deprecated\n\tpublic static Window waitForWindow(String title, int timeoutMS) {\n\t\treturn waitForWindow(title);\n\t}", "public void waitModalWindow(By waitForElement) {\n\t\tBaseWaitingWrapper.waitForElementToBeVisible(waitForElement, driver);\r\n\t\t\r\n\r\n\t}", "public boolean wait(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd));\n\t}", "public boolean wait(final WinRefEx hWnd, final Integer timeout) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd), timeout);\n\t}", "public void waitForNumberOfWindowsToBe(int numberOfWindows){\r\n\t\twait.until(ExpectedConditions.numberOfWindowsToBe(numberOfWindows));\r\n\t}", "@Test\n public void testifyName() throws InterruptedException {\n onView(withId(R.id.name)).check(matches(isDisplayed()));\n }", "public void waitFileDisplayed(final String fileName) {\n waitState(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return checkFileDisplayed(fileName);\n }\n\n @Override\n public String getDescription() {\n return \"\\\"\" + fileName + \"\\\"file to be displayed\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.waitFileDisplayed.ComponentChooser{description = \" + getDescription() + '}';\n }\n });\n }", "public void waitForFrameToBeReadyAndSwitchToIt(String frameName)\n {\n new WebDriverWait(driver, DEFAULT_TIMEOUT, DEFAULT_SLEEP_IN_MILLIS)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameName));\n }", "public ITWindow ItemByName(String name) {\n\t\tDispatch item = Dispatch.call(object, \"ItemByName\", name).toDispatch();\n\t\treturn new ITWindow(item);\n\t}", "private Alert showWaitWindow(Window window) {\n // modify alert pane\n //Alert waitAlert = new Alert(Alert.AlertType.NONE);\n waitAlert.setTitle(null);\n waitAlert.setHeaderText(null);\n waitAlert.setContentText(\" Please wait while data is evaluated ...\");\n waitAlert.getDialogPane().setBackground(new Background(new BackgroundFill(Color.DARKGRAY, null, null)));\n waitAlert.getDialogPane().setBorder(new Border(new BorderStroke(Color.BLACK,\n BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n waitAlert.getDialogPane().setMaxWidth(250);\n waitAlert.getDialogPane().setMaxHeight(50);\n\n // center on window below (statistics window)\n final double windowCenterX = window.getX() + (window.getWidth() / 2);\n final double windowCenterY = window.getY() + (window.getHeight() / 2);\n // verify\n if (!Double.isNaN(windowCenterX)) {\n // set a temporary position\n waitAlert.setX(windowCenterX);\n waitAlert.setY(windowCenterY);\n\n // since the dialog doesn't have a width or height till it's shown, calculate its position after it's shown\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n waitAlert.setX(windowCenterX - (waitAlert.getWidth() / 2));\n waitAlert.setY(windowCenterY - (waitAlert.getHeight() / 2));\n }\n });\n }\n waitAlert.show();\n return waitAlert;\n }", "public abstract int waitForObject (String appMapName, String windowName, String compName, long secTimeout)\n\t\t\t\t\t\t\t\t\t\t throws SAFSObjectNotFoundException, SAFSException;", "public static void switchWindow(String windowName, WebDriver driver)\n\t{\n\t\tdriver.switchTo().window(windowName);\n\t}", "private static void findWindow() {\n\t\tCoInitialize();\n\t\t\n\t\thandle = user32.FindWindowA(\"WMPlayerApp\", \"Windows Media Player\");\n\t}", "public void switchToFrame(String name){\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,60);\n\t\t\twait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(name));\n\t\t\tLOGGER.info(\"Step : Switched to the frame with name\"+name+\" :Pass\");\n\t\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switched to Frame frame with name\"+name+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t\t}\n\t\t}", "void waitStartGameString();", "public boolean wait(final String title) {\n\t\treturn wait(title, (String) null);\n\t}", "public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }", "public void otherWin\n (String name);", "public Packet waitForQueueData(String name) throws InterruptedException {\n\t\ttry {\n\t\t\treturn namedQueues.get(name).take();\n\t\t} catch (NullPointerException e) {\n\t\t\taddNamedQueue(name);\n\t\t\treturn namedQueues.get(name).take();\n\t\t}\n\t}", "public boolean wait(final String title, final String text,\n\t\t\t\t\t\tfinal Integer timeout) {\n\t\treturn AutoItXImpl.autoItX.AU3_WinWait(AutoItUtils.stringToWString(AutoItUtils.defaultString(title)),\n\t\t\t\tAutoItUtils.stringToWString(text), timeout) != AutoItX.FAILED_RETURN_VALUE;\n\t}", "public void switchToNewlyOpenedWindow(){\n\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tdriver.getWindowHandles();\n\t\t\tfor(String handle : driver.getWindowHandles())\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t}\n\t\t\tLOGGER.info(\"Step : Switching to New Window : Pass\");\n\t\t} catch (InterruptedException e) {\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to newly opened window\");\n\t\t}\n\t}", "@Test\n\tpublic void switchWindows() throws InterruptedException{\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.findElement(By.xpath(\"(//input[@class='gLFyf gsfi'])[1]\")).sendKeys(\"cricbuzz\");\n\t\tdriver.findElement(By.xpath(\"(//input[@aria-label='Google Search'])[1]\")).click();;\n\t\tThread.sleep(3000);\n\n}", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "NativeWindow getWindowById(long id);", "public void switchToWindow(String title) {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t\tSystem.out.println(\"window title: \" + getDriver().getTitle());\n\t\t\tif (getDriver().getTitle().contains(title))\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void SwitchToWindow(String handle)\n\t{\n\t}", "public WebElement waitForDisplay(final By by)\n {\n return waitForDisplay(by, DEFAULT_TIMEOUT);\n }", "public void prePositionWaitAlert(Window window) {\n showWaitWindow(window);\n waitAlert.setResult(ButtonType.OK);\n waitAlert.close();\n }", "public void onWindowFreezeTimeout() {\n Slog.w(TAG, \"Window freeze timeout expired.\");\n this.mWmService.mWindowsFreezingScreen = 2;\n forAllWindows((Consumer<WindowState>) new Consumer() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$2HHBX1R6lnY5GedkE9LUBwsCPoE */\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$onWindowFreezeTimeout$23$DisplayContent((WindowState) obj);\n }\n }, true);\n this.mWmService.mWindowPlacerLocked.performSurfacePlacement();\n }", "public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }", "public WebElement waitForDisplay(final WebElement webelement)\n {\n return waitForDisplay(webelement, DEFAULT_TIMEOUT);\n }", "public void switchToWindow(String title) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tfor (String eachWindow : allWindows) {\r\n\t\t\t\tgetter().switchTo().window(eachWindow);\r\n\t\t\t\tif (getter().getTitle().equals(title)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"The Window Title: \"+title+\r\n\t\t\t\t\t\"is switched \");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"The Window Title: \"+title+\r\n\t\t\t\t\t\" not found\");\r\n\t\t}\r\n\t}", "public boolean wait(final String title, final String text) {\n\t\treturn wait(title, text, null);\n\t}", "public void testWindowSystem() {\n final ProjectsTabOperator projectsOper = ProjectsTabOperator.invoke();\n final FavoritesOperator favoritesOper = FavoritesOperator.invoke();\n\n // test attaching\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.AS_LAST_TAB);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.TOP);\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.RIGHT);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.AS_LAST_TAB);\n // wait until TopComponent is in new location and is showing\n final TopComponent projectsTc = (TopComponent) projectsOper.getSource();\n final TopComponent favoritesTc = (TopComponent) favoritesOper.getSource();\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object tc) {\n // run in dispatch thread\n Mode mode1 = (Mode) projectsOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(projectsTc);\n }\n });\n Mode mode2 = (Mode) favoritesOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(favoritesTc);\n }\n });\n return (mode1 == mode2 && favoritesTc.isShowing()) ? Boolean.TRUE : null;\n }\n\n @Override\n public String getDescription() {\n return (\"Favorites TopComponent is next to Projects TopComponent.\"); // NOI18N\n }\n }).waitAction(null);\n } catch (InterruptedException e) {\n throw new JemmyException(\"Interrupted.\", e); // NOI18N\n }\n favoritesOper.close();\n\n // test maximize/restore\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass2Node = new JavaNode(sample1Node, SAMPLE2_FILE_NAME);\n sampleClass2Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE2_FILE_NAME);\n eo.maximize();\n eo.restore();\n EditorOperator.closeDiscardAll();\n }", "public synchronized void wish(String name) {\n\t\tfor (int i=0; i<3; i++) {\n\t\t\tSystem.out.print(\"Good Morning: \");\n\t\t\ttry {\n\t\t\t\tThread.sleep(2000);\n\t\t\t}\n\t\t\tcatch (InterruptedException ie) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(name);\n\t\t}\n\t}", "public void switchToWindow(String windowTitle) {\n Set<String> windows = driver.get().getWindowHandles();\n\n for (String window : windows) {\n driver.get().switchTo().window(window);\n if (driver.get().getTitle().contains(windowTitle)) {\n LOGGER.log(Level.FINEST,\n \"Switching to window: \" + driver.get().getTitle());\n return;\n } else {\n LOGGER.log(Level.FINEST,\n \"No match for window: \" + driver.get().getTitle());\n }\n }\n }", "public void selectWindow(int index) {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(index));\n\t}", "public void check_openfile_window_Presence() throws InterruptedException {\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tWebElement openfile_window = driver.findElementByName(\"How do you want to open this file?\");\r\n\t\tThread.sleep(3000);\r\n\t\t// return IsElementVisibleStatus(openfile_window);\r\n\t\tWebElement openfile_Adobe = driver.findElementByName(\"Adobe Reader\");\r\n\t\tclickOn(openfile_Adobe);\r\n\t\tWebElement ConfirmButton_ok = driver.findElementByAccessibilityId(\"ConfirmButton\");\r\n\t\tclickOn(ConfirmButton_ok);\r\n\t\tdriver.switchTo().activeElement();\r\n\t}", "public void run()\n {\n\n int sleepTime = 10; // milliseconds (tune this value accordingly)\n\n int totalTimeShown = 0;\n while(keepGoing)\n {\n // Force this window to the front.\n\n toFront();\n\n // Sleep for \"sleepTime\"\n\n try\n {\n Thread.sleep(sleepTime);\n }\n catch(Exception e)\n {}\n\n // Increment the total time the window has been shown\n // and exit the loop if the desired time has elapsed.\n\n totalTimeShown += sleepTime;\n if(totalTimeShown >= milliseconds)\n break;\n }\n\n // Use SwingUtilities.invokeAndWait to queue the disposeRunner\n // object on the event dispatch thread.\n\n try\n {\n SwingUtilities.invokeAndWait(disposeRunner);\n }\n catch(Exception e)\n {}\n }", "public void openTopic(String name) {\n\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//h3[text()='\" + name + \"']\")));\n\t\tscroller.scrollTo(\".//h3[text()='\" + name + \"']\");\n\t\tdriver.findElement(By.xpath(\".//h3[text()='\" + name + \"']\")).click();\n\t}", "public void WaitForExpectedPageToDisplay(String expectedTitle, int timeInSecs) {\n\t\tString actualTitle = getPageTitle();\n\t\tint count = 0;\n\t\t\n\t\twhile (!actualTitle.equals(expectedTitle) && count < timeInSecs) {\n\t\t\tactualTitle = driver.getTitle();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcount++;\n\t\t}\n\t}", "public String handleWindows(String object, String data) throws InterruptedException {\n\t\tlogger.debug(\"Handling the windows....\");\n\t\ttry {\n\t\t\tString mainwindow = \"\";\n\t\t\tString newwindow = \"\";\n\t\t\tSet<String> windowids = driver.getWindowHandles();\n\t\t\tIterator<String> ite = windowids.iterator();\n\t\t\tmainwindow = ite.next();\n\t\t\tnewwindow = ite.next();\n\t\t\tdriver.switchTo().window(newwindow);\n\t\t\t//Thread.sleep(2000);\n\t\t\tdriver.close();\n\t\t\tdriver.switchTo().window(mainwindow);\n\t\t\treturn Constants.KEYWORD_PASS;\n\t\t} catch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\n\t}", "private int waitUntilReady()\r\n {\r\n int rc = 0;\r\n // If a stock Item is in the Table, We do not want to start\r\n // The Lookup, if the name of the stock has not been identified.\r\n // here we will wait just a couple a second at a time.\r\n // until, the user has entered the name of the stock.\r\n // MAXWAIT is 20 minutes, since we are 1 second loops.\r\n // 60 loops is 1 minute and 20 of those is 20 minutes\r\n final int MAXWAIT = 60 * 20;\r\n int counter = 0;\r\n do\r\n {\r\n try\r\n {\r\n Thread.currentThread().sleep(ONE_SECOND);\r\n }\r\n catch (InterruptedException exc)\r\n {\r\n // Do Nothing - Try again\r\n }\r\n if (counter++ > MAXWAIT)\r\n { // Abort the Lookup for historic data\r\n this.cancel();\r\n return -1;\r\n }\r\n }\r\n while (\"\".equals(sd.getSymbol().getDataSz().trim()));\r\n\r\n return 0;\r\n }", "public void switchToWindow(int index) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tList<String> allhandles = new ArrayList<String>(allWindows);\r\n\t\t\tString windowIndex = allhandles.get(index);\r\n\t\t\tgetter().switchTo().window(windowIndex);\r\n\t\t\tSystem.out.println(\"The Window With index: \"+index+\r\n\t\t\t\t\t\" switched successfully\");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"The Window With index: \"+index+ \" not found\");\t\r\n\t\t}\t\r\n\t}", "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "public static void awaitFor (By by, int timer)\n\t{\n\t\tawait ().\n\t\t\t\tatMost (timer, SECONDS).\n\t\t\t\tpollDelay (1, SECONDS).\n\t\t\t\tpollInterval (1, SECONDS).\n\t\t\t\tignoreExceptions ().\n\t\t\t\tuntilAsserted (() -> assertThat (getDriver ().findElement (by).isDisplayed ()).\n\t\t\t\t\t\tas (\"Wait for Web Element to be displayed.\").\n\t\t\t\t\t\tisEqualTo (true));\n\t}", "private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "public boolean wait(final String title, final Integer timeout) {\n\t\treturn wait(title, null, timeout);\n\t}", "public void Rooms_and_Guests() \r\n\t{\r\n\t\tExplicitWait(roomsandguests);\r\n\t\tif (roomsandguests.isDisplayed()) \r\n\t\t{\r\n\t\t\troomsandguests.click();\r\n\t\t\t//System.out.println(\"roomsandguests popup opened successfully\");\r\n\t\t\tlogger.info(\"roomsandguests popup opened successfully\");\r\n\t\t\ttest.log(Status.PASS, \"roomsandguests popup opened successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"roomsandguests popup not found\");\r\n\t\t\tlogger.error(\"roomsandguests popup not found\");\r\n\t\t\ttest.log(Status.FAIL, \"roomsandguests popup not found\");\r\n\r\n\t\t}\r\n\t}", "public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive, int index)\n\tthrows InterruptedException {\n\treturn(waitFrame(new FrameByTitleChooser(title, compareExactly, compareCaseSensitive), index));\n }", "private boolean sendAndWait(Message m){\r\n\t\tif (!sendMessage(m))\r\n\t\t\treturn false;\r\n\t\t// Wait for the reply\r\n\t\twhile(!messageList.containsKey(m.get(\"id\"))) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t}\r\n\r\n\t\t\t// Quit if the game window has closed\r\n\t\t\tif (!GameState.getRunningState()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean checkWaitingForWindows() {\n this.mHaveBootMsg = false;\n this.mHaveApp = false;\n this.mHaveWallpaper = false;\n this.mHaveKeyguard = true;\n if (getWindow(new Predicate() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$BgTlvHbVclnASzMrvERWxyMVA */\n\n @Override // java.util.function.Predicate\n public final boolean test(Object obj) {\n return DisplayContent.this.lambda$checkWaitingForWindows$20$DisplayContent((WindowState) obj);\n }\n }) != null) {\n return true;\n }\n boolean wallpaperEnabled = this.mWmService.mContext.getResources().getBoolean(17891452) && this.mWmService.mContext.getResources().getBoolean(17891393) && !this.mWmService.mOnlyCore;\n if (WindowManagerDebugConfig.DEBUG_SCREEN_ON) {\n Slog.i(TAG, \"******** booted=\" + this.mWmService.mSystemBooted + \" msg=\" + this.mWmService.mShowingBootMessages + \" haveBoot=\" + this.mHaveBootMsg + \" haveApp=\" + this.mHaveApp + \" haveWall=\" + this.mHaveWallpaper + \" wallEnabled=\" + wallpaperEnabled + \" haveKeyguard=\" + this.mHaveKeyguard);\n }\n if (!this.mWmService.mSystemBooted && !this.mHaveBootMsg) {\n return true;\n }\n if (!this.mWmService.mSystemBooted || ((this.mHaveApp || this.mHaveKeyguard) && (!wallpaperEnabled || this.mHaveWallpaper))) {\n return false;\n }\n return true;\n }", "public Frame waitFrame(ComponentChooser ch, int index)\n\tthrows InterruptedException {\n\tsetTimeouts(timeouts);\n\treturn((Frame)waitWindow(new FrameSubChooser(ch), index));\n }", "@Override\n public void run() {\n boolean pvp_net;\n //Start with negative state:\n pvp_net_changed(false);\n \n Window win = null;\n\n while(!isInterrupted()||true) {\n //Check whether window is running\n if(win==null) {\n win = CacheByTitle.initalInst.getWindow(ConstData.window_title_part);\n //if(win==null)\n // Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window from name failed...\");\n }\n else if(!win.isValid()) {\n win = null;\n //Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window is invalid...\");\n }\n else if(\n main.ToolRunning() && \n main.settings.getBoolean(Setnames.PREVENT_CLIENT_MINIMIZE.name, (Boolean)Setnames.PREVENT_CLIENT_MINIMIZE.default_val) &&\n win.isMinimized()) {\n win.restoreNoActivate();\n }\n pvp_net = win!=null;\n //On an change, update GUI\n if(pvp_net!=pvp_net_running) {\n pvp_net_changed(pvp_net);\n }\n \n /*thread_running = main.ToolRunning();\n if(thread_running!=automation_thread_running)\n thread_changed(thread_running);*/\n\n try {\n sleep(900L);\n //Wait some more if paused\n waitPause();\n }\n catch(InterruptedException e) {\n break; \n }\n } \n }", "public void waitDialog(String title) {\n Stage dialog = new Stage();\n Parent root = null;\n try {\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource(\"wait.fxml\")));\n Scene s1 = new Scene(root);\n dialog.setScene(s1);\n dialog.getIcons().add(new Image(\"images/cm_boardgame.png\"));\n overlayedStage = dialog;\n overlayedStage.initOwner(thisStage);\n overlayedStage.initModality(Modality.APPLICATION_MODAL);\n overlayedStage.setTitle(title);\n overlayedStage.initStyle(StageStyle.UNDECORATED);\n overlayedStage.setResizable(false);\n dialog.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void testCreateWindows() throws Exception\n {\n executeScript(SCRIPT);\n assertNotNull(\"No result window\", windowBuilderData.getResultWindow());\n assertNotNull(\"No named window\", windowBuilderData\n .getWindow(\"msgDialog\"));\n }", "public static void windowspwcw() {\n\t\tString windowHandle = driver.getWindowHandle();\n\t\tSystem.out.println(\"parent window is: \"+windowHandle);\n\t\tSet<String> windowHandles = driver.getWindowHandles();\n\t\tSystem.out.println(\"child window is \"+windowHandles);\n\t\tfor(String eachWindowId:windowHandles)\n\t\t{\n\t\t\tif(!windowHandle.equals(eachWindowId))\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(eachWindowId);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t}", "public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}", "int waitFor(String variable);", "@Test\n\tvoid HandleWindowPopUp() throws InterruptedException {\n\t\t//Invoke Browser\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/Suvarna/Downloads/chromedriver\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\t//Launch the website\n\t\tdriver.get(\"http://www.popuptest.com/goodpopups.html\");\n\t\t\n\t\t// Click on the pop-up3 link\n\t\tdriver.findElement(By.xpath(\"/html/body/table[2]/tbody/tr/td/font/b/a[3]\")).click();\n\t\t\n\t\t// wait for 2 second\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Call method to handle window \n\t\tSet<String> handler = driver.getWindowHandles();\n\t\tIterator<String> it = handler.iterator();\n\t\t\n\t\t// get the parent window id\n\t\tString parentWindowId = it.next();\n\t\tSystem.out.println(\"Parent Window id: \"+ parentWindowId);\n\t\t\n\t\t// Get the Pop-up window id\n\t\tString childWindowId =it.next();\n\t\tSystem.out.println(\"Child Window id: \"+ childWindowId);\n\t\t\n\t\t//Passing the control to pop up window ...Switch to pop-up window\n\t\tdriver.switchTo().window(childWindowId);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Get the title of the Pop-up Window\n\t\tSystem.out.println(\" Child window pop up title \"+ driver.getTitle()); \n\t\t\n\t\t//Close the pop-up window\n\t\tdriver.close();\n\t\t\n\t\t//Switch to Parent Window\n\t\tdriver.switchTo().window(parentWindowId);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t//Get the title of Parent window\n\t\tSystem.out.println(\" Parent window title \"+ driver.getTitle());\n\t\t\n\t\t// Close the main window\n\t\tdriver.close();\n\t\t\n\t}", "public boolean Wait(String name, int type, TOSListener stub, \r\n\t\t\t\t\t\tString threadName, int procid) \r\n\t\tthrows RemoteException, SyncException\r\n\t{\r\n\t\tSyncRecord rec;\r\n\t\ttry {\r\n\t\t\trec = findObject(name,type);\r\n\t\t} catch (NotFoundException e) {\r\n\t\t\tthrow new SyncException(\"No such sync object\");\r\n\t\t}\r\n\t\t// Increment count for semaphores and mutexes\r\n\t\ttry {\r\n\t\t\tif (rec.max!=0)\r\n\t\t\t{\r\n\t\t\t\trec.count++;\r\n\t\t\t\tif (rec.count<=rec.max)\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tString id = String.valueOf(procid)+threadName;\r\n\t\t\trec.addElement(id);\r\n\t\t\tsynchronized (threadTable) { threadTable.put(id,stub); }\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (e instanceof SyncException)\r\n\t\t\t\tthrow (SyncException)e;\r\n\t\t\tDebug.ErrorMessage(\"Wait\",e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }", "void letterWait(String path) {\n WebDriverWait newsWait = new WebDriverWait(chrome, 3);\n try {\n newsWait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(path)));\n chrome.findElement(By.xpath(path)).click();\n\n } catch (Throwable e) {\n// e.printStackTrace();\n }\n }", "public void switchToLastWindow() {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t}\n\t}", "int waitFor(String variable, int count);", "private String getWindowName(com.sun.star.awt.XWindow aWindow)\n throws com.sun.star.uno.Exception\n {\n if (aWindow == null)\n new com.sun.star.lang.IllegalArgumentException(\n \"Method external_event requires that a window is passed as argument\",\n this, (short) -1);\n\n // We need to get the control model of the window. Therefore the first step is\n // to query for it.\n XControl xControlDlg = (XControl) UnoRuntime.queryInterface(\n XControl.class, aWindow);\n\n if (xControlDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XControl from XWindow in method external_event.\");\n // Now get model\n XControlModel xModelDlg = xControlDlg.getModel();\n\n if (xModelDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XControlModel from XWindow in method external_event.\", this);\n \n // The model itself does not provide any information except that its\n // implementation supports XPropertySet which is used to access the data.\n XPropertySet xPropDlg = (XPropertySet) UnoRuntime.queryInterface(\n XPropertySet.class, xModelDlg);\n if (xPropDlg == null)\n throw new com.sun.star.uno.Exception(\n \"Cannot obtain XPropertySet from window in method external_event.\", this);\n\n // Get the \"Name\" property of the window\n Object aWindowName = xPropDlg.getPropertyValue(\"Name\");\n\n // Get the string from the returned com.sun.star.uno.Any\n String sName = null;\n try\n {\n sName = AnyConverter.toString(aWindowName);\n }\n catch (com.sun.star.lang.IllegalArgumentException ex)\n {\n ex.printStackTrace();\n throw new com.sun.star.uno.Exception(\n \"Name - property of window is not a string.\", this);\n }\n\n // Eventually we can check if we this handler can \"handle\" this options page.\n // The class has a member m_arWindowNames which contains all names of windows\n // for which it is intended\n for (int i = 0; i < SupportedWindowNames.length; i++)\n {\n if (SupportedWindowNames[i].equals(sName))\n {\n return sName;\n }\n }\n return null;\n }", "private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }", "public void showResultsWindow() {\r\n \t\tshowResults.setSelected(true);\r\n \t\tshowResultsWindow(true);\r\n \t}", "public JPanel getWindow(String key)\r\n\t{\r\n\t\treturn aniWin.getWindow(key);\r\n\t}", "public void switchToWindow(String handle)\n\t{\n\t\ttry {\n\t\t\tdriver.switchTo().window(handle);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to window\");\n\n\t\t}\n\t}", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }", "public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive)\n\tthrows InterruptedException {\n\treturn(waitFrame(title, compareExactly, compareCaseSensitive, 0));\n }", "public Node getScreen(String name) {\r\n return screens.get(name);\r\n }", "public String waitForElementVisibility(String object, String data) {\n logger.debug(\"Waiting for an element to be visible\");\n int start = 0;\n int time = (int) Double.parseDouble(data);\n try {\n while (true) {\n if(start!=time)\n {\n if (driver.findElements(By.xpath(OR.getProperty(object))).size() == 0) {\n Thread.sleep(1000L);\n start++;\n }\n else {\n break; }\n }else {\n break; } \n }\n } catch (Exception e) {\n return Constants.KEYWORD_FAIL + \"Unable to close browser. Check if its open\" + e.getMessage();\n }\n return Constants.KEYWORD_PASS;\n }", "public void verifyElementIsVisible(String elementName) {\n wait.forElementToBeDisplayed(5, returnElement(elementName), elementName);\n Assert.assertTrue(\"FAIL: Yellow Triangle not present\", returnElement(elementName).isDisplayed());\n }", "public void afterSwitchToWindow(String windowName, WebDriver driver) {\n\t\t\r\n\t}", "public static void waitFor(String title, int timer, WebDriver driver) {\n\t\tWebDriverWait exists = new WebDriverWait(driver, timer);\n\t\texists.until(ExpectedConditions.refreshed(ExpectedConditions.titleContains(title)));\n\t}", "protected void openResultFrame(String name) {\n StringBuffer buffer = m_history.getNamedBuffer(name);\n JTabbedPane tabbedPane = m_framedOutputMap.get(name);\n\n if (buffer != null && tabbedPane == null) {\n JTextArea textA = new JTextArea(20, 50);\n textA.setEditable(false);\n textA.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n textA.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n textA.setText(buffer.toString());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Output\", new JScrollPane(textA));\n updateComponentTabs(name, tabbedPane);\n m_framedOutputMap.put(name, tabbedPane);\n \n final JFrame jf = new JFrame(name);\n jf.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n m_framedOutputMap.remove(jf.getTitle());\n jf.dispose();\n }\n });\n jf.setLayout(new BorderLayout());\n jf.add(tabbedPane, BorderLayout.CENTER);\n jf.pack();\n jf.setSize(550, 400);\n jf.setVisible(true);\n } \n }", "Stream<Pair<Object, T>> withWindow(@Nullable String name);", "public boolean waitActive(final WinRefEx hWnd, final Integer timeout) {\n\t\treturn (hWnd == null) ? false : waitActive(TitleBuilder.byHandle(hWnd), timeout);\n\t}", "public static void wait(int ms) {\n try {\n Thread.sleep(ms);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }", "public void waitForElementVisibility(String locator) {\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator)));\n }", "public static void switchTo_Window_with_title(String Exp_title)\r\n\t{\n\t\tSet<String> All_Window_IDS=driver.getWindowHandles();\r\n\t\t\r\n\t\t//Applying foreach window to iterator for all windows\r\n\t\tfor (String EachWindowID : All_Window_IDS) \r\n\t\t{\r\n\t\t\tdriver.switchTo().window(EachWindowID);\r\n\t\t\t//After switch get window title\r\n\t\t\tString Runtime_Title=driver.getTitle();\r\n\t\t\tSystem.out.println(Runtime_Title);\r\n\t\t\t\r\n\t\t\tif(Runtime_Title.contains(Exp_title))\r\n\t\t\t{\r\n\t\t\t\tbreak; //At what window it break , It keep browser controls at same window\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void showWaitingPage(String message) {\r\n\t\tmainFrame.showPage(waitingPage.getClass().getCanonicalName());\r\n\t\twaitingPage.start(message);\r\n\t}", "public void createNewWindow(String winType) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new RuntimeException(\"createNewWindow: called on non-event thread\");\n }\n\n final Parameters params = (Parameters)parameters.clone();\n if (!windowName.equals(\"\")) params.setWindowName(windowName);\n if (!winType.equals(\"\")) params.setWindowName(winType);\n\n manager.showDisplayUI(params);\n }", "public WebElement wait(WebElement webElement) {\n WebDriverWait webDriverWait = new WebDriverWait(driver, Integer.parseInt(testData.timeout));\n return webDriverWait.until(ExpectedConditions.visibilityOf(webElement));\n }" ]
[ "0.6501918", "0.6490597", "0.59487855", "0.5920008", "0.57917917", "0.5576763", "0.55109954", "0.54607004", "0.54283774", "0.5412252", "0.5354202", "0.53419644", "0.53241307", "0.52958715", "0.526459", "0.5259765", "0.5258869", "0.52202374", "0.51931083", "0.51916367", "0.5169667", "0.5159894", "0.51591754", "0.5115832", "0.5113557", "0.50969076", "0.5088762", "0.50563747", "0.5041608", "0.50372463", "0.50234723", "0.5012839", "0.4989562", "0.4954921", "0.49311447", "0.49056768", "0.49043807", "0.48973006", "0.48943073", "0.4873245", "0.4851147", "0.48457882", "0.4840785", "0.4834473", "0.48277864", "0.48190588", "0.48183998", "0.48158833", "0.48045984", "0.47929752", "0.4788013", "0.47734278", "0.4772897", "0.4760857", "0.47425297", "0.47373927", "0.4729799", "0.47289503", "0.471576", "0.47089896", "0.47028753", "0.46959722", "0.4683953", "0.4683806", "0.46781895", "0.4672577", "0.4663314", "0.466307", "0.464826", "0.46441558", "0.4643918", "0.46424907", "0.46251342", "0.45955965", "0.45906377", "0.4577461", "0.45768303", "0.45750356", "0.4561496", "0.45583102", "0.4557225", "0.45537356", "0.45478258", "0.45458794", "0.45382994", "0.45310667", "0.4517961", "0.45169285", "0.45166475", "0.45077232", "0.450382", "0.44879508", "0.44823053", "0.44806284", "0.44719794", "0.4471036", "0.4463909", "0.4455799", "0.44547457", "0.44520104" ]
0.8334784
0
Check for and display message component text associated with OptionDialog windows
public static String getMessageText(Window w) { Component c = findComponentByName(w, OptionDialog.MESSAGE_COMPONENT_NAME); if (c instanceof JLabel) { return ((JLabel) c).getText(); } else if (c instanceof MultiLineLabel) { return ((MultiLineLabel) c).getLabel(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object displayOptionsPanel(String message, Object[] possibleValues) {\n return JOptionPane.showInputDialog(\n mainPanel, // parentComponent\n message, // message\n \"\", // title\n JOptionPane.QUESTION_MESSAGE, // messageType\n null, // icon\n possibleValues, // selectionValues\n possibleValues[0] // initialSelectionValue\n );\n }", "public static int showInformationDialog(Object[] options, String title, String message) {\n\t\treturn 0;\n\t}", "public void Joptionpane_message(String message) {\n JOptionPane.showMessageDialog(this, message);\n\n }", "@Override\n public void messagePrompt(String message) {\n JOptionPane.showMessageDialog(lobbyWindowFrame,message+\" is choosing the gods\");\n }", "public static int showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue, Throwable error) {\n\n\t\tJOptionPane optionPane = new JOptionPane(message, messageType, optionType, icon, options, initialValue);\n\t\t\n\t\toptionPane.setInitialValue(initialValue);\n\t\toptionPane.setComponentOrientation(((parentComponent == null) ? getRootFrame() : parentComponent).getComponentOrientation());\n\n\t\tJDialog dialog = optionPane.createDialog(parentComponent, title);\n optionPane.selectInitialValue();\n \n\t\tJPanel pane = new JPanel();\n\t\tpane.setLayout(new BorderLayout());\n\t\t\n\t\tComponent contentPane = dialog.getContentPane(); \n/*\t\t\n\t\tJPanel p = new JPanel();\n\t\tp.setMaximumSize(new Dimension(200, 200));\n\t\tp.setMinimumSize(new Dimension(200, 200));\n\t\tp.setPreferredSize(new Dimension(200, 200));\n\t\tp.setBackground(Color.RED);\n*/\n\t\t\n\t\tDetailsPanel p = new DetailsPanel(dialog);\n\t\tp.setDetails(error);\n\t\t\n\t\tpane.add(contentPane, BorderLayout.NORTH);\n\t\tpane.add(p, BorderLayout.CENTER);\n\t\t\n\t\tdialog.setContentPane(pane);\n\t\tdialog.pack();\n\t\tdialog.setLocationRelativeTo(parentComponent);\n\t\t\n\n dialog.setResizable(true);\n \n dialog.show();\n dialog.dispose();\n\n Object selectedValue = optionPane.getValue();\n\n if(selectedValue == null) {\n return CLOSED_OPTION;\n }\n \n if(options == null) {\n \t\n if(selectedValue instanceof Integer) {\n \treturn ((Integer)selectedValue).intValue();\n }\n \n return CLOSED_OPTION;\n }\n \n for(int counter = 0, maxCounter = options.length; counter < maxCounter; counter++) {\n \t\n if(options[counter].equals(selectedValue)) {\n return counter;\n }\n }\n \n return CLOSED_OPTION;\n\t}", "static void giveInfo(String message){\n JOptionPane.showMessageDialog(null, message);\n }", "private void recreateOptionPaneMessage(JOptionPane optionPane)\r\n/* */ {\r\n/* 175 */ Object message = optionPane.getMessage();\r\n/* 176 */ if ((message instanceof String)) {\r\n/* 177 */ Font font = optionPane.getFont();\r\n/* 178 */ final JTextArea textArea = new JTextArea((String)message);\r\n/* 179 */ textArea.setFont(font);\r\n/* 180 */ int lh = textArea.getFontMetrics(font).getHeight();\r\n/* 181 */ Insets margin = new Insets(0, 0, lh, 24);\r\n/* 182 */ textArea.setMargin(margin);\r\n/* 183 */ textArea.setEditable(false);\r\n/* 184 */ textArea.setWrapStyleWord(true);\r\n/* 185 */ textArea.setBackground(optionPane.getBackground());\r\n/* 186 */ JPanel panel = new JPanel(new BorderLayout());\r\n/* 187 */ panel.add(textArea, \"Center\");\r\n/* 188 */ final JProgressBar progressBar = new JProgressBar();\r\n/* 189 */ progressBar.setName(\"BlockingDialog.progressBar\");\r\n/* 190 */ progressBar.setIndeterminate(true);\r\n/* 191 */ PropertyChangeListener taskPCL = new PropertyChangeListener() {\r\n/* */ public void propertyChange(PropertyChangeEvent e) {\r\n/* 193 */ if (\"progress\".equals(e.getPropertyName())) {\r\n/* 194 */ progressBar.setIndeterminate(false);\r\n/* 195 */ progressBar.setValue(((Integer)e.getNewValue()).intValue());\r\n/* 196 */ DefaultInputBlocker.this.updateStatusBarString(progressBar);\r\n/* */ }\r\n/* 198 */ else if (\"message\".equals(e.getPropertyName())) {\r\n/* 199 */ textArea.setText((String)e.getNewValue());\r\n/* */ }\r\n/* */ }\r\n/* 202 */ };\r\n/* 203 */ getTask().addPropertyChangeListener(taskPCL);\r\n/* 204 */ panel.add(progressBar, \"South\");\r\n/* 205 */ injectBlockingDialogComponents(panel);\r\n/* 206 */ optionPane.setMessage(panel);\r\n/* */ }\r\n/* */ }", "private static void showHelp(){\r\n JOptionPane.showMessageDialog(null, \"1. Choose the faculty.\\n\"\r\n + \"2. Type in the year when the school year started in format YYYY.\\n\"\r\n + \"3. Choose the semester.\\n\"\r\n + \"4. Enter subject codes separated by semicolon. You can add them all at once or add other subjects later.\\n\"\r\n + \"5. Press the Add button to load schedule options.\\n\"\r\n + \"6. Click on the loaded options you want to choose. Their color will turn red.\\n\"\r\n + \"7. Save the options you chose to the text file through File -> Save.\\n\",\r\n \"How-to\", JOptionPane.PLAIN_MESSAGE);\r\n }", "private void displayControlDialog() {\n final String gameInfo = \"CLASSIC MODE\" + \"\\nMove Left: Left Arrow\"\n + \"\\nMove Right: Right Arrow\" + \"\\nMove Down: Down Arrow\"\n + \"\\nDrop: Space\" + \"\\nRotate Clockwise: Up Arrow\"\n + \"\\nRotate Counter-Clockwise: Z\\n\" + \"\\nANTI-GRAVITY MODE\"\n + \"\\nMove up: Up Arrow\" + \"\\nRotate Clockwise: Down Arrow\\n\"\n + \"\\nSCORING\"\n + \"\\nEarn 100 points for each line cleared. As you\\n\"\n + \"level up, each line cleared will be worth 100 points times\\n\"\n + \"the number of the level you are on. For example, one line\\n\"\n + \"cleared at level 3 is worth 300 points.\";\n JOptionPane.showMessageDialog(null, gameInfo, \"Controls and scoring\",\n JOptionPane.PLAIN_MESSAGE);\n\n }", "public void showMessage(){\r\n if(message == null) return;\r\n JOptionPane.showMessageDialog(new JFrame(), message);\r\n }", "public static void main(String[] args) {\n\n JOptionPane.showMessageDialog(null, \"This is a message dialog box\", \"title\", JOptionPane.PLAIN_MESSAGE);\n JOptionPane.showMessageDialog(null, \"Here is some useless info\", \"title\", JOptionPane.INFORMATION_MESSAGE);\n JOptionPane.showMessageDialog(null, \"really?\", \"title\", JOptionPane.QUESTION_MESSAGE);\n JOptionPane.showMessageDialog(null, \"Your computer has a VIRUS!\", \"title\", JOptionPane.WARNING_MESSAGE);\n JOptionPane.showMessageDialog(null, \"CALL TECH SUPPORT OR ELSE!\", \"title\", JOptionPane.ERROR_MESSAGE);\n\n\n //int answer = JOptionPane.showConfirmDialog(null, \"bro, do you even code?\");\n //String name = JOptionPane.showInputDialog(\"What is your name?: \");\n\n ImageIcon icon = new ImageIcon(\"smile.png\");\n String[] responses = {\"No, you are!\",\"thank you!\",\"*blush*\"};\n int answer = JOptionPane.showOptionDialog(\n null,\n \"You are the best! :D\",\n \"Secret message\",\n JOptionPane.DEFAULT_OPTION,\n 0,\n icon,\n responses,\n responses[0]);\n System.out.println(answer);\n\n }", "public void alertSelection() {\n JOptionPane.showMessageDialog(gui.getFrame(),\n \"`Please select a choice.\",\n \"Invalid Selection Error\",\n JOptionPane.ERROR_MESSAGE);\n }", "public static int IsDialogMessageA(int hDlg, int lpMsg) {\n return FALSE;\n }", "public static int askOptions(String title, String msg, Object[] options, Object defOpt) {\r\n return JOptionPane.showOptionDialog(ZoeosFrame.getInstance(), msg, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, defOpt);\r\n }", "public static <E> E showOptionDialog(String title, String message, E[] options) {\n\t\tint selected = JOptionPane.showOptionDialog(null,\n\t\t\t\tmessage,\n\t\t\t\ttitle,\n\t\t\t\tJOptionPane.DEFAULT_OPTION,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE,\n\t\t\t\tnull,\n\t\t\t\toptions,\n\t\t\t\toptions[0]\n\t\t\t\t);\n\n\t\tif (selected != JOptionPane.CLOSED_OPTION)\n\t\t\treturn options[selected];\n\n\t\treturn null;\n\t}", "public static String informationUpdatedDialog_txt(){\t\t\t\t\t\t\t\n\t\tid = \"divMessageOK\";\t\t\t\t\t\t\n\t\treturn id;\t\t\t\t\t\t\n\t}", "public boolean displayPrompt(String msg);", "public static String promptForSelection(String title, String message, String[] options) {\n return (String) JOptionPane.showInputDialog(null,\n message,\n title,\n QUESTION_MESSAGE,\n null,\n options,\n options[0]);\n\n }", "protected boolean showConfirm (String msg, String title)\n {\n String[] options = {\n UIManager.getString(\"OptionPane.okButtonText\"),\n UIManager.getString(\"OptionPane.cancelButtonText\")\n };\n return 0 == JOptionPane.showOptionDialog(\n this, _msgs.get(msg), _msgs.get(title),\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, null,\n options, options[1]); // default to cancel\n }", "public static <E> E showOptionDialog(String title, String message, E[] options, InputValidator<E> validator) {\n\t\tE input;\n\t\tboolean isValid = false;\n\t\t\n\t\tdo {\n\t\t\tinput = showOptionDialog(title, message, options);\n\t\t\t\n\t\t\tif(input == null)\n\t\t\t\treturn null;\n\t\t\t\n\t\t}while(!isValid);\n\t}", "private void outputFormatComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_outputFormatComboActionPerformed\n if (outputFormatCombo.getSelectedIndex() != 0 && this.isVisible()) {\n // invoke later to give time for components to update\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n JOptionPane.showMessageDialog(TideParametersDialog.this, JOptionEditorPane.getJOptionEditorPane(\n \"Note that the Tide \" + (String) outputFormatCombo.getSelectedItem()\n + \" format is not compatible with <a href=\\\"https://compomics.github.io/projects/peptide-shaker.html\\\">PeptideShaker</a>.\"),\n \"Format Warning\", JOptionPane.WARNING_MESSAGE);\n }\n });\n }\n }", "private void confirmOptionsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_confirmOptionsActionPerformed\n outputDir = outputDirText.getText();\n outputType = outputTypeGroup.getSelection().getActionCommand();\n outputMerge = outputMergeCheck.isSelected();\n options.setVisible(false);\n }", "void ShowWaitDialog(String title, String message);", "public static void updateMessageBox() {\n\t}", "protected abstract JTextComponent createPromptComponent();", "public static int[] comboPrompt(String message, String title, String[] options, String[] buttons) {\n\t\tSystem.out.println(\"prompting\");\n\n\t\tJComboBox<Object> optionList = new JComboBox<Object>(options);\n\n\t\tJPanel panel = new JPanel(new BorderLayout(0, 0));\n\t\tpanel.add(optionList, BorderLayout.SOUTH);\n\n\t\tpanel.add(new JLabel(message), BorderLayout.NORTH);\n\t\t\n\t\tint res = JOptionPane.showOptionDialog(null, panel, \"Confirm Order \" + title, 0, 3, null, buttons, 0);\n\t\t\n\t\treturn new int[] {res, optionList.getSelectedIndex()};\n\n\t}", "public void displayPrompt(String text){\n promptWindow.getContentTable().clearChildren();\n Label infoLabel = new Label(text, infoWindow.getSkin(), \"dialog\");\n infoLabel.setWrap(true);\n infoLabel.setAlignment(Align.center);\n promptWindow.getContentTable().add(infoLabel).width(500);\n promptWindow.show(guiStage);\n }", "public static void setWarningMessage(String text) {\n\t JOptionPane optionPane = new JOptionPane(text,JOptionPane.WARNING_MESSAGE);\n\t JDialog dialog = optionPane.createDialog(\"Atenção\");\n\t dialog.setAlwaysOnTop(true);\n\t dialog.setVisible(true);\n\t}", "public static void msgBox(String message){\n JOptionPane.showMessageDialog (null, message);\n }", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "private void jMenuItemTemasAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemTemasAyudaActionPerformed\n JOptionPane.showMessageDialog(this, \"Leer informe\",\n this.getTitle(), JOptionPane.INFORMATION_MESSAGE);\n}", "public static void setErrorMessage(String text) {\n\t JOptionPane optionPane = new JOptionPane(text,JOptionPane.ERROR_MESSAGE);\n\t JDialog dialog = optionPane.createDialog(\"Erro\");\n\t dialog.setAlwaysOnTop(true);\n\t dialog.setVisible(true);\n\t}", "public void informationDialog(String paneMessage) {\n showMessageDialog(frame, paneMessage);\n }", "public void showInformationMessage(String msg) {\r\n JOptionPane.showMessageDialog(this,\r\n\t\t\t\t msg, TmplResourceSingleton.getString(\"info.dialog.header\"),\r\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE);\r\n }", "private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n final String fieldText = field.getText();\n JOptionPane.showMessageDialog(null, fieldText);\n System.out.println(\"YESSSSSSSSSSSS\");\n }", "public void showNoDateMess() {\n JOptionPane.showMessageDialog(this, \"No date has been choosen. Choose date before clicking button.\", \"Date Not Selected\", WARNING_MESSAGE);\n }", "private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }", "private void showInfo() {\n JOptionPane.showMessageDialog(\n this,\n \"Пока что никакой\\nинформации тут нет.\\nДа и вряд ли будет.\",\n \"^^(,oO,)^^\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "public void showWinMessage() {\n\n\t}", "public static void main(String[] args) {\nint replaced = JOptionPane.showConfirmDialog(null,\"Replace existing selection?\");\n String result = \"?\";\n switch (replaced) {\n case JOptionPane.CANCEL_OPTION:\n result = \"Canceled\";\n break;\n case JOptionPane.CLOSED_OPTION:\n result = \"Closed\";\n break;\n case JOptionPane.NO_OPTION:\n result = \"No\";\n break;\n case JOptionPane.YES_OPTION:\n result = \"Yes\";\n break;\n default:\n ;\n }\nSystem.out.println(\"Replace? \" + result);\n }", "private static void showSingleOptionDialog(Context c, int titleID, int messageID, int buttonID, OnClickListener listener){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\tbuilder.setTitle(titleID)\n\t\t.setNegativeButton(buttonID, listener);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\n\t\tbuilder.create().show();\n\t}", "private void giveHint(String hint) {\n JOptionPane.showMessageDialog(frame, hint, \"Hint\", JOptionPane.INFORMATION_MESSAGE);\n }", "private String promptLoadOrNew(){\r\n Object[] options = {\"Start A New Game!\", \"Load A Previous Game.\"};\r\n String result = (String) JOptionPane.showInputDialog(\r\n null,\r\n \"What would you like to do?\",\r\n \"Welcome!\",\r\n JOptionPane.PLAIN_MESSAGE,\r\n null,\r\n options,\r\n 1);\r\n return result;\r\n \r\n }", "private static void JGUI4() {\n\t\tint n = JOptionPane.showConfirmDialog(\n\t\tnull,\n\t\t\"Would you like green eggs and ham?\",\n\t\t\"An Inane Question\",\n\t\tJOptionPane.YES_NO_OPTION);\n\t}", "private void infoMessage(String message) {\n JOptionPane.showMessageDialog(this, message,\n \"VSEGraf - user management\", JOptionPane.INFORMATION_MESSAGE);\n }", "private void showMessage(String message) {\n JOptionPane jOptionPane = new JOptionPane(message, JOptionPane.PLAIN_MESSAGE);\n JDialog dialog = jOptionPane.createDialog(frame,\"Message\");\n\n //Must be this one for less bags\n dialog.setModalityType(Dialog.ModalityType.MODELESS);\n dialog.setVisible(true);\n// JOptionPane.showMessageDialog(\n// frame,\n// message,\n// \"Message\",\n// JOptionPane.PLAIN_MESSAGE\n// );\n }", "public String SelectOption(String option) {\n int intOption = ValidateOption(option);\n String optionOutput = \"\";\n switch (intOption) {\n case 0:\n return QuitAppMessage;\n case 1:\n optionOutput = CheckoutOutputMessage;\n break;\n case 2:\n optionOutput = CheckoutMovieOutputMessage;\n break;\n case 3:\n optionOutput = ReturnOutputMessage;\n break;\n default:\n return InvalidOptionMessage;\n }\n\n return optionOutput;\n\n }", "public String getOptionText() {\n return option;\n }", "private void MensajeInf(String strMensaje){\n javax.swing.JOptionPane obj =new javax.swing.JOptionPane();\n String strTit;\n strTit=\"Mensaje del sistema Zafiro\";\n obj.showMessageDialog(this,strMensaje,strTit,javax.swing.JOptionPane.INFORMATION_MESSAGE);\n }", "private void showMsgBox(Context context, String msgTitle, String msgContent, boolean flag){\n final Dialog dialog = new Dialog(context);\n //tell the Dialog to use the dialog.xml as it's layout description\n dialog.setContentView(R.layout.custom_dialog);\n //dialog.setTitle(msgContent);\n TextView title = (TextView) dialog.findViewById(R.id.dlgTitle);\n TextView content = (TextView) dialog.findViewById(R.id.dlgContent);\n title.setText(msgTitle);\n content.setText(msgContent);\n if (!flag){\n LinearLayout linearLayout = (LinearLayout)dialog.findViewById(R.id.type1);\n linearLayout.removeAllViews();\n }else{\n LinearLayout linearLayout = (LinearLayout)dialog.findViewById(R.id.type2);\n linearLayout.removeAllViews();\n }\n Button dlgCancel = (Button) dialog.findViewById(R.id.dlgCancel);\n dlgCancel.setText(\"Okay\");\n dlgCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }", "public abstract <T> void showChoiceBox(String message, List<T> options, Consumer<T> resultCallback);", "public abstract <T> void showChoiceBox(String message, Consumer<T> resultCallback, T firstOption, T... options);", "private void showAboutDialog() {\n JOptionPane.showMessageDialog(this, \"Sea Battle II Version 1.0\\nCS 232 (Computer Programming II), Fall 2018\");\n }", "public static void messageBox(String str) {\n JOptionPane.showMessageDialog(null, str);\n }", "public String verMenu(){\r\n try {\r\n Object opcion=JOptionPane.showInputDialog(\r\n null,\r\n \"Seleccione Opcion\",\"Agenda de Anexos\",\r\n JOptionPane.QUESTION_MESSAGE,\r\n null,\r\n new String[]{\"1.- Registrar Empleado\",\r\n \"2.- Asignar Anexo a Empleado\",\r\n \"3.- Obtener ubicacion de un Anexo\",\r\n \"4.- Modificar Anexo a Empleado\",\r\n \"5.- Desasignar Anexo a Empleado\",\r\n \"6.- Listado de Asignaciones\",\r\n \"7.- Salir del Programa\"},\r\n \"1.- Registrar Empleado\");\r\n return(String.valueOf(opcion).substring(0, 1)); // RETORNA A FUNCION VOID MAIN\r\n } catch (Exception ex) {\r\n System.out.println(\"Hubo un error al ingresar una opcion \"+ex.toString());\r\n }\r\n return \"0\";\r\n }", "public void showWinMessage(String info) {\n\t\tAlert al = new Alert(AlertType.WARNING);\n\t\tal.setTitle(\"Se termino el juego\");\n\t\tal.setHeaderText(\"Ganaste\");\n\t\tal.setContentText(info);\n\t\tal.showAndWait();\n\t}", "private String showCharacterSuggestions(String room) {\n\t\tButtonGroup characterButtons = new ButtonGroup();\n\t\tList<JRadioButton> btns = setupCharacterButtons();\n\t\t\n\t // set up dialog box\n\t\tJPanel characterPanel = new JPanel(new GridLayout(0, 1));\n\t\tJLabel lbl = new JLabel(\"You are in the \"+room+\".\"\n\t\t\t\t+ \"\\n Select the character that you suspect.\");\n\t\tcharacterPanel.add(lbl);\n\t\t\n\t // add the buttons to the panel\n\t for(JRadioButton b : btns){\n\t \tcharacterButtons.add(b);\n\t \tcharacterPanel.add(b);\n\t }\n\t \n\t\t// show dialog\n\t JOptionPane.showMessageDialog(frame, characterPanel);\n\t // decide which button has been selected\n\t for(JRadioButton b : btns){\n\t \tif(b.isSelected()){\n\t \t\treturn b.getText();\n\t \t}\n\t }\n\t return null;\n\t}", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "private void showPlainMessage(String msg){\n\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t wrapHTML(msg),\n\t\t\t translations.getInfo(),\n\t\t\t JOptionPane.PLAIN_MESSAGE);\n\t}", "public void displayMessage(String m){\n\t\tJOptionPane.showMessageDialog(null, m, \"Perfect !\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "private void aboutHandler() {\n JOptionPane.showMessageDialog(\n this.getParent(),\n \"YetAnotherChessGame v1.0 by:\\nBen Katz\\nMyles David\\n\"\n + \"Danielle Bushrow\\n\\nFinal Project for CS2114 @ VT\");\n }", "private static void JGUI() {\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Eggs are not supposed to be green.\");\n\t\t// custom title, warning icon\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Eggs are not supposed to be green.\",\n\t\t\t\t\"Inane warning\",\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t// custom title, error icon*/\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\"Eggs are not supposed to be green.\",\n\t\t\t\t\"Inane error\",\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t// custom title, no icon\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Eggs are not supposed to be green.\",\n\t\t\t\t\"A plain message\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\tIcon icon = null;\n\t\t// custom title, custom icon\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Eggs are not supposed to be green.\",\n\t\t\t\t\"Inane custom dialog\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE,\n\t\t\ticon);\n\t}", "private static void SaidaDados(String saida){\n JOptionPane.showMessageDialog(null, saida);\n }", "private void showIncorrectAnswerDialogueBox() {\n\t\tString _title = getString(R.string.incorrectansweralertdialoguetitle);\n\t\tString _message = getString(R.string.incorrectansweralertdialoguemessage);\n\t\tUtilityMethods.createAlertDialog(_title, _message,\n\t\t\t\tAnalysisActivity.this);\n\t}", "public static void displayMessage(String message){\n JOptionPane.showInputDialog(message);\n }", "@Override\n public void displayMessage(int status, String msg) {\n if (status == Constants.STATUS_OK) {\n dispose();\n } else {\n JOptionPane.showMessageDialog(null, msg, \"Lỗi\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n public void displayMessage(int status, String msg) {\n if (status == Constants.STATUS_OK) {\n dispose();\n } else {\n JOptionPane.showMessageDialog(null, msg, \"Lỗi\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public static void showMenuDialog(\n\t\t\tString title, \n\t\t\tString message, \n\t\t\tfinal List<String> options,\n\t\t\tString exitOption,\n\t\t\tExecutor<String> executor\n\t){\n\t\tString selected;\n\t\t\n\t\tList<String> l = new ArrayList<>();\n\t\tl.addAll(options);\n\t\t\n\t\tif(!l.contains(exitOption))\n\t\t\tl.add(exitOption);\n\t\t\n\t\tdo {\n\t\t\tselected = showOptionDialog(title, message, l.toArray(String[]::new));\n\t\t\t\n\t\t\texecutor.execute(selected);\n\t\t}while(selected != null && !selected.equals(exitOption));\n\t}", "public static void message() {\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, \"Thanks for your participation\" + \"\\nHave a great day!\");\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\nString answer= JOptionPane.showInputDialog(\"do you like dogs\");\n\tJOptionPane.showMessageDialog(null,(answer));\n\t}", "public static void mensagemRealizarCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Favor clique em atualizar para re-listar e selecionar o novo item recem cadastrado.\", \"Informação\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Informacao32.png\"))));\n\t}", "public boolean shouldPaintPrompt(JTextComponent txt)\n/* */ {\n/* 295 */ return (txt.getText() == null) || (txt.getText().length() == 0);\n/* */ }", "@Override\n public void showWinnerDialog() {\n String message = getGameOverMessage();\n JOptionPane.showMessageDialog( this, message, GameContext.getLabel(\"GAME_OVER\"),\n JOptionPane.INFORMATION_MESSAGE );\n }", "public void showUnsolvableMessage() {\n\t\tJOptionPane.showMessageDialog(frame, \"Det angivna sudokut är olösbart\");\n\t}", "private static void JGUI2() {\n\t\tint n = JOptionPane.showConfirmDialog(\n\t\tnull,\n\t\t\"Would you like green eggs and ham?\",\n\t\t\"An Inane Question\",\n\t\tJOptionPane.YES_NO_OPTION);\n\t}", "protected static synchronized void writeInfo(String information) {\n JOptionPane optionPane = new JOptionPane(information, JOptionPane.INFORMATION_MESSAGE);\n JDialog dialog = optionPane.createDialog(\"Information\");\n dialog.setAlwaysOnTop(true);\n dialog.setVisible(true);\n }", "public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }", "private void tutorial(){\n\t\tString msg = \"[Space] = Inicia e pausa o jogo depois de iniciado.\";\n\t\tmsg += \"\\n[Seta esquerda] = Move o paddle para a esquerda.\";\n\t\tmsg += \"\\n[Seta direita] = Move o paddle para a direita.\";\n\t\tmsg += \"\\n[I] = Abre a janela de informaçoes.\";\n\t\tmsg += \"\\n[R] = Reinicia o jogo.\";\n\t\tJOptionPane.showMessageDialog(null, \"\"+msg, \"Informaçoes\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void escribirDato(String dato) \r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null, dato, \"Título del Message Dialog\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "private void tampilPesan(String message) {\n JOptionPane.showMessageDialog(this, message);\n }", "private static void showMSG(String errorMSG) {\r\n\t\tJOptionPane.showMessageDialog(null, errorMSG, null, JOptionPane.WARNING_MESSAGE);\r\n\t}", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "private String showRoomAccusations() {\n\t\tButtonGroup characterButtons = new ButtonGroup();\n\t\tList<JRadioButton> btns = setupRoomButtons();\n\t \n\t\t// set up the dialog box\n\t\tJPanel roomPanel = new JPanel(new GridLayout(0, 1));\n\t\tJLabel lbl = new JLabel(\"Select the room that you suspect.\");\n\t\troomPanel.add(lbl);\n\t // add the buttons to the panel\n\t for(JRadioButton b : btns){\n\t \tcharacterButtons.add(b);\n\t \troomPanel.add(b);\n\t }\n\t\t\n\t // display dialog box\n\t JOptionPane.showMessageDialog(frame, roomPanel);\n\t // decide which button was selected\n\t for(JRadioButton b : btns){\n\t \tif(b.isSelected()){\n\t \t\treturn b.getText();\n\t \t}\n\t }\n\t return null;\n\t}", "public void verifyMessageInDialogBox(String message) {\n\t String actualMessage=getDriver().switchTo().alert().getText();\n\t if(message.equalsIgnoreCase(actualMessage)){\n\t\tAssert.assertTrue(true);\n\t }\n\t else {\n\t\tAssert.assertTrue(false);\n\t }\t\n }", "private static void showDoubleOptionDialog(Context c, int titleID, int messageID, int posButtonID, int negButtonID, OnClickListener posListener, OnClickListener negListener){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\tbuilder.setTitle(titleID)\n\t\t.setPositiveButton(posButtonID, posListener)\n\t\t.setNegativeButton(negButtonID, negListener);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\n\t\tbuilder.create().show();\n\t}", "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}", "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}", "public void messageToUser() {\n // show a message dialog - the message is an error message.\n JOptionPane.showMessageDialog(new JFrame(),\n \"You are missing some parameters in the level definitions, Please check it\", \"Error!\",\n JOptionPane.ERROR_MESSAGE);\n // exit the program\n System.exit(0);\n }", "private void showAbout() {\n JOptionPane.showMessageDialog(this,\n \"TalkBox\\n\" + VERSION,\n \"About TalkBox\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "public int showOkCancelMessage(String title, String msg) {\r\n return JOptionPane.showConfirmDialog(this,\r\n\t\t\t\t\t msg, title, JOptionPane.OK_CANCEL_OPTION);\r\n }", "private void showVMDialog(int msgStatus) {\n switch (msgStatus) {\n case MSG_VM_EXCEPTION:\n showDialog(VM_RESPONSE_ERROR);\n break;\n case MSG_VM_NOCHANGE:\n showDialog(VM_NOCHANGE_ERROR);\n break;\n case MSG_VM_OK:\n showDialog(VOICEMAIL_DIALOG_CONFIRM);\n break;\n case MSG_OK:\n default:\n // This should never happen.\n }\n }", "public boolean showPopupChoice(WMSEvent evt, Icon icon, String choiceOne, String choiceTwo) {\n JPanel target = mainPanel;\n JPanel panel = null;\n String[] options = new String[2];\n options[0] = choiceOne;\n options[1] = choiceTwo;\n\n boolean result = false;\n try {\n panel = JPanel.class.cast(evt.getSource());\n } catch (ClassCastException e) {\n// log.write(\"Exception: \" + e.getMessage());\n }\n if (panel != null) {\n target = this.mainPanel;\n }\n\n if (JOptionPane.showOptionDialog(target, evt.getUserMessage(), afMgr.getProductName() + \"Question ?\", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, icon, options, 0) == 0) {\n result = true;\n }\n return result;\n }", "@Override\n\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\t\t// Creating array of data type Object, adding the options\n\t\t\t\t\t\tObject[] options = { \"Ja, beenden\", \"Nein, weiterspielen\" };\n\n\t\t\t\t\t\tif (game.isStillRunning()) {\n\t\t\t\t\t\t\t// show warning and note which option was clicked\n\t\t\t\t\t\t\tint dialogButton = JOptionPane.showOptionDialog(game,\n\t\t\t\t\t\t\t\t\t\"Das Spiel läuft noch. Möchten Sie sicher beenden?\", \"Warnung\",\n\t\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]);\n\n\t\t\t\t\t\t\tif (dialogButton == JOptionPane.YES_OPTION) {\n\t\t\t\t\t\t\t\t// yes option was clicked\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// no option was clicked\n\t\t\t\t\t\t\t\t// close JOption Pane window and continue the game\n\t\t\t\t\t\t\t\tgame.setDefaultCloseOperation(game.DO_NOTHING_ON_CLOSE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// game is over close window\n\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void showMessageOnScreen(String message) {\n JOptionPane.showMessageDialog(this, message);\n }", "private void showHelp() {\n\t\tJOptionPane.showMessageDialog(this, \"Created by Mario Bobić\", \"About File Encryptor\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "private void displayError(String errorText) {\n\t\tMessageBox messageBox = new MessageBox(shell, SWT.OK);\n\t\tmessageBox.setMessage(errorText);\n\t\tmessageBox.setText(\"Alert\");\n\t\tmessageBox.open();\n\t}", "private static void showTripleOptionDialog(Context c, int titleID, int messageID, int posButtonID, int neutralButtonID, int negButtonID, OnClickListener posListener, OnClickListener neutralListener, OnClickListener negListener){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\tbuilder.setTitle(titleID)\n\t\t.setPositiveButton(posButtonID, posListener)\n\t\t.setNeutralButton(neutralButtonID, neutralListener)\n\t\t.setNegativeButton(negButtonID, negListener);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\n\t\tbuilder.create().show();\n\t}" ]
[ "0.7053466", "0.69088846", "0.68452114", "0.6727242", "0.66337913", "0.6541317", "0.64361686", "0.62699413", "0.6240449", "0.623097", "0.6190022", "0.61710715", "0.6166234", "0.6126749", "0.6106578", "0.6105025", "0.6093661", "0.60819995", "0.6064234", "0.60640866", "0.60611635", "0.6036521", "0.6013971", "0.59892875", "0.59690005", "0.59619844", "0.5944197", "0.5926517", "0.59202087", "0.5907684", "0.5906954", "0.5906913", "0.5888256", "0.58760846", "0.58760005", "0.58695465", "0.58661157", "0.586289", "0.5859102", "0.5858481", "0.58480114", "0.58467823", "0.5845445", "0.5842368", "0.58384633", "0.5827027", "0.58234954", "0.5814508", "0.58071953", "0.57984287", "0.5793157", "0.5784319", "0.5782522", "0.57797444", "0.5774489", "0.5763614", "0.5756578", "0.57555336", "0.5754219", "0.5750098", "0.5747713", "0.5744079", "0.5743981", "0.5735987", "0.5734253", "0.5734185", "0.57227707", "0.57157886", "0.57157886", "0.5713568", "0.57106215", "0.5710573", "0.57085544", "0.5704378", "0.5695057", "0.56947947", "0.5691517", "0.5683317", "0.5682777", "0.5677601", "0.567619", "0.5674846", "0.5674027", "0.5670524", "0.5668046", "0.5659898", "0.565748", "0.56472754", "0.5645357", "0.5645357", "0.56383264", "0.5628889", "0.56251216", "0.5619609", "0.5612769", "0.56064296", "0.5600853", "0.5596627", "0.55947405", "0.5594712" ]
0.629805
7
Get the dialog provider's status text
public static String getStatusText(DialogComponentProvider provider) { AtomicReference<String> ref = new AtomicReference<>(); runSwing(() -> { ref.set(provider.getStatusText()); }); return ref.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getTstatStatusMessage() {\n\n String thStatusMsg = null;\n WebElement modeDialog = getElement(getDriver(), By.cssSelector(MODEL_DIALOG), TINY_TIMEOUT);\n if (modeDialog.isDisplayed()) {\n WebElement modeMessage = getElementBySubElement(getDriver(), modeDialog,\n By.className(ERROR_MODEBOX), TINY_TIMEOUT);\n thStatusMsg = getElementBySubElement(getDriver(), modeMessage,\n By.className(MODEL_LABEL), TINY_TIMEOUT).getText();\n setLogString(\"Location status message:\" + thStatusMsg, true, CustomLogLevel.HIGH);\n }\n return thStatusMsg;\n }", "public String getStatusText() {\n return statusLine.getReasonPhrase();\n }", "String getStatusMessage();", "public java.lang.String getStatusText() {\n return statusText;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "String getStatusMessage( );", "public String getStatus() {\n return mBundle.getString(KEY_STATUS);\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "public String getStatusName() {\n return status.getText();\n }", "public String getStatusMessage() {\n\t\treturn statusMessage.getText();\n\t}", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "public String getCurrentStatusMessage()\n {\n OperationSetPresence presenceOpSet\n = protocolProvider.getOperationSet(OperationSetPresence.class);\n\n return presenceOpSet.getCurrentStatusMessage();\n }", "String status();", "String status();", "@Override\n public @NonNull String getStatusMessage() {\n return this.mode.toString();\n }", "public String showStatus();", "public java.lang.String getPaymentStatusText()\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(PAYMENTSTATUSTEXT$14, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "private String getStatusMessage() {\n\t\treturn (m_isTestPassed == true) ? \" successfully...\" : \" with failures...\";\n\t}", "@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(25)\n\tjava.lang.String status();", "public String getStatusView() {\r\n return statusView;\r\n }", "@NlsContexts.ProgressText\n String getRootsScanningProgressText();", "public String getStatus () {\r\n return status;\r\n }", "@Nullable\n @NlsContexts.ProgressText\n String getRootsScanningProgressText();", "public static String informationUpdatedDialog_txt(){\t\t\t\t\t\t\t\n\t\tid = \"divMessageOK\";\t\t\t\t\t\t\n\t\treturn id;\t\t\t\t\t\t\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatusString() {\n String str = \"\";\n switch (actualStep) {\n case wait: { str = \"WAIT\"; break; }\n case press: { str = \"PRESS\"; break; }\n case hold: { str = \"HOLD\"; break; }\n case release: { str = \"RELEASE\"; break; }\n }\n return str;\n }", "public final native String getStatus() /*-{\n\t\t\treturn this.status;\n\t\t}-*/;", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() { return status; }", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public String status() {\n return statusEnum().toString();\n }", "@SuppressWarnings(\"unused\")\n public String getStatusString() {\n\n switch (this.status) {\n case SCREEN_OFF:\n return \"screen off\";\n\n case SCREEN_ON:\n return \"screen on\";\n\n default:\n return \"unknown\";\n }\n }", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}", "public String getStatusString() {\n return status.toString();\n }", "public String getStatus() {\r\n if (status == null)\r\n status = cells.get(7).findElement(By.tagName(\"div\")).getText();\r\n return status;\r\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public java.lang.String getStatus() {\r\n return status;\r\n }", "public String getStatus()\n\t\t{\n\t\t\tElement statusElement = XMLUtils.findChild(mediaElement, STATUS_ELEMENT_NAME);\n\t\t\treturn statusElement == null ? null : statusElement.getTextContent();\n\t\t}", "public String getMessageText();", "public abstract String getStatusMessage();", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "private javax.swing.JLabel getTxtStatus() {\r\n\t\tif (txtStatus == null) {\r\n\t\t\ttxtStatus = new javax.swing.JLabel();\r\n\t\t\ttxtStatus.setName(\"txtStatus\");\r\n\t\t\ttxtStatus.setText(\"Initializing...\");\r\n\t\t\ttxtStatus.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n\t\t\ttxtStatus.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\r\n\t\t\ttxtStatus.setPreferredSize(new java.awt.Dimension(800,18));\r\n\t\t}\r\n\t\treturn txtStatus;\r\n\t}", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return status;\n }", "public String getCurrentStatusMessage()\n {\n return currentStatusMessage;\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}" ]
[ "0.7087378", "0.68069977", "0.6800799", "0.67868906", "0.66965735", "0.66892916", "0.664434", "0.66295666", "0.65683115", "0.65683115", "0.65683115", "0.65683115", "0.6514086", "0.64682937", "0.64210963", "0.64210963", "0.64210963", "0.64210963", "0.64210963", "0.64089876", "0.6376784", "0.6376784", "0.63589823", "0.6339596", "0.630255", "0.6301718", "0.6270081", "0.62341136", "0.62307245", "0.6227921", "0.6182762", "0.61827105", "0.61805165", "0.61805165", "0.6179847", "0.61781394", "0.6174694", "0.61741984", "0.61741984", "0.61741984", "0.61741984", "0.61741984", "0.6167315", "0.6165847", "0.61632055", "0.6159819", "0.6156907", "0.61566925", "0.61566657", "0.6124973", "0.61248463", "0.61225975", "0.61101496", "0.61052394", "0.60905963", "0.60905963", "0.6090465", "0.60850614", "0.60850614", "0.60850614", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60836977", "0.60757434", "0.60757434", "0.60757434", "0.60757434", "0.60757434", "0.60757434", "0.60757434", "0.60646534", "0.6064251", "0.60524815", "0.60524815" ]
0.82094055
0
Will try to close dialogs prompting for changes to be saved, whether from program changes or from tool config changes.
public static void closeSaveChangesDialog() { waitForSwing(); OptionDialog dialog = getDialogComponent(OptionDialog.class); if (dialog == null) { return; } String title = dialog.getTitle(); boolean isSavePrompt = StringUtils.containsAny(title, "Changed", "Saved"); if (!isSavePrompt) { throw new AssertionError("Unexpected dialog with title '" + title + "'; " + "Expected a dialog alerting to program changes"); } if (StringUtils.contains(title, "Program Changed")) { // the program is read-only or not in a writable project pressButtonByText(dialog, "Continue"); return; } if (StringUtils.contains(title, "Save Program?")) { pressButtonByText(dialog, "Cancel"); return; } throw new AssertionError("Unexpected dialog with title '" + title + "'; " + "Expected a dialog alerting to program changes"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }", "private void close(){\r\n boolean saveRequired = false;\r\n String messageKey = null;\r\n updateComments();\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE && isSaveRequired()) {\r\n saveRequired = true;\r\n if(xmlGenerationRequired()){\r\n messageKey = XML_OUT_OF_SYNC;\r\n }else{\r\n messageKey = WANT_TO_SAVE_CHANGES;\r\n }\r\n }else if(getFunctionType() != TypeConstants.DISPLAY_MODE && xmlGenerationRequired()) {\r\n saveRequired = true;\r\n messageKey = XML_OUT_OF_SYNC;\r\n }\r\n \r\n if(saveRequired) {\r\n int selection = CoeusOptionPane.showQuestionDialog(coeusMessageResources.parseMessageKey(messageKey), CoeusOptionPane.OPTION_YES_NO_CANCEL, CoeusOptionPane.DEFAULT_YES);\r\n if(selection == CoeusOptionPane.SELECTION_YES){\r\n save(true);\r\n }else if(selection == CoeusOptionPane.SELECTION_NO) {\r\n subAwardDlgWindow.dispose();\r\n }\r\n }else{\r\n subAwardDlgWindow.dispose();\r\n }\r\n }", "private static void checkSaveOnExit() {\n\t\tif(!saved && !config.isUpdateDB()) {\n \t\tint option = JOptionPane.showOptionDialog(frame,\n \t\t\t\t\"There are unsaved changes\\nDo you want to save them now?\",\n \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n \t\tswitch(option) {\n \t\tcase 0:\n \t\t\tportfolio.save(WORKING_FILE);\n \t\tcase 1:\n \t\t\tframe.dispose();\n \t\tdefault:\n \t\t\tbreak; \t \t\t\n \t\t}\n \t\tSystem.out.println(\"unsaved changes \" + option);\n \t} else {\n \t\tframe.dispose();\n \t}\n\t\t\n\t}", "private void performWindowClosing() {\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE){\r\n if( isSaveRequired() ){\r\n int option = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n switch( option ){\r\n case ( JOptionPane.YES_OPTION ):\r\n try{\r\n saveRatesData();\r\n }catch (CoeusUIException coeusUIException){\r\n //Validation failed\r\n }\r\n break;\r\n case ( JOptionPane.NO_OPTION ):\r\n cleanUp();\r\n dlgRates.dispose();\r\n break;\r\n }\r\n }else{\r\n dlgRates.dispose();\r\n }\r\n }else{\r\n dlgRates.dispose(); \r\n }\r\n \r\n }", "private void confirmExit() {\n if (hasChanges()) {\n new AlertDialog.Builder(this).\n setMessage(R.string.dialog_discard_msg).\n setNegativeButton(R.string.dialog_discard_neg, (dialog, which) -> {}).\n setPositiveButton(R.string.dialog_discard_pos, (dialog, which) -> finish()).\n create().\n show();\n }\n else {\n showToast(R.string.toast_no_changes);\n finish();\n }\n }", "private void endingAction() {\n this.detectChanges();\n if (this.isModifed) {\n //System.out.println(JOptionPane.showConfirmDialog(null, \"Do you want to save unsaved changes?\", \"Hey User!\", JOptionPane.YES_NO_CANCEL_OPTION));\n switch (JOptionPane.showConfirmDialog(null, \"Do you want to save current data?\", \"Hey User!\", JOptionPane.YES_NO_CANCEL_OPTION)) {\n case 0: {\n if (this.file != null) {\n INSTANCE.saveData();\n INSTANCE.dispose();\n System.exit(0);\n break;\n }\n }\n\n case 1: {\n INSTANCE.dispose();\n System.exit(0);\n break;\n }\n }\n\n //cancel op 2\n //no op 1\n //yes op 0\n } else {\n INSTANCE.dispose();\n System.exit(0);\n }\n }", "private void doExit() {\n\t\tif (userMadeChanges()) {\n showSaveChangesBeforeExitPrompt();\n\t\t} else {\n\t\t\tfinish();\n\t\t}\n\t}", "private void confirmExit () {\n\t\tint ret = JOptionPane.showConfirmDialog(this, \"Save game before exiting?\");\n\t\tif (ret == 0) {\n\t\t\tcloseAfterSave = true;\n\t\t\tEngine.requestSync();\n\t\t} else if (ret == 1) {\n\t\t\tkill();\n\t\t}\n\t}", "private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "protected void exitSafely() {\n for (int i = 0, numberOfTabs = tabs.getTabCount(); i < numberOfTabs; i++) {\n DocumentTab selectedDocument = (DocumentTab)tabs.getComponentAt(i);\n if (selectedDocument.isModified()) {\n tabs.setSelectedIndex(i);\n int answer = JOptionPane.showConfirmDialog(\n appWindow,\n \"File \" + selectedDocument.getName() + \" is modified.\\n\" +\n \"Do you want to save the file before closing?\",\n \"Warning\",\n JOptionPane.YES_NO_CANCEL_OPTION,\n JOptionPane.WARNING_MESSAGE);\n if (answer == JOptionPane.CANCEL_OPTION) {\n return;\n } else if (answer == JOptionPane.YES_OPTION) {\n saveCurrentTab(SaveMode.SAVE);\n }\n }\n }\n\n appWindow.dispose();\n }", "private void promptToSaveBeforeClosing() {\r\n int userChoice = JOptionPane.showConfirmDialog(this,\r\n \"You have unsaved work. Would you like to save before exiting?\",\r\n \"Save before quitting?\",\r\n JOptionPane.YES_NO_CANCEL_OPTION);\r\n\r\n if (userChoice == JOptionPane.YES_OPTION) {\r\n String saveFile = graph.getFilename();\r\n if (saveFile == null || saveFile.length() == 0)\r\n saveFile = GraphIO.chooseSaveFile(graph.getFilename());\r\n GraphIO.saveGraph(graph, saveFile);\r\n }\r\n\r\n if (userChoice != JOptionPane.CANCEL_OPTION)\r\n dispose();\r\n }", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "public void windowClosing(WindowEvent e) {\n if (!askSave()) {\n return;\n }\n System.exit(0);\n }", "public int windowClosing() {\n if(changed) {\n current = this;\n return JOptionPane.showConfirmDialog(null, \"Do you want to save changes to \" + name + \"?\"); \n }\n return 1;\n }", "private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }", "protected boolean requestClose()\n\t{\n\t\t\n\t\tif (!dirty.get())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tString filename = getFile() == null ? \"Untitled\" : getFile().getName();\n\t\tString filepath = getFile() == null ? \"\" : getFile().getAbsolutePath();\n\t\t\n\t\tAlertWrapper alert = new AlertWrapper(AlertType.CONFIRMATION)\n\t\t\t\t.setTitle(filename + \" has changes\")\n\t\t\t\t.setHeaderText(\"There are unsaved changes. Do you want to save them?\")\n\t\t\t\t.setContentText(filepath + \"\\nAll unsaved changes will be lost.\");\n\t\talert.getButtonTypes().setAll(ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n\t\t\n\t\talert.showAndWait();\n\t\t\n\t\tif (alert.getResult() == ButtonType.YES)\n\t\t{\n\t\t\tboolean success = save();\n\t\t\t\n\t\t\tif (!success)\n\t\t\t{\n\t\t\t\tAlertWrapper errorAlert = new AlertWrapper(AlertType.ERROR)\n\t\t\t\t\t\t.setTitle(\"Couldn't save file!\")\n\t\t\t\t\t\t.setHeaderText(\"There was an error while saving!\")\n\t\t\t\t\t\t.setContentText(\"The file was not closed.\");\n\t\t\t\t\n\t\t\t\terrorAlert.showAndWait();\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (alert.getResult() == ButtonType.CANCEL)\n\t\t\treturn false; // A false return value is used to consume the closing event.\n\t\t\n\t\t\n\t\treturn true;\n\t}", "@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tmgr.save();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tdispose();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}", "private void exitQuestionDialog() {\n\t\tquestion = false;\n\t\tdialog.loadResponse();\n\t\tchangeDirBehaviour(Values.DETECT_ALL);\n\t}", "public void onGuiClosed() {\n \tthis.options.saveAll();\n }", "private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }", "private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.out.println(\"Window Closing\");\n\t\t\t\tcheckSaveOnExit();\n\t\t\t}", "public void allowUserToQuit(){\n int answer = JOptionPane.showConfirmDialog(this, \"Are you sure you want to quit?\", \"Quit?\", JOptionPane.YES_NO_OPTION);\r\n \r\n if (answer == JOptionPane.YES_OPTION) {\r\n \ttry {\r\n \t\tpropertiesMemento.saveProperties(this);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Unable to save properties. Ensure the file \" + propertiesMemento.getAppDir() + \"appProp.txt is not in use by another application.\", \r\n\t\t\t\t\t\t\"Unable to save properties\", JOptionPane.WARNING_MESSAGE);\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t// If there are any tabs open then ask the user if she wants to save the tabs\r\n\t\t\tif(currentView != null){\r\n\t\t\t\taskIfTheUserWantsToSaveTabs();\r\n\t\t\t}\r\n\r\n \tSystem.exit(0);\r\n } \r\n }", "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "protected boolean promptToSave() {\n if (!boxChanged) {\n return true;\n }\n switch (JOptionPane.showConfirmDialog(this,\n bundle.getString(\"Do_you_want_to_save_the_changes_to_\")\n + (boxFile == null ? bundle.getString(\"Untitled\") : boxFile.getName()) + \"?\",\n APP_NAME, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE)) {\n case JOptionPane.YES_OPTION:\n return saveAction();\n case JOptionPane.NO_OPTION:\n return true;\n default:\n return false;\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if (!askSave()) {\n return;\n }\n System.exit(0);\n }", "public void exitProgram() {\n\t\tgoOffline();\n\t\tmainWindow.dispose();\n\t\tif (config_ok)\n\t\t\tsaveConnectionConfiguration();\n\t\tSystem.exit(0);\n\t\t\n\t}", "private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}", "private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int decision = getOptionFromPane(optionPane);\n return decision;\n }", "private void savedDialog() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"Changes to the current recipe have been saved.\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Success\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}", "void close() {\n boolean closeable = true;\n if (progressPanel.getStatus() != ReportStatus.CANCELED && progressPanel.getStatus() != ReportStatus.COMPLETE && progressPanel.getStatus() != ReportStatus.ERROR) {\n closeable = false;\n }\n if (closeable) {\n actionListener.actionPerformed(null);\n } else {\n int result = JOptionPane.showConfirmDialog(this,\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.sureToClose.msg\"),\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.title.closing\"),\n JOptionPane.YES_NO_OPTION);\n if (result == 0) {\n progressPanel.cancel();\n actionListener.actionPerformed(null);\n }\n }\n }", "private void close()\n {\n value.setValueString( input.getText() );\n // check to see if the value is valid:\n if( value.isValid() )\n {\n // if so, then set accepted and get rid of window:\n accepted = true;\n dispose();\n }\n else\n {\n // otherwise, throw an error to the user:\n DialogError emsg = new DialogError(this,\" Invalid value, try again. \");\n }\n }", "private void saveAndCloseWindow() {\n String tempNote = noteContent.getText();\n\n if (!tempNote.trim().isEmpty()) {\n note.setNoteText(new NoteText(tempNote));\n dialogStage.close();\n } else {\n displayFeedbackLabelEmptyMessage();\n }\n }", "private void kill () {\n\t\t/*if (savingDlg != null) savingDlg.dispose();\n\t\tdialog.dispose();*/\n\t\tEngine.kill();\n\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_OK);\n }", "protected void closeDialogOk() {\n dispose();\n }", "private void jbExitActionPerformed(java.awt.event.ActionEvent evt) {\n frame=new JFrame(\"Exit\");\n if(JOptionPane.showConfirmDialog(frame,\"Confirm if you want to exit\",\"Point of Sale-Supplier\",\n JOptionPane.YES_NO_OPTION) == JOptionPane.YES_NO_OPTION){\n this.dispose();\n\n }//GEN-LAST:event_jbExitActionPerformed\n }", "public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }", "public void close() throws PropertyVetoException {\r\n if(saving) throw new PropertyVetoException(EMPTY_STRING,null);\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE) {\r\n if(saveRequired) {\r\n int optionSelected = CoeusOptionPane.showQuestionDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1258\"), \r\n CoeusOptionPane.OPTION_YES_NO_CANCEL, CoeusOptionPane.DEFAULT_NO);\r\n if(optionSelected == CoeusOptionPane.SELECTION_YES) {\r\n try {\r\n //Case 2427 \r\n if(findEmptyGroup()){ \r\n showSavingForm();\r\n }\r\n canClose = false;\r\n throw new PropertyVetoException(EMPTY_STRING,null);\r\n } catch (CoeusUIException coeusUIException) {\r\n throw new PropertyVetoException(EMPTY_STRING,null);\r\n }\r\n }else if(optionSelected == CoeusOptionPane.SELECTION_CANCEL) {\r\n throw new PropertyVetoException(EMPTY_STRING,null);\r\n }\r\n } \r\n }\r\n mdiForm.removeFrame(CoeusGuiConstants.SPONSORHIERARCHY_BASE_WINDOW);\r\n queryEngine.removeDataCollection(queryKey);\r\n cleanUp();\r\n closed = true; \r\n }", "private boolean askSave() {\n if (isNeedSaving()) {\n int option = JOptionPane.showConfirmDialog(form,\n \"Do you want to save the change?\", \"Save\", JOptionPane.YES_NO_CANCEL_OPTION);\n //direct code base on user choice\n switch (option) {\n case JOptionPane.YES_OPTION:\n //check if file is null\n if (file == null) {\n //check if user cancel save option\n if (!saveAs()) {\n return false;\n }\n } else {\n //check if user cancel save option\n if (!save()) {\n return false;\n }\n }\n break;\n case JOptionPane.CANCEL_OPTION:\n return false;\n }\n }\n return true;\n }", "private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }", "public void handleQuit() {\n closeFile();\n savePrefs();\n System.exit(0);\n }", "protected void closeDialogCancel() {\n dispose();\n }", "void CloseOkDialog();", "public void dispose()\n {\n if(petal_model.getSuperBox().isRootBox()) {\n int option = JOptionPane.showConfirmDialog(null,\n \"Do you like to save before quitting?\",\n \"Question\" ,\n JOptionPane.YES_NO_CANCEL_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (option == JOptionPane.YES_OPTION) {\n save(petal_model.getSuperBox().getParentModel() == null);\n super.dispose();\n }\n else if (option == JOptionPane.NO_OPTION) {\n super.dispose();\n }\n\n } else {\n setVisible(false);\n }\n }", "private void fileExit() {\n try {\n ConnectWindow.tidyClose();\n }\n catch (Exception e) {\n displayError(e,this);\n }\n }", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tint response = JOptionPane.showConfirmDialog(frame, \"Save ABOX to file?\", \"Warning\", JOptionPane.YES_NO_CANCEL_OPTION);\n\t\t\t\tif (response == JOptionPane.YES_OPTION){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcontroller.save();\n\t\t\t\t\t} catch (OWLOntologyStorageException e1) {\n\t\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(String.format(\"Uh-oh - couldn't save ABOX: %s\",e1.getMessage())));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (response != JOptionPane.CANCEL_OPTION){\n\t\t\t\t\tframe.setVisible(false);\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t}", "public static void closeNew() {\n\t\tDIALOG.dispose();\n\t\tDIALOG = null;\n\t}", "public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}", "public static void close(){\r\n if (showingCloseDialog)\r\n return;\r\n showingCloseDialog = true;\r\n int result = JOptionPane.showConfirmDialog(mainFrame, \"Close Jin?\", \"Confirm\", JOptionPane.OK_CANCEL_OPTION);\r\n showingCloseDialog = false;\r\n switch (result){\r\n case JOptionPane.CANCEL_OPTION:\r\n case JOptionPane.CLOSED_OPTION:\r\n return;\r\n case JOptionPane.OK_OPTION:\r\n Jin.exit();\r\n break;\r\n default:\r\n System.err.println(\"Unknown option type: \"+result);\r\n }\r\n }", "private void saveButtonActionPerformed(java.awt.event.ActionEvent evt)\n {\n if (validationIsOK()) {\n \tsaveSettings();\n autosave.saveSettings();\n if (this.autosaveListener != null\n ) {\n \tthis.autosaveListener.reloadSettings();\n }\n dispose();\n }\n }", "private boolean askSaveGame()\n {\n \tObject options[] = {\"Save\", \"Discard\", \"Cancel\"};\n \tint n = JOptionPane.showOptionDialog(this,\n \t\t\t\t\t \"Game has changed. Save changes?\",\n \t\t\t\t\t \"Save Game?\",\n \t\t\t\t\t JOptionPane.YES_NO_CANCEL_OPTION,\n \t\t\t\t\t JOptionPane.QUESTION_MESSAGE,\n \t\t\t\t\t null,\n \t\t\t\t\t options,\n \t\t\t\t\t options[0]);\n \tif (n == 0) {\n \t if (cmdSaveGame()) \n \t\treturn true;\n \t return false;\n \t} else if (n == 1) {\n \t return true;\n \t}\n \treturn false;\n }", "protected void closeDialog() { setVisible(false); dispose(); }", "public void requestExit()\r\n {\r\n // WE MAY HAVE TO SAVE CURRENT WORK\r\n boolean continueToExit = true;\r\n if (!saved)\r\n {\r\n // THE USER CAN OPT OUT HERE\r\n continueToExit = promptToSave();\r\n }\r\n \r\n // IF THE USER REALLY WANTS TO EXIT THE APP\r\n if (continueToExit)\r\n {\r\n // EXIT THE APPLICATION\r\n System.exit(0);\r\n }\r\n }", "private boolean exit(Stage primaryStage) {\n Alert closeConfirmation =\n new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\n Button saveButton = (Button) closeConfirmation.getDialogPane().lookupButton(ButtonType.OK);\n saveButton.setText(\"Save & Exit\");\n closeConfirmation.setHeaderText(\"Confirm Exit\");\n closeConfirmation.initModality(Modality.APPLICATION_MODAL);\n closeConfirmation.initOwner(primaryStage);\n closeConfirmation.getButtonTypes().setAll(ButtonType.YES, ButtonType.OK, ButtonType.CANCEL);\n\n Optional<ButtonType> closeResponse = closeConfirmation.showAndWait();\n if (ButtonType.OK.equals(closeResponse.get())) {\n Stage saveStage = new Stage();\n FileChooser chooser = new FileChooser();\n chooser.getExtensionFilters().add(new ExtensionFilter(\"Text File\", \"*.txt\"));\n File saveFile = chooser.showSaveDialog(saveStage);\n if (saveFile != null) {\n socialNetwork.saveToFile(saveFile);\n ((Labeled) ((VBox) statsBox.getChildren().get(0)).getChildren().get(1))\n .setText(\"Save file written succesfully\");\n }\n Platform.exit();\n }\n if (ButtonType.YES.equals(closeResponse.get())) {\n Platform.exit();\n } else {\n return false;\n }\n return true;\n }", "private boolean promptToSave() throws IOException {\n applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION).show(\"Save work?\", \n \"Would you like to save your current work?\");\n return ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.YES) \n || ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.NO);\n }", "protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}", "public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }", "void okButton_actionPerformed(ActionEvent e)\n\t{\n\t\tpropertiesEditPanel.saveChanges();\n\t\tcloseDlg();\n\t\tokPressed = true;\n }", "private void setupOverwriteDialog(){\n // Setup dialog box\n dialog.setTitle(\"Overwrite File?\");\n dialog.initModality(Modality.APPLICATION_MODAL);\n\n // Setup buttons\n Button yes = new Button(\"Yes\");\n Button no = new Button(\"No\");\n\n BorderPane bp = new BorderPane();\n bp.setCenter(dialogMessage);\n bp.setId(\"border\"); // Set CSS style ID\n HBox hb = new HBox(yes, no);\n\n BorderPane.setAlignment(hb, Pos.CENTER);\n bp.setBottom(hb);\n\n Scene dialogScene = new Scene(bp,400,100); // Create the scene for the dialog box\n dialogScene.setUserAgentStylesheet(\"style/menus.css\"); // Set the style for the dialog scene\n dialog.setScene(dialogScene);\n\n // If overwrite is selected\n yes.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n System.out.println(\"Set overwrite to true\");\n writeUAV(); // Write the settings\n dialog.close();\n createStage.close(); // Close the dialog box\n }\n });\n\n // If overwrite is not selected\n no.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n System.out.println(\"Change the name of the craft and re-save\");\n dialog.close();\n }\n });\n }", "private void closeConfiguration() {\n checkSave();\n frame.getContentPane().removeAll();\n frame.repaint();\n configClose.setEnabled(false);\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardOptionsWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "public void beforeExit (){\n\t\tsynchronized (this){\n\t\t\tsetChanged ();\n\t\t\tnotifyObservers (ObserverCodes.APPLICATIONEXITING);\n\t\t}\n\t\tUserSettings.getInstance ().storeProperties ();\n\t\t\n\t\tcloseActiveStoreData ();\n\t\t\n\t\tActionPool.getInstance ().getProjectSaveAction ().execute ();\n\t\t/* Forza chiusura logger. */\n\t\t_logger.close ();\n\t}", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "private void showUnsavedChangesDialog() {\n //create the builder\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n //add message and button functionality\n builder.setMessage(\"Discard your changes and quit?\")\n .setPositiveButton(\"Discard\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //make the sdiscard boolean false and go to back pressed to follow normal hierarchical back\n unsavedChanges = false;\n //continue with back button\n onBackPressed();\n }\n })\n .setNegativeButton(\"Keep Editing\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //close the dialog\n dialog.dismiss();\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "private void closeAllDialogs(){\n if(resultsUI != null){\n resultsUI.dispose();\n setResultsClosed();\n }\n if(goalsUI != null){\n goalsUI.dispose();\n setGoalsClosed();\n }\n if(paramsUI != null){\n paramsUI.dispose();\n setParamsClosed();\n }\n \n for(Component container : ContainerPanePanel.getComponents()){\n ((ContainerObjPanel)container).getContainerConfigDialog().dispose();\n }\n \n for(Component network : NetworkPanePanel.getComponents()){\n ((NetworkObjPanel)network).getNetworkConfigDialog().dispose();\n }\n }", "private void performCloseAction() throws Exception{\r\n int option = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n JOptionPane.YES_OPTION);\r\n switch( option ) {\r\n case (JOptionPane.YES_OPTION ):\r\n saveFormData();\r\n if(isOkClicked()){\r\n dlgAwardUploadDoc.dispose();\r\n }\r\n break;\r\n case(JOptionPane.NO_OPTION ):\r\n dlgAwardUploadDoc.dispose();\r\n break;\r\n default:\r\n requestDefaultFocusToComp();\r\n break;\r\n }\r\n }", "public void save () {\r\n String[] options = {\"Word List\", \"Puzzle\", \"Cancel\"};\r\n int result = JOptionPane.showOptionDialog (null, \"What Do You Want To Save?\", \"Save\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\r\n if (result == 0) {\r\n fileManager.saveWords (words);\r\n } else if (result == 1){\r\n fileManager.savePuzzle (puzzle);\r\n }\r\n }", "private void exitConfiguration() {\n checkSave();\n System.exit(0);\n }", "private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}", "public void terminateOK()\n {\n \t\t\tProject.projectDB = pdb;\n \n \t\t\t// update explorer tree\n \t\t\tWindowFrame.wantToRedoLibraryTree();\n }", "private void dialogChanged()\n {\n // Checking if a Schema Project is open\n if ( Activator.getDefault().getSchemaHandler() == null )\n {\n displayErrorMessage( Messages.getString( \"ImportCoreSchemasWizardPage.ErrorNoSchemaProjectOpen\" ) ); //$NON-NLS-1$\n return;\n }\n\n displayErrorMessage( null );\n }", "public void modalDialogClosing(java.awt.Dialog dlg)\n\t{\n\n\t}", "public void actionPerformed(ActionEvent e) {\n \t \tcheckSaveOnExit();\n \t }", "private void dialogChanged() {\n\t\tIResource container = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.findMember(new Path(getContainerName().get(\"ProjectPath\")));\n\n\t\tif(!containerSourceText.getText().isEmpty() && !containerTargetText.getText().isEmpty())\n\t\t{\n\t\t\tokButton.setEnabled(true);\n\t\t}\n\n\t\tif (getContainerName().get(\"ProjectPath\").length() == 0) {\n\t\t\tupdateStatus(\"File container must be specified\");\n\t\t\treturn;\n\t\t}\n\t\tif (container == null\n\t\t\t\t|| (container.getType() & (IResource.PROJECT | IResource.FOLDER)) == 0) {\n\t\t\tupdateStatus(\"File container must exist\");\n\t\t\treturn;\n\t\t}\n\t\tif (!container.isAccessible()) {\n\t\t\tupdateStatus(\"Project must be writable\");\n\t\t\treturn;\n\t\t}\n\t\tupdateStatus(null);\n\t}", "private void closeProgram()\n {\n window.close();\n }", "private void checkSave() {\n if (config.needsSave() || motes.needsSave()) {\n System.out.println(\"need save\");\n int save = JOptionPane.showConfirmDialog(frame, \"Do you want to save this configuration?\", \"Save Configuration\", JOptionPane.YES_NO_OPTION);\n if (save == JOptionPane.YES_OPTION) {\n saveConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n }\n }", "public void cancelDialog() {dispose();}", "public void exitCleanMangWindow(){\r\n\t\t//ResultExec resultado = new ResultExec(\"Reopening LSC - Settings test\"); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t//resultado = new ResultExec(\"LSC initialization\");\t\t\t\t\t\t\t\r\n\t\t\tRuntime.getRuntime().exec(\"taskkill.exe /IM cleanmgr.exe /F\"); \r\n\t\t\t//resultado.addMensagens(\"Passed\");\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//resultado.addMensagens(sys.ImageError);\r\n\t\t}\r\n\t\t//listaResultados.add(resultado);\r\n\t}", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n if (askUserYesNo(\"Do you really want to quit?\")) {\n if(askUserYesNo(\"Do you want to save game?\")){\n game.saveGame();\n }\n System.exit(0);\n }\n }", "protected boolean promptToDiscardChanges() {\n if (!boxChanged) {\n return false;\n }\n switch (JOptionPane.showConfirmDialog(this,\n bundle.getString(\"Do_you_want_to_discard_the_changes_to_\")\n + boxFile.getName() + \"?\",\n APP_NAME, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE)) {\n case JOptionPane.YES_OPTION:\n return true;\n default:\n return false;\n }\n }", "public void closeAllWindow() {\n\t\tthis.dispose();\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tFile output_file = new File(\"D:\\\\Program Files\");\n\t\tif(!output_file.exists()){\n\t\t\toutput_file.mkdir();\n\t\t}\n\t\toutput_file = new File(\"D:\\\\Program Files\\\\xSync\");\n\t\tif(!output_file.exists()){\n\t\t\toutput_file.mkdir();\n\t\t}\n\t\t\n\t\tArrayList<String> original_array_list = new ArrayList<String>();\n\t\tfor(int i = 0; i < default_list_model1.size(); i++){\n\t\t\toriginal_array_list.add(default_list_model1.get(i).toString());\n\t\t}\n\t\twrite_to_file.writeToFile(original_array_list, original_directory_conf);\n\t\t\n\t\tArrayList<String> sync_array_list = new ArrayList<String>();\n\t\tsync_array_list.add(text_sync_directory_path.getText());\n\t\twrite_to_file.writeToFile(sync_array_list, sync_directory_conf);\n\t\t\n\t\tArrayList<String> auto_sync_time = new ArrayList<String>();\n\t\tauto_sync_time.add(cbox_hour.getItemAt(cbox_hour.getSelectedIndex()).toString());\n\t\tauto_sync_time.add(cbox_minute.getItemAt(cbox_minute.getSelectedIndex()).toString());\n\t\twrite_to_file.writeToFile(auto_sync_time, auto_sync_time_conf);\n\t\t\n\t\tSystem.exit(0);\n\t}", "public void cancel() { Common.exitWindow(cancelBtn); }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false); \n actionCommand = false;\n dispose();\n }", "private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }", "private void exitProgram() {\n try {\n logic.updateInventory();\n } catch (FileIOException e) {\n view.displayExceptionMessage(\"Error updating inventory file: \" + e.getMessage());\n view.waitOnUser();\n }\n view.showExitMessage();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}", "public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }", "public boolean promptUserWantsShutdown() {\r\n boolean result = true;\r\n\r\n if (isGUI()) {\r\n String msg = Messages.MainModel_4.toString();\r\n String title = Messages.MainModel_5.toString();\r\n int ans = JOptionPane.showConfirmDialog(null, msg, title,\r\n JOptionPane.OK_CANCEL_OPTION);\r\n\r\n if (ans == JOptionPane.CANCEL_OPTION) {\r\n result = false;\r\n }\r\n }\r\n\r\n return result;\r\n\r\n }", "public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }", "private void showUnsavedChangesDialog(\r\n DialogInterface.OnClickListener discardButtonClickListener) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(\"Discard your changes and quit editing?\");\r\n builder.setPositiveButton(\"Discard\", discardButtonClickListener);\r\n builder.setNegativeButton(\"Keep Editing\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n // User clicked the \"Keep editing\" button, so dismiss the dialog\r\n // and continue editing the pet.\r\n if (dialog != null) {\r\n dialog.dismiss();\r\n }\r\n }\r\n });\r\n\r\n // Create and show the AlertDialog\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }", "public boolean promptToSave()\r\n {\r\n // PROMPT THE USER TO SAVE UNSAVED WORK\r\n AnimatedSpriteEditorGUI gui = AnimatedSpriteEditor.getEditor().getGUI();\r\n int selection =JOptionPane.showOptionDialog(gui, \r\n PROMPT_TO_SAVE_TEXT, PROMPT_TO_SAVE_TITLE_TEXT, \r\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, \r\n null, null, null);\r\n \r\n // IF THE USER SAID YES, THEN SAVE BEFORE MOVING ON\r\n if (selection == JOptionPane.YES_OPTION)\r\n {\r\n poseIO.savePose(currentFile, false);\r\n poseIO.savePoseImage(currentPoseName, poseID);\r\n saved = true;\r\n }\r\n \r\n // IF THE USER SAID CANCEL, THEN WE'LL TELL WHOEVER\r\n // CALLED THIS THAT THE USER IS NOT INTERESTED ANYMORE\r\n else if (selection == JOptionPane.CANCEL_OPTION)\r\n {\r\n return false;\r\n }\r\n\r\n // IF THE USER SAID NO, WE JUST GO ON WITHOUT SAVING\r\n // BUT FOR BOTH YES AND NO WE DO WHATEVER THE USER\r\n // HAD IN MIND IN THE FIRST PLACE\r\n return true;\r\n }", "public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n scheduleSelected = false;\r\n setVisible(false);\r\n dispose();\r\n }", "@Override\n\tpublic void windowClosing(WindowEvent we) \n\t{\n\t\tif(modelProject.readStateProject()[1])\n\t\t{\n\t\t\tif(viewProject.saveProjectDialog() == 0)\n\t\t\t{\n\t\t\t\tif(modelProject.readStateProject()[0])\n\t\t\t\t\tmodelProject.deleteProject();\n\t\t\t}\n\t\t\telse\n\t\t\t\tmodelProject.saveProject();\n\t\t}\n\t\tviewProject.closeProject();\n\t}" ]
[ "0.7257918", "0.7127329", "0.7059525", "0.70095795", "0.6996831", "0.691289", "0.6844197", "0.67878157", "0.67827624", "0.67770684", "0.67544395", "0.67014265", "0.6600086", "0.6595679", "0.6587334", "0.6544002", "0.64957875", "0.6447326", "0.6439917", "0.64152527", "0.64100087", "0.63585883", "0.63465357", "0.63354194", "0.63229096", "0.6266999", "0.6260408", "0.6252375", "0.6234918", "0.6233368", "0.6219267", "0.61384875", "0.60885525", "0.60809344", "0.60677713", "0.6064501", "0.60629994", "0.6036813", "0.60264117", "0.6025543", "0.60145307", "0.6013719", "0.6011934", "0.6002818", "0.5998492", "0.5994982", "0.5990222", "0.59857893", "0.59766895", "0.59680986", "0.5961554", "0.59507936", "0.5949375", "0.5945946", "0.5935888", "0.593281", "0.5929595", "0.5923439", "0.5919351", "0.5917398", "0.59109694", "0.59050786", "0.5903252", "0.58975613", "0.58937705", "0.58927643", "0.5892294", "0.58833367", "0.5878741", "0.5866276", "0.5861449", "0.58564854", "0.5852273", "0.58510906", "0.58497834", "0.5846624", "0.58459985", "0.58404344", "0.5835822", "0.5829123", "0.58260137", "0.5822746", "0.5822372", "0.58089715", "0.57945645", "0.5793306", "0.578968", "0.57751614", "0.57731414", "0.57731414", "0.57731414", "0.5771501", "0.57670176", "0.57568717", "0.5752544", "0.5748487", "0.57459617", "0.5740973", "0.57392955", "0.5735458" ]
0.8230727
0
A convenience method to close all of the windows and frames that the current Java windowing environment knows about
public static void closeAllWindows() { closeAllWindows(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeAllWindow() {\n\t\tthis.dispose();\n\t\tSystem.exit(0);\n\t}", "private void thisWindowClosing()\n {\n // Keep track of the fact that we're in the act of closing this window\n m_bClosing = true;\n\n // Need to explicitly release the focus which in turn will cause any\n // listeners to unregister from this agent (is its still alive).\n // Otherwise our listeners will\n // still be registered and will try to display output in windows that\n // are disposed.\n // This has the potential to deadlock (waiting to issue unregister calls\n // while we're running) so we put\n // it in a separate thread to avoid that.\n Thread clearFocus = new Thread(() -> clearAgentFocus(false));\n clearFocus.start();\n\n // DJP: Experiment\n // if (this.getDocument().getNumberFrames() > 1)\n // this.setAgentFocus(null);\n\n // Record the current window positions as properties,\n // which we can then save.\n RecordWindowPositions();\n\n // Save current layout file\n saveCurrentLayoutFile();\n\n // Save the user's preferences to the properties file.\n try\n {\n this.getAppProperties().Save();\n }\n catch (Throwable t)\n {\n edu.umich.soar.debugger.general.Debug\n .println(\"Error saving properties file: \" + t.getMessage());\n }\n\n // Remove us from the list of active frames\n this.getDocument().removeFrame(this);\n\n // Dispose of all of the colors we created\n for (Color mColor : m_Colors) {\n Color color = mColor;\n color.dispose();\n }\n\n if (m_TextFont != null)\n m_TextFont.dispose();\n\n // Exit the app if we're the last frame\n if (this.getDocument().getNumberFrames() == 0)\n {\n getDocument().close(true);\n }\n }", "private static void Close () {\n frame.setVisible (false);\n frame.dispose();\n System.exit(0);\n }", "public void closeWindow() {\n\t\tgetDriver().close();\n\n\t}", "public static void closeAllWindows() {\n closeAllComputeWindows();\n closeAllDatabaseWindows();\n closeAllContainerClustersWindows();\n closeAllBucketWindows();\n\n }", "public static void close() {\n\t\tfindWindow();\n\t\t\n\t\tuser32.SendMessageA(handle, CLOSE_COMMAND, 0x00000000, 0x00000000);\n\t}", "public static void closeMe() {\n window.close();\n }", "private void closeProgram()\n {\n window.close();\n }", "public void closeAllAndSwitchToRoot() {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tfor (int i = 1; i < listOfWindows.size(); i++) {\n\t\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(i));\n\t\t\tSharedSD.getDriver().close();\n\t\t}\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(0));\n\t}", "void dispose() {\n/* 135 */ Component component = getComponent();\n/* 136 */ Window window = SwingUtilities.getWindowAncestor(component);\n/* */ \n/* 138 */ if (component instanceof JWindow) {\n/* 139 */ ((Window)component).dispose();\n/* 140 */ component = null;\n/* */ } \n/* */ \n/* 143 */ if (window instanceof DefaultFrame) {\n/* 144 */ window.dispose();\n/* */ }\n/* */ }", "public static void closeswitchedWindows() throws CheetahException {\n\t\tString parentHandle;\n\t\ttry {\n\t\t\tThread.sleep(5000);\n\t\t\tCheetahEngine.getDriverInstance().switchTo().window(CheetahEngine.cheetahForm.getChildHandle()).close();\n\t\t\tThread.sleep(3000);\n\t\t\tparentHandle = CheetahEngine.handleStack.pop();\n\t\t\tCheetahEngine.getDriverInstance().switchTo().window(CheetahEngine.cheetahForm.getParentHandle());\n\t\t\tThread.sleep(2000);\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "public void closeWindows() {\n\n waitingForPlayers.setVisible(false);\n bonusTilePane.setVisible(false);\n chooseCostPane.setVisible(false);\n payToObtainPane.setVisible(false);\n chooseEffectPane.setVisible(false);\n choosePrivilegePane.setVisible(false);\n chooseWorkersPane.setVisible(false);\n prayPane.setVisible(false);\n yourTurnPane.setVisible(false);\n suspendedPane.setVisible(false);\n yourTurnPane.setVisible(false);\n throwDicesPane.setVisible(false);\n bonusActionPane.setVisible(false);\n\n }", "public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}", "void closeAll();", "void close() {\n\t\t\n\t\tthis.frame.setVisible(false);\n\t\tthis.frame.dispose();\n\t\t\n\t}", "private void closeFrame()\n\t{\n\t\tSystem.exit(0);\n\t}", "public void closeAllFrames() {\r\n\t\tfor (int i = 0; i < frames.size(); i++) {\r\n\t\t\tframes.get(i).attemptClose();\r\n\t\t}\r\n\t}", "public void close()\n {\n\n window.close();\n try\n {\n screen.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "public void close() {\r\n dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\r\n }", "private void handleWindowClose() {\n if (scrdev().getFullScreenWindow() != null)\n scrdev().getFullScreenWindow().removeAll();\n if (container != null){\n container.setVisible(false);\n container.dispose();\n container.removeKeyListener(this);\n \n //TODO: make a call to finish\n }\n }", "public void close() {\r\n\t\tWindowEvent closeWindow = new WindowEvent(frame123, WindowEvent.WINDOW_CLOSING);\r\n\t\tToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(closeWindow);\r\n\t}", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "public void dispose() {\n synchronized (getTreeLock()) {\n if (inputContext != null) {\n InputContext toDispose = inputContext;\n inputContext = null;\n toDispose.dispose();\n }\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) (ownedWindows.elementAt(i));\n if (child != null) {\n child.dispose();\n }\n }\n } \n hide();\n // 6182409: Window.pack does not work correctly.\n beforeFirstShow = true;\n removeNotify();\n if (parent != null) {\n Window parent = (Window) this.parent;\n parent.removeOwnedWindow(this);\n } \n postWindowEvent(WindowEvent.WINDOW_CLOSED);\n }\n }", "public void close() {\n\t\tgetFrame().dispatchEvent(new WindowEvent(getFrame(), WindowEvent.WINDOW_CLOSING));\n\t\t\n\t}", "public static void closeAllBrowser() {\n\t\tLOG.info(\"Closing all browser window.\");\n\t\tConstants.driver.quit();\n\t\tLOG.info(\"Closed all browser window.\");\n\t}", "public void closeAllBrowsers() {\r\n\t\ttry {\r\n\t\t\tif (driver != null) {\r\n\t\t\t\tdriver.quit();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void closeWindow() {\n\t\tdriver.close();\n\t\tdriver.switchTo().window(winHandleBefore);\n\t}", "public void close() {\r\n\t\tframe.dispose();\r\n\t}", "public void closeDebugFrame()\n {\n dispose();\n }", "@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tclosewindows();\r\n\t\t\t}", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\nToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "public void close() {\n\t\tframe.setVisible(false);\n\t}", "private void doClose() {\n\t if (parent==null)\n\t System.exit(0);\n\t else {\n setVisible(false);\n dispose();\n }\n\t}", "public void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "public void stop() {\r\n\t\tif (FormsContext.isFormsServicesApp()) {\r\n\t\t\tList<String> newOpenWindows = new LWWindowOperator().getWindowTitles();\r\n\r\n\t\t\t// check if a window was closed\r\n\t\t\tif (newOpenWindows.size() < initialOpenLWWindows.size()) {\r\n\t\t\t\tFormsContext.resetContext();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// check for new windows\r\n\t\t\tfor (String name : newOpenWindows) {\r\n\t\t\t\tif (!initialOpenLWWindows.contains(name)) {\r\n\t\t\t\t\t// there is a new window open\r\n\t\t\t\t\tLogger.info(\"Found new window '\" + name + \"', autosetting context to new window.\");\r\n\t\t\t\t\tnew LWWindowOperator().setWindowAsContext(name);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void close() {\r\n\t\t\r\n\t\tWindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\r\n\t\tToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\r\n\t}", "protected void closeAllSecondaryWindows() throws Exception {\n\t\tSet<String> AllWindowHandles = getDriver().getWindowHandles();\n\t\tObject[] windows = AllWindowHandles.toArray();\n\n\t\t// Only need to close if more than 1 window open.\n\t\tif (windows.length > 1) {\n\t\t\t// Close all BUT the first (0) index of the Window Handle List\n\t\t\tfor (int i = 2; i < windows.length; i++) {\n\t\t\t\tgetDriver().switchTo().window((String) windows[i]);\n\t\t\t\tgetDriver().close();\n\t\t\t}\n\t\t}\n\t}", "private void close() {\n WindowEvent winClose = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClose);\n \n }", "private void closeAllDialogs(){\n if(resultsUI != null){\n resultsUI.dispose();\n setResultsClosed();\n }\n if(goalsUI != null){\n goalsUI.dispose();\n setGoalsClosed();\n }\n if(paramsUI != null){\n paramsUI.dispose();\n setParamsClosed();\n }\n \n for(Component container : ContainerPanePanel.getComponents()){\n ((ContainerObjPanel)container).getContainerConfigDialog().dispose();\n }\n \n for(Component network : NetworkPanePanel.getComponents()){\n ((NetworkObjPanel)network).getNetworkConfigDialog().dispose();\n }\n }", "public void closeAllRoomWindows(){\n\t\tIterator it = roomlist.getAllOpenChatRooms();\n\t\twhile (it.hasNext()){\n\t\t\tString roomname = (String) it.next();\n\t\t\troomlist.get(roomname).closeWindow();\n\t\t\troomlist.remove(roomname);\n\t\t\t\n\t\t}\n\t\n\t}", "private void systemExit()\n{\n WindowEvent winClosing = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n}", "public void closeAllBrowsers() {\n\n driver.quit();\n\n\n }", "@Override\r\n\tpublic void windowClosing(WindowEvent event) {\r\n\t\tif (event.getWindow() == this) {\r\n\t\t\tdispose();\r\n\r\n\t\t\t// Overriding the ApplicationFrame behavior\r\n\t\t\t// Do not shutdown the JVM\r\n\t\t\t// System.exit(0);\r\n\t\t\t// -----------------------------------------\r\n\t\t}\r\n\t}", "public void dispose() {\r\n if ( desktop != null ) {\r\n try {\r\n SwingUtilities.invokeAndWait( new Runnable() {\r\n public void run() {\r\n desktop.removeAll();\r\n awtWindow.dispose();\r\n }\r\n } );\r\n } catch ( InterruptedException e ) {\r\n e.printStackTrace();\r\n } catch ( InvocationTargetException e ) {\r\n e.printStackTrace();\r\n }\r\n desktop = null;\r\n desktopsUsed--;\r\n if ( desktopsUsed == 0 ) {\r\n PopupFactory.setSharedInstance( new PopupFactory() );\r\n }\r\n }\r\n }", "void close() {\r\n this.setVisible(false);\r\n this.dispose();\r\n }", "private void closeAll(){\r\n\t\t\r\n\t}", "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}", "@Override\n public void closeWindow() {\n \n }", "public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}", "private void thisWindowClosing(java.awt.event.WindowEvent e) {\n closeThisWindow();\n }", "public void exit()\r\n\t{\r\n\t\tmainFrame.exit();\r\n\t}", "public void quit()\r\n {\r\n brokerage.logout(this);\r\n myWindow = null;\r\n }", "public void close() {\n getMainApplication().getMainWindow().removeWindow(popupWindow);\n }", "public void closeWindow() throws Exception {\n\t\t\tthis.driver.close();\r\n\t\t}", "public void windowClosing(WindowEvent e)\n {\n this.setVisible(false); /* hide frame which can be shown later */\n //e.getWindow().dispose();\n }", "public void windowClosing(WindowEvent e) {\n\t\t\t\t\n\t\t\t\tsetVisible(false);\n\t\t\t\tdispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t }", "@After\n\tpublic void cleanUpTestFrames() {\n\t\tdriver.switchTo().window( mainHandle );\n\t\tshowMessageInBrowser(\"Test finished.\");\n\t\tupdateHandleCache(); \n\t\twaitTimer(6, 500);\n closeAllBrowserWindows(); \n\t\tclasslogger.info(\"Finished cleanUpTestFrames\");\n\t}", "public void windowClosing(WindowEvent comeInWindowEvent) {\n\t\tGUICommon.mainFrame.dispose();\n\t\tSystem.exit(0);\n\t}", "public void close(){\r\n \tStage stage = (Stage) exit.getScene().getWindow();\r\n\t stage.close();\r\n\t main.browserInteraction.close();\r\n }", "private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }", "public void windowClosing(WindowEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t\tdispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "public void dispose() {\n if ( desktop != null ) {\n if ( getParent() != null ) {\n getParent().detachChild( this );\n }\n inputHandler.removeAllActions();\n if ( inputHandler.getParent() != null ) {\n inputHandler.getParent().removeFromAttachedHandlers( inputHandler );\n }\n try {\n SwingUtilities.invokeAndWait( new Runnable() {\n public void run() {\n desktop.removeAll();\n awtWindow.dispose();\n }\n } );\n } catch ( InterruptedException e ) {\n logger.logp(Level.SEVERE, this.getClass().toString(), \"dispose()\", \"Exception\", e);\n } catch ( InvocationTargetException e ) {\n logger.logp(Level.SEVERE, this.getClass().toString(), \"dispose()\", \"Exception\", e);\n }\n desktop = null;\n desktopsUsed--;\n if ( desktopsUsed == 0 ) {\n PopupFactory.setSharedInstance( new PopupFactory() );\n }\n }\n }", "public boolean requestCloseWindow() \n {\n return true; \n }", "@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}", "void windowClosed();", "@SuppressWarnings(\"unchecked\")\n private void systemExit(){\n WindowEvent wincloseing = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n }", "public void close()\n {\n setVisible (false);\n dispose();\n }", "public void windowClosing(java.awt.event.WindowEvent we) {\n foilboard.stop();\n foilboard.destroy();\n System.exit(0);\n }", "private void exitHandler() {\n JOptionPane.showMessageDialog(this.getParent(), \"Thanks for leaving\"\n + \", quitter! >:(\");\n Component possibleFrame = this;\n while (possibleFrame != null && !(possibleFrame instanceof JFrame)) {\n possibleFrame = possibleFrame.getParent();\n }\n JFrame frame = (JFrame) possibleFrame;\n frame.setVisible(false);\n frame.dispose();\n }", "public void closeAllBrowser(){\r\n\tdriver.quit();\t\r\n\t}", "public void closeView() {\n\t\tframeSystem.dispose();\n\t}", "public void xtestWindowDisposeBug() throws Exception {\n final JFrame w = new JFrame(getName());\n w.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n w.getContentPane().add(new JLabel(getName()));\n\n WindowUtils.setWindowMask(w, new Area(new Rectangle(600, 20)));\n w.pack();\n // small window, no bug. big window, bug.\n w.setSize(600, 600);\n w.setResizable(false);\n w.setVisible(true);\n final Shape mask = new Rectangle(0, 0, w.getWidth(), w.getHeight());\n while (true) {\n System.gc();\n Thread.sleep(50);\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n WindowUtils.setWindowMask(w, mask);\n Window[] owned = w.getOwnedWindows();\n System.err.println(owned.length + \": \" + Arrays.asList(w.getOwnedWindows()));\n }\n });\n }\n }", "private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }", "public void exit() {\r\n\t\tdispose();\r\n\t}", "private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }", "public void closeAll() {\n\t\tInteger[] keys = visible.keySet().stream().toArray(Integer[]::new);\n\t\tfor (int k : keys) {\n\t\t\tclose(k >> 16, k & 0xFFFF);\n\t\t}\n\t}", "private void close(){\n this.dispose();\n }", "public void closeWatchers() {\n //inform all the children windows (plots/lists) that the parent has died\n for (RtStatusListener i : watchers) {\n i.bailOut();\n }\n\n watchers.clear();\n }", "public static void destroyFullScreenWindow() {\n GraphicsEnvironment env = GraphicsEnvironment\n .getLocalGraphicsEnvironment();\n GraphicsDevice device = env.getDefaultScreenDevice();\n device.setFullScreenWindow(null);\n }", "public static boolean closeAllOtherWindows(String openWindowHandle) {\n\t\tSet<String> allWindowHandles = driver.getWindowHandles();\n\t\tfor (String currentWindowHandle : allWindowHandles) {\n\t\t\t\n\t\t\t\t\n\t\t\t\tdriver.switchTo().window(currentWindowHandle);\n\t\t\t\tSystem.out.println(driver.getTitle());\n\t\t\t\tdriver.close();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\n\t\t\treturn true;\n\t\n\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\t\tframe.dispose();\n\t\t\t}", "public void closeAllScreens() {\n fragmentManager.popBackStack(null, POP_BACK_STACK_INCLUSIVE);\n screenCount = 0;\n }", "public void\n windowClosing(WindowEvent event) {\n dispose();\n // terminate the program\n System.exit(0);\n }", "public void stopApplication() {\n\t\twindowOpened = false;\n\t\tPlatform.exit();\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\tthis.setVisible(false);\n\t\tthis.dispose();\n\t}", "public static void kill(){\r\n\t\tDisplay.destroy();//create Display\r\n\t\tMouse.destroy();//create Mouse\r\n\t\tKeyboard.destroy();//create Keyboard\r\n\t}", "public static void exitWindows(Button button) {\n\t\ttry {\n\t\t\tStage stage = (Stage) button.getScene().getWindow();\n\t\t\tstage.close();\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage()+\" Error Message\");\n\t\t}\n\t}", "public void \twindowClosing(WindowEvent e){\n\t\t//System.out.println(\"Closing\");\n\t\tif (analysisThread != null){\n\t\t\tif (analysisThread.frameByFrame != null){\n\t\t\t\tcloseFrameByFame();\n\t\t\t}\n\t\t}\t\t\n\t}", "public void hide() {\n/* 122 */ Component component = getComponent();\n/* */ \n/* 124 */ if (component instanceof JWindow) {\n/* 125 */ component.hide();\n/* 126 */ ((JWindow)component).getContentPane().removeAll();\n/* */ } \n/* 128 */ dispose();\n/* */ }", "public static boolean closeAllChildWindows(WebDriver driver) throws InterruptedException {\n\t\tThread.sleep(2000);\n\t\ttry {\n\n\t\t\tif (driver != null) {\n\t\t\t\tString currentWindowhandle = driver.getWindowHandle();\n\t\t\t\tSet<String> allHandles = driver.getWindowHandles();\n\t\t\t\tSystem.out.println(\"Total opened window: \" + allHandles.size());\n\t\t\t\tfor (String handles : allHandles) {\n\t\t\t\t\tif (handles != currentWindowhandle) {\n\t\t\t\t\t\tdriver.switchTo().window(handles).close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Driver is not initilased.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured. \" + e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t}", "public void close() {\r\n\t\tStage stage = (Stage) rootPane.getScene().getWindow();\r\n stage.close();\r\n\t}", "@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tzamknij = true;\r\n\t\t\t\tdispose();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}", "public static void closeBrowser() {\n\t\tLOG.info(\"Closing current browser window.\");\n\t\tConstants.driver.close();\n\t\tLOG.info(\"Closed current browser window.\");\n\n\t}", "public void manageTabsAndWindows() throws Exception{\n\t\tfor(int i = 0; i <= 4; i++){\n\t\t\t((JavascriptExecutor) driver).executeScript(\"window.open();\");\n\t\t}\n\n\t\t//close all tabs open including parent tab\n\t\tfor (String winHandle : driver.getWindowHandles()) {\n\t\t driver.switchTo().window(winHandle);\n\t\t System.out.println(\"Found handle: \" + winHandle);\n\t\t driver.close();\n\t\t}\n\n\t\t\n\t}", "public void closeKiosk() {\n\t\tdriver.close();\n\t}", "public void closeWindow() {\r\n Stage stage = (Stage) cancelButton.getScene().getWindow();\r\n stage.close();\r\n }", "private void actionOnClicExit() {\r\n\t\tframe.setVisible(false);\r\n\t\tframe.dispose();\r\n\t}", "public abstract void destroy(Window window);", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}" ]
[ "0.8180735", "0.7042632", "0.70211804", "0.7015948", "0.69724685", "0.694776", "0.6901517", "0.67963743", "0.67894286", "0.6784396", "0.6778293", "0.6768504", "0.6764809", "0.6743199", "0.67386574", "0.6731341", "0.67201513", "0.66941774", "0.6691282", "0.667922", "0.66589105", "0.663993", "0.663691", "0.65840226", "0.6580959", "0.65789986", "0.65647286", "0.655297", "0.6543239", "0.65000075", "0.6476754", "0.64620423", "0.6448187", "0.642908", "0.64215934", "0.64000237", "0.6395755", "0.63816524", "0.63470596", "0.6324855", "0.630005", "0.6273082", "0.6267762", "0.6262934", "0.6262719", "0.62340987", "0.6229117", "0.62260526", "0.62213075", "0.6218676", "0.62148994", "0.6211364", "0.6204472", "0.618", "0.61449206", "0.6139977", "0.6138725", "0.6132603", "0.6130658", "0.612526", "0.61224174", "0.6121553", "0.61192", "0.6094069", "0.60765916", "0.606929", "0.6063114", "0.6047731", "0.6045634", "0.6042626", "0.60378647", "0.6036621", "0.6004547", "0.5998249", "0.5976677", "0.5958173", "0.5953877", "0.59477407", "0.59380007", "0.5932038", "0.5931158", "0.59306645", "0.5910081", "0.5908558", "0.5907279", "0.5907151", "0.59000534", "0.5898164", "0.58798635", "0.5876033", "0.5865862", "0.5863891", "0.58313274", "0.5829249", "0.58216214", "0.58176506", "0.58171403", "0.58111376", "0.5808744", "0.57911277" ]
0.81791574
1
Waits for the JDialog with the given title Note: Sometimes the task dialog might have the same title as the dialog you pop up and you want to get yours instead of the one for the task monitor.
public static JDialog waitForJDialog(String title) { int totalTime = 0; while (totalTime <= DEFAULT_WINDOW_TIMEOUT) { Set<Window> winList = getAllWindows(); Iterator<Window> iter = winList.iterator(); while (iter.hasNext()) { Window w = iter.next(); if ((w instanceof JDialog) && w.isShowing()) { String windowTitle = getTitleForWindow(w); if (title.equals(windowTitle)) { return (JDialog) w; } } } totalTime += sleep(DEFAULT_WAIT_DELAY); } throw new AssertionFailedError("Timed-out waiting for window with title '" + title + "'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void ShowWaitDialog(String title, String message);", "public void waitDialog(String title) {\n Stage dialog = new Stage();\n Parent root = null;\n try {\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource(\"wait.fxml\")));\n Scene s1 = new Scene(root);\n dialog.setScene(s1);\n dialog.getIcons().add(new Image(\"images/cm_boardgame.png\"));\n overlayedStage = dialog;\n overlayedStage.initOwner(thisStage);\n overlayedStage.initModality(Modality.APPLICATION_MODAL);\n overlayedStage.setTitle(title);\n overlayedStage.initStyle(StageStyle.UNDECORATED);\n overlayedStage.setResizable(false);\n dialog.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "private void setDialogTitle(String title) {\n DialogboxTitle = title;\n }", "public static Window waitForWindow(String title) {\n\t\tWindow window = getWindow(title);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindow(title);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "public boolean wait(final String title) {\n\t\treturn wait(title, (String) null);\n\t}", "public void setTitle(String title) {\n \t\tdialogTitle = title;\n \t\tif (dialogTitle == null) {\n \t\t\tdialogTitle = \"\"; //$NON-NLS-1$\n \t\t}\n \t\tShell shell = getShell();\n \t\tif ((shell != null) && !shell.isDisposed()) {\n \t\t\tshell.setText(dialogTitle);\n \t\t}\n \t}", "private void buildWaitingDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Waiting for server...\");\n\t\tJPanel p1= new JPanel(new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\n\t\t//waiting text\n\t\tJLabel lab = new JLabel(\"Please wait...\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//waiting animation\n\t\tImageIcon gif = new ImageIcon (\"./client_images/load.gif\");\n\t\tJLabel imgLabel = new JLabel(gif);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\t//abort button to close client application\n\t\tJButton abort = new JButton (\"Abort\");\n\t\t//register anonymous listener class that closes up application\n\t\tabort.addActionListener (new ActionListener(){\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\t\tp1.add(abort,BorderLayout.SOUTH);\n\n\t\t//dialog settings\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\t\n\t}", "void CloseWaitDialog();", "public DialogPrompt(String title)\n {\n value = new PromptValueString(\"\",\"\");\n initUI(title,10);\n }", "public static JDialog waitJFileChooserDialog() {\n return (JDialogOperator.\n waitJDialog(new JFileChooserJDialogFinder(JemmyProperties.\n getCurrentOutput())));\n }", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "public boolean wait(final String title, final Integer timeout) {\n\t\treturn wait(title, null, timeout);\n\t}", "public static Window waitForWindowByTitleContaining(String text) {\n\t\tWindow window = getWindowByTitleContaining(null, text);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindowByTitleContaining(null, text);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\n\t\tthrow new AssertionFailedError(\n\t\t\t\"Timed-out waiting for window containg title '\" + text + \"'\");\n\t}", "PreferenceDialogTitleAttribute getDialogTitle();", "public boolean wait(final String title, final String text) {\n\t\treturn wait(title, text, null);\n\t}", "public void setTitle(String title) {\n setDialogTitle(title);\n }", "public static String promptForString(String title) {\n return (JOptionPane.showInputDialog(null,\n title));\n }", "public boolean wait(final String title, final String text,\n\t\t\t\t\t\tfinal Integer timeout) {\n\t\treturn AutoItXImpl.autoItX.AU3_WinWait(AutoItUtils.stringToWString(AutoItUtils.defaultString(title)),\n\t\t\t\tAutoItUtils.stringToWString(text), timeout) != AutoItX.FAILED_RETURN_VALUE;\n\t}", "private WaitTitledPane() {\n\n }", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public void getDialog(final Activity context, String message, int title) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n switch (title) {\n case 0:\n builder.setTitle(context.getString(R.string.alert_success));\n break;\n case 1:\n builder.setTitle(context.getString(R.string.alert_stop));\n break;\n default:\n builder.setTitle(context.getString(R.string.alert));\n break;\n }\n\n builder.setMessage(message);\n\n builder.setPositiveButton(context.getString(R.string.alert_ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Toast.makeText(context, context.getString(R.string.alert_toast), Toast.LENGTH_SHORT).show();\n }\n });\n\n builder.show();\n }", "private Alert showWaitWindow(Window window) {\n // modify alert pane\n //Alert waitAlert = new Alert(Alert.AlertType.NONE);\n waitAlert.setTitle(null);\n waitAlert.setHeaderText(null);\n waitAlert.setContentText(\" Please wait while data is evaluated ...\");\n waitAlert.getDialogPane().setBackground(new Background(new BackgroundFill(Color.DARKGRAY, null, null)));\n waitAlert.getDialogPane().setBorder(new Border(new BorderStroke(Color.BLACK,\n BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n waitAlert.getDialogPane().setMaxWidth(250);\n waitAlert.getDialogPane().setMaxHeight(50);\n\n // center on window below (statistics window)\n final double windowCenterX = window.getX() + (window.getWidth() / 2);\n final double windowCenterY = window.getY() + (window.getHeight() / 2);\n // verify\n if (!Double.isNaN(windowCenterX)) {\n // set a temporary position\n waitAlert.setX(windowCenterX);\n waitAlert.setY(windowCenterY);\n\n // since the dialog doesn't have a width or height till it's shown, calculate its position after it's shown\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n waitAlert.setX(windowCenterX - (waitAlert.getWidth() / 2));\n waitAlert.setY(windowCenterY - (waitAlert.getHeight() / 2));\n }\n });\n }\n waitAlert.show();\n return waitAlert;\n }", "public static OkDialog waitForInfoDialog() {\n\t\treturn waitForDialogComponent(OkDialog.class);\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "public static void show(String message, String title) {\n\t\tStage stage = new Stage();\n\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\tstage.setTitle(title);\n\t\tstage.setMinWidth(250);\n\t\tLabel lbl = new Label();\n\t\tlbl.setText(message);\n\t\tButton btnOK = new Button();\n\t\tbtnOK.setText(\"OK\");\n\t\tbtnOK.setOnAction(e -> stage.close());\n\t\tVBox pane = new VBox(20);\n\t\tpane.getChildren().addAll(lbl, btnOK);\n\t\tpane.setAlignment(Pos.CENTER);\n\t\tpane.setPadding(new Insets(8));\n\t\tScene scene = new Scene(pane);\n\t\tstage.setScene(scene);\n\t\tstage.showAndWait();\n\t}", "public ItemType showSelectionDialog(String title)\n\t{\n\t\treturn super.showSelectionDialog(title, items);\n\t}", "public ItemType showSelectionDialog(String title)\n\t{\n\t\treturn super.showSelectionDialog(title, items);\n\t}", "public void prePositionWaitAlert(Window window) {\n showWaitWindow(window);\n waitAlert.setResult(ButtonType.OK);\n waitAlert.close();\n }", "private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }", "private void hideProgressDialogWithTitle() {\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.dismiss();\n }", "protected abstract JDialog createDialog();", "private static void showDialog(Shell shell, String title,\r\n\t\t\tString message, int icon) {\r\n\t\tMessageBox messageBox = new MessageBox(shell, icon | SWT.OK);\r\n\t\tmessageBox.setText(title);\r\n\t\tmessageBox.setMessage(message);\r\n\t\tmessageBox.open();\r\n\t}", "@Override\n protected void onPreExecute() {\n\n this.dialog.setMessage(\"Please wait ...\");\n this.dialog.show();\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "public boolean waitForTitlePresent(String title){\n\t\t\n\t\twait.until(ExpectedConditions.titleIs(title));\n\t\treturn true;\n\t}", "public boolean waitClose(final String title) {\n\t\treturn waitClose(title, (String) null);\n\t}", "public void showDialogWindow(Stage primaryStage, VBox vbox, String title, Button done) {\n // Create layout\n BorderPane layout = new BorderPane();\n layout.setCenter(vbox);\n\n // Show Modal Dialog Window\n Scene inputScene = new Scene(layout, 350, 250);\n final Stage userInputs = new Stage();\n userInputs.initModality(Modality.APPLICATION_MODAL);\n userInputs.initOwner(primaryStage);\n userInputs.setScene(inputScene);\n userInputs.setTitle(title);\n userInputs.show();\n\n // Add functionality to upload button\n done.setOnAction(e -> userInputs.close());\n }", "public static void waitFor(String title, int timer, WebDriver driver) {\n\t\tWebDriverWait exists = new WebDriverWait(driver, timer);\n\t\texists.until(ExpectedConditions.refreshed(ExpectedConditions.titleContains(title)));\n\t}", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "public CustomDialog(String title) {\n\t\tsuper();\n\t\tsetTitle(title);\n\t\tinit();\n\t}", "private void ShowDialog(String Title, String Caption)\n {\n new AlertDialog.Builder(this)\n .setTitle(Title)\n .setMessage(Caption)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // algo\n }\n })\n .setIcon(android.R.drawable.ic_menu_info_details)\n .show();\n }", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }", "private void showPopup(String title, String message)\n\t{\n\t\tJOptionPane.showMessageDialog(frmMPSWebServices, message, title, JOptionPane.PLAIN_MESSAGE);\n\t}", "private void displayMessage(final String title, final String message,\r\n final int type, boolean blocking) {\r\n if (!blocking) {\r\n Thread thread = new Thread() {\r\n @Override\r\n public void run() {\r\n JOptionPane.showMessageDialog(null, message, title, type);\r\n }\r\n };\r\n thread.start();\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, message, title, type);\r\n }\r\n\r\n }", "public static Dialog postWaitDialog(Context context){\r\n\t\tfinal Dialog lDialog = new Dialog(context,android.R.style.Theme_Translucent_NoTitleBar);\r\n\t\tlDialog.setContentView(R.layout.wait_dialog);\r\n\t\treturn lDialog;\r\n\t}", "public void ShowMessageBox(String title, String text)\n {\n ShowMessageBox(getShell(), title, text, 0);\n }", "private void showDiaglog(String title) {\n dismissDialog();\n mDialog = ProgressDialog.show(MainActivity.this, title, \"process..\", true);\n }", "protected boolean showConfirm (String msg, String title)\n {\n String[] options = {\n UIManager.getString(\"OptionPane.okButtonText\"),\n UIManager.getString(\"OptionPane.cancelButtonText\")\n };\n return 0 == JOptionPane.showOptionDialog(\n this, _msgs.get(msg), _msgs.get(title),\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, null,\n options, options[1]); // default to cancel\n }", "private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }", "public File showOpenDialog(String title) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(title);\n return fileChooser.showOpenDialog(window);\n }", "public void setOKDialog(String title, String message){\n\t\tJOptionPane.showOptionDialog(null, message, title,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, JOptionPane.INFORMATION_MESSAGE,\n\t\t\t\tnull, new Object[]{\"OK\"}, \"OK\");\n\t}", "private void showAlert(String title, String description){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(title);\n alert.setHeaderText(null);\n alert.setContentText(description);\n alert.showAndWait();\n }", "public boolean waitActive(final String title) {\n\t\treturn waitActive(title, (String) null);\n\t}", "public void switchToWindow(String title) {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t\tSystem.out.println(\"window title: \" + getDriver().getTitle());\n\t\t\tif (getDriver().getTitle().contains(title))\n\t\t\t\tbreak;\n\t\t}\n\t}", "String dialogQuery(String msg, String defaultValue)\n { /* dialogQuery */\n this.sleepFlag= true;\t/* flag for waiting */\n this.data= defaultValue;\t/* save default */\n \n updatePopupDialog(msg, defaultValue, null, 0); /* do it */\n \n return(data);\t\t/* return string */\n }", "public File showSaveDialog(String title) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setInitialFileName(\"untitled.json\");\n fileChooser.setTitle(title);\n return fileChooser.showSaveDialog(window);\n }", "@Deprecated\n\tpublic static Window waitForWindow(String title, int timeoutMS) {\n\t\treturn waitForWindow(title);\n\t}", "private void createAndShowDialog(Exception exception, String title) {\n Throwable ex = exception;\n if(exception.getCause() != null){\n ex = exception.getCause();\n }\n createAndShowDialog(ex.getMessage(), title);\n }", "private void createAndShowDialog(Exception exception, String title) {\n Throwable ex = exception;\n if(exception.getCause() != null){\n ex = exception.getCause();\n }\n createAndShowDialog(ex.getMessage(), title);\n }", "public void promptTitle(String title)\n {\n this.title = title;\n }", "public static Window waitForWindowByName(String name) {\n\n\t\tint time = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (time <= timeout) {\n\t\t\tSet<Window> allWindows = getAllWindows();\n\t\t\tfor (Window window : allWindows) {\n\t\t\t\tString windowName = window.getName();\n\t\t\t\tif (name.equals(windowName) && window.isShowing()) {\n\t\t\t\t\treturn window;\n\t\t\t\t}\n\n\t\t\t\ttime += sleep(DEFAULT_WAIT_DELAY);\n\t\t\t}\n\t\t}\n\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with name '\" + name + \"'\");\n\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "private void jMenuItemIniciarJuegosOlimpicosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemIniciarJuegosOlimpicosActionPerformed\n JDialogVerAsistencia dialogVerAsistencia = new JDialogVerAsistencia(listaDeportes);\n LOG.info(\"Launching JDialogVerAsistencia...\");\n dialogVerAsistencia.setModalityType(ModalityType.APPLICATION_MODAL);\n dialogVerAsistencia.setLocationRelativeTo(this);\n dialogVerAsistencia.setVisible(true);\n}", "public void run() {\n JOptionPane pane = new JOptionPane(\"<html>\"+\n \"<font color=black>\"+\n \"Waiting to load UI Components for \"+\n \"the </font><br>\"+\n \"<font color=blue>\"+svcName+\"</font>\"+\n \"<font color=black> service running \"+\n \"on<br>\"+\n \"machine: <font color=blue>\"+\n hostName+\n \"</font><font color=black> address: \"+\n \"</font><font color=blue>\"+\n hostAddress+\"</font><br>\"+\n \"<font color=black>\"+\n \"The timeframe is longer then \"+\n \"expected,<br>\"+\n \"verify network connections.\"+\n \"</font></html>\",\n JOptionPane.WARNING_MESSAGE);\n dialog = pane.createDialog(null, \"Network Delay\");\n dialog.setModal(false);\n dialog.setVisible(true);\n }", "public abstract DialogBox showProgressBox(String message);", "@Override\n public void run() {\n waitDialog.dismiss();\n\n //show an error dialog\n\n\n }", "public void showEditTitleDialog( ){\n FragmentTransaction ft = fragmentManager.beginTransaction();\n Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_DIALOG);\n if (prev != null) {\n ft.remove(prev);\n }\n\n // Send Related Information...\n ModelUpdateItem updateItem = new ModelUpdateItem(\n itemPosition,\n rootParentID, // Sending Root Or Parent ID.\n listManageHome.get(itemPosition).getLayoutID(), listManageHome.get(itemPosition).getLayoutTitle() );\n\n PopUpDialogEditTitle dialogFragment = new PopUpDialogEditTitle( this, updateItem );\n dialogFragment.show( fragmentManager, FRAGMENT_DIALOG );\n }", "public void switchToWindow(String title) {\n\t\ttry {\r\n\t\t\tSet<String> allWindows = getter().getWindowHandles();\r\n\t\t\tfor (String eachWindow : allWindows) {\r\n\t\t\t\tgetter().switchTo().window(eachWindow);\r\n\t\t\t\tif (getter().getTitle().equals(title)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"The Window Title: \"+title+\r\n\t\t\t\t\t\"is switched \");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"The Window Title: \"+title+\r\n\t\t\t\t\t\" not found\");\r\n\t\t}\r\n\t}", "private void createResultPopup() {\r\n resultDialog = new JDialog(parentFrame);\r\n resultDialog.setLayout(new BoxLayout(resultDialog.getContentPane(), BoxLayout.Y_AXIS));\r\n resultDialog.setAlwaysOnTop(true);\r\n Utilities.centerWindowTo(resultDialog, parentFrame);\r\n resultDialog.add(createResultLabel());\r\n resultDialog.add(createButtonDescription());\r\n resultDialog.add(createConfirmationButtons());\r\n resultDialog.pack();\r\n resultDialog.setVisible(true);\r\n }", "public boolean wait(final WinRefEx hWnd, final Integer timeout) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd), timeout);\n\t}", "private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }", "public void WaitForExpectedPageToDisplay(String expectedTitle, int timeInSecs) {\n\t\tString actualTitle = getPageTitle();\n\t\tint count = 0;\n\t\t\n\t\twhile (!actualTitle.equals(expectedTitle) && count < timeInSecs) {\n\t\t\tactualTitle = driver.getTitle();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcount++;\n\t\t}\n\t}", "private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }", "private void dialogoReporte(JasperPrint jasperPrint, String titulo) {\n JDialog dialogo = new JDialog();\r\n dialogo.getContentPane().add(new JRViewer(jasperPrint));\r\n dialogo.setModal(true);\r\n dialogo.setTitle(titulo);\r\n dialogo.setPreferredSize(Toolkit.getDefaultToolkit().getScreenSize());\r\n dialogo.pack();\r\n dialogo.setAlwaysOnTop(true);\r\n dialogo.setVisible(true);\r\n }", "private void waitForDialogLoadingBackdropToFade( ) {\r\n\t\t\r\n\t\t/* --- Let's wait for 10 seconds, until the temporary overlay dialog disappears. - */\r\n\t\tWait.invisibilityOfElementLocated (driver, this.overlayDialogRefresher1Locator, 15 );\r\n\t\tWait.invisibilityOfElementLocated (driver, this.overlayDialogRefresher2Locator, 15 );\r\n\t}", "private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "public void messageBoxShow(String message, String title) {\n\t\tAlertDialog alertDialog;\n\n\t\talertDialog = new AlertDialog.Builder(this).create();\n\t\talertDialog.setTitle(title);\n\t\talertDialog.setMessage(message);\n\t\talertDialog.setButton(\"Retry\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tsendRequest();\n\t\t\t}\n\t\t});\n\t\talertDialog.setButton2(\"Cancel\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t}\n\t\t});\n\t\talertDialog.show();\n\t}", "@Override\n public void showProgressDialog(String title, @NonNull String message) {\n progressDialog = DialogUtils.createProgressDialog(getContext());\n }", "public MyJDialog(Frame f, String title, boolean modal) {\r\n super(f,title,modal);\r\n }", "private void showTask(String title, String message, int icon, Context context) {\n\n int alertTheme = R.style.LightCustom;\n if (currentTheme == 2) {\n alertTheme = R.style.DarkCustom;\n }\n\n AlertDialog alertDialog = new AlertDialog.Builder(context, alertTheme).create();\n\n alertDialog.setTitle(title);\n alertDialog.setMessage(message);\n alertDialog.setIcon(icon);\n\n int positive = AlertDialog.BUTTON_POSITIVE;\n int negative = AlertDialog.BUTTON_NEGATIVE;\n\n alertDialog.setButton(positive, \"Select this Task\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n launchTask();\n }\n });\n\n alertDialog.setButton(negative, \"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // Can execute code here if desired.\n }\n });\n\n alertDialog.show();\n }", "public final TMessageBox messageBox(final String title,\n final String caption) {\n\n return getApplication().messageBox(title, caption, TMessageBox.Type.OK);\n }", "public boolean waitActive(final String title, final Integer timeout) {\n\t\treturn waitActive(title, null, timeout);\n\t}", "public void testGetDialog() {\n System.out.println(\"getDialog\");\n Wizard instance = new Wizard();\n JDialog result = instance.getDialog();\n assertNotNull(result);\n }", "public static String display(String title, String header){\n Stage window = new Stage();\n window.initModality(Modality.APPLICATION_MODAL);\n window.setTitle(title);\n \n Label head = new Label(header);\n Button save = new Button(\"Save\");\n Button dontSave = new Button(\"Don't Save\");\n Button cancel = new Button(\"Cancel\");\n \n save.setOnAction(e-> {answer = \"save\"; window.close();}); \n dontSave.setOnAction(e-> {answer = \"dontSave\"; window.close();});\n cancel.setOnAction(e-> {answer = \"cancel\"; window.close();});\n \n VBox vBox = new VBox(10);\n vBox.setAlignment(Pos.CENTER);\n vBox.getChildren().addAll(head,save,dontSave,cancel);\n \n Scene scene = new Scene(vBox, 300, 200);\n window.setScene(scene);\n window.showAndWait();\n \n return answer;\n }", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\n\t\t\t\tdialog = new Dialog(Calendario.this);\n\t\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\t\tdialog.setContentView(R.layout.dialog_wait);\n\t\t\t\tdialog.getWindow().setBackgroundDrawableResource(\n\t\t\t\t\t\tR.drawable.dialog_rounded_corner_light_black);\n\t\t\t\tdialog.show();\n\t\t\t\tdialog.setCancelable(true);\n\t\t\t\tdialog.setOnCancelListener(new OnCancelListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}", "public boolean wait(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd));\n\t}", "public void showMessageDialog(String title, String message, Context context) {\n //Create the dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.show();\n }", "public InfoDialog(String text, String title) {\r\n\t\tthis.setDialog(text, title);\r\n\t}", "private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n//\n// }\n// });\n\n //thiet lap k the huy - co the huy\n dialog.setCancelable(false);\n\n //show dialog\n dialog.show();\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n dialog.dismiss();\n }\n }, 20000000);\n }", "public static JDialog getFirstJDialog() {\n\t\t return firstJDialog;\n\t }", "public ConfirmationDialog getDialog() {\n\t\tif (null == fDlg) {\n\t\t\tfDlg = new ConfirmationDialog(getFrame(), getConfig(), \"dlg.abandonChanges\");\n\n\t\t\tString[] values = { ((Questionaire) getApp()).getCurrentDoc().getTitle() };\n\t\t\t\n\t\t\tString title = fDlg.getTitle();\n\t\t\t\t\t\t\n\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\t\n\t\t\tfDlg.setTitle(title);\n\t\t\t\t\t\t\n\t\t\t((Questionaire) getApp()).getCurrentDoc().addPropertyChangeListener(\"title\", new PropertyChangeListener() {\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tString[] values = { (String) evt.getNewValue() };\n\t\t\t\t\tString title = getConfig(\"dlg.abandonChanges.title\");\n\t\t\t\t\t\n\t\t\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\n\t\t\t\t\tgetDialog().setTitle(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t}\n\n\t\treturn fDlg;\n\t}", "public static String promptForSelection(String title, String message, String[] options) {\n return (String) JOptionPane.showInputDialog(null,\n message,\n title,\n QUESTION_MESSAGE,\n null,\n options,\n options[0]);\n\n }", "public static void newJFXDialogPopUp(String min, String sec, String dist, StackPane stP) {\n System.out.println(\"DialogBox Posted\");\n JFXDialogLayout jfxDialogLayout = new JFXDialogLayout();\n jfxDialogLayout.setHeading(new Text(\"Time Details\"));\n jfxDialogLayout.setBody(new Text(\"Time Estimate: \" + min + \" \" + sec +\"\\n\" + \"Distance Estimate: \" + dist));\n JFXDialog dialog = new JFXDialog(stP, jfxDialogLayout, JFXDialog.DialogTransition.CENTER);\n JFXButton okay = new JFXButton(\"Okay\");\n okay.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n dialog.close();\n\n }\n });\n jfxDialogLayout.setActions(okay);\n dialog.show();\n }", "private void showpDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "private void ShowMsgDialog(String title, String msg) {\n\t\tAlertDialog.Builder MyAlertDialog = new AlertDialog.Builder(this);\n\t\tMyAlertDialog.setTitle(title);\n\t\tMyAlertDialog.setMessage(msg);\n\t\tDialogInterface.OnClickListener OkClick = new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// no action\n\t\t\t}\n\t\t};\n\t\tMyAlertDialog.setNeutralButton(\"Okay\", OkClick);\n\t\tMyAlertDialog.show();\n\t}", "public StandardDialog(final Frame parent, final String title) {\n super(parent, title);\n\n init();\n }", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}" ]
[ "0.73215365", "0.695093", "0.6557166", "0.64045435", "0.6332776", "0.6245229", "0.61225027", "0.59287864", "0.5863348", "0.58478874", "0.5835997", "0.58137524", "0.578079", "0.5760937", "0.5740598", "0.57402986", "0.57249844", "0.570766", "0.5675095", "0.56607", "0.56567484", "0.56254125", "0.5618224", "0.55964535", "0.55946946", "0.5578698", "0.55550885", "0.55416644", "0.55200857", "0.55200857", "0.5510698", "0.54687583", "0.5461159", "0.54541606", "0.5448724", "0.5439525", "0.5436177", "0.5434826", "0.5427181", "0.5406408", "0.53951496", "0.5391922", "0.5368111", "0.53573245", "0.5352655", "0.5351102", "0.53378457", "0.5336087", "0.5332245", "0.5322981", "0.5317543", "0.53145725", "0.5313672", "0.5308344", "0.5308077", "0.5307114", "0.52875644", "0.52729833", "0.5248183", "0.5236987", "0.52295464", "0.52295464", "0.52260405", "0.52130014", "0.5191208", "0.5184284", "0.51749253", "0.5161593", "0.5144862", "0.5142356", "0.51391375", "0.512963", "0.5124437", "0.5121617", "0.5120128", "0.5117845", "0.5113452", "0.5109264", "0.5105677", "0.51002586", "0.5099923", "0.5099271", "0.50987977", "0.50921404", "0.5091947", "0.50865626", "0.5081849", "0.5081188", "0.5077093", "0.5066778", "0.50575334", "0.5056401", "0.5055275", "0.5048981", "0.50415593", "0.50383204", "0.5036023", "0.50339395", "0.502986", "0.5018669" ]
0.8039681
0
Waits for the first window of the given class.
public static <T extends DialogComponentProvider> T waitForDialogComponent( Class<T> ghidraClass) { return waitForDialogComponent(null, ghidraClass, DEFAULT_WINDOW_TIMEOUT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Window waitForWindowByName(String name) {\n\n\t\tint time = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (time <= timeout) {\n\t\t\tSet<Window> allWindows = getAllWindows();\n\t\t\tfor (Window window : allWindows) {\n\t\t\t\tString windowName = window.getName();\n\t\t\t\tif (name.equals(windowName) && window.isShowing()) {\n\t\t\t\t\treturn window;\n\t\t\t\t}\n\n\t\t\t\ttime += sleep(DEFAULT_WAIT_DELAY);\n\t\t\t}\n\t\t}\n\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with name '\" + name + \"'\");\n\t}", "public Locomotive waitForWindow(String regex) {\n Set<String> windows = getDriver().getWindowHandles();\n for (String window : windows) {\n try {\n // Wait before switching tabs so that the new tab can load; else it loads a blank page\n try {\n Thread.sleep(100);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n getDriver().switchTo().window(window);\n\n p = Pattern.compile(regex);\n m = p.matcher(getDriver().getCurrentUrl());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n } else {\n // try for title\n m = p.matcher(getDriver().getTitle());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n }\n }\n } catch (NoSuchWindowException e) {\n if (attempts <= configuration.getRetries()) {\n attempts++;\n\n try {\n Thread.sleep(1000);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n return waitForWindow(regex);\n } else {\n Assertions.fail(\"Window with url|title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\", e);\n }\n }\n }\n\n // when we reach this point, that means no window exists with that title..\n if (attempts == configuration.getRetries()) {\n Assertions.fail(\"Window with title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\");\n return this;\n } else {\n Logger.info(\"#waitForWindow() : Window doesn't exist yet. [%s] Trying again. %s/%s\", regex, (attempts + 1), configuration.getRetries());\n attempts++;\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n Logger.error(e);\n }\n return waitForWindow(regex);\n }\n }", "public static Window waitForWindow(String title) {\n\t\tWindow window = getWindow(title);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindow(title);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public static Window waitForWindowByTitleContaining(String text) {\n\t\tWindow window = getWindowByTitleContaining(null, text);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindowByTitleContaining(null, text);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\n\t\tthrow new AssertionFailedError(\n\t\t\t\"Timed-out waiting for window containg title '\" + text + \"'\");\n\t}", "public static JDialog waitForJDialog(String title) {\n\n\t\tint totalTime = 0;\n\t\twhile (totalTime <= DEFAULT_WINDOW_TIMEOUT) {\n\n\t\t\tSet<Window> winList = getAllWindows();\n\t\t\tIterator<Window> iter = winList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tWindow w = iter.next();\n\t\t\t\tif ((w instanceof JDialog) && w.isShowing()) {\n\t\t\t\t\tString windowTitle = getTitleForWindow(w);\n\t\t\t\t\tif (title.equals(windowTitle)) {\n\t\t\t\t\t\treturn (JDialog) w;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public void waitModalWindow(By waitForElement) {\n\t\tBaseWaitingWrapper.waitForElementToBeVisible(waitForElement, driver);\r\n\t\t\r\n\r\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "public void run()\n {\n\n int sleepTime = 10; // milliseconds (tune this value accordingly)\n\n int totalTimeShown = 0;\n while(keepGoing)\n {\n // Force this window to the front.\n\n toFront();\n\n // Sleep for \"sleepTime\"\n\n try\n {\n Thread.sleep(sleepTime);\n }\n catch(Exception e)\n {}\n\n // Increment the total time the window has been shown\n // and exit the loop if the desired time has elapsed.\n\n totalTimeShown += sleepTime;\n if(totalTimeShown >= milliseconds)\n break;\n }\n\n // Use SwingUtilities.invokeAndWait to queue the disposeRunner\n // object on the event dispatch thread.\n\n try\n {\n SwingUtilities.invokeAndWait(disposeRunner);\n }\n catch(Exception e)\n {}\n }", "public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }", "public void waitForAllWindowsDrawn() {\n forAllWindows((Consumer<WindowState>) new Consumer(this.mWmService.mPolicy) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$oqhmXZMcpcvgI50swQTzosAcjac */\n private final /* synthetic */ WindowManagerPolicy f$1;\n\n {\n this.f$1 = r2;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$waitForAllWindowsDrawn$24$DisplayContent(this.f$1, (WindowState) obj);\n }\n }, true);\n }", "public <T extends Application<?, ?>> T launch(Class<T> appClass, String desiredUrl) {\r\n\t\tT result = super.launch(WindowManager.class, appClass, objectWhichChecksWebDriver);\r\n\t\tBrowserWindow window = (BrowserWindow) result.getHandle();\t\t\r\n\t\twindow.to(desiredUrl);\t\t\r\n\t\treturn result;\r\n\t}", "public void selectRootWindow() {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(0));\n\t}", "public synchronized void goToWindow(String key)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep(1000);\r\n\t\t\taniWin.goToWindow(key);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void startGame()\n {\n while (true)\n {\n WebElement start = driver.findElement(By.cssSelector(\"#index > div.btns > button\"));\n if (start.isDisplayed())\n {\n start.click();\n return;\n }\n }\n }", "private static void findWindow() {\n\t\tCoInitialize();\n\t\t\n\t\thandle = user32.FindWindowA(\"WMPlayerApp\", \"Windows Media Player\");\n\t}", "public void switchToNewlyOpenedWindow(){\n\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tdriver.getWindowHandles();\n\t\t\tfor(String handle : driver.getWindowHandles())\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t}\n\t\t\tLOGGER.info(\"Step : Switching to New Window : Pass\");\n\t\t} catch (InterruptedException e) {\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to newly opened window\");\n\t\t}\n\t}", "public WebElement waitForDisplay(final WebElement webelement)\n {\n return waitForDisplay(webelement, DEFAULT_TIMEOUT);\n }", "public WebElement waitForDisplay(final By by)\n {\n return waitForDisplay(by, DEFAULT_TIMEOUT);\n }", "public SlideOnWindow(Class<? extends StandOutWindow> serviceClass) {\n\t\tmServiceClass = serviceClass;\n\t}", "public void testWindowSystem() {\n final ProjectsTabOperator projectsOper = ProjectsTabOperator.invoke();\n final FavoritesOperator favoritesOper = FavoritesOperator.invoke();\n\n // test attaching\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.AS_LAST_TAB);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.TOP);\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.RIGHT);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.AS_LAST_TAB);\n // wait until TopComponent is in new location and is showing\n final TopComponent projectsTc = (TopComponent) projectsOper.getSource();\n final TopComponent favoritesTc = (TopComponent) favoritesOper.getSource();\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object tc) {\n // run in dispatch thread\n Mode mode1 = (Mode) projectsOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(projectsTc);\n }\n });\n Mode mode2 = (Mode) favoritesOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(favoritesTc);\n }\n });\n return (mode1 == mode2 && favoritesTc.isShowing()) ? Boolean.TRUE : null;\n }\n\n @Override\n public String getDescription() {\n return (\"Favorites TopComponent is next to Projects TopComponent.\"); // NOI18N\n }\n }).waitAction(null);\n } catch (InterruptedException e) {\n throw new JemmyException(\"Interrupted.\", e); // NOI18N\n }\n favoritesOper.close();\n\n // test maximize/restore\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass2Node = new JavaNode(sample1Node, SAMPLE2_FILE_NAME);\n sampleClass2Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE2_FILE_NAME);\n eo.maximize();\n eo.restore();\n EditorOperator.closeDiscardAll();\n }", "private void waitForFirstPageToBeLoaded() {\n IdlingResource idlingResource = new ElapsedTimeIdlingResource(LATENCY_IN_MS + 1000);\n IdlingRegistry.getInstance().register(idlingResource);\n\n //Check that first item has been loaded\n onView(withItemText(\"POPULAR MOVIE #1 (1999)\")).check(matches(isDisplayed()));\n\n //Clean up\n IdlingRegistry.getInstance().unregister(idlingResource);\n }", "public void switchToLastWindow() {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t}\n\t}", "public void handleWindow() throws InterruptedException {\n\t\tSet<String> windHandles = GlobalVars.Web_Driver.getWindowHandles();\n\t\tSystem.out.println(\"Total window handles are:--\" + windHandles);\n\t\tparentwindow = windHandles.iterator().next();\n\t\tSystem.out.println(\"Parent window handles is:-\" + parentwindow);\n\n\t\tList<String> list = new ArrayList<String>(windHandles);\n\t\twaitForElement(3);\n\t\tGlobalVars.Web_Driver.switchTo().window((list.get(list.size() - 1)));\n\t\tSystem.out.println(\"current window title is:-\" + GlobalVars.Web_Driver.getTitle());\n\t\treturn;\n\t}", "@Override\n public void run() {\n boolean pvp_net;\n //Start with negative state:\n pvp_net_changed(false);\n \n Window win = null;\n\n while(!isInterrupted()||true) {\n //Check whether window is running\n if(win==null) {\n win = CacheByTitle.initalInst.getWindow(ConstData.window_title_part);\n //if(win==null)\n // Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window from name failed...\");\n }\n else if(!win.isValid()) {\n win = null;\n //Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window is invalid...\");\n }\n else if(\n main.ToolRunning() && \n main.settings.getBoolean(Setnames.PREVENT_CLIENT_MINIMIZE.name, (Boolean)Setnames.PREVENT_CLIENT_MINIMIZE.default_val) &&\n win.isMinimized()) {\n win.restoreNoActivate();\n }\n pvp_net = win!=null;\n //On an change, update GUI\n if(pvp_net!=pvp_net_running) {\n pvp_net_changed(pvp_net);\n }\n \n /*thread_running = main.ToolRunning();\n if(thread_running!=automation_thread_running)\n thread_changed(thread_running);*/\n\n try {\n sleep(900L);\n //Wait some more if paused\n waitPause();\n }\n catch(InterruptedException e) {\n break; \n }\n } \n }", "public void showResultsWindow() {\r\n \t\tshowResults.setSelected(true);\r\n \t\tshowResultsWindow(true);\r\n \t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew mainclass().setVisible(true);\n\t\t\t}", "private void waitForNextNews(final WebDriver webDriver) {\r\n\t\tfinal WebDriverWait wait = new WebDriverWait(webDriver, WAIT_SECONDS);\r\n\t\twait.until(\r\n\t\t\tExpectedConditions.elementToBeClickable(By.className(\"tbutton\"))\r\n\t\t);\r\n\t}", "@Deprecated\n\tpublic static <T extends DialogComponentProvider> T waitForDialogComponent(Window parentWindow,\n\t\t\tClass<T> clazz, int timeoutMS) {\n\t\tif (!DialogComponentProvider.class.isAssignableFrom(clazz)) {\n\t\t\tthrow new IllegalArgumentException(clazz.getName() + \" does not extend \" +\n\t\t\t\tDialogComponentProvider.class.getSimpleName());\n\t\t}\n\n\t\tint totalTime = 0;\n\t\twhile (totalTime <= DEFAULT_WAIT_TIMEOUT) {\n\n\t\t\tT provider = getDialogComponent(parentWindow, clazz);\n\t\t\tif (provider != null) {\n\t\t\t\treturn provider;\n\t\t\t}\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window of class: \" + clazz);\n\t}", "public boolean isSingleWindow() {\n return singleWindow;\n }", "void waitStartGameString();", "public abstract int waitForObject (String appMapName, String windowName, String compName, long secTimeout)\n\t\t\t\t\t\t\t\t\t\t throws SAFSObjectNotFoundException, SAFSException;", "private Alert showWaitWindow(Window window) {\n // modify alert pane\n //Alert waitAlert = new Alert(Alert.AlertType.NONE);\n waitAlert.setTitle(null);\n waitAlert.setHeaderText(null);\n waitAlert.setContentText(\" Please wait while data is evaluated ...\");\n waitAlert.getDialogPane().setBackground(new Background(new BackgroundFill(Color.DARKGRAY, null, null)));\n waitAlert.getDialogPane().setBorder(new Border(new BorderStroke(Color.BLACK,\n BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n waitAlert.getDialogPane().setMaxWidth(250);\n waitAlert.getDialogPane().setMaxHeight(50);\n\n // center on window below (statistics window)\n final double windowCenterX = window.getX() + (window.getWidth() / 2);\n final double windowCenterY = window.getY() + (window.getHeight() / 2);\n // verify\n if (!Double.isNaN(windowCenterX)) {\n // set a temporary position\n waitAlert.setX(windowCenterX);\n waitAlert.setY(windowCenterY);\n\n // since the dialog doesn't have a width or height till it's shown, calculate its position after it's shown\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n waitAlert.setX(windowCenterX - (waitAlert.getWidth() / 2));\n waitAlert.setY(windowCenterY - (waitAlert.getHeight() / 2));\n }\n });\n }\n waitAlert.show();\n return waitAlert;\n }", "public Window getFullScreenWindow(){\n return vc.getFullScreenWindow();\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "void ShowWaitDialog(String title, String message);", "public void waitTillObjectAppears(By locator) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, TIMEOUT_S);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t} catch (TimeoutException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static boolean switchWindow(WebDriver webDriver, String windowTitle) throws Exception {\n boolean found = false;\n long start = System.currentTimeMillis();\n while (!found) {\n for (String name : webDriver.getWindowHandles()) {\n try {\n webDriver.switchTo().window(name);\n if (webDriver.getTitle().equals(windowTitle)) {\n found = true;\n break;\n }\n } catch (NoSuchWindowException wexp) {\n // some windows may get closed during Runtime startup\n // so may get this exception depending on timing\n System.out.println(\"Ignoring NoSuchWindowException \" + name);\n }\n }\n Thread.sleep(1000);\n if ((System.currentTimeMillis() - start) > 10*1000) {\n break;\n }\n }\n\n if (!found) {\n System.out.println(windowTitle + \" not found\");\n }\n return found;\n }", "protected WebElement waitForElementToBeVisible(WebElement element) {\n actionDriver.moveToElement(element);\n WebDriverWait wait = new WebDriverWait(driver, 5);\n wait.until(ExpectedConditions.visibilityOf(element));\n return element;\n }", "boolean isSetSearchWindowStart();", "private void WaitTalk() {\n // to restart as touched screen.\n if (this.mRestartF) this.RestartTalk();\n }", "public void ensureIsDisplayed() {\n (new WebDriverWait(driver, 10))\n .until(ExpectedConditions.presenceOfElementLocated(\n By.className(\"mat-dialog-container\")));\n }", "public void switchToDefaultWindow() {\n\n\t}", "public WindowState findFocusedWindow() {\n this.mTmpWindow = null;\n forAllWindows(this.mFindFocusedWindow, true);\n WindowState windowState = this.mTmpWindow;\n if (windowState != null) {\n return windowState;\n }\n if (WindowManagerDebugConfig.DEBUG_FOCUS_LIGHT) {\n Slog.v(TAG, \"findFocusedWindow: No focusable windows.\");\n }\n return null;\n }", "public static void explicitWaitTillVisible(WebDriver driver, int sec, WebElement element) {\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, sec);\r\n\t\twait.until(ExpectedConditions.visibilityOf(element));\r\n\t}", "private WaitTitledPane() {\n\n }", "private void winScreen() {\n timer.stop();\n gameModel.setState(\"Win Screen\");\n WinScreen screen = new WinScreen(width, height);\n Button replayButton = screen.getReplayButton();\n replayButton.setOnAction(e -> {\n try {\n Controller newGame = new Controller();\n newGame.start(mainWindow);\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n });\n Button exitButton = screen.getExitButton();\n exitButton.setOnAction(e -> {\n System.exit(0);\n });\n Scene scene = screen.getScene();\n mainWindow.setScene(scene);\n }", "Class<? extends Activity> getOpenInOtherWindowActivity();", "public void run() {\n SimpleChatUI firstWin = new SimpleChatUI();\n windows.add(firstWin);\n firstWin.setVisible(true);\n hub = new HubSession(new LoginCredentials(new ChatKeyManager(CHAT_USER)));\n\n firstWin.setStatus(\"No active chat\");\n }", "public Frame waitFrame(ComponentChooser ch, int index)\n\tthrows InterruptedException {\n\tsetTimeouts(timeouts);\n\treturn((Frame)waitWindow(new FrameSubChooser(ch), index));\n }", "boolean isNilSearchWindowStart();", "void setNilSearchWindowStart();", "public void switchLastWindow() {\n\n Set<String> allwindow = driver.getWindowHandles();\n\n for (String next : allwindow) {\n driver.switchTo().window(next);\n\n }\n }", "public String waitForElementVisibility(String object, String data) {\n logger.debug(\"Waiting for an element to be visible\");\n int start = 0;\n int time = (int) Double.parseDouble(data);\n try {\n while (true) {\n if(start!=time)\n {\n if (driver.findElements(By.xpath(OR.getProperty(object))).size() == 0) {\n Thread.sleep(1000L);\n start++;\n }\n else {\n break; }\n }else {\n break; } \n }\n } catch (Exception e) {\n return Constants.KEYWORD_FAIL + \"Unable to close browser. Check if its open\" + e.getMessage();\n }\n return Constants.KEYWORD_PASS;\n }", "private void chooseFileWindow()\n\t{\n\t\tInitFrame init = new InitFrame();\n\t\tinit.setFilePath(FILE_NAME);\n\t\tJFrame frame = new JFrame(\"Bowling Game\");\t\t\t\n\t\tSplashScreen splash = new SplashScreen();\n splash.setFilePath(FILE_NAME);\n // Normally, we'd call splash.showSplash() and get on \n // with the program. But, since this is only a test... \n\t\t\n\t\tsplash.showSplash();\t\t\n\t\tframe.setSize(400,400);\t\t\n\t\tinit.LoadComponents(frame);\n\t\t\n\n\t\t// first show the first fileChooser window\n\t\t\n\t\tString p1 = \"\", p = init.FileChooser(frame);\n\t\tsimpleProgressBar progres = new simpleProgressBar(100,100);\n\t\t\t\n\t\t//System.out.println(\"p(VIEWCONTORLLER):\" + p + \" \" + p.length());\n\t\t\n\t\tint i = p.length() - 1, j = 0;\n\t\t//System.out.println(i + \" \" + p.charAt(i));\n\t\twhile(i > 0)\n\t\t{\n\t\t\tif( (p.charAt(i) == '/') || (p.charAt(i) == '\\''))\n\t\t\t{\n\t\t\t\tj = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti--;\n\t\t}\n\t\tp1 = p.substring(j, p.length());\n\t\t//FILE_NAME = p1;\n\t\tInitView.setTxtFilePath(p);\n\t\t//BowlFrame bFrame = new BowlFrame();\n\t\t//bFrame.setVisible(true);\n\t\twhile ( null==InitView.getTxtFilePath() )\n\t\t{ \n\t\t\t\n\t\t}\n\t\tSystem.out.println(\" FILENAME: \" + FILE_NAME);\n\t\tBowl = new BowlFrame(FILE_NAME);\t\t\n\t\tBowl.setVisible(true);\n\t\n\t\tframe.dispose();\n\t}", "public void startWindow() {\r\n \r\n \tfirstBorderWindow = new BorderPane();\r\n \tScene scene = new Scene(firstBorderWindow,600,600);\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\t//MenuBar\r\n\t\tMenuBar mb = new MenuBar();\r\n\t\tMenu topMenu = new Menu(\"Impostazioni\");\r\n\t\t\r\n\t\tMenuItem regole = new MenuItem(\"Regole\");\r\n\t\tMenuItem esci = new MenuItem(\"Esci\");\r\n\t\ttopMenu.getItems().addAll(esci, regole);\r\n\t\tmb.getMenus().add(topMenu);\r\n\t\t\r\n\t\tEventHandler<ActionEvent> MEHandler = new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tString nome = ((MenuItem)event.getTarget()).getText();\r\n\t\t\t\tif (nome.equals(\"Esci\")) Platform.exit();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tesci.setOnAction(MEHandler);\r\n\t\t\r\n\t\tfirstBorderWindow.setTop(mb);\r\n\t\t// Show the scene\r\n\t\tstage.show();\r\n }", "public Window getWindow() { return window; }", "@Test\n\tpublic void switchWindows() throws InterruptedException{\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.findElement(By.xpath(\"(//input[@class='gLFyf gsfi'])[1]\")).sendKeys(\"cricbuzz\");\n\t\tdriver.findElement(By.xpath(\"(//input[@aria-label='Google Search'])[1]\")).click();;\n\t\tThread.sleep(3000);\n\n}", "public <T extends Application> void showScreen(Class<T> clazz) {\r\n try {\r\n final Stage stage = new Stage();\r\n T instance = clazz.newInstance();\r\n instance.start(stage);\r\n } catch (Exception ex) {\r\n System.out.println(\"Show\" + clazz.getSimpleName() + \" Screen Failed: error: \" + ex.toString());\r\n }\r\n }", "public static WebDriverWait getWait(){\n WebDriverWait wait = new WebDriverWait(driver,Constants.EXPLICIT_WAIT);\n return wait;\n }", "public static Window getWindow() {\r\n\t\treturn window;\r\n\t}", "public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }", "public void startWaitTime(){\r\n\t\twaitTime.start();\r\n\t}", "@Deprecated\n\tpublic static Window waitForWindow(String title, int timeoutMS) {\n\t\treturn waitForWindow(title);\n\t}", "private void btnStartTestActionPerformed(java.awt.event.ActionEvent evt) {\n try\n {\n initFileBlocker(true);\n initCapturingThread();\n initKeyboardThread();\n }catch(Exception e) { e.printStackTrace();}\n \n \n String testName = (String) table.getValueAt(table.getSelectedRow(), 0);\n String duration = (String) table.getValueAt(table.getSelectedRow(), 3);\n duration += \":00\";\n Bson bsonFilter = Filters.eq(\"Title\", testName);\n FindIterable<Document> findIt = documents.filter(bsonFilter);\n System.out.println(\"Result is: \" + findIt.first());\n try {\n Home.pending_Tests.startCountdown(duration, findIt.first());\n } catch (Exception e) {\n System.out.println(e);\n } \n this.setVisible(false);\n// Home.dispose();\n// this.setUndecorated(true);\n Home.pending_Tests.setVisible(true);\n }", "public void check_openfile_window_Presence() throws InterruptedException {\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tWebElement openfile_window = driver.findElementByName(\"How do you want to open this file?\");\r\n\t\tThread.sleep(3000);\r\n\t\t// return IsElementVisibleStatus(openfile_window);\r\n\t\tWebElement openfile_Adobe = driver.findElementByName(\"Adobe Reader\");\r\n\t\tclickOn(openfile_Adobe);\r\n\t\tWebElement ConfirmButton_ok = driver.findElementByAccessibilityId(\"ConfirmButton\");\r\n\t\tclickOn(ConfirmButton_ok);\r\n\t\tdriver.switchTo().activeElement();\r\n\t}", "private void startGame() {\r\n\t\tlog(mName + \": print an opening message (something useful, it is up to you)\");\r\n\t\tnew Thread(new Host(mRightPercent)).start();\r\n\r\n\t\tfor (Contestant c : Contestant.mGame.getContestants()) {\r\n\t\t\tlog(mName + \": Welcome \" + c.getName() + \" to the game.\");\r\n\t\t\tsynchronized (c.mConvey) {\r\n\t\t\t\tc.mConvey.notify();\r\n\t\t\t}\r\n\r\n\t\t\tsynchronized (intro) {\r\n\t\t\t\twaitForSignal(intro, null);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsynchronized (Contestant.mGame) {\r\n\t\t\tContestant.mGame.setGameStarted(true);\r\n\t\t\tContestant.mGame.notify();\r\n\t\t}\r\n\t}", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }", "public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }", "public WebElement waitTillVisible(final WebElement element) {\n return (new WebDriverWait(webDriver, WAIT_TIME)).until(ExpectedConditions.elementToBeClickable(element));\n }", "public WebElement wait(WebElement webElement) {\n WebDriverWait webDriverWait = new WebDriverWait(driver, Integer.parseInt(testData.timeout));\n return webDriverWait.until(ExpectedConditions.visibilityOf(webElement));\n }", "private void grabForever() {\n if (Platform.isFxApplicationThread()) {\n throw new IllegalStateException(\"This may not run on the FX application thread!\");\n }\n final Thread thread = Thread.currentThread();\n while (!thread.isInterrupted()) {\n boolean success = grabOnceBlocking();\n if (!success) {\n // Couldn't grab the frame, wait a bit to try again\n // This may be caused by a lack of connection (such as the robot is turned off) or various other network errors\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n thread.interrupt();\n }\n }\n }\n }", "public void selectWindow(int index) {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(index));\n\t}", "public static void goToPlaylistChooserWindow()\n {\n PlaylistChooser playlistChooser = new PlaylistChooser();\n playlistChooser.setVisible(true);\n playlistChooser.setFatherWindow(actualWindow, false);\n }", "public void showWindow() {\n\t\tupdate();\n\t\tsetVisible(true);\n\t}", "public void Rooms_and_Guests() \r\n\t{\r\n\t\tExplicitWait(roomsandguests);\r\n\t\tif (roomsandguests.isDisplayed()) \r\n\t\t{\r\n\t\t\troomsandguests.click();\r\n\t\t\t//System.out.println(\"roomsandguests popup opened successfully\");\r\n\t\t\tlogger.info(\"roomsandguests popup opened successfully\");\r\n\t\t\ttest.log(Status.PASS, \"roomsandguests popup opened successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"roomsandguests popup not found\");\r\n\t\t\tlogger.error(\"roomsandguests popup not found\");\r\n\t\t\ttest.log(Status.FAIL, \"roomsandguests popup not found\");\r\n\r\n\t\t}\r\n\t}", "public boolean wait(final String title) {\n\t\treturn wait(title, (String) null);\n\t}", "public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive)\n\tthrows InterruptedException {\n\treturn(waitFrame(title, compareExactly, compareCaseSensitive, 0));\n }", "public WebElement waitForDisplay(final By by, int timeoutInSeconds)\n {\n System.out.println(\"Wait for display of \" + by);\n return new WebDriverWait(driver, timeoutInSeconds, DEFAULT_SLEEP_IN_MILLIS)\n .ignoring(StaleElementReferenceException.class).\n until(ExpectedConditions.visibilityOfElementLocated(by));\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\n\t\t\t\t\tIntent intent = new Intent(SplashActivity.this,\n\t\t\t\t\t\t\tHomeActivity.class);\n\t\t\t\t\tintent.putExtra(\"type\", \"create_contest\");\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tfinish();\n\n\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(3000);\n\n\t\t\t\t\t\tIntent intent = new Intent(SplashActivity.this,\n\t\t\t\t\t\t\t\tHomeActivity.class);\n\t\t\t\t\t\tintent.putExtra(\"type\", \"create_contest\");\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t}\n\t\t\t\t}", "public void waitForUserClick(Player player){\n Log.d(getClass().toString(),\"wait for user click???\");\n }", "public void switchToWindow(String title) {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t\tSystem.out.println(\"window title: \" + getDriver().getTitle());\n\t\t\tif (getDriver().getTitle().contains(title))\n\t\t\t\tbreak;\n\t\t}\n\t}", "public final TWindow getWindow() {\n return window;\n }", "public void switchToParentWindow() throws InterruptedException {\n\t\tSet<String>windowid=driver.getWindowHandles();\n\t\tIterator<String>itr=windowid.iterator();\n\t\tString mainwindow=itr.next();\n\t\tString childwindow=itr.next();\n\t\tdriver.close();\n\t\tdriver.switchTo().window(mainwindow);\n\t\tdriver.switchTo().defaultContent();\n\t\tThread.sleep(5000);\n\t\t\n\t}", "@Override\n public void show() {\n displayWindow.addWindowFocusListener(this);\n displayWindow.setVisible(true);\n }", "public GameWindow() {\n\t\tthis.initWindow();\n\t}", "public void waitUntilStarted() {\n mStarted.block();\n }", "public synchronized void showResultsWindow(boolean selected) {\r\n \t\tif (selected) {\r\n \t\t\tif (resultsWindow != null) {\r\n \t\t\t\tresultsWindow.show();\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tif (resultsWindow != null) {\r\n \t\t\t\tresultsWindow.hide();\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void setWindowVisible()\n {\n lobbyWindowFrame.setVisible(true);\n }", "public Frame waitFrame(String title, boolean compareExactly, boolean compareCaseSensitive, int index)\n\tthrows InterruptedException {\n\treturn(waitFrame(new FrameByTitleChooser(title, compareExactly, compareCaseSensitive), index));\n }", "private Window getWindow() {\r\n return root.getScene().getWindow();\r\n }", "public void setSingleWindow(boolean singleWindow) {\n this.singleWindow = singleWindow;\n }", "NativeWindow getWindowById(long id);", "public static int WaitForAnyEvent() {\r\n\t\treturn Button.keys.waitForAnyEvent();\r\n\t}", "public void chooseWindowSceneLoaded(String username) throws IOException{\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n out.println(username + \" chooseWindowOk\");\n out.close();\n socket.close();\n }", "public Frame waitFrame(ComponentChooser ch)\n\tthrows InterruptedException {\n\treturn(waitFrame(ch, 0));\n }", "private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }", "public boolean wait(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : wait(TitleBuilder.byHandle(hWnd));\n\t}", "boolean hasFirstFrame();", "public void showWindow() {\n Stage stage = new Stage();\n stage.setScene(new Scene(this.root));\n stage.setAlwaysOnTop(true);\n//\t\tstage.initStyle(StageStyle.UTILITY);\n stage.setOnCloseRequest((e) -> onCancelButtonClick());\n LOGGER.info(\"Show HydraulicSimulationResultWindow.\");\n\n stage.show();\n stage.setTitle(\"Result of execution\");\n Platform.runLater(() -> {\n this.window.setMinWidth(this.root.getWidth());\n this.window.setMinHeight(this.root.getHeight());\n });\n this.window = stage;\n }" ]
[ "0.575764", "0.57561284", "0.5710059", "0.53589743", "0.52907264", "0.52660143", "0.52362734", "0.51611537", "0.5159747", "0.5106563", "0.5064663", "0.5061127", "0.5013278", "0.5009259", "0.49372876", "0.4919933", "0.49182492", "0.4900952", "0.48725304", "0.4865367", "0.48346186", "0.48153046", "0.48059246", "0.4804809", "0.47588995", "0.4748347", "0.4743548", "0.47361985", "0.47329396", "0.47312015", "0.4727886", "0.4704732", "0.46989608", "0.46887654", "0.46670377", "0.46668705", "0.46357265", "0.46349856", "0.4632291", "0.46257108", "0.46218282", "0.46206686", "0.46015352", "0.45945013", "0.45930058", "0.45870504", "0.45841143", "0.4581317", "0.45810193", "0.45781353", "0.45753145", "0.4566013", "0.45635346", "0.45570552", "0.4551985", "0.45423156", "0.4541709", "0.4539133", "0.45263454", "0.45236862", "0.4520981", "0.45192203", "0.45092946", "0.45049906", "0.45044", "0.44950297", "0.44816366", "0.44738266", "0.44723493", "0.44636512", "0.44634426", "0.44632584", "0.4462873", "0.44445226", "0.44441783", "0.443007", "0.4425112", "0.44243422", "0.44182256", "0.44136268", "0.44084322", "0.4406056", "0.44001508", "0.43967625", "0.43941668", "0.43806943", "0.437904", "0.43639994", "0.43609348", "0.4359483", "0.4357857", "0.43574223", "0.435257", "0.43524456", "0.4348542", "0.434645", "0.43433413", "0.4338479", "0.43364123", "0.43314153" ]
0.5842965
0
Waits for the first window of the given class. This method assumes that the desired dialog is parented by parentWindow.
@Deprecated public static <T extends DialogComponentProvider> T waitForDialogComponent(Window parentWindow, Class<T> clazz, int timeoutMS) { if (!DialogComponentProvider.class.isAssignableFrom(clazz)) { throw new IllegalArgumentException(clazz.getName() + " does not extend " + DialogComponentProvider.class.getSimpleName()); } int totalTime = 0; while (totalTime <= DEFAULT_WAIT_TIMEOUT) { T provider = getDialogComponent(parentWindow, clazz); if (provider != null) { return provider; } totalTime += sleep(DEFAULT_WAIT_DELAY); } throw new AssertionFailedError("Timed-out waiting for window of class: " + clazz); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T extends DialogComponentProvider> T waitForDialogComponent(\n\t\t\tClass<T> ghidraClass) {\n\t\treturn waitForDialogComponent(null, ghidraClass, DEFAULT_WINDOW_TIMEOUT);\n\t}", "public static JDialog waitForJDialog(String title) {\n\n\t\tint totalTime = 0;\n\t\twhile (totalTime <= DEFAULT_WINDOW_TIMEOUT) {\n\n\t\t\tSet<Window> winList = getAllWindows();\n\t\t\tIterator<Window> iter = winList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tWindow w = iter.next();\n\t\t\t\tif ((w instanceof JDialog) && w.isShowing()) {\n\t\t\t\t\tString windowTitle = getTitleForWindow(w);\n\t\t\t\t\tif (title.equals(windowTitle)) {\n\t\t\t\t\t\treturn (JDialog) w;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public Window getParentWindow()\n {\n return LibSwingUtil.getWindowAncestor(parentDialog);\n }", "public void waitModalWindow(By waitForElement) {\n\t\tBaseWaitingWrapper.waitForElementToBeVisible(waitForElement, driver);\r\n\t\t\r\n\r\n\t}", "public static Window waitForWindowByName(String name) {\n\n\t\tint time = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (time <= timeout) {\n\t\t\tSet<Window> allWindows = getAllWindows();\n\t\t\tfor (Window window : allWindows) {\n\t\t\t\tString windowName = window.getName();\n\t\t\t\tif (name.equals(windowName) && window.isShowing()) {\n\t\t\t\t\treturn window;\n\t\t\t\t}\n\n\t\t\t\ttime += sleep(DEFAULT_WAIT_DELAY);\n\t\t\t}\n\t\t}\n\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with name '\" + name + \"'\");\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "private Window getDialogOwner(final Node node)\n {\n if (node != null) {\n final Scene scene = node.getScene();\n if (scene != null) {\n final Window window = scene.getWindow();\n if (window != null) return window;\n }\n }\n return task.getPrimaryStage();\n }", "private Alert showWaitWindow(Window window) {\n // modify alert pane\n //Alert waitAlert = new Alert(Alert.AlertType.NONE);\n waitAlert.setTitle(null);\n waitAlert.setHeaderText(null);\n waitAlert.setContentText(\" Please wait while data is evaluated ...\");\n waitAlert.getDialogPane().setBackground(new Background(new BackgroundFill(Color.DARKGRAY, null, null)));\n waitAlert.getDialogPane().setBorder(new Border(new BorderStroke(Color.BLACK,\n BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n waitAlert.getDialogPane().setMaxWidth(250);\n waitAlert.getDialogPane().setMaxHeight(50);\n\n // center on window below (statistics window)\n final double windowCenterX = window.getX() + (window.getWidth() / 2);\n final double windowCenterY = window.getY() + (window.getHeight() / 2);\n // verify\n if (!Double.isNaN(windowCenterX)) {\n // set a temporary position\n waitAlert.setX(windowCenterX);\n waitAlert.setY(windowCenterY);\n\n // since the dialog doesn't have a width or height till it's shown, calculate its position after it's shown\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n waitAlert.setX(windowCenterX - (waitAlert.getWidth() / 2));\n waitAlert.setY(windowCenterY - (waitAlert.getHeight() / 2));\n }\n });\n }\n waitAlert.show();\n return waitAlert;\n }", "public void switchToParentWindow() throws InterruptedException {\n\t\tSet<String>windowid=driver.getWindowHandles();\n\t\tIterator<String>itr=windowid.iterator();\n\t\tString mainwindow=itr.next();\n\t\tString childwindow=itr.next();\n\t\tdriver.close();\n\t\tdriver.switchTo().window(mainwindow);\n\t\tdriver.switchTo().defaultContent();\n\t\tThread.sleep(5000);\n\t\t\n\t}", "public Locomotive waitForWindow(String regex) {\n Set<String> windows = getDriver().getWindowHandles();\n for (String window : windows) {\n try {\n // Wait before switching tabs so that the new tab can load; else it loads a blank page\n try {\n Thread.sleep(100);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n getDriver().switchTo().window(window);\n\n p = Pattern.compile(regex);\n m = p.matcher(getDriver().getCurrentUrl());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n } else {\n // try for title\n m = p.matcher(getDriver().getTitle());\n\n if (m.find()) {\n attempts = 0;\n return switchToWindow(regex);\n }\n }\n } catch (NoSuchWindowException e) {\n if (attempts <= configuration.getRetries()) {\n attempts++;\n\n try {\n Thread.sleep(1000);\n } catch (Exception x) {\n Logger.error(x);\n }\n\n return waitForWindow(regex);\n } else {\n Assertions.fail(\"Window with url|title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\", e);\n }\n }\n }\n\n // when we reach this point, that means no window exists with that title..\n if (attempts == configuration.getRetries()) {\n Assertions.fail(\"Window with title: \" + regex + \" did not appear after \" + configuration.getRetries() + \" tries. Exiting.\");\n return this;\n } else {\n Logger.info(\"#waitForWindow() : Window doesn't exist yet. [%s] Trying again. %s/%s\", regex, (attempts + 1), configuration.getRetries());\n attempts++;\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n Logger.error(e);\n }\n return waitForWindow(regex);\n }\n }", "public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }", "public void showResultsWindow() {\r\n \t\tshowResults.setSelected(true);\r\n \t\tshowResultsWindow(true);\r\n \t}", "public static JDialog waitJFileChooserDialog() {\n return (JDialogOperator.\n waitJDialog(new JFileChooserJDialogFinder(JemmyProperties.\n getCurrentOutput())));\n }", "void ShowWaitDialog(String title, String message);", "public void switchToChildWindow(String parent) throws Exception {\r\n\t\t// get ra tat ca cac tab dang co\r\n\t\tSet<String> allWindows = driver.getWindowHandles();\r\n\t\tThread.sleep(3000);\r\n\t\tfor (String runWindow : allWindows) {\r\n\t\t\tif (!runWindow.equals(parent)) {\r\n\t\t\t\tdriver.switchTo().window(runWindow);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void selectRootWindow() {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(0));\n\t}", "private JDialog getParentDialog() {\n return (JDialog) SwingUtilities.getAncestorOfClass(JDialog.class, this);\n }", "Window getParent();", "public void handleWindow() throws InterruptedException {\n\t\tSet<String> windHandles = GlobalVars.Web_Driver.getWindowHandles();\n\t\tSystem.out.println(\"Total window handles are:--\" + windHandles);\n\t\tparentwindow = windHandles.iterator().next();\n\t\tSystem.out.println(\"Parent window handles is:-\" + parentwindow);\n\n\t\tList<String> list = new ArrayList<String>(windHandles);\n\t\twaitForElement(3);\n\t\tGlobalVars.Web_Driver.switchTo().window((list.get(list.size() - 1)));\n\t\tSystem.out.println(\"current window title is:-\" + GlobalVars.Web_Driver.getTitle());\n\t\treturn;\n\t}", "public static void goToPlaylistChooserWindow()\n {\n PlaylistChooser playlistChooser = new PlaylistChooser();\n playlistChooser.setVisible(true);\n playlistChooser.setFatherWindow(actualWindow, false);\n }", "public static JDialog getFirstJDialog() {\n\t\t return firstJDialog;\n\t }", "public void showModalWindow() {\n Stage dialog = new Stage();\n dialog.initOwner(stage);\n dialog.initModality(Modality.WINDOW_MODAL); \n dialog.showAndWait();\n }", "public static Window waitForWindow(String title) {\n\t\tWindow window = getWindow(title);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindow(title);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window with title '\" + title + \"'\");\n\t}", "public JDialog getWindow() {\n\t\treturn window;\n\t}", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "public SAPTopLevelTestObject getActiveWindow(){\n\t\treturn new SAPTopLevelTestObject(mainWnd);\n\t}", "public static OkDialog waitForInfoDialog() {\n\t\treturn waitForDialogComponent(OkDialog.class);\n\t}", "public void ensureIsDisplayed() {\n (new WebDriverWait(driver, 10))\n .until(ExpectedConditions.presenceOfElementLocated(\n By.className(\"mat-dialog-container\")));\n }", "private void buildWaitingDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Waiting for server...\");\n\t\tJPanel p1= new JPanel(new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\n\t\t//waiting text\n\t\tJLabel lab = new JLabel(\"Please wait...\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//waiting animation\n\t\tImageIcon gif = new ImageIcon (\"./client_images/load.gif\");\n\t\tJLabel imgLabel = new JLabel(gif);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\t//abort button to close client application\n\t\tJButton abort = new JButton (\"Abort\");\n\t\t//register anonymous listener class that closes up application\n\t\tabort.addActionListener (new ActionListener(){\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\t\tp1.add(abort,BorderLayout.SOUTH);\n\n\t\t//dialog settings\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\t\n\t}", "public void waitDialog(String title) {\n Stage dialog = new Stage();\n Parent root = null;\n try {\n root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource(\"wait.fxml\")));\n Scene s1 = new Scene(root);\n dialog.setScene(s1);\n dialog.getIcons().add(new Image(\"images/cm_boardgame.png\"));\n overlayedStage = dialog;\n overlayedStage.initOwner(thisStage);\n overlayedStage.initModality(Modality.APPLICATION_MODAL);\n overlayedStage.setTitle(title);\n overlayedStage.initStyle(StageStyle.UNDECORATED);\n overlayedStage.setResizable(false);\n dialog.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static PopupWindow findPopupWindow(Activity activity) {\n\t\ttry {\n\t\t\tViewExtractor viewExractor = new ViewExtractor();\n\t\t\tView[] views = viewExractor.getWindowDecorViews();\n\t\t\tif (views != null) {\n\t\t\t\tint numDecorViews = views.length;\n\t\t\t\t\n\t\t\t\t// iterate through the set of decor windows. The dialog may already have been presented.\n\t\t\t\tfor (int iView = 0; iView < numDecorViews; iView++) {\n\t\t\t\t\tView v = views[iView];\n\t\t\t\t\tif (ViewExtractor.isDialogOrPopup(activity, v)) {\t\n\t\t\t\t\t\tString className = v.getClass().getCanonicalName();\n\t\t\t\t\t\tif (className.equals(Constants.Classes.POPUP_VIEW_CONTAINER)) {\n\t\t\t\t\t\t\tClass popupViewContainerClass = Class.forName(Constants.Classes.POPUP_VIEW_CONTAINER_CREATECLASS);\n\t\t\t\t\t\t\tPopupWindow popupWindow = (PopupWindow) ReflectionUtils.getFieldValue(v, popupViewContainerClass, Constants.Classes.THIS);\n\t\t\t\t\t\t\treturn popupWindow;\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} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn null;\t\t\n\t}", "public void switchToNewlyOpenedWindow(){\n\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tdriver.getWindowHandles();\n\t\t\tfor(String handle : driver.getWindowHandles())\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t}\n\t\t\tLOGGER.info(\"Step : Switching to New Window : Pass\");\n\t\t} catch (InterruptedException e) {\n\t\t\tLOGGER.error(\"Step : Switching to New Window : Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to newly opened window\");\n\t\t}\n\t}", "private static void findWindow() {\n\t\tCoInitialize();\n\t\t\n\t\thandle = user32.FindWindowA(\"WMPlayerApp\", \"Windows Media Player\");\n\t}", "public void popResultDialog(int index) {\n JFrame frame = (JFrame) SwingUtilities.windowForComponent(this);\n if (frame != null && index > 0 && index < listRank.size()) {\n Record record = listRank.get(index);\n ResultDetailDialog dialog = new ResultDetailDialog(frame, record);\n dialog.setModal(true);\n int x = frame.getX() + (frame.getWidth() - dialog.getWidth()) / 2;\n int y = frame.getY() + (frame.getHeight() - dialog.getHeight()) / 2;\n dialog.setLocation(x, y);\n dialog.setVisible(true);\n }\n }", "public void switchToChildWindow(String parent) {\r\n\t\t//get ra tat ca cac tab hoac cua so dang co -->ID duy nhat. Neu dung List thi no se lay ca ID trung\r\n Set<String> allWindows = driver.getWindowHandles();\r\n //for each\r\n for (String ChildWindow : allWindows) {\r\n \t//duyet qua trung\r\n if (!ChildWindow.equals(parent)) {\r\n driver.switchTo().window(ChildWindow);\r\n break;\r\n }\r\n }\r\n \r\n \r\n}", "Class<? extends Activity> getOpenInOtherWindowActivity();", "private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "public static Window waitForWindowByTitleContaining(String text) {\n\t\tWindow window = getWindowByTitleContaining(null, text);\n\t\tif (window != null) {\n\t\t\treturn window;// we found it...no waiting required\n\t\t}\n\n\t\tint totalTime = 0;\n\t\tint timeout = DEFAULT_WAIT_TIMEOUT;\n\t\twhile (totalTime <= timeout) {\n\n\t\t\twindow = getWindowByTitleContaining(null, text);\n\t\t\tif (window != null) {\n\t\t\t\treturn window;\n\t\t\t}\n\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\n\t\tthrow new AssertionFailedError(\n\t\t\t\"Timed-out waiting for window containg title '\" + text + \"'\");\n\t}", "public Window getFullScreenWindow(){\n return vc.getFullScreenWindow();\n }", "private void chooseFileWindow()\n\t{\n\t\tInitFrame init = new InitFrame();\n\t\tinit.setFilePath(FILE_NAME);\n\t\tJFrame frame = new JFrame(\"Bowling Game\");\t\t\t\n\t\tSplashScreen splash = new SplashScreen();\n splash.setFilePath(FILE_NAME);\n // Normally, we'd call splash.showSplash() and get on \n // with the program. But, since this is only a test... \n\t\t\n\t\tsplash.showSplash();\t\t\n\t\tframe.setSize(400,400);\t\t\n\t\tinit.LoadComponents(frame);\n\t\t\n\n\t\t// first show the first fileChooser window\n\t\t\n\t\tString p1 = \"\", p = init.FileChooser(frame);\n\t\tsimpleProgressBar progres = new simpleProgressBar(100,100);\n\t\t\t\n\t\t//System.out.println(\"p(VIEWCONTORLLER):\" + p + \" \" + p.length());\n\t\t\n\t\tint i = p.length() - 1, j = 0;\n\t\t//System.out.println(i + \" \" + p.charAt(i));\n\t\twhile(i > 0)\n\t\t{\n\t\t\tif( (p.charAt(i) == '/') || (p.charAt(i) == '\\''))\n\t\t\t{\n\t\t\t\tj = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti--;\n\t\t}\n\t\tp1 = p.substring(j, p.length());\n\t\t//FILE_NAME = p1;\n\t\tInitView.setTxtFilePath(p);\n\t\t//BowlFrame bFrame = new BowlFrame();\n\t\t//bFrame.setVisible(true);\n\t\twhile ( null==InitView.getTxtFilePath() )\n\t\t{ \n\t\t\t\n\t\t}\n\t\tSystem.out.println(\" FILENAME: \" + FILE_NAME);\n\t\tBowl = new BowlFrame(FILE_NAME);\t\t\n\t\tBowl.setVisible(true);\n\t\n\t\tframe.dispose();\n\t}", "private void createResultPopup() {\r\n resultDialog = new JDialog(parentFrame);\r\n resultDialog.setLayout(new BoxLayout(resultDialog.getContentPane(), BoxLayout.Y_AXIS));\r\n resultDialog.setAlwaysOnTop(true);\r\n Utilities.centerWindowTo(resultDialog, parentFrame);\r\n resultDialog.add(createResultLabel());\r\n resultDialog.add(createButtonDescription());\r\n resultDialog.add(createConfirmationButtons());\r\n resultDialog.pack();\r\n resultDialog.setVisible(true);\r\n }", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }", "public void prePositionWaitAlert(Window window) {\n showWaitWindow(window);\n waitAlert.setResult(ButtonType.OK);\n waitAlert.close();\n }", "public static void switchToChildWindow() {\n\t\tString mainWindow = driver.getWindowHandle();\n\t\tSet<String> windows = driver.getWindowHandles();\n\t\tfor (String window : windows) {\n\t\t\tif (!window.equals(mainWindow)) {\n\t\t\t\tdriver.switchTo().window(window);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public static void windowspwcw() {\n\t\tString windowHandle = driver.getWindowHandle();\n\t\tSystem.out.println(\"parent window is: \"+windowHandle);\n\t\tSet<String> windowHandles = driver.getWindowHandles();\n\t\tSystem.out.println(\"child window is \"+windowHandles);\n\t\tfor(String eachWindowId:windowHandles)\n\t\t{\n\t\t\tif(!windowHandle.equals(eachWindowId))\n\t\t\t{\n\t\t\t\tdriver.switchTo().window(eachWindowId);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t}", "@Test\n\tvoid HandleWindowPopUp() throws InterruptedException {\n\t\t//Invoke Browser\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/Suvarna/Downloads/chromedriver\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\t//Launch the website\n\t\tdriver.get(\"http://www.popuptest.com/goodpopups.html\");\n\t\t\n\t\t// Click on the pop-up3 link\n\t\tdriver.findElement(By.xpath(\"/html/body/table[2]/tbody/tr/td/font/b/a[3]\")).click();\n\t\t\n\t\t// wait for 2 second\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Call method to handle window \n\t\tSet<String> handler = driver.getWindowHandles();\n\t\tIterator<String> it = handler.iterator();\n\t\t\n\t\t// get the parent window id\n\t\tString parentWindowId = it.next();\n\t\tSystem.out.println(\"Parent Window id: \"+ parentWindowId);\n\t\t\n\t\t// Get the Pop-up window id\n\t\tString childWindowId =it.next();\n\t\tSystem.out.println(\"Child Window id: \"+ childWindowId);\n\t\t\n\t\t//Passing the control to pop up window ...Switch to pop-up window\n\t\tdriver.switchTo().window(childWindowId);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t// Get the title of the Pop-up Window\n\t\tSystem.out.println(\" Child window pop up title \"+ driver.getTitle()); \n\t\t\n\t\t//Close the pop-up window\n\t\tdriver.close();\n\t\t\n\t\t//Switch to Parent Window\n\t\tdriver.switchTo().window(parentWindowId);\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t//Get the title of Parent window\n\t\tSystem.out.println(\" Parent window title \"+ driver.getTitle());\n\t\t\n\t\t// Close the main window\n\t\tdriver.close();\n\t\t\n\t}", "private Window getParentWindow(Component paramComponent) {\n/* 192 */ Window window = null;\n/* */ \n/* 194 */ if (paramComponent instanceof Window) {\n/* 195 */ window = (Window)paramComponent;\n/* */ }\n/* 197 */ else if (paramComponent != null) {\n/* 198 */ window = SwingUtilities.getWindowAncestor(paramComponent);\n/* */ } \n/* 200 */ if (window == null) {\n/* 201 */ window = new DefaultFrame();\n/* */ }\n/* 203 */ return window;\n/* */ }", "public Window getParentWindow() {\r\n\t\t// // I traverse the windows hierarchy to find this component's parent\r\n\t\t// window\r\n\t\t// // if it's in an application, then it'll be that frame\r\n\t\t// // if it's in an applet, then it'll be the browser window\r\n\r\n\t\t// // unfortunately if it's an applet, the popup window will have \"Java\r\n\t\t// Applet Window\" label\r\n\t\t// // at the bottom...nothing i can do (for now)\r\n\r\n\t\tWindow window = null;\r\n\r\n\t\tComponent component = this;\r\n\t\twhile (component.getParent() != null) {\r\n\r\n\t\t\tif (component instanceof Window)\r\n\t\t\t\tbreak;\r\n\t\t\tcomponent = component.getParent();\r\n\t\t}\r\n\r\n\t\tif (component instanceof Window)\r\n\t\t\twindow = (Window) component;\r\n\r\n\t\treturn (window);\r\n\t}", "private void showpDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "public static void run()\n {\n JFrame invisibleFrame = new InvisibleFrame(TITLE);\n try {\n MainDialog mainDialog = new MainDialog(invisibleFrame);\n mainDialog.setVisible(true);\n } finally {\n invisibleFrame.dispose();\n }\n }", "public void switchToDefaultWindow() {\n\n\t}", "public <T extends Application<?, ?>> T launch(Class<T> appClass, String desiredUrl) {\r\n\t\tT result = super.launch(WindowManager.class, appClass, objectWhichChecksWebDriver);\r\n\t\tBrowserWindow window = (BrowserWindow) result.getHandle();\t\t\r\n\t\twindow.to(desiredUrl);\t\t\r\n\t\treturn result;\r\n\t}", "public final TWindow getWindow() {\n return window;\n }", "public WindowState getParentWindow() {\n return this.mParentWindow;\n }", "private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }", "public void show() {\n Container parent = this.parent;\n if (parent != null && parent.peer == null) {\n parent.addNotify();\n }\n if (peer == null) {\n addNotify();\n }\n validate();\n if (visible) {\n toFront();\n } else {\n // 6182409: Window.pack does not work correctly.\n beforeFirstShow = false;\n super.show();\n }\n // If first time shown, generate WindowOpened event\n if ((state & OPENED) == 0) {\n //postWindowEvent(WindowEvent.WINDOW_OPENED);\n WindowEvent e = new WindowEvent(this, WindowEvent.WINDOW_OPENED);\n Toolkit.getEventQueue().postEvent(e);\n state |= OPENED;\n }\n }", "public static void showDialog() {\n\t\tdialog.setLocationRelativeTo(Cytoscape.getDesktop());\n\t\tdialog.setVisible(true);\n\t}", "public void showDialogWindow(Stage primaryStage, VBox vbox, String title, Button done) {\n // Create layout\n BorderPane layout = new BorderPane();\n layout.setCenter(vbox);\n\n // Show Modal Dialog Window\n Scene inputScene = new Scene(layout, 350, 250);\n final Stage userInputs = new Stage();\n userInputs.initModality(Modality.APPLICATION_MODAL);\n userInputs.initOwner(primaryStage);\n userInputs.setScene(inputScene);\n userInputs.setTitle(title);\n userInputs.show();\n\n // Add functionality to upload button\n done.setOnAction(e -> userInputs.close());\n }", "protected static <T extends DialogComponentProvider> T getDialogComponentProvider(Window window,\n\t\t\tClass<T> ghidraClass) {\n\n\t\tif (!(window instanceof DockingDialog)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!window.isShowing()) {\n\t\t\treturn null;\n\t\t}\n\n\t\tDialogComponentProvider provider = ((DockingDialog) window).getDialogComponent();\n\t\tif (provider == null || !provider.isVisible()) {\n\t\t\t// provider can be null if the DockingDialog is disposed before we can get the provider\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!ghidraClass.isAssignableFrom(provider.getClass())) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn ghidraClass.cast(provider);\n\t}", "private Window getWindow() {\r\n return root.getScene().getWindow();\r\n }", "public static Window getWindow() {\r\n\t\treturn window;\r\n\t}", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "public static void switchToChildWindow() {\t\t\n\t\tString parent = Constants.driver.getWindowHandle();\n\t\tLOG.info(\"Parent window handle: \" +parent);\n\t\tSet <String> windows = Constants.driver.getWindowHandles();\n\t\tIterator <String> itr = windows.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString child = itr.next();\n\t\t\tif (!child.equals(parent)) {\n\t\t\t\tLOG.info(\"Child window handle: \" +child);\n\t\t\t\tConstants.driver.switchTo().window(child);\n\t\t\t} else {\n\t\t\t\tLOG.error(\"Parent(main) and child window hanldles are same.\");\n\t\t\t}\n\t\t}\n\n\t}", "public boolean show() {\n\t\tComponent parent = DockingWindowManager.getActiveInstance().getActiveComponent();\n\t\tDockingWindowManager.showDialog(parent, this);\n\t\treturn !wasCancelled;\n\t}", "public WindowState findFocusedWindow() {\n this.mTmpWindow = null;\n forAllWindows(this.mFindFocusedWindow, true);\n WindowState windowState = this.mTmpWindow;\n if (windowState != null) {\n return windowState;\n }\n if (WindowManagerDebugConfig.DEBUG_FOCUS_LIGHT) {\n Slog.v(TAG, \"findFocusedWindow: No focusable windows.\");\n }\n return null;\n }", "public synchronized void showResultsWindow(boolean selected) {\r\n \t\tif (selected) {\r\n \t\t\tif (resultsWindow != null) {\r\n \t\t\t\tresultsWindow.show();\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tif (resultsWindow != null) {\r\n \t\t\t\tresultsWindow.hide();\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public Window getWindow() { return window; }", "public static String openClassSelectDialog(IJavaProject project, Control parent) {\r\n\t\ttry {\r\n\t\t\tShell shell = parent.getShell();\r\n\t\t\tSelectionDialog dialog = JavaUI.createTypeDialog(\r\n\t\t\t\t\tshell,new ProgressMonitorDialog(shell),\r\n\t\t\t\t\tSearchEngine.createJavaSearchScope(new IJavaElement[]{project}),\r\n\t\t\t\t\tIJavaElementSearchConstants.CONSIDER_CLASSES,false);\r\n\t\t\t\t\r\n\t\t\tif(dialog.open()==SelectionDialog.OK){\r\n\t\t\t\tObject[] result = dialog.getResult();\r\n\t\t\t\treturn ((IType)result[0]).getFullyQualifiedName();\r\n\t\t\t}\r\n\t\t} catch(Exception ex){\r\n\t\t\tHTMLPlugin.logException(ex);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "public static void showDialog(JFrame parent) {\n try {\n JDialog dialog = new InvestmentReportDialog(parent);\n dialog.pack();\n dialog.setLocationRelativeTo(parent);\n dialog.setVisible(true);\n } catch (Exception exc) {\n Main.logException(\"Exception while displaying dialog\", exc);\n }\n }", "public void askSpawn() throws RemoteException{\n respawnPopUp = new RespawnPopUp();\n respawnPopUp.setSenderRemoteController(senderRemoteController);\n respawnPopUp.setMatch(match);\n\n Platform.runLater(\n ()-> {\n try{\n respawnPopUp.start(new Stage());\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n );\n }", "public static void switchToParentWindow(String s) {\n\t\tdriver.switchTo().window(s);\n\t}", "public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}", "public NewGame getNewGameDialog() {\n\t\treturn newGameDialog;\n\t}", "public void testWindowSystem() {\n final ProjectsTabOperator projectsOper = ProjectsTabOperator.invoke();\n final FavoritesOperator favoritesOper = FavoritesOperator.invoke();\n\n // test attaching\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.AS_LAST_TAB);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.TOP);\n favoritesOper.attachTo(new OutputOperator(), AttachWindowAction.RIGHT);\n favoritesOper.attachTo(projectsOper, AttachWindowAction.AS_LAST_TAB);\n // wait until TopComponent is in new location and is showing\n final TopComponent projectsTc = (TopComponent) projectsOper.getSource();\n final TopComponent favoritesTc = (TopComponent) favoritesOper.getSource();\n try {\n new Waiter(new Waitable() {\n\n @Override\n public Object actionProduced(Object tc) {\n // run in dispatch thread\n Mode mode1 = (Mode) projectsOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(projectsTc);\n }\n });\n Mode mode2 = (Mode) favoritesOper.getQueueTool().invokeSmoothly(new QueueTool.QueueAction(\"findMode\") { // NOI18N\n\n @Override\n public Object launch() {\n return WindowManager.getDefault().findMode(favoritesTc);\n }\n });\n return (mode1 == mode2 && favoritesTc.isShowing()) ? Boolean.TRUE : null;\n }\n\n @Override\n public String getDescription() {\n return (\"Favorites TopComponent is next to Projects TopComponent.\"); // NOI18N\n }\n }).waitAction(null);\n } catch (InterruptedException e) {\n throw new JemmyException(\"Interrupted.\", e); // NOI18N\n }\n favoritesOper.close();\n\n // test maximize/restore\n // open sample file in Editor\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass2Node = new JavaNode(sample1Node, SAMPLE2_FILE_NAME);\n sampleClass2Node.open();\n // find open file in editor\n EditorOperator eo = new EditorOperator(SAMPLE2_FILE_NAME);\n eo.maximize();\n eo.restore();\n EditorOperator.closeDiscardAll();\n }", "public void switchToLastWindow() {\n\t\tSet<String> windowHandles = getDriver().getWindowHandles();\n\t\tfor (String str : windowHandles) {\n\t\t\tgetDriver().switchTo().window(str);\n\t\t}\n\t}", "@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}", "public void run()\n {\n\n int sleepTime = 10; // milliseconds (tune this value accordingly)\n\n int totalTimeShown = 0;\n while(keepGoing)\n {\n // Force this window to the front.\n\n toFront();\n\n // Sleep for \"sleepTime\"\n\n try\n {\n Thread.sleep(sleepTime);\n }\n catch(Exception e)\n {}\n\n // Increment the total time the window has been shown\n // and exit the loop if the desired time has elapsed.\n\n totalTimeShown += sleepTime;\n if(totalTimeShown >= milliseconds)\n break;\n }\n\n // Use SwingUtilities.invokeAndWait to queue the disposeRunner\n // object on the event dispatch thread.\n\n try\n {\n SwingUtilities.invokeAndWait(disposeRunner);\n }\n catch(Exception e)\n {}\n }", "void CloseWaitDialog();", "private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }", "public Window getWindow() {\r\n return window;\r\n }", "public void ShowMessage(Stage parentWindow) {\n\t\t/* Only show the stage if it's initialized. */\n\t\tif (this.messageStage != null) {\n\t\t\t/* Set the window owner if needed. */\n\t\t\tif ((parentWindow != null) && (!(this.isShown))) {\n\t\t\t\t/* Set the window owner. */\n\t\t\t\tthis.messageStage.initOwner(parentWindow);\n\t\t\t}\n\t\t\n\t\t\t/* Disallow setting the message window owner if we are shown. */\n\t\t\tif (!(this.isShown)) {\n\t\t\t\tthis.isShown = true;\n\t\t\t}\n\t\t\t\n\t\t\t/* Show the window. */\n\t\t\tthis.messageStage.showAndWait();\n\t\t}\n\t\t\n\t\t/* Exit function. */\n\t\treturn;\n\t}", "public WebElement waitForDisplay(final WebElement webelement)\n {\n return waitForDisplay(webelement, DEFAULT_TIMEOUT);\n }", "public static JDialog getLastCommandOriginParentDialog() {\n\n return m_LastCommandOriginParentPanel;\n\n }", "public boolean showDialog() {\r\n if (this.cmbTypes.getItemCount() > 0) {\r\n this.cmbTypes.setSelectedIndex(0);\r\n }\r\n this.returnValue = false;\r\n this.setVisible(true);\r\n return this.returnValue;\r\n }", "public void createPopupWindow() {\r\n \t//\r\n }", "public FormWindow getRelatedWindow();", "public Window getWindow() {\n return window;\n }", "public void display() {\n dialog.setVisible(true);\n }", "public Window getWindow() {\n Window w = null;\n if(this instanceof Container) {\n Node root = ((Container)this).getRoot();\n Scene scene = root==null ? null : root.getScene();\n javafx.stage.Window stage = scene==null ? null : scene.getWindow();\n w = stage==null ? null : (Window)stage.getProperties().get(\"window\");\n }\n if(this instanceof Widget) {\n Node root = ((Widget)this).getGraphics();\n Scene scene = root==null ? null : root.getScene();\n javafx.stage.Window stage = scene==null ? null : scene.getWindow();\n w = stage==null ? null : (Window)stage.getProperties().get(\"window\");\n }\n return w==null ? Window.getActive() : w;\n }", "public Window getWindow() {\n\t\treturn selectionList.getScene().getWindow();\n\t}", "protected boolean hasModalWindow() {\n return false;\n }", "@Override\n public void run() {\n boolean pvp_net;\n //Start with negative state:\n pvp_net_changed(false);\n \n Window win = null;\n\n while(!isInterrupted()||true) {\n //Check whether window is running\n if(win==null) {\n win = CacheByTitle.initalInst.getWindow(ConstData.window_title_part);\n //if(win==null)\n // Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window from name failed...\");\n }\n else if(!win.isValid()) {\n win = null;\n //Logger.getLogger(this.getClass().getName()).log(Level.INFO, \"Window is invalid...\");\n }\n else if(\n main.ToolRunning() && \n main.settings.getBoolean(Setnames.PREVENT_CLIENT_MINIMIZE.name, (Boolean)Setnames.PREVENT_CLIENT_MINIMIZE.default_val) &&\n win.isMinimized()) {\n win.restoreNoActivate();\n }\n pvp_net = win!=null;\n //On an change, update GUI\n if(pvp_net!=pvp_net_running) {\n pvp_net_changed(pvp_net);\n }\n \n /*thread_running = main.ToolRunning();\n if(thread_running!=automation_thread_running)\n thread_changed(thread_running);*/\n\n try {\n sleep(900L);\n //Wait some more if paused\n waitPause();\n }\n catch(InterruptedException e) {\n break; \n }\n } \n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "public static JFrame getWindow()\r\n {\r\n\treturn window;\r\n }", "private void displayLessonSelectionDialog() {\n\t\tpauseMedia();\n\t\tint requestCode = onLargeScreen ? LessonSelectionDialog.SELECT_TO_CLASS\n\t\t\t\t: LessonSelectionDialog.SELECT_TO_LESSON;\n\t\tlessonSelectionDialog = LessonSelectionDialog.newInstance(\n\t\t\t\tLessonSelectionDialog.CLASS_LESSON_SELECT, requestCode);\n\t\tlessonSelectionDialog.setOnDialogResultListener(this, requestCode);\n\t\tlessonSelectionDialog.show(this.getSupportFragmentManager(),\n\t\t\t\t\"lessonSelectionDialog\");\n\t}", "public void showWindow() {\n Stage stage = new Stage();\n stage.setScene(new Scene(this.root));\n stage.setAlwaysOnTop(true);\n//\t\tstage.initStyle(StageStyle.UTILITY);\n stage.setOnCloseRequest((e) -> onCancelButtonClick());\n LOGGER.info(\"Show HydraulicSimulationResultWindow.\");\n\n stage.show();\n stage.setTitle(\"Result of execution\");\n Platform.runLater(() -> {\n this.window.setMinWidth(this.root.getWidth());\n this.window.setMinHeight(this.root.getHeight());\n });\n this.window = stage;\n }", "Point showDialog()\n\t{\n\t\tsize = new Point(0, 0);\t//returned if user exits the dialog vice clicking \"Play\"\n\t\tthis.setVisible(true);\n\t\treturn size;\n\t}", "public void showClassPanel() {\r\n \t\tdialogFactory.getDialog(new jmodelClassesPanel(model, model), \"Manage User Classes\");\r\n \t}", "public static synchronized void getSettingsWindow() {\n if (WINDOW == null) {\n WINDOW = new JFrame(\"Settings\");\n WINDOW.setContentPane(new SettingsWindow().settingsPanel);\n WINDOW.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n WINDOW.pack();\n }\n WINDOW.setVisible(true);\n WINDOW.requestFocus();\n }" ]
[ "0.60728705", "0.60083264", "0.57343054", "0.56013453", "0.5521947", "0.55195624", "0.54724634", "0.54241985", "0.5414633", "0.5399139", "0.53885406", "0.53663677", "0.5342363", "0.5335067", "0.5326282", "0.5321582", "0.52475375", "0.5236462", "0.5200911", "0.5186313", "0.51852465", "0.51680326", "0.5143548", "0.51077515", "0.5038545", "0.50345653", "0.50308657", "0.50288874", "0.50203073", "0.501811", "0.50119495", "0.49963158", "0.49924427", "0.49808946", "0.49696568", "0.49636245", "0.49536598", "0.4942268", "0.49239826", "0.49081373", "0.4905383", "0.4901402", "0.48836914", "0.48811558", "0.48513433", "0.48460734", "0.48456416", "0.48167813", "0.48084867", "0.48023245", "0.48001948", "0.47656533", "0.4761406", "0.4749491", "0.47433713", "0.47424808", "0.47301245", "0.4728624", "0.47208166", "0.47095186", "0.4704548", "0.47016004", "0.4692552", "0.4677335", "0.4676686", "0.4672313", "0.46589884", "0.46572205", "0.46568632", "0.46534956", "0.4648407", "0.4644491", "0.4640131", "0.46361586", "0.46267277", "0.4617551", "0.46163172", "0.460822", "0.46014205", "0.4600129", "0.4596624", "0.45942637", "0.45872432", "0.4586598", "0.4575844", "0.4562514", "0.4559174", "0.4545953", "0.45458123", "0.45381835", "0.45381808", "0.45374998", "0.4536659", "0.45357573", "0.45316315", "0.45304823", "0.4513778", "0.45131138", "0.45109534", "0.4506171" ]
0.52387744
17
Gets the dialog component provider that is inside the given window or null if a provider of the given class type is not in the window.
protected static <T extends DialogComponentProvider> T getDialogComponentProvider(Window window, Class<T> ghidraClass) { if (!(window instanceof DockingDialog)) { return null; } if (!window.isShowing()) { return null; } DialogComponentProvider provider = ((DockingDialog) window).getDialogComponent(); if (provider == null || !provider.isVisible()) { // provider can be null if the DockingDialog is disposed before we can get the provider return null; } if (!ghidraClass.isAssignableFrom(provider.getClass())) { return null; } return ghidraClass.cast(provider); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static <T extends ComponentProvider> T getDetachedWindowProvider(\n\t\t\tfinal Class<T> providerClass, final DockingWindowManager windowManager) {\n\n\t\tObjects.requireNonNull(windowManager, \"DockingWindowManager cannot be null\");\n\n\t\tAtomicReference<T> ref = new AtomicReference<>();\n\n\t\trunSwing(() -> {\n\t\t\tObject rootNode = getInstanceField(\"root\", windowManager);\n\t\t\tList<?> windowNodeList = (List<?>) invokeInstanceMethod(\"getDetachedWindows\", rootNode);\n\t\t\tfor (Object windowNode : windowNodeList) {\n\t\t\t\tObject childNode = getInstanceField(\"child\", windowNode);\n\t\t\t\tComponentProvider provider = getComponentProviderFromNode(childNode, providerClass);\n\n\t\t\t\tif (provider != null) {\n\t\t\t\t\tref.set(providerClass.cast(provider));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\treturn ref.get();\n\t}", "@Deprecated\n\tpublic static <T extends DialogComponentProvider> T waitForDialogComponent(Window parentWindow,\n\t\t\tClass<T> clazz, int timeoutMS) {\n\t\tif (!DialogComponentProvider.class.isAssignableFrom(clazz)) {\n\t\t\tthrow new IllegalArgumentException(clazz.getName() + \" does not extend \" +\n\t\t\t\tDialogComponentProvider.class.getSimpleName());\n\t\t}\n\n\t\tint totalTime = 0;\n\t\twhile (totalTime <= DEFAULT_WAIT_TIMEOUT) {\n\n\t\t\tT provider = getDialogComponent(parentWindow, clazz);\n\t\t\tif (provider != null) {\n\t\t\t\treturn provider;\n\t\t\t}\n\t\t\ttotalTime += sleep(DEFAULT_WAIT_DELAY);\n\t\t}\n\n\t\tthrow new AssertionFailedError(\"Timed-out waiting for window of class: \" + clazz);\n\t}", "Class<? extends Activity> getOpenInOtherWindowActivity();", "public static PopupWindow findPopupWindow(Activity activity) {\n\t\ttry {\n\t\t\tViewExtractor viewExractor = new ViewExtractor();\n\t\t\tView[] views = viewExractor.getWindowDecorViews();\n\t\t\tif (views != null) {\n\t\t\t\tint numDecorViews = views.length;\n\t\t\t\t\n\t\t\t\t// iterate through the set of decor windows. The dialog may already have been presented.\n\t\t\t\tfor (int iView = 0; iView < numDecorViews; iView++) {\n\t\t\t\t\tView v = views[iView];\n\t\t\t\t\tif (ViewExtractor.isDialogOrPopup(activity, v)) {\t\n\t\t\t\t\t\tString className = v.getClass().getCanonicalName();\n\t\t\t\t\t\tif (className.equals(Constants.Classes.POPUP_VIEW_CONTAINER)) {\n\t\t\t\t\t\t\tClass popupViewContainerClass = Class.forName(Constants.Classes.POPUP_VIEW_CONTAINER_CREATECLASS);\n\t\t\t\t\t\t\tPopupWindow popupWindow = (PopupWindow) ReflectionUtils.getFieldValue(v, popupViewContainerClass, Constants.Classes.THIS);\n\t\t\t\t\t\t\treturn popupWindow;\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} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn null;\t\t\n\t}", "private static ComponentProvider getComponentProviderFromNode(Object node,\n\t\t\tClass<? extends ComponentProvider> providerClass) {\n\t\tClass<?> nodeClass = node.getClass();\n\t\tString className = nodeClass.getName();\n\n\t\tif (className.indexOf(\"ComponentNode\") != -1) {\n\t\t\tList<ComponentPlaceholder> infoList = CollectionUtils.asList(\n\t\t\t\t(List<?>) getInstanceField(\"windowPlaceholders\", node), ComponentPlaceholder.class);\n\t\t\tfor (ComponentPlaceholder info : infoList) {\n\t\t\t\tComponentProvider provider = info.getProvider();\n\t\t\t\tif ((provider != null) && providerClass.isAssignableFrom(provider.getClass())) {\n\t\t\t\t\treturn provider;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (className.indexOf(\"WindowNode\") != -1) {\n\t\t\tObject childNode = getInstanceField(\"child\", node);\n\t\t\treturn getComponentProviderFromNode(childNode, providerClass);// recurse\n\t\t}\n\t\telse if (className.indexOf(\"SplitNode\") != -1) {\n\t\t\tObject leftNode = getInstanceField(\"child1\", node);\n\t\t\tComponentProvider leftProvider = getComponentProviderFromNode(leftNode, providerClass);// recurse\n\t\t\tif (leftProvider != null) {\n\t\t\t\treturn leftProvider;\n\t\t\t}\n\n\t\t\tObject rightNode = getInstanceField(\"child2\", node);\n\t\t\treturn getComponentProviderFromNode(rightNode, providerClass);// recurse\n\t\t}\n\n\t\treturn null;\n\t}", "public Component getComponent(Class type) {\n for (Component component : components) {\n if (component.getClass().equals(type)) {\n return component;\n }\n }\n return null;\n }", "public static Class<?> getProvider() {\n return provider;\n }", "private <T> T getComponent(Class<T> clazz) {\n List<T> list = Context.getRegisteredComponents(clazz);\n if (list == null || list.size() == 0)\n throw new RuntimeException(\"Cannot find component of \" + clazz);\n return list.get(0);\n }", "public String getProviderClassName();", "<T extends Component> Optional<T> getExactComponent(Class<T> type);", "public static Dialog findDialog(Activity activity) {\n\t\ttry {\n\t\t\tClass phoneDecorViewClass = Class.forName(Constants.Classes.PHONE_DECOR_VIEW);\n\t\t\tView[] views = ViewExtractor.getWindowDecorViews();\n\t\t\tif (views != null) {\n\t\t\t\tint numDecorViews = views.length;\n\t\t\t\t\n\t\t\t\t// iterate through the set of decor windows. The dialog may already have been presented.\n\t\t\t\tfor (int iView = 0; iView < numDecorViews; iView++) {\n\t\t\t\t\tView v = views[iView];\n\t\t\t\t\tif (ViewExtractor.isDialogOrPopup(activity, v)) {\t\n\t\t\t\t\t\tif (v.getClass() == phoneDecorViewClass) {\n\t\t\t\t\t\t\tWindow phoneWindow = (Window) ReflectionUtils.getFieldValue(v, phoneDecorViewClass, Constants.Classes.THIS);\n\t\t\t\t\t\t\tWindow.Callback callback = phoneWindow.getCallback();\n\t\t\t\t\t\t\tif (callback instanceof Dialog) {\n\t\t\t\t\t\t\t\tDialog dialog = (Dialog) callback;\n\t\t\t\t\t\t\t\treturn dialog;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn null;\t\t\n\t}", "private Window getDialogOwner(final Node node)\n {\n if (node != null) {\n final Scene scene = node.getScene();\n if (scene != null) {\n final Window window = scene.getWindow();\n if (window != null) return window;\n }\n }\n return task.getPrimaryStage();\n }", "public <T extends Control> T getComponent(Class<T> clazz) {\r\n T control = spatial.getControl(clazz);\r\n return control;\r\n }", "public static <T extends DialogComponentProvider> T waitForDialogComponent(\n\t\t\tClass<T> ghidraClass) {\n\t\treturn waitForDialogComponent(null, ghidraClass, DEFAULT_WINDOW_TIMEOUT);\n\t}", "public <T extends Control> T getComponentInParent(Class<T> clazz) {\r\n return getComponentInParent(spatial, clazz);\r\n }", "public Class<?> getComponentType();", "public Class<? extends Dialog<Collection<DataAdapter>>> getAdapterDialog();", "Class<?> getComponentType();", "<T extends Component> Optional<T> getComponent(Class<T> type);", "public static Component findComponentByName(DialogComponentProvider provider,\n\t\t\tString componentName) {\n\t\treturn findComponentByName(provider.getComponent(), componentName, false);\n\t}", "private JPanel getPanelForList(){\n String listName = ((JComboBox)header.getComponent(1)).getSelectedItem().toString();\n for(Component c:window.getComponents()){\n if(c.getName().equals(listName)){\n return (JPanel)c;\n }\n }\n return null;\n }", "protected <C> C getParentComponent(Class<C> componentType) {\n return componentType.cast(((BaseInjectionActivity) getActivity()).getActivityComponent());\n }", "public FormWindow getRelatedWindow();", "public static DialogFeature getFeature(Class<? extends ShareContent> cls) {\r\n if (ShareLinkContent.class.isAssignableFrom(cls)) {\r\n return ShareDialogFeature.SHARE_DIALOG;\r\n }\r\n if (SharePhotoContent.class.isAssignableFrom(cls)) {\r\n return ShareDialogFeature.PHOTOS;\r\n }\r\n if (ShareVideoContent.class.isAssignableFrom(cls)) {\r\n return ShareDialogFeature.VIDEO;\r\n }\r\n if (ShareOpenGraphContent.class.isAssignableFrom(cls)) {\r\n return OpenGraphActionDialogFeature.OG_ACTION_DIALOG;\r\n }\r\n if (ShareMediaContent.class.isAssignableFrom(cls)) {\r\n return ShareDialogFeature.MULTIMEDIA;\r\n }\r\n if (ShareCameraEffectContent.class.isAssignableFrom(cls)) {\r\n return CameraEffectFeature.SHARE_CAMERA_EFFECT;\r\n }\r\n if (ShareStoryContent.class.isAssignableFrom(cls)) {\r\n return ShareStoryFeature.SHARE_STORY_ASSET;\r\n }\r\n return null;\r\n }", "public static Component getAncestorOfClass(Class<JInternalFrame> class1,\n\t\t\tComponent freeColPanel) {\n\t\tSystem.out.println(\"ERROR!\");new Exception().printStackTrace();throw new UnsupportedOperationException(\"Broken!\");\n\t}", "public Component getPopupComponent() {\r\n return _component;\r\n }", "public Optional<ExpandedComponentInstanceSymbol> getComponentInstance() {\r\n if (!this.getEnclosingScope().getSpanningSymbol().isPresent()) {\r\n return Optional.empty();\r\n }\r\n if (!(this.getEnclosingScope().getSpanningSymbol()\r\n .get() instanceof ExpandedComponentInstanceSymbol)) {\r\n return Optional.empty();\r\n }\r\n return Optional\r\n .of((ExpandedComponentInstanceSymbol) this.getEnclosingScope().getSpanningSymbol().get());\r\n }", "public <T extends Component> T getComponent(Class<T> componentType);", "<T extends Component> T getOwner();", "public static RockboxWidgetProvider getInstance()\n {\n return mInstance;\n }", "@SuppressWarnings(\"unchecked\")\n protected <C> C getComponent(Class<C> componentType) {\n return componentType.cast(((HasComponent<C>) getActivity()).getComponent());\n }", "public static Provider provider() {\n try {\n Object provider = getProviderUsingServiceLoader();\n if (provider == null) {\n provider = FactoryFinder.find(JAXWSPROVIDER_PROPERTY, DEFAULT_JAXWSPROVIDER);\n }\n if (!(provider instanceof Provider)) {\n Class pClass = Provider.class;\n String classnameAsResource = pClass.getName().replace('.', '/') + \".class\";\n ClassLoader loader = pClass.getClassLoader();\n if (loader == null) {\n loader = ClassLoader.getSystemClassLoader();\n }\n URL targetTypeURL = loader.getResource(classnameAsResource);\n throw new LinkageError(\"ClassCastException: attempting to cast\" + provider.getClass()\n .getClassLoader().getResource(classnameAsResource) + \"to\" + targetTypeURL.toString());\n }\n return (Provider) provider;\n } catch (WebServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new WebServiceException(\"Unable to createEndpointReference Provider\", ex);\n }\n }", "public Window getParentWindow() {\r\n\t\t// // I traverse the windows hierarchy to find this component's parent\r\n\t\t// window\r\n\t\t// // if it's in an application, then it'll be that frame\r\n\t\t// // if it's in an applet, then it'll be the browser window\r\n\r\n\t\t// // unfortunately if it's an applet, the popup window will have \"Java\r\n\t\t// Applet Window\" label\r\n\t\t// // at the bottom...nothing i can do (for now)\r\n\r\n\t\tWindow window = null;\r\n\r\n\t\tComponent component = this;\r\n\t\twhile (component.getParent() != null) {\r\n\r\n\t\t\tif (component instanceof Window)\r\n\t\t\t\tbreak;\r\n\t\t\tcomponent = component.getParent();\r\n\t\t}\r\n\r\n\t\tif (component instanceof Window)\r\n\t\t\twindow = (Window) component;\r\n\r\n\t\treturn (window);\r\n\t}", "public static SPSSDialog getCurrentInstance()\n\t{\n\t\treturn instance;\n\t}", "RefClass getOwnerClass();", "java.lang.String getProvider();", "private ObjectClassWrapper findObjectClassWrapperInTree( ObjectClassImpl oc )\n {\n SchemaWrapper schemaWrapper = findSchemaWrapperInTree( oc.getSchema() );\n if ( schemaWrapper == null )\n {\n return null;\n }\n \n // Finding the correct node\n int group = Activator.getDefault().getPreferenceStore().getInt( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING );\n List<TreeNode> children = schemaWrapper.getChildren();\n if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_FOLDERS )\n {\n for ( TreeNode child : children )\n {\n Folder folder = ( Folder ) child;\n if ( folder.getType() == FolderType.OBJECT_CLASS )\n {\n for ( TreeNode folderChild : folder.getChildren() )\n {\n ObjectClassWrapper ocw = ( ObjectClassWrapper ) folderChild;\n if ( ocw.getObjectClass().equals( oc ) )\n {\n return ocw;\n }\n }\n }\n }\n }\n else if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_MIXED )\n {\n for ( Object child : children )\n {\n if ( child instanceof ObjectClassWrapper )\n {\n ObjectClassWrapper ocw = ( ObjectClassWrapper ) child;\n if ( ocw.getObjectClass().equals( oc ) )\n {\n return ocw;\n }\n }\n }\n }\n \n return null;\n }", "public IProvider lookupProvider(Class<? extends IProvider> providerType);", "String getIsComponentInstanceOf();", "JComponent getImpl();", "public <T extends Control> T getComponentInChild(final Class<T> clazz) {\r\n return getComponentInChild(spatial, clazz);\r\n }", "public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }", "public Optional<ComponentSymbol> getComponent() {\r\n if (!this.getEnclosingScope().getSpanningSymbol().isPresent()) {\r\n return Optional.empty();\r\n }\r\n if (!(this.getEnclosingScope().getSpanningSymbol().get() instanceof ComponentSymbol)) {\r\n return Optional.empty();\r\n }\r\n return Optional.of((ComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get());\r\n }", "public static Component clickComponentProvider(ComponentProvider provider) {\n\n\t\tJComponent component = provider.getComponent();\n\t\tDockableComponent dockableComponent = getDockableComponent(component);\n\t\tselectTabIfAvailable(dockableComponent);\n\t\tRectangle bounds = component.getBounds();\n\t\tint centerX = (bounds.x + bounds.width) >> 1;\n\t\tint centerY = (bounds.y + bounds.height) >> 1;\n\n\t\treturn clickComponentProvider(provider, MouseEvent.BUTTON1, centerX, centerY, 1, 0, false);\n\t}", "public JDialog getWindow() {\n\t\treturn window;\n\t}", "private static EndpointProvider\n getEndpointProvider(final String providerClass) {\n ServiceLoader<EndpointProvider> providerServices\n = ServiceLoader.load(EndpointProvider.class);\n for (EndpointProvider provider : providerServices) {\n if (providerClass.equals(provider.getClass().getName())) {\n return provider;\n }\n }\n return null;\n }", "public WindowManagerService getWindowManager() {\n return this.mService.mWindowManager;\n }", "Window getParent();", "public <U extends T> U getComponent(Class<U> clazz);", "private Window getParentWindow(Component paramComponent) {\n/* 192 */ Window window = null;\n/* */ \n/* 194 */ if (paramComponent instanceof Window) {\n/* 195 */ window = (Window)paramComponent;\n/* */ }\n/* 197 */ else if (paramComponent != null) {\n/* 198 */ window = SwingUtilities.getWindowAncestor(paramComponent);\n/* */ } \n/* 200 */ if (window == null) {\n/* 201 */ window = new DefaultFrame();\n/* */ }\n/* 203 */ return window;\n/* */ }", "private JDialogProcurarCliente getjDialogProcurarCliente() {\n\t\tif(jDialogProcurarCliente == null) {\n\t\t\tjDialogProcurarCliente = new JDialogProcurarCliente(null, false);\n\t\t}\n\t\t\n\t\treturn jDialogProcurarCliente;\n\t}", "private static Provider findProviderFor(String receiver) {\n\t\tfor (Provider provider : providers) {\n\t\t\tif (provider.canSendTo(receiver)) {\n\t\t\t\treturn provider;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static interface Provider {\n /** Get the explorer manager.\n * @return the manager\n */\n public ExplorerManager getExplorerManager();\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse getBrowse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse)get_store().find_element_user(BROWSE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public static String openClassSelectDialog(IJavaProject project, Control parent) {\r\n\t\ttry {\r\n\t\t\tShell shell = parent.getShell();\r\n\t\t\tSelectionDialog dialog = JavaUI.createTypeDialog(\r\n\t\t\t\t\tshell,new ProgressMonitorDialog(shell),\r\n\t\t\t\t\tSearchEngine.createJavaSearchScope(new IJavaElement[]{project}),\r\n\t\t\t\t\tIJavaElementSearchConstants.CONSIDER_CLASSES,false);\r\n\t\t\t\t\r\n\t\t\tif(dialog.open()==SelectionDialog.OK){\r\n\t\t\t\tObject[] result = dialog.getResult();\r\n\t\t\t\treturn ((IType)result[0]).getFullyQualifiedName();\r\n\t\t\t}\r\n\t\t} catch(Exception ex){\r\n\t\t\tHTMLPlugin.logException(ex);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getProvider() {\n return provider;\n }", "public Window getParentWindow()\n {\n return LibSwingUtil.getWindowAncestor(parentDialog);\n }", "private FindDialog getFindDialog() {\r\n if (findDialog == null) {\r\n findDialog = new FindDialog(textViewer);\r\n findDialog.centerRelativeTo(this);\r\n getViewProperties().addProperties(\"find\",findDialog.getPreferences(),true);\r\n\r\n // Hide the find dialog when this pane becomes invisible\r\n addHierarchyListener(new HierarchyListener() {\r\n public void hierarchyChanged(HierarchyEvent e) {\r\n if (findDialog.isVisible() && !isShowing()) {\r\n findDialog.setVisible(false);\r\n }\r\n }\r\n });\r\n }\r\n return findDialog;\r\n }", "public String getLegalWindow() {\n\t\tif(driver.getWindowHandles().isEmpty())\n\t\t\treturn null;\n\t\t\n\t\treturn driver.getWindowHandles().iterator().next();\n\t}", "public String getProvider() {\r\n return provider;\r\n }", "String getInstanceOfClass();", "public ProcessProvider getComponent() {\n return component;\n }", "public static boolean canShowNative(Class<? extends ShareContent> cls) {\r\n DialogFeature feature = getFeature(cls);\r\n return feature != null && DialogPresenter.canPresentNativeDialogWithFeature(feature);\r\n }", "public Window getWindow() {\n Window w = null;\n if(this instanceof Container) {\n Node root = ((Container)this).getRoot();\n Scene scene = root==null ? null : root.getScene();\n javafx.stage.Window stage = scene==null ? null : scene.getWindow();\n w = stage==null ? null : (Window)stage.getProperties().get(\"window\");\n }\n if(this instanceof Widget) {\n Node root = ((Widget)this).getGraphics();\n Scene scene = root==null ? null : root.getScene();\n javafx.stage.Window stage = scene==null ? null : scene.getWindow();\n w = stage==null ? null : (Window)stage.getProperties().get(\"window\");\n }\n return w==null ? Window.getActive() : w;\n }", "private boolean componentEnabled(MJIEnv env, int tgtRef){\n \n int listRef = env.getStaticReferenceField(\"java.awt.Window\", \"modalDialogs\");\n int arrayRef = env.getReferenceField(listRef, \"elementData\"); \n \n int arrayLength = env.getStaticIntField(\"java.awt.Window\", \"numModalDialogs\");\n \n if(arrayLength >0){\n int topModalDialogRef = env.getReferenceArrayElement(arrayRef, arrayLength-1);\n //follow references upwards until no parent, get top-level window for current component\n int parentRef = env.getReferenceField(tgtRef, \"parent\");\n \n ElementInfo ei = env.getElementInfo(parentRef);\n log.fine(\"Parent :\"+ei);\n \n while(parentRef != MJIEnv.NULL){\n parentRef = env.getReferenceField(parentRef, \"parent\");\n \n ei = env.getElementInfo(parentRef);\n log.fine(\"Parent :\"+ei);\n //found a match\n if(parentRef == topModalDialogRef){\n return true;\n }\n }\n log.warning(\"action does not belong to top modal dialog\");\n return false; \n }\n //no modal dialogs, no restrictions\n return true;\n }", "public static WindowManager getInstance()\r\n\t{\r\n\t\treturn instance;\r\n\t}", "@Override\n public GeneralOrthoMclSettingsVisualPanel getComponent() {\n if (component == null) {\n component = new GeneralOrthoMclSettingsVisualPanel();\n\n }\n return component;\n }", "public java.lang.String getProviderType() {\n return this._providerType;\n }", "public String getWrapperManagerClassName();", "public static Class getComponentType(final Node n) {\r\n return (Class) n.getProperty(COMPONENT_TYPE);\r\n }", "private static synchronized Provider getProvider() throws Exception {\n\t\t\tProvider provider = SunPKCS11BlockCipherFactory.provider;\n\n\t\t\tif ((provider == null) && useProvider) {\n\t\t\t\ttry {\n\t\t\t\t\tClass<?> clazz = Class.forName(\"sun.security.pkcs11.SunPKCS11\");\n\n\t\t\t\t\tif (Provider.class.isAssignableFrom(clazz)) {\n\t\t\t\t\t\tConstructor<?> contructor = clazz.getConstructor(String.class);\n\n\t\t\t\t\t\t// The SunPKCS11 Config name should be unique in order\n\t\t\t\t\t\t// to avoid repeated initialization exceptions.\n\t\t\t\t\t\tString name = null;\n\t\t\t\t\t\tPackage pkg = AES.class.getPackage();\n\n\t\t\t\t\t\tif (pkg != null)\n\t\t\t\t\t\t\tname = pkg.getName();\n\t\t\t\t\t\tif (name == null || name.length() == 0)\n\t\t\t\t\t\t\tname = \"org.jitsi.impl.neomedia.transform.srtp\";\n\n\t\t\t\t\t\tprovider = (Provider) contructor.newInstance(\"--name=\" + name + \"\\\\n\" + \"nssDbMode=noDb\\\\n\" + \"attributes=compatibility\");\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (provider == null)\n\t\t\t\t\t\tuseProvider = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tSunPKCS11BlockCipherFactory.provider = provider;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn provider;\n\t\t}", "public String getProvider() {\n\t\treturn provider;\n\t}", "public Component getConfigFormPanel()\n {\n if (configFormPanel == null)\n {\n Object form = configForm.getForm();\n if ((form instanceof Component) == false)\n {\n throw new ClassCastException(\"ConfigurationFrame :\"\n + form.getClass()\n + \" is not a class supported by this ui implementation\");\n }\n configFormPanel = (Component) form;\n }\n return configFormPanel;\n }", "public JPanel getWindow(String key)\r\n\t{\r\n\t\treturn aniWin.getWindow(key);\r\n\t}", "protected XWalkDialogManager getDialogManager() {\n return mActivityDelegate.getDialogManager();\n }", "public CourseComponent getAncestor(EnumSet<BlockType> types) {\n if (types.contains(type))\n return this;\n IBlock ancestor = parent;\n if (ancestor == null)\n return null;\n do {\n if (types.contains(ancestor.getType()))\n return (CourseComponent) ancestor;\n } while ((ancestor = ancestor.getParent()) != null);\n return null;\n }", "boolean hasComponent(Class<? extends Component> componentClass);", "default Optional<ClassElement> getClassElement(Class<?> type) {\n if (type != null) {\n return getClassElement(type.getName());\n }\n return Optional.empty();\n }", "private JDialog getParentDialog() {\n return (JDialog) SwingUtilities.getAncestorOfClass(JDialog.class, this);\n }", "public ProtocolProviderService getParentProvider()\n {\n return provider;\n }", "public boolean hasComponent(Class<? extends Component> componentType);", "public java.lang.String getProvider() {\n java.lang.Object ref = provider_;\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 provider_ = s;\n }\n return s;\n }\n }", "public Component getComponent(int componentId) {\r\n if (opened != null && opened.getId() == componentId) {\r\n return opened;\r\n }\r\n if (chatbox != null && chatbox.getId() == componentId) {\r\n return chatbox;\r\n }\r\n if (singleTab != null && singleTab.getId() == componentId) {\r\n return singleTab;\r\n }\r\n if (overlay != null && overlay.getId() == componentId) {\r\n return overlay;\r\n }\r\n for (Component c : tabs) {\r\n if (c != null && c.getId() == componentId) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }", "public final TWindow getWindow() {\n return window;\n }", "public abstract View getMainDialogContainer();", "public JAXBContext getPackageContext(Class<?> type) {\n if (type == null) {\n return null;\n }\n synchronized (packageContexts) {\n String packageName = PackageUtils.getPackageName(type);\n JAXBContext context = packageContexts.get(packageName);\n if (context == null) {\n try {\n context = JAXBContext.newInstance(packageName, type.getClassLoader());\n packageContexts.put(packageName, context);\n } catch (JAXBException ex) {\n LOG.fine(\"Error creating a JAXBContext using ObjectFactory : \" \n + ex.getMessage());\n return null;\n }\n }\n return context;\n }\n }", "public T caseWindowType(WindowType object) {\n\t\treturn null;\n\t}", "public GridPanel getCurrentGraphPanel()\n\t{\n\t\tfor (Component comp : this.getComponents()) {\n\t\t\tif (comp.isVisible()) {\n\t\t\t\treturn (GridPanel) comp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static BeanManager lookupBeanManager() {\n BeanManager beanManager = getCDIBeanManager(\"java:comp\");\n if (beanManager == null) {\n beanManager = getCDIBeanManager(\"java:comp/env\");\n }\n if (beanManager == null) {\n beanManager = getOSGICDIBeanManager();\n }\n return beanManager;\n }", "private static void findWindow() {\n\t\tCoInitialize();\n\t\t\n\t\thandle = user32.FindWindowA(\"WMPlayerApp\", \"Windows Media Player\");\n\t}", "public WindowState findFocusedWindow() {\n this.mTmpWindow = null;\n forAllWindows(this.mFindFocusedWindow, true);\n WindowState windowState = this.mTmpWindow;\n if (windowState != null) {\n return windowState;\n }\n if (WindowManagerDebugConfig.DEBUG_FOCUS_LIGHT) {\n Slog.v(TAG, \"findFocusedWindow: No focusable windows.\");\n }\n return null;\n }", "public static JDialog findJFileChooserDialog() {\n return (JDialogOperator.\n findJDialog(new JFileChooserJDialogFinder(JemmyProperties.\n getCurrentOutput())));\n }", "public String getProvider() {\n\t\treturn this.provider;\n\t}", "public interface WindowFactory {\r\n /**\r\n * Creates and returns NativeWindow with desired\r\n * creation params\r\n *\r\n * @param p - initial window properties\r\n * @return created window\r\n */\r\n NativeWindow createWindow(CreationParams p);\r\n /**\r\n * Create NativeWindow instance connected to existing native resource\r\n * @param nativeWindowId - id of existing window\r\n * @return created NativeWindow instance\r\n */\r\n NativeWindow attachWindow(long nativeWindowId);\r\n /**\r\n * Returns NativeWindow instance if created by this instance of\r\n * WindowFactory, otherwise null\r\n *\r\n * @param id - HWND on Windows xwindow on X\r\n * @return NativeWindow or null if unknown\r\n */\r\n NativeWindow getWindowById(long id);\r\n /**\r\n * Returns NativeWindow instance of the top-level window\r\n * that contains a specified point and was\r\n * created by this instance of WindowFactory\r\n * @param p - Point to check\r\n * @return NativeWindow or null if the point is\r\n * not within a window created by this WindowFactory\r\n */\r\n NativeWindow getWindowFromPoint(Point p);\r\n\r\n /**\r\n * Returns whether native system supports the state for windows.\r\n * This method tells whether the UI concept of, say, maximization or iconification is supported.\r\n * It will always return false for \"compound\" states like Frame.ICONIFIED|Frame.MAXIMIZED_VERT.\r\n * In other words, the rule of thumb is that only queries with a single frame state\r\n * constant as an argument are meaningful.\r\n *\r\n * @param state - one of named frame state constants.\r\n * @return true is this frame state is supported by this Toolkit implementation, false otherwise.\r\n */\r\n boolean isWindowStateSupported(int state);\r\n\r\n /**\r\n * @see org.apache.harmony.awt.ComponentInternals\r\n */\r\n void setCaretPosition(int x, int y);\r\n\r\n /**\r\n * Request size of arbitrary native window\r\n * @param id - window ID\r\n * @return window size\r\n */\r\n Dimension getWindowSizeById(long id);\r\n}", "final public CredentialStore getCredentialStore(CardID cardID, Class clazz)\n {\n if (clazz == null)\n clazz = CredentialStore.class;\n\n CredentialStore store = null;\n int size = credentialBag.size();\n\n for(int i=0; ((store==null)&&(i<size)); i++)\n {\n CredentialStore cs = (CredentialStore) credentialBag.elementAt(i);\n\n if (clazz.isInstance(cs) && cs.supports(cardID))\n store = cs;\n }\n\n return store;\n }", "public String getImplementationName()\n {\n return _DialogEventHandler.class.getName();\n }", "public JComponent getWidget() {\n return itsComp;\n }", "public ComponentProvider showProvider(Tool tool, String name) {\n\t\tComponentProvider provider = tool.getComponentProvider(name);\n\t\ttool.showComponentProvider(provider, true);\n\t\treturn provider;\n\t}", "public String getWindowType() {\n\t\treturn windowType;\n\t}", "public String getProvider() {\n return mProvider;\n }" ]
[ "0.6854022", "0.58095014", "0.5799224", "0.5699134", "0.5681097", "0.5496266", "0.54233366", "0.52836037", "0.527111", "0.52568716", "0.5217039", "0.5198581", "0.51854837", "0.5177067", "0.51337314", "0.51143676", "0.51129574", "0.510504", "0.50983554", "0.4886487", "0.4877731", "0.4818488", "0.4756176", "0.4743116", "0.47216743", "0.47029263", "0.46953794", "0.4692797", "0.46812335", "0.46722755", "0.46616468", "0.46212474", "0.46157026", "0.46088508", "0.46009672", "0.45861307", "0.45724216", "0.45390695", "0.4530591", "0.45261946", "0.4512998", "0.4512273", "0.45096242", "0.45067564", "0.45052788", "0.4479856", "0.44777277", "0.44565633", "0.4448217", "0.4443386", "0.44420406", "0.4424827", "0.4421094", "0.44190046", "0.44189867", "0.4414806", "0.4412554", "0.4401539", "0.4398681", "0.43985543", "0.43964237", "0.4386117", "0.43788218", "0.43648085", "0.43459603", "0.4341637", "0.43405452", "0.433637", "0.43315825", "0.432972", "0.431895", "0.4311849", "0.43060675", "0.4300794", "0.42995384", "0.42864466", "0.42792293", "0.4278691", "0.42711282", "0.42624387", "0.42582086", "0.42536587", "0.4248014", "0.42369103", "0.42276967", "0.4218971", "0.4215615", "0.42107776", "0.4207445", "0.41999757", "0.41984224", "0.41913587", "0.41889456", "0.41859278", "0.4185876", "0.41852847", "0.41846728", "0.41808718", "0.41798082", "0.41774148" ]
0.75833714
0
These providers are those that appear in dialogs outside of the main frame
private static <T extends ComponentProvider> T getDetachedWindowProvider( final Class<T> providerClass, final DockingWindowManager windowManager) { Objects.requireNonNull(windowManager, "DockingWindowManager cannot be null"); AtomicReference<T> ref = new AtomicReference<>(); runSwing(() -> { Object rootNode = getInstanceField("root", windowManager); List<?> windowNodeList = (List<?>) invokeInstanceMethod("getDetachedWindows", rootNode); for (Object windowNode : windowNodeList) { Object childNode = getInstanceField("child", windowNode); ComponentProvider provider = getComponentProviderFromNode(childNode, providerClass); if (provider != null) { ref.set(providerClass.cast(provider)); } } }); return ref.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDialog getParametersWidget(JFrame master);", "@Override\n public void onCancel(DialogInterface dialog) {\n onProviderInstallerNotAvailable();\n }", "private void handleProviderSelected() {\n \t\tint index = fProviderCombo.getSelectionIndex() - 1;\n \t\tif (index >= 0) {\n \t\t\tfProviderStack.topControl = fProviderControls.get(index);\n \t\t\tfSelectedProvider = fComboIndexToDescriptorMap.get(index);\n \t\t} else {\n \t\t\tfProviderStack.topControl = null;\n \t\t\tfSelectedProvider = null;\n \t\t}\n \t\tfProviderArea.layout();\n \t\tif (fSelectedProvider != null) {\n \t\t\tMBSCustomPageManager.addPageProperty(REMOTE_SYNC_WIZARD_PAGE_ID, SERVICE_PROVIDER_PROPERTY,\n \t\t\t\t\tfSelectedProvider.getParticipant());\n \t\t} else {\n \t\t\tMBSCustomPageManager.addPageProperty(REMOTE_SYNC_WIZARD_PAGE_ID, SERVICE_PROVIDER_PROPERTY, null);\n \t\t}\n \t}", "public ProviderFrame() {\n this.setTitle(FACE_DETECTION_APPLICATION_TITLE);\n this.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\n\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent event) {\n System.exit(0);\n }\n });\n\n buildElements();\n\n centerFrame();\n }", "public static interface Provider {\n /** Get the explorer manager.\n * @return the manager\n */\n public ExplorerManager getExplorerManager();\n }", "private Dialogs () {\r\n\t}", "public abstract View getMainDialogContainer();", "public GUIContentsProvider getContentsProvider() {\n return contentsProvider;\n }", "public void registerComponents() {\r\n ratesBaseWindow.btnOK.addActionListener(this);\r\n ratesBaseWindow.btnCancel.addActionListener(this);\r\n \r\n dlgRates.addEscapeKeyListener(\r\n new AbstractAction(\"escPressed\"){\r\n public void actionPerformed(java.awt.event.ActionEvent ae){\r\n performWindowClosing();\r\n }\r\n });\r\n \r\n dlgRates.addWindowListener(new java.awt.event.WindowAdapter(){ \r\n \r\n public void windowOpened(java.awt.event.WindowEvent we) {\r\n requestDefaultFocus();\r\n }\r\n \r\n public void windowClosing(java.awt.event.WindowEvent we){\r\n performWindowClosing();\r\n return;\r\n }\r\n });\r\n }", "private void initDialog() {\n }", "public abstract void initDialog();", "private void initDialogs() {\n messageDialog = new MessageDialog(primaryStage, CLOSE_BUTTON_LABEL);\n yesNoCancelDialog = new YesNoCancelDialog(primaryStage);\n }", "void setDialogueManager(IDialogueManager dialogueManager);", "@DataProvider(name = \"UIWidget-provider\")\n public static Object[][] getEnterpriseAndSite(ITestContext context) {\n\n //String uri=getApmUrl(context)+\"enterprises\";\n return combine(getEnterprises(context), getSites(context));\n\n\n\n }", "private void helperAcceptButtonListener() {\n refresh();\n editDialog.dispose();\n }", "@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}", "private void init() {\n \n dialog = new JDialog(this.owner, charField.getName() + \" Post Composition\");\n compFieldPanel = new FieldPanel(false,false, null, this.selectionManager, this.editManager, null); // (searchParams)?\n //compFieldPanel.setSearchParams(searchParams);\n \n // MAIN GENUS TERM\n genusField = CharFieldGui.makePostCompTermList(charField,\"Genus\",minCompChars);\n genusField.setSelectionManager(this.selectionManager); // ??\n //genusField.setListSelectionModel(this.selectionModel);\n compFieldPanel.addCharFieldGuiToPanel(genusField);\n\n // REL-DIFF - put in 1 differentia\n addRelDiffGui();\n\n setGuiFromSelectedModel();\n\n // override FieldPanel preferred size which will set window size\n compFieldPanel.setPreferredSize(null);//new Dimension(700,160));\n dialog.add(compFieldPanel);\n addButtons();\n dialog.pack();\n dialog.setLocationRelativeTo(owner);\n dialog.setVisible(true);\n\n compCharChangeListener = new CompCharChangeListener();\n this.editManager.addCharChangeListener(compCharChangeListener);\n compCharSelectListener = new CompCharSelectListener();\n this.selectionModel.addListSelectionListener(compCharSelectListener);\n }", "public interface DialogFactory {\n MessageDialog createMessageDialog();\n ListDialog createListDialog();\n SingleChoiceDialog createSingleChoiceDialog();\n MultiChoiceDialog createMultiChoiceDialog();\n}", "private void openContext() {\n\t\tJFileChooser fileChooser = new JFileChooser(LMPreferences\n\t\t\t\t.getLastDirectory());\n\n\t\t// Propriétés du fileChooser\n\t\tfileChooser.setApproveButtonText(GUIMessages\n\t\t\t\t.getString(\"GUI.openButton\")); //$NON-NLS-1$\n\t\tfileChooser.setDialogTitle(GUIMessages.getString(\"GUI.openAContext\")); //$NON-NLS-1$\n\t\tfileChooser.setAcceptAllFileFilterUsed(true);\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\n\t\t// Gere les extensions compatibles (cex, lmv, lmn, lmb)\n\t\tExampleFileFilter filterCex = new ExampleFileFilter(\n\t\t\t\t\"cex\", GUIMessages.getString(\"GUI.conceptExplorerBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterCex);\n\t\tExampleFileFilter filterGaliciaBinSLF = new ExampleFileFilter(\n\t\t\t\t\"slf\", GUIMessages.getString(\"GUI.galiciaSLFBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterGaliciaBinSLF);\n\t\tExampleFileFilter filterGaliciaBin = new ExampleFileFilter(\n\t\t\t\t\"bin.xml\", GUIMessages.getString(\"GUI.galiciaXMLBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterGaliciaBin);\n\t\tExampleFileFilter filterValued = new ExampleFileFilter(\n\t\t\t\t\"lmv\", GUIMessages.getString(\"GUI.LatticeMinerValuedFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterValued);\n\t\tExampleFileFilter filterNested = new ExampleFileFilter(\n\t\t\t\t\"lmn\", GUIMessages.getString(\"GUI.LatticeMinerNestedFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterNested);\n\t\tExampleFileFilter filterBinary = new ExampleFileFilter(\n\t\t\t\t\"lmb\", GUIMessages.getString(\"GUI.LatticeMinerBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterBinary);\n\t\tExampleFileFilter filterLM = new ExampleFileFilter(new String[] {\n\t\t\t\t\"lmb\", \"lmn\", \"lmv\" }, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\tGUIMessages.getString(\"GUI.LatticeMinerFormats\")); //$NON-NLS-1$\n\t\tfileChooser.addChoosableFileFilter(filterLM);\n\n\t\t// La boite de dialogue\n\t\tint returnVal = fileChooser.showOpenDialog(this);\n\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile contextFile = fileChooser.getSelectedFile();\n\t\t\topenContextFile(contextFile);\n\n\t\t\t// Sauvegarde le path utilisé\n\t\t\tLMPreferences.setLastDirectory(fileChooser.getCurrentDirectory()\n\t\t\t\t\t.getAbsolutePath());\n\t\t}\n\t}", "private synchronized void loadProvider() {\n\t\tif (provider != null) {\n\t\t\t// Prevents loading by two thread in parallel\n\t\t\treturn;\n\t\t}\n\t\tfinal IExtensionRegistry xRegistry = Platform.getExtensionRegistry();\n\t\tfinal IExtensionPoint xPoint = xRegistry\n\t\t\t\t.getExtensionPoint(PROVIDERS_ID);\n\t\tfor (IConfigurationElement element : xPoint.getConfigurationElements()) {\n\t\t\ttry {\n\t\t\t\tfinal String id = element.getAttribute(\"id\");\n\t\t\t\tif (provider != null) {\n\t\t\t\t\tlog(null, \"Only one extension provider allowed. Provider\"\n\t\t\t\t\t\t\t+ id + \" ignored\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tprovider = (IFormulaExtensionProvider) element\n\t\t\t\t\t\t\t.createExecutableExtension(\"class\");\n\t\t\t\t}\n\t\t\t\tif (DEBUG)\n\t\t\t\t\tSystem.out.println(\"Registered provider extension \" + id);\n\t\t\t} catch (CoreException e) {\n\t\t\t\tlog(e, \"while loading extension provider\");\n\t\t\t}\n\t\t}\n\t}", "public static void getDataWithDialogs(ChampionSelectGUI t) {\n\t\tJDialog sND = createSummonerNameDialog(t);\n\t\tsND.setVisible(true);\n\t\tJDialog rD = createRegionDialog(t);\n\t\trD.setVisible(true);\n\t\tJDialog roleD = createRoleDialog(t);\n\t\troleD.setVisible(true);\n\t\tJDialog teamD = createTeamDialog(t);\n\t\tteamD.setVisible(true);\n\t}", "public interface WindowManager {\r\n\r\n public JFrame getRootFrame() throws HeadlessException;\r\n\r\n public edu.mit.broad.msigdb_browser.xbench.core.Window openWindow(final WrappedComponent wc) throws HeadlessException;\r\n\r\n public edu.mit.broad.msigdb_browser.xbench.core.Window openWindow(final WrappedComponent wc, final Dimension dim) throws HeadlessException;\r\n\r\n public void showError(final Throwable t) throws HeadlessException;\r\n\r\n public void showError(final String msg, final Throwable t) throws HeadlessException;\r\n\r\n public boolean showConfirm(final String msg) throws HeadlessException;\r\n\r\n public void showMessage(final String msg) throws HeadlessException;\r\n\r\n public void showMessage(final String msg, final Component comp, final JButton[] customButtons, final boolean addCloseButton);\r\n\r\n public void showMessage(final String title, final String msg) throws HeadlessException;\r\n\r\n public DialogDescriptor createDialogDescriptor(final String title, final Component comp, final Action helpAction_opt);\r\n\r\n public DialogDescriptor createDialogDescriptor(final String title, final Component comp);\r\n\r\n // -------------------------------------------------------------------------------------------- //\r\n // ----------------------------------ACTION RELATED------------------------------------ //\r\n // -------------------------------------------------------------------------------------------- //\r\n\r\n public void runModalTool(final VTool tool, final DialogType dt);\r\n\r\n}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tString provider = sessionData.configedProviders[which];\n\t\t\t\t\t\tsessionData.setProvider(provider);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sessionData.currentProvider.getProviderRequiresInput() || (sessionData.returningProvider != null && provider.equals(sessionData.returningProvider.getName()))) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//TODO: myUserLandingController\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tIntent intent = new Intent(context, JRWebViewActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(\"provider\", provider);\n\t\t\t\t\t\t\t((Activity) context).startActivityForResult(intent, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public String[] getOpenDialogueFilterNames();", "public abstract List getProviders();", "@Override\n public void onProviderInstalled() {\n }", "public interface ProviderNames {\n String YAHOO = \"Yahoo\";\n String GTALK = \"GTalk\";\n String MSN = \"MSN\";\n String ICQ = \"ICQ\";\n String AIM = \"AIM\";\n String XMPP = \"XMPP\";\n String JABBER = \"JABBER\";\n String SKYPE = \"SKYPE\";\n String QQ = \"QQ\";\n }", "public interface OnProviderSelectedListener {\n public void onProviderSelected(Providers.EProviders provider);\n }", "private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOptionsFrame(this, doNotShow);\n\t}", "public AccessibleContext getAccessibleContext()\n/* */ {\n/* 207 */ if (this.accessibleContext == null) {\n/* 208 */ this.accessibleContext = new AccessibleAWTPopupMenu();\n/* */ }\n/* 210 */ return this.accessibleContext;\n/* */ }", "public interface IGetEntryPresenter {\n\n /**\n * Method to load the entry presenter screen\n * \n * @param responseDTO An instance of GetEntryResponseDTO which contains\n * variables that determine the loading/handling of\n * entry canvas.\n */\n void load(GetEntryResponseDTO responseDTO);\n \n void rotateScreen(boolean isLandScape);\n\n /**\n * Unloads the view\n */\n void unLoad();\n\n /**\n * Method to remove a menu item from the view\n * \n * @param itemId Item Id of the menu item\n * @param itemName Item Name of the menu item\n */\n void removeMenuItem(int itemId, String itemName);\n\n /**\n * Method to rename the menu item. Method adds the item edit box to the view\n * \n * @param itemId Item Id of the menu item\n * @param itemName Item Name of the menu item\n */\n //#if KEYPAD\n //|JG| void renameMenuItem(int itemId, String itemName);\n //#endif\n\n /**\n * Method to change a menu item name\n * \n * @param itemId Item id of the menu item whose name needs to be changed\n * @param itemName New item name\n */\n void changeMenuItemName(String itemId, String itemName);\n\n /**\n * Method to load message box\n * @param type\n * <li> 1 - Smartpopup without any options that last for \n * predefined time </li>\n * <li> 2,3,5 - Message box with options menu </li>\n * <li> 4,6 - Notification window </li>\n * @param msg Message\n */\n// void loadMessageBox(byte type, String msg);\n\n /**\n * Method to select the last accessed menu item\n * \n * @param iName Item name to be selected\n */\n void selectLastAccessedItem(String itemId);\n\n /**\n * Method to copy the text to the text box\n * \n * @param txt Text to be copied\n */\n void copyTextToTextBox(String text,boolean isMaxSet);\n\n /**\n * Method to show notification. This function internally calls the the\n * handlesmartpopup with the type defined for notification window\n * \n * @param isGoTo Boolean to indicate whether the notification window should\n * have \"Goto\" option or not\n * \n * @param dmsg Notification message\n * \n * @param param String Array which consists of two elements\n * <li> Element 0 - To represents whether the notification\n * is raised for message arrival or scheduler invocation\n * </li>\n * <li> Element 1 - Gives you the message id incase of \n * message or sequence name in case of scheduler\n * <li>\n */\n// void showNotification(byte isGoto);\n \n void keyPressed(int keycode);\n \n void paintGameView(Graphics g);\n \n byte commandAction(byte priority);\n \n// void displayMessageSendSprite();\n \n boolean pointerPressed(int x, int y, boolean isPointed, boolean isReleased, boolean isPressed);\n\n// //CR 12318\n// public void updateChatNotification(String[] msg);\n\n //CR 12118\n //bug 14155\n //bug 14156\n void changeMenuItemName(String itemName, byte type, String msgPlus);\n\n //CR 14672, 14675\n void refreshList(String[] contacts, int[] contactId);\n\n void setImage(ByteArrayOutputStream byteArrayOutputStream); //CR 14694\n}", "void generar_dialog_preguntas();", "public interface GetDialogResultListener {\n void getDialogResult(int mode, String result);\n}", "java.lang.String getProvider();", "protected XWalkDialogManager getDialogManager() {\n return mActivityDelegate.getDialogManager();\n }", "private void updateVMPreferenceWidgets(String currentProviderSetting) {\n final String key = currentProviderSetting;\n final VoiceMailProvider provider = mVMProvidersData.get(key);\n \n /* This is the case when we are coming up on a freshly wiped phone and there is no\n persisted value for the list preference mVoicemailProviders.\n In this case we want to show the UI asking the user to select a voicemail provider as\n opposed to silently falling back to default one. */\n if (provider == null) {\n mVoicemailProviders.setSummary(getString(R.string.sum_voicemail_choose_provider));\n mVoicemailSettings.setSummary(\"\");\n mVoicemailSettings.setEnabled(false);\n mVoicemailSettings.setIntent(null);\n } else {\n final String providerName = provider.name;\n mVoicemailProviders.setSummary(providerName);\n mVoicemailSettings.setSummary(getApplicationContext().getString(\n R.string.voicemail_settings_for, providerName));\n mVoicemailSettings.setEnabled(true);\n mVoicemailSettings.setIntent(provider.intent);\n }\n }", "public AccessibleContext getAccessibleContext()\n/* */ {\n/* 106 */ if (this.accessibleContext == null) {\n/* 107 */ this.accessibleContext = new AccessibleAWTPanel();\n/* */ }\n/* 109 */ return this.accessibleContext;\n/* */ }", "ShowDialog(JFrame aFrame){\n fFrame = aFrame;\n }", "public String getProvider() {\r\n return provider;\r\n }", "private List<AuthUI.IdpConfig> getProvider() {\n List<AuthUI.IdpConfig> providers = Arrays.asList(\n new AuthUI.IdpConfig.FacebookBuilder().setPermissions(Arrays.asList(\"email\")).build(),\n new AuthUI.IdpConfig.GoogleBuilder().build(),\n new AuthUI.IdpConfig.TwitterBuilder().build());\n\n return providers;\n }", "public interface DialogAwareSaveHandler extends SaveHandler {\r\n public Dialog getDialog();\r\n public void setDialog(Dialog dialog);\r\n}", "@Override\n\tprotected void initializePopupFields(Owner data) {\n\t}", "private Object displayOptionsPanel(String message, Object[] possibleValues) {\n return JOptionPane.showInputDialog(\n mainPanel, // parentComponent\n message, // message\n \"\", // title\n JOptionPane.QUESTION_MESSAGE, // messageType\n null, // icon\n possibleValues, // selectionValues\n possibleValues[0] // initialSelectionValue\n );\n }", "private DialogJoinOptions showOptionsDialog() {\n DialogJoinOptions optionsDialog = new DialogJoinOptions();\n\n // Load and init dialog options from preferences\n optionsDialog.setGlue(Preferences.getJoinGlue());\n\n optionsDialog.addComponentListener(new ComponentListenerDialog(Preferences.ID_DIALOG_JOIN));\n UtilsEnvironment.setDialogVisible(editor, Preferences.ID_DIALOG_JOIN, optionsDialog, StaticTexts.MESSAGE_TITLE_JOIN);\n\n return optionsDialog;\n }", "protected void showLoginChooser() {\n if (mFenceClient != null && Constants.WPI_AREA_LANDMARKS.size() > 0) {\n FenceUpdateRequest.Builder builder = new FenceUpdateRequest.Builder();\n for (Map.Entry<String, LatLng> entry : Constants.WPI_AREA_LANDMARKS.entrySet()) {\n builder.removeFence(entry.getKey() + \"-dwell\");\n builder.removeFence(entry.getKey() + \"-exiting\");\n }\n\n mFenceClient.updateFences(builder.build())\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n close();\n }\n });\n } else {\n close();\n }\n }", "private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}", "private void getAllProviders() {\r\n InfoService.Util.getService().getAllProviders(new MethodCallback<List<CabProviderBean>>() {\r\n\r\n @Override public void onFailure(Method method, Throwable exception) {\r\n viewProviderTable.setText(6, 0, \"Error could not connect to load data\" + exception);\r\n\r\n }\r\n\r\n @Override public void onSuccess(Method method, List<CabProviderBean> response) {\r\n\r\n updateDeleteTable(response);\r\n }\r\n\r\n });\r\n }", "public static JDialog createDialog(JFrame owner) {\n PlatformInfoPanel panel = new PlatformInfoPanel();\n JDialog dialog = new JDialog(owner, ResourceManager.getResource(PlatformInfoPanel.class, \"Dialog_title\"));\n dialog.getContentPane().add(panel);\n dialog.setSize(panel.getWidth() + 10, panel.getHeight() + 30);\n return dialog;\n}", "public FrmSearchBox(JInternalFrame internalFrame) {\r\n initComponents();\r\n this.setModal(true);\r\n this.setInternalFrame(internalFrame);\r\n productDAO = new ProductDAO();\r\n }", "private DataBindingContext initDataBindings() {\n\t\tDataBindingContext bindingContext = new DataBindingContext();\n\t\tTitleAreaDialogSupport.create(this, bindingContext)\n\t\t\t\t.setValidationMessageProvider(new ValidationMessageProvider() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getMessage(ValidationStatusProvider statusProvider) {\n\t\t\t\t\t\tif (statusProvider == null) {\n\t\t\t\t\t\t\treturn DEFAULT_MESSAGE;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn super.getMessage(statusProvider);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int getMessageType(ValidationStatusProvider statusProvider) {\n\t\t\t\t\t\tint type = super.getMessageType(statusProvider);\n\t\t\t\t\t\tif (getButton(IDialogConstants.OK_ID) != null) {\n\t\t\t\t\t\t\tgetButton(IDialogConstants.OK_ID).setEnabled(type != IMessageProvider.ERROR);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn type;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t//\n\t\tBinding namespaceBinding = bindingContext.bindValue(WidgetProperties.text(SWT.Modify).observe(txtNamespace), BeanProperties.value(Annotation.class, Annotation.PROPERTY_NAMESPACE).observe(annotation), new UpdateValueStrategy().setBeforeSetValidator(new NamespaceValidator()), null);\n\t\tBinding nameBinding = bindingContext.bindValue(WidgetProperties.text(SWT.Modify).observe(txtName), BeanProperties.value(Annotation.class, Annotation.PROPERTY_NAME).observe(annotation), new UpdateValueStrategy().setBeforeSetValidator(new NameValidator()), null);\n\t\tControlDecorationSupport.create(namespaceBinding, SWT.TOP | SWT.LEFT);\n\t\tControlDecorationSupport.create(nameBinding, SWT.TOP | SWT.LEFT);\n\t\t//\n\t\treturn bindingContext;\n\t}", "public interface DialogListener {\n\n /**\n * Called when a dialog completes.\n *\n * Executed by the thread that initiated the dialog.\n *\n * @param values\n * Key-value string pairs extracted from the response.\n */\n public void onComplete(Bundle values);\n\n \n /**\n * Called when a dialog is canceled by the user.\n *\n * Executed by the thread that initiated the dialog.\n *\n */\n public void onCancel();\n}", "public interface AccessControlListModalWidget extends IsWidget {\n /**\n * Show the sharing dialog.\n *\n * @param changeCallback\n */\n public void showSharing(Callback changeCallback);\n\n /**\n * The widget must be configured before showing the dialog.\n *\n * @param entity\n * @param canChangePermission\n */\n public void configure(Entity entity, boolean canChangePermission);\n}", "public ExtensionPicker() {\n initComponents();\n chooser.setControlButtonsAreShown(false);\n setLocationRelativeTo(null);\n this.setVisible(true);\n }", "public Context getPopupContext() {\n return this.acv;\n }", "public String getProvider() {\n\t\treturn provider;\n\t}", "protected void onSetupEditingContainer()\n\t{\n\t\tlblConnections = this.viewHelper.getEditLabel(editMaster, \"Connections\");\n\t\tlist = new TableComboViewer(editMaster, SWT.READ_ONLY | SWT.BORDER);\n\t\tlist.setContentProvider(ArrayContentProvider.getInstance());\n\t\tlist.setLabelProvider(new DataConnectionLabelProvider());\n\t\t//list.getTableCombo().defineColumns(2);\n\t\tlist.getTableCombo().setTableWidthPercentage(100);\n\t\tlist.getTableCombo().setShowTableHeader(true);\n\t\tlist.getTableCombo().defineColumns(new String[] { \"Vendor\", \"Hostname\", \"User\", \"Password\", \"Port\"});\n\t\tlist.getTableCombo().setDisplayColumnIndex(1);\n\t\tlist.setInput(this.model.getItems());\n\t\tlist.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tIStructuredSelection selection = list.getStructuredSelection();\n\t\t\t\tif(selection != null)\n\t\t\t\t{\n\t\t\t\t\tDataConnection connection = (DataConnection)selection.getFirstElement();\n\t\t\t\t\tif(connection != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpresenter.loadModel(connection);\n\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\n\t\tlblVendorName = viewHelper.getEditLabel(editMaster, \"Vendor\");\n\t\tcboVendorName = new ComboViewer(editMaster);\n\t\tcboVendorName.setContentProvider(ArrayContentProvider.getInstance());\n\t\tcboVendorName.setLabelProvider(new LabelProvider() {\n\t\t\t@Override\n\t\t\tpublic String getText(Object element)\n\t\t\t{\n\t\t\t\tListDetail item = (ListDetail)element;\n\t\t\t\treturn item.getLabel();\n\t\t\t}\n\t\t});\n\t\tcboVendorName.setInput(((DataConnectionViewModel)this.model).getVendorNameLookup());\n\t\tcboVendorName.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tprocessVendorNameSelectionChange();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tlblServerName = viewHelper.getEditLabel(editMaster, \"Hostname\");\n\t\ttxtServerName = viewHelper.getTextEditor(editMaster);\n\t\tlblUserName = viewHelper.getEditLabel(editMaster, \"User Name\");\n\t\ttxtUserName = viewHelper.getTextEditor(editMaster);\n\t\tlblPassword = viewHelper.getEditLabel(editMaster, \"Password\");\n\t\ttxtPassword = viewHelper.getTextEditor(editMaster);\n\t\tlblPort = viewHelper.getEditLabel(editMaster, \"Port\");\n\t\tspPort = new Spinner(editMaster, SWT.NONE);\n\t\tspPort.setMaximum(65535);\n\t\tspPort.setMinimum(1);\n\t\tspPort.setSelection(1);\n\t\tspPort.setIncrement(1);\n\t\t/* optional based on vendor type */\n\t\tlblSid = viewHelper.getEditLabel(editMaster, \"SID\");\n\t\ttxtSid = viewHelper.getTextEditor(editMaster);\n\t\t\n\t\tlblIsExpress = viewHelper.getEditLabel(editMaster, \"Is Express\");\n\t\tchkIsExpress = new Button(editMaster, SWT.CHECK);\n\t\t\n\t\tthis.viewHelper.layoutEditLabel(lblConnections);\n\t\tGridDataFactory.fillDefaults().applyTo(list.getControl());\n\t\tthis.viewHelper.layoutEditLabel(lblVendorName);\n\t\tthis.viewHelper.layoutComboViewer(cboVendorName);\n\t\tthis.viewHelper.layoutEditLabel(lblServerName);\n\t\tthis.viewHelper.layoutEditEditor(txtServerName);\n\t\tthis.viewHelper.layoutEditLabel(lblUserName);\n\t\tthis.viewHelper.layoutEditEditor(txtUserName);\n\t\tthis.viewHelper.layoutEditLabel(lblPassword);\n\t\tthis.viewHelper.layoutEditEditor(txtPassword);\n\t\tthis.viewHelper.layoutEditLabel(lblPort);\n\t\tthis.viewHelper.layoutSpinner(spPort);\n\n\t\tthis.viewHelper.layoutEditLabel(lblSid);\n\t\tthis.viewHelper.layoutEditEditor(txtSid);\n\t\tthis.viewHelper.layoutEditLabel(lblIsExpress);\n\t\tthis.viewHelper.layoutEditEditor(chkIsExpress);\n\t\t\n\n\t}", "public void showForm(JFrame inFrame,String name,boolean isModal){\r\n this.mdiForm = (CoeusAppletMDIForm)inFrame;\r\n //dlgRolMaint = new JDialog(inFrame,name,isModal);\r\n dlgWindow = new CoeusDlgWindow(inFrame,name,isModal){\r\n protected JRootPane createRootPane() {\r\n ActionListener actionListener = new ActionListener() {\r\n public void actionPerformed(ActionEvent actionEvent) {\r\n try{\r\n if (dataChanged) {\r\n try{\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception ex){\r\n CoeusOptionPane.showErrorDialog(ex.getMessage());\r\n }\r\n }\r\n };\r\n JRootPane rootPane = new JRootPane();\r\n KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,\r\n 0);\r\n rootPane.registerKeyboardAction(actionListener, stroke,\r\n JComponent.WHEN_IN_FOCUSED_WINDOW);\r\n return rootPane;\r\n }//RolodexMaintenanceDetailForm\r\n };\r\n JPanel dlgPanel = (JPanel)this.getRolodexComponent();\r\n dlgWindow.getRootPane().setDefaultButton(btnOK);\r\n dlgWindow.getContentPane().add(dlgPanel);\r\n dlgWindow.pack();\r\n //dlgWindow.setSize(660,450);\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n Dimension dlgSize = dlgWindow.getSize();\r\n dlgWindow.setLocation(screenSize.width/2 - (dlgSize.width/2),\r\n screenSize.height/2 - (dlgSize.height/2));\r\n screenSize = null;\r\n /* This will catch the window closing event and checks any data is\r\n * modified.If any changes are done by the user the system will ask for\r\n * confirmation of Saving the info.\r\n */\r\n dlgWindow.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n \r\n dlgWindow.addWindowListener(new WindowAdapter(){\r\n public void windowOpened(WindowEvent evnt){\r\n dataChanged = false;\r\n if (functionType == 'V') {\r\n btnCancel.setRequestFocusEnabled(true);\r\n btnCancel.requestFocus();\r\n }else {\r\n txtLastName.setRequestFocusEnabled(true);\r\n txtLastName.requestFocus();\r\n }\r\n }\r\n public void windowClosing(WindowEvent evnt){\r\n performWindowClosing();\r\n }\r\n });\r\n dlgWindow.addEscapeKeyListener(\r\n new AbstractAction(\"escPressed\"){\r\n public void actionPerformed(ActionEvent ae) {\r\n performWindowClosing();\r\n }\r\n });\r\n dlgWindow.setResizable(false);\r\n dlgWindow.show();\r\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite composite= (Composite) super.createDialogArea(parent);\r\n\t\tComposite com=new Composite(composite,SWT.NONE);\r\n\t\tcom.setLayout(new GridLayout(3,false));\r\n\t\tLabel label=new Label(com,SWT.NONE);\r\n\t\tlabel.setText(\"id:\");\r\n\t\ttext=new Text(com,SWT.NONE);\r\n\t\ttext.addVerifyListener(new VerifyListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void verifyText(VerifyEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tText t=(Text) e.widget;\r\n\t\t\t\tString s=e.text;\r\n\t\t\t\tString ct=t.getText();\r\n\t\t\t\tString temps=StringUtils.substring(ct, 0,e.start)+s+StringUtils.substring(ct,e.end);\r\n\t\t\t\tif(!IntegerValidator.getInstance().isValid(temps)){\r\n\t\t\t\t\te.doit=false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd=new GridData();\r\n\t\tgd.widthHint=150;\r\n\t\ttext.setLayoutData(gd);\r\n\t\tButton search_btn=new Button(com,SWT.NONE);\r\n\t\tsearch_btn.setText(\"search\");\r\n//\t\tcombo=new Combo(com, SWT.NONE);\r\n//\t\tcombo.setItems(new String[]{\"Friends\",\"Family\"});\r\n//\t\tcombo.select(0);\r\n\t\tComposite table_com=new Composite(parent,SWT.NONE);\r\n\t\tgd=new GridData(GridData.FILL_BOTH);\r\n\t\ttable_com.setLayoutData(gd);\r\n\t\ttable_com.setLayout(new FillLayout());\r\n\t\ttv=new TableViewer(table_com,SWT.SINGLE|SWT.FULL_SELECTION);\r\n\t\tTableColumn id_tableColumn = new TableColumn(tv.getTable(), SWT.LEAD);\r\n\t\tid_tableColumn.setText(\"id\");\r\n\t\tid_tableColumn.setWidth(100);\r\n\t\tTableColumn name_tableColumn = new TableColumn(tv.getTable(), SWT.LEAD);\r\n\t\tname_tableColumn.setText(\"name\");\r\n\t\tname_tableColumn.setWidth(100);\r\n\t\t\r\n\t\ttv.setContentProvider(new TableContentPrvider());\r\n\t\ttv.setLabelProvider(new LabelProvider());\r\n\t\tsearch_btn.addSelectionListener(new SelectionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString search_id=text.getText();\r\n\t\t\t\tif(!StringUtils.isBlank(search_id)){\r\n\t\t\t\t\tc.getReadThread().addMessageListener(messageListener);\r\n\t\t\t\t\tTranObject to=new TranObject(TranObjectType.CLIENT_TO_SEVER);\r\n\t\t\t\t\tto.setFromUser(user.getId());\r\n\t\t\t\t\tto.setToUser(Integer.parseInt(text.getText()));\r\n\t\t\t\t\tto.setRequest(ClientRequest.SEARCH_FRIEND);\r\n\t\t\t\t\tc.getWriteThread().setMsg(to);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\t\t\r\n\t\treturn composite;\r\n\t}", "public interface MainFrame {\r\n\r\n /**\r\n * Gets the main OSPFrame. The main frame will usually exit program when it is closed.\r\n * @return OSPFrame\r\n */\r\n public OSPFrame getMainFrame();\r\n \r\n /**\r\n * Gets the OSP Application that is controlled by this frame.\r\n * @return\r\n */\r\n public OSPApplication getOSPApp();\r\n\r\n /**\r\n * Adds a child frame that depends on the main frame.\r\n * Child frames are closed when this frame is closed.\r\n *\r\n * @param frame JFrame\r\n */\r\n public void addChildFrame(JFrame frame);\r\n\r\n /**\r\n * Clears the child frames from the main frame.\r\n */\r\n public void clearChildFrames();\r\n\r\n /**\r\n * Gets a copy of the ChildFrames collection.\r\n * @return Collection\r\n */\r\n public Collection getChildFrames();\r\n\r\n\r\n}", "public void view(Frame owner, FeatureCollection fc) {\n\t\t\tJDialog dialog = new JDialog(owner, \"Replace geometry with circles centered on points\", true);\n\t\t\tContainer parent = dialog.getContentPane();\n\t\t\t\n\t\t}", "@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}", "public void setDialogManager( final PlutoInternalFrame dlgMgr ) {\n // We don't need to preserve the dialog manager's reference for this panel.\n }", "public interface AppUserSelectedCallback {\n /**\n * Called when user selects user(s) from a list in a dialog.\n *\n * @param appUsers the selected app users\n * @param extraText any text that user entered in dialog,\n * this will be null or empty if not shown or user didn't enter anything\n */\n void selected(Collection<AppUser> appUsers, String extraText);\n\n /**\n * Called when user taps a user in a list\n */\n void selected(AppUser appUser);\n}", "public String getProvider() {\n return provider;\n }", "public Class<? extends Dialog<Collection<DataAdapter>>> getAdapterDialog();", "public interface IContextPreferenceProvider {\n\n\t/**\n\t * Returns a specific storage. \n\t * @return\n\t */\n\tpublic IPreferenceStore getPreferenceStore(String name);\n\t\n}", "@Override\n public void onShow(DialogInterface arg0) {\n\n }", "public interface IHelpContextIds {\n\tpublic static final String PREFIX = CpPlugInUI.PLUGIN_ID + \".\"; //$NON-NLS-1$\n\n\tpublic static final String COMPONENT_PAGE = PREFIX + \"component_page\"; //$NON-NLS-1$\n\tpublic static final String DEVICE_PAGE = PREFIX + \"device_page\"; //$NON-NLS-1$\n\tpublic static final String PACKS_PAGE = PREFIX + \"packs_page\"; //$NON-NLS-1$\n\n}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public static String _globals() throws Exception{\nmostCurrent._bdmain = new flm.b4a.betterdialogs.BetterDialogs();\n //BA.debugLineNum = 17;BA.debugLine=\"Private svUtama \t\tAs ScrollView\";\nmostCurrent._svutama = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private iTampil \t\tAs Int=0\";\n_itampil = (int) (0);\n //BA.debugLineNum = 19;BA.debugLine=\"Private pSemua \t\t\tAs Panel\";\nmostCurrent._psemua = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private ivMenu \t\t\tAs ImageView\";\nmostCurrent._ivmenu = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private ivSearch\t \tAs ImageView\";\nmostCurrent._ivsearch = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private ivClose \t\tAs ImageView\";\nmostCurrent._ivclose = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private ivSetting \t\tAs ImageView\";\nmostCurrent._ivsetting = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private lblBrowse \t\tAs Label\";\nmostCurrent._lblbrowse = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Private lvBrowse \t\tAs ListView\";\nmostCurrent._lvbrowse = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Private svList \t\t\tAs ScrollView\";\nmostCurrent._svlist = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 27;BA.debugLine=\"Private lvVideo \t\tAs ListView\";\nmostCurrent._lvvideo = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private lvCate \t\t\tAs ListView\";\nmostCurrent._lvcate = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 29;BA.debugLine=\"Private lvManage \t\tAs ListView\";\nmostCurrent._lvmanage = new anywheresoftware.b4a.objects.ListViewWrapper();\n //BA.debugLineNum = 30;BA.debugLine=\"Private MB \t\t\t\tAs MediaBrowser\";\nmostCurrent._mb = new flm.media.browser.MediaBrowser();\n //BA.debugLineNum = 31;BA.debugLine=\"Private picMusic\t\tAs Bitmap\";\nmostCurrent._picmusic = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 32;BA.debugLine=\"Private mapCover\t\tAs Map\";\nmostCurrent._mapcover = new anywheresoftware.b4a.objects.collections.Map();\n //BA.debugLineNum = 33;BA.debugLine=\"Private container \t\tAs AHPageContainer\";\nmostCurrent._container = new de.amberhome.viewpager.AHPageContainer();\n //BA.debugLineNum = 34;BA.debugLine=\"Private pager \t\t\tAs AHViewPager\";\nmostCurrent._pager = new de.amberhome.viewpager.AHViewPager();\n //BA.debugLineNum = 35;BA.debugLine=\"Private pCoverFlow \t\tAs Panel\";\nmostCurrent._pcoverflow = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 36;BA.debugLine=\"Private tCover\t\t\tAs Timer\";\nmostCurrent._tcover = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 37;BA.debugLine=\"Private picMusic\t\tAs Bitmap\";\nmostCurrent._picmusic = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 38;BA.debugLine=\"Private picVideo\t\tAs Bitmap\";\nmostCurrent._picvideo = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 39;BA.debugLine=\"Private picLain\t\t\tAs Bitmap\";\nmostCurrent._piclain = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();\n //BA.debugLineNum = 40;BA.debugLine=\"Private lstFilter \t\tAs List\";\nmostCurrent._lstfilter = new anywheresoftware.b4a.objects.collections.List();\n //BA.debugLineNum = 41;BA.debugLine=\"Private CurrPage \t\tAs Int = 0\";\n_currpage = (int) (0);\n //BA.debugLineNum = 42;BA.debugLine=\"Private arah\t\t\tAs Int = 0\";\n_arah = (int) (0);\n //BA.debugLineNum = 44;BA.debugLine=\"Private lblMost \t\tAs Label\";\nmostCurrent._lblmost = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 45;BA.debugLine=\"Private ivGaris \t\tAs ImageView\";\nmostCurrent._ivgaris = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 46;BA.debugLine=\"Private ivGambar1 \t\tAs ImageView\";\nmostCurrent._ivgambar1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 47;BA.debugLine=\"Private ivGambar4 \t\tAs ImageView\";\nmostCurrent._ivgambar4 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 48;BA.debugLine=\"Private ivMore \t\t\tAs ImageView\";\nmostCurrent._ivmore = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 49;BA.debugLine=\"Private iTampil1 \t\tAs Int=0\";\n_itampil1 = (int) (0);\n //BA.debugLineNum = 50;BA.debugLine=\"Private iTampil2 \t\tAs Int=0\";\n_itampil2 = (int) (0);\n //BA.debugLineNum = 51;BA.debugLine=\"Private pTop \t\t\tAs Panel\";\nmostCurrent._ptop = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 52;BA.debugLine=\"Private etSearch \t\tAs EditText\";\nmostCurrent._etsearch = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 53;BA.debugLine=\"Private lblJudul1 \t\tAs Label\";\nmostCurrent._lbljudul1 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 54;BA.debugLine=\"Private lblLogin \t\tAs Label\";\nmostCurrent._lbllogin = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 56;BA.debugLine=\"Dim coverflow \t\tAs PhotoFlow\";\nmostCurrent._coverflow = new it.giuseppe.salvi.PhotoFlowActivity();\n //BA.debugLineNum = 57;BA.debugLine=\"Private bLogin \t\tAs Button\";\nmostCurrent._blogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 58;BA.debugLine=\"Private bMore \t\tAs Button\";\nmostCurrent._bmore = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 59;BA.debugLine=\"Dim pos_cflow \t\tAs Int\";\n_pos_cflow = 0;\n //BA.debugLineNum = 60;BA.debugLine=\"Dim panel1 \t\t\tAs Panel\";\nmostCurrent._panel1 = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 61;BA.debugLine=\"Dim timer_cflow\t\tAs Timer\";\nmostCurrent._timer_cflow = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 62;BA.debugLine=\"Dim a, b\t\t\tAs Int\";\n_a = 0;\n_b = 0;\n //BA.debugLineNum = 63;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void configureViewElementsBasedOnProvider() {\n JRDictionary socialSharingProperties = mSelectedProvider.getSocialSharingProperties();\n \n if (socialSharingProperties.getAsBoolean(\"content_replaces_action\"))\n updatePreviewTextWhenContentReplacesAction();\n else\n updatePreviewTextWhenContentDoesNotReplaceAction();\n \n if (isPublishThunk()) {\n mMaxCharacters = mSelectedProvider.getSocialSharingProperties()\n .getAsDictionary(\"set_status_properties\").getAsInt(\"max_characters\");\n } else {\n mMaxCharacters = mSelectedProvider.getSocialSharingProperties()\n .getAsInt(\"max_characters\");\n }\n \n if (mMaxCharacters != -1) {\n mCharacterCountView.setVisibility(View.VISIBLE);\n } else\n mCharacterCountView.setVisibility(View.GONE);\n \n updateCharacterCount();\n \n boolean can_share_media = mSelectedProvider.getSocialSharingProperties()\n .getAsBoolean(\"can_share_media\");\n \n // Switch on or off the media content view based on the presence of media and ability to\n // display it\n boolean showMediaContentView = mActivityObject.getMedia().size() > 0 && can_share_media;\n mMediaContentView.setVisibility(showMediaContentView ? View.VISIBLE : View.GONE);\n \n // Switch on or off the action label view based on the provider accepting an action\n //boolean contentReplacesAction = socialSharingProperties.getAsBoolean(\"content_replaces_action\");\n //mPreviewLabelView.setVisibility(contentReplacesAction ? View.GONE : View.VISIBLE);\n \n mUserProfileInformationAndShareButtonContainer.setBackgroundColor(\n colorForProviderFromArray(socialSharingProperties.get(\"color_values\"), true));\n \n int colorWithNoAlpha = colorForProviderFromArray(\n mSelectedProvider.getSocialSharingProperties().get(\"color_values\"), false);\n \n mJustShareButton.getBackground().setColorFilter(colorWithNoAlpha, PorterDuff.Mode.MULTIPLY);\n mConnectAndShareButton.getBackground().setColorFilter(colorWithNoAlpha,\n PorterDuff.Mode.MULTIPLY);\n mPreviewBorder.getBackground().setColorFilter(colorWithNoAlpha, PorterDuff.Mode.SRC_ATOP);\n \n // Drawable providerIcon = mSelectedProvider.getProviderListIconDrawable(this);\n //\n // mConnectAndShareButton.setCompoundDrawables(null, null, providerIcon, null);\n // mJustShareButton.setCompoundDrawables(null, null, providerIcon, null);\n mProviderIcon.setImageDrawable(mSelectedProvider.getProviderListIconDrawable(this));\n }", "public void display() {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ProviderMenu().setVisible(true);\n\n }\n });\n }", "public IOHandlerDialog()\n {\n panel = new JOptionPane();\n }", "public interface LoginDataProviders extends BaseDataProvider {\n\n String ALREADY_HAVE_PASSWORD = \"Already have a password?\";\n String FIRST_TIME_HERE = \"First time here? Need a password?\";\n String ERROR_PASSWORD_FIELD = \"//label[@class='error'][@for='trainee-login-name']\";\n String ERROR_RECRUIT_ID_FIELD = \"//label[@class='error'][@for='trainee-login-id']\";\n String firstTimeHereLink = TRAINEE_FIRS_LOGIN_FORM + FOLLOWING_SIBLING_P + ROLE_SWITCHER_LINK;\n String alreadyHavePasswordLink = TRAINEE_LOGIN_FORM + FOLLOWING_SIBLING_P + ROLE_SWITCHER_LINK;\n String RECRUIT_ID_FIELD = TRAINEE_LOGIN_FORM + FOLLOWING_SIBLING_DIV + TRAINEE_RECRUIT_ID_FIELD;\n String TRAINEE_PASSWORD_FIELD = TRAINEE_LOGIN_FORM + FOLLOWING_SIBLING_DIV + TRAINEE_LOGIN_NAME_FIELD;\n String TRAINEE_LOGIN_BUTTON = TRAINEE_LOGIN_FORM + FOLLOWING_SIBLING_DIV + LOGIN_BUTTON;\n\n}", "public void editForm(Provider provider) {\r\n this.urlAvatar = provider.getUrl();\r\n this.loginId = provider.getProviderId();\r\n this.loginPassword = provider.getProviderPassword();\r\n this.loginName = provider.getProviderName();\r\n this.gender = provider.getProviderGender();\r\n this.accountPayment = provider.getProviderAccountPayment();\r\n this.authentication = provider.getAuthentication();\r\n this.birth = provider.getProviderBirth();\r\n this.email = provider.getProviderEmail();\r\n this.phone = provider.getProviderPhone();\r\n // this.buildingName = provider.getProviderAddress().getBuildingName();\r\n // this.districtName = provider.getProviderAddress().getDistrictName();\r\n // this.homeNumber = provider.getProviderAddress().getHomeNumber();\r\n // this.streetName = provider.getProviderAddress().getStreetName();\r\n // this.wardName = provider.getProviderAddress().getWardName();\r\n this.address = provider.getProviderAddress();\r\n this.detail = provider.getDetail();\r\n }", "public ArrayList<ClientDialog> getDialogs()\n \t{\n \t\treturn dialogs;\n \t}", "public OSPFrame getMainFrame();", "private DataExplorer() {\r\n\t\tsuper(GDE.shell, SWT.NONE);\r\n\t\tthis.threadId = Thread.currentThread().getId();\r\n\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_OSD, Messages.getString(MessageIds.GDE_MSGT0139));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_LOV, Messages.getString(MessageIds.GDE_MSGT0140));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_CSV, Messages.getString(MessageIds.GDE_MSGT0141));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_XML, Messages.getString(MessageIds.GDE_MSGT0142));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_PNG, Messages.getString(MessageIds.GDE_MSGT0213));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_GIF, Messages.getString(MessageIds.GDE_MSGT0214));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_JPG, Messages.getString(MessageIds.GDE_MSGT0215));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_KMZ, Messages.getString(MessageIds.GDE_MSGT0222));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_GPX, Messages.getString(MessageIds.GDE_MSGT0677));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_STAR, Messages.getString(GDE.IS_WINDOWS ? MessageIds.GDE_MSGT0216 : MessageIds.GDE_MSGT0676));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_INI, Messages.getString(MessageIds.GDE_MSGT0368));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_LOG, Messages.getString(MessageIds.GDE_MSGT0672));\r\n\t\tthis.extensionFilterMap.put(GDE.FILE_ENDING_JML, Messages.getString(MessageIds.GDE_MSGT0673));\r\n\t}", "@Override\r\n\tpublic List<EstimateTO> findEstimateDialog() {\n\t\treturn estimateApplicationService.findEstimateDialog();\r\n\t}", "DataProviders retrieveProviders() throws RepoxException;", "DataProviders retrieveProviders() throws RepoxException;", "public interface DialogListener {\n void onOk();\n void onCancel();\n}", "private void process() {\n final PluginsDialog dialog = new PluginsDialog();\n dialog.show();\n }", "public ParametersInternalFrame() {\n initComponents();\n jLabel2.setText(MainFrame.sessionParams.getOrganization().getName());\n \n initData();\n }", "public XCN[] getAdministeringProvider() {\r\n \tXCN[] retVal = this.getTypedField(10, new XCN[0]);\r\n \treturn retVal;\r\n }", "public ArrayList<String> DFGetProviderList() {\n return DFGetAllProvidersOf(\"\");\n }", "public SelectionDialog(HarmonyModel harmonyModel, Integer mode)\r\n\t{\r\n\t\tsuper((mode==SELECT ? \"Select\" : \"Remove\") + \" Links\");\r\n\t\tthis.harmonyModel = harmonyModel;\r\n\t\tthis.mode = mode;\r\n\t\t\r\n\t\t// Initialize the type filter\r\n\t\ttypeFilter = new OptionPane(\"Type\",new String[]{\"All\",\"User\",\"System\"});\r\n\t\ttypeFilter.setBorder(new EmptyBorder(0,20,0,0));\r\n\t\ttypeFilter.setSelectedButton(\"All\");\r\n\t\t\r\n\t\t// Initialize the focus filter\r\n\t\tfocusFilter = new OptionPane(\"Focus\",new String[]{\"All\",\"Focused\",\"Unfocused\"});\r\n\t\tfocusFilter.setBorder(new EmptyBorder(0,13,0,0));\r\n\t\tfocusFilter.setSelectedButton(mode==SELECT ? \"Focused\" : \"All\");\r\n\t\tfocusFilter.setEnabled(mode==DELETE);\r\n\r\n\t\t// Initialize the visibility filter\r\n\t\tvisibilityFilter = new OptionPane(\"Visibility\",new String[]{\"All\",\"Visible\",\"Hidden\"});\t\t\r\n\t\tvisibilityFilter.setSelectedButton(mode==SELECT ? \"Visible\" : \"All\");\r\n\t\tvisibilityFilter.setEnabled(mode==DELETE);\r\n\t\t\r\n\t\t// Create the info pane\r\n\t\tJPanel infoPane = new JPanel();\r\n\t\tinfoPane.setBorder(new CompoundBorder(new EmptyBorder(5,5,0,5),new CompoundBorder(new LineBorder(Color.gray),new EmptyBorder(5,5,5,5))));\r\n\t\tinfoPane.setLayout(new GridLayout(3,1));\r\n\t\tinfoPane.add(typeFilter);\r\n\t\tinfoPane.add(focusFilter);\r\n\t\tinfoPane.add(visibilityFilter);\r\n\t\t\r\n\t\t// Generate the main dialog pane\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t\tpane.setLayout(new BorderLayout());\r\n\t\tpane.add(infoPane,BorderLayout.CENTER);\r\n\t\tpane.add(new ButtonPane(),BorderLayout.SOUTH);\r\n\t\t\r\n\t\t// Initialize the dialog parameters\r\n\t\tsetContentPane(pane);\r\n\t\tsetSize(200,250);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}", "private Collection<MarketDataProvider> getActiveMarketDataProviders()\n {\n populateProviderList();\n return providersByPriority;\n }", "ProviderManagerExt()\n {\n load();\n }", "modelProvidersI getProvider();", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\r\n\t\tsetMessage(\"Exchange have to save data to a local directory\");\r\n\t\tsetTitleImage(ResourceManager.getPluginImage(\"com.munch.exchange\", \"icons/login_dialog.gif\"));\r\n\t\tsetTitle(\"Select a workspace\");\r\n\t\tComposite area = (Composite) super.createDialogArea(parent);\r\n\t\tComposite container = new Composite(area, SWT.NONE);\r\n\t\tGridLayout gl_container = new GridLayout(3, false);\r\n\t\tgl_container.marginHeight = 15;\r\n\t\tcontainer.setLayout(gl_container);\r\n\t\tcontainer.setLayoutData(new GridData(GridData.FILL_BOTH));\r\n\t\t\r\n\t\tLabel lblWorkspace = new Label(container, SWT.NONE);\r\n\t\tlblWorkspace.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblWorkspace.setText(\"Workspace:\");\r\n\t\t\r\n\t\tcombo = new Combo(container, SWT.NONE);\r\n\t\tcombo.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\tif(button==null)return;\r\n\t\t\t\tFile dir=new File(combo.getText());\r\n\t\t\t\tbutton.setEnabled(dir.isDirectory());\r\n\t\t\t\tif(workspaces.contains(combo.getText())){\r\n\t\t\t\t\tworkspaces.remove(combo.getText());\r\n\t\t\t\t\tworkspaces.addFirst(combo.getText());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tint i=0;\r\n\t\tfor(String w_s:this.workspaces){\r\n\t\t\tcombo.add(w_s);\r\n\t\t\tif(w_s.equals(workspace)){\r\n\t\t\t\tcombo.select(i);\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tButton btnBrowse = new Button(container, SWT.NONE);\r\n\t\tbtnBrowse.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tDirectoryDialog dialog= new DirectoryDialog(getShell(),SWT.OPEN );\r\n\t\t\t\tif(getLastWorkspace()!=null){\r\n\t\t\t\t\tdialog.setFilterPath(getLastWorkspace());\r\n\t\t\t\t}\r\n\t\t\t\t//dialog.\r\n\t\t\t\tString path=dialog.open();\r\n\t\t\t\tif(path!=null && !path.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\tFile dir=new File(path);\r\n\t\t\t\t\tif(dir.isDirectory()){\r\n\t\t\t\t\t\tcombo.add(path, 0);\r\n\t\t\t\t\t\tcombo.select(0);\r\n\t\t\t\t\t\tif(!workspaces.contains(path))\r\n\t\t\t\t\t\t\tworkspaces.addFirst(path);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnBrowse.setText(\"Browse...\");\r\n\t\t\r\n\t\treturn area;\r\n\t}", "private void initPopupViewControls(){\n // Get layout inflater object.\n LayoutInflater layoutInflater = LayoutInflater.from(getActivity());\n\n // Inflate the popup dialog from a layout xml file.\n popupInputDialogView = layoutInflater.inflate(R.layout.custom_popup_add_new_communication_record, null);\n\n // Get user input edittext and button ui controls in the popup dialog.\n _interactionTypeSpinner = popupInputDialogView.findViewById(R.id.inteructionTypeSpinner);\n _details = popupInputDialogView.findViewById(R.id.details);\n _specialNote = popupInputDialogView.findViewById(R.id.specialNote);\n _nextActionTypeSpinner = popupInputDialogView.findViewById(R.id.nextActionTypeSpinner);\n _nextActionDate = popupInputDialogView.findViewById(R.id.nextActionDate);\n _nextMeetingLocation = popupInputDialogView.findViewById(R.id.nextMeetingLocation);\n\n _saveFamilyMember = popupInputDialogView.findViewById(R.id.button_save_user_data);\n _cancelInput = popupInputDialogView.findViewById(R.id.button_cancel_user_data);\n\n\n }", "private void showProposalDevelopment(){\r\n try{\r\n \r\n ProposalBaseWindow propFrame = null;\r\n if ( (propFrame = (ProposalBaseWindow)mdiForm.getFrame(\r\n CoeusGuiConstants.PROPOSAL_BASE_FRAME_TITLE))!= null ) {\r\n if( propFrame.isIcon() ){\r\n propFrame.setIcon(false);\r\n }\r\n propFrame.setSelected(true);\r\n return;\r\n }\r\n propFrame = new ProposalBaseWindow(mdiForm );\r\n propFrame.setVisible( true );\r\n }catch(Exception exception){\r\n CoeusOptionPane.showInfoDialog(exception.getMessage());\r\n }\r\n }", "public Providers(){\r\n\t\tsuper();\r\n\t}", "public void showJRAuthenticateDialog(final Context context, JRAuthenticateDelegate delegate, String title) {\n\t\t\n\t\tboolean isAlreadyExists = false;\n\t\tfor (JRAuthenticateDelegate delegate1 : delegates) {\n\t\t\tif (delegate1 == delegate) {\n\t\t\t\tisAlreadyExists = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!isAlreadyExists)\n\t\t\tdelegates.add(delegate);\n\t\t\n\t\tif (theBaseUrl == null) {\n\t\t\tstartGetBaseUrl();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (sessionData == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (sessionData.configedProviders == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (jrModalNavController == null)\n\t\t\tjrModalNavController = new JRModalNavController(sessionData);\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\tbuilder.setTitle(title);\n\t\t\n\t\tbuilder.setAdapter(new AccountsAdapter(context, sessionData.configedProviders), \n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t/* Let sessionData know which provider the user selected */\n\t\t\t\t\t\tString provider = sessionData.configedProviders[which];\n\t\t\t\t\t\tsessionData.setProvider(provider);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sessionData.currentProvider.getProviderRequiresInput() || (sessionData.returningProvider != null && provider.equals(sessionData.returningProvider.getName()))) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//TODO: myUserLandingController\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tIntent intent = new Intent(context, JRWebViewActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(\"provider\", provider);\n\t\t\t\t\t\t\t((Activity) context).startActivityForResult(intent, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.create().show();\n\t}", "public void showOptions() {\n this.popupWindow.showAtLocation(this.layout, 17, 0, 0);\n this.customview.findViewById(R.id.dialog).setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.pdf.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = \"pdf\";\n discussionActivity.showPdfChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.img.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = ContentTypes.EXTENSION_JPG_1;\n discussionActivity.showImageChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.cancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n }", "public DisguiseProvider getDisguiseProvider() {\n return _disguiseProvider;\n }", "public void onModuleLoad() {\r\n\t\tWindow.setTitle(Common.APPNAME);\r\n\t\tcloseButton = new Button(\"Close\", new ClickListener() {\r\n\t public void onClick(Widget sender) {\r\n\t \tdialogBox.hide();\r\n\t \tmanualRegisterBtn.setEnabled(true);\r\n\t }\r\n\t });\r\n\t\tcloseButton.setWidth(\"100%\");\r\n\t\tdialogBox.setWidget(closeButton);\r\n\t\t//\r\n\t\t// setup registration process\r\n\t\t//\r\n\t\tString requestUri = GWT.getHostPageBaseURL() + REGISTER_URI;\r\n\t\tregisterService.setup(requestUri, new AsyncCallback<List<String>>() {\r\n\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t// Show the RPC error message to the user\r\n\t\t\t\tlogger.severe(\"Error message from server trying to get providers ...\");\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(List<String> result) {\r\n\t\t\t\tlogger.info(\"Got urls ... # of item(s): \" + result.size());\r\n\t\t\t\tif (result != null && result.size() > 0) {\r\n\t\t\t\t\tbuildUI(result);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "public StatusMessageMenu(ProtocolProviderService protocolProvider,\n boolean swing)\n {\n super(swing);\n\n this.protocolProvider = protocolProvider;\n\n OperationSetPresence presenceOpSet\n = protocolProvider.getOperationSet(OperationSetPresence.class);\n if(presenceOpSet != null)\n {\n presenceOpSet.addProviderPresenceStatusListener(this);\n }\n }", "public String getProvider() {\n\t\treturn this.provider;\n\t}" ]
[ "0.58917737", "0.5848815", "0.5715735", "0.5603612", "0.5512013", "0.5461051", "0.539525", "0.5332763", "0.5311718", "0.5308931", "0.5236822", "0.5192139", "0.51908445", "0.5188884", "0.5162883", "0.51510286", "0.51457685", "0.51372313", "0.5134755", "0.5102044", "0.5091336", "0.5085995", "0.5070227", "0.5058036", "0.5055005", "0.50526273", "0.5050983", "0.5048301", "0.5041932", "0.5027132", "0.5025892", "0.5013099", "0.50044876", "0.5003049", "0.49984148", "0.4990409", "0.49867788", "0.49718478", "0.49711958", "0.49677387", "0.49668396", "0.4966358", "0.4960987", "0.49591282", "0.49530408", "0.49500257", "0.49499893", "0.49432638", "0.49417812", "0.4917613", "0.49170572", "0.4904206", "0.4899681", "0.48977384", "0.4894739", "0.48904556", "0.48875746", "0.4883045", "0.48785353", "0.48736587", "0.48731622", "0.487049", "0.48584723", "0.48555943", "0.4853975", "0.48521298", "0.48491612", "0.48464924", "0.48415446", "0.48364845", "0.48364198", "0.48352778", "0.48352617", "0.4834947", "0.4832045", "0.48318768", "0.48275676", "0.48274302", "0.48231655", "0.48210323", "0.48210323", "0.48175645", "0.48164916", "0.48139566", "0.48107657", "0.4802641", "0.4802365", "0.47999525", "0.4798941", "0.4792305", "0.47919196", "0.47874343", "0.47862616", "0.478438", "0.47821927", "0.47813708", "0.47793522", "0.47714826", "0.47713166", "0.4768038", "0.47657955" ]
0.0
-1
A recursive method to get the first encountered ComponentProvider instance of the give component provider class. Note: this method assumes the given node is not a RootNode, but a child thereof
private static ComponentProvider getComponentProviderFromNode(Object node, Class<? extends ComponentProvider> providerClass) { Class<?> nodeClass = node.getClass(); String className = nodeClass.getName(); if (className.indexOf("ComponentNode") != -1) { List<ComponentPlaceholder> infoList = CollectionUtils.asList( (List<?>) getInstanceField("windowPlaceholders", node), ComponentPlaceholder.class); for (ComponentPlaceholder info : infoList) { ComponentProvider provider = info.getProvider(); if ((provider != null) && providerClass.isAssignableFrom(provider.getClass())) { return provider; } } } else if (className.indexOf("WindowNode") != -1) { Object childNode = getInstanceField("child", node); return getComponentProviderFromNode(childNode, providerClass);// recurse } else if (className.indexOf("SplitNode") != -1) { Object leftNode = getInstanceField("child1", node); ComponentProvider leftProvider = getComponentProviderFromNode(leftNode, providerClass);// recurse if (leftProvider != null) { return leftProvider; } Object rightNode = getInstanceField("child2", node); return getComponentProviderFromNode(rightNode, providerClass);// recurse } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Component clickComponentProvider(ComponentProvider provider) {\n\n\t\tJComponent component = provider.getComponent();\n\t\tDockableComponent dockableComponent = getDockableComponent(component);\n\t\tselectTabIfAvailable(dockableComponent);\n\t\tRectangle bounds = component.getBounds();\n\t\tint centerX = (bounds.x + bounds.width) >> 1;\n\t\tint centerY = (bounds.y + bounds.height) >> 1;\n\n\t\treturn clickComponentProvider(provider, MouseEvent.BUTTON1, centerX, centerY, 1, 0, false);\n\t}", "public static Class getComponentType(final Node n) {\r\n return (Class) n.getProperty(COMPONENT_TYPE);\r\n }", "public Class<?> getComponentType();", "Class<?> getComponentType();", "public ProtocolProviderServiceRssImpl getParentProvider()\n {\n return this.parentProvider;\n }", "public Component getComponent(Class type) {\n for (Component component : components) {\n if (component.getClass().equals(type)) {\n return component;\n }\n }\n return null;\n }", "public static Class<?> getProvider() {\n return provider;\n }", "public IProvider lookupProvider(Class<? extends IProvider> providerType);", "public static Provider provider() {\n try {\n Object provider = getProviderUsingServiceLoader();\n if (provider == null) {\n provider = FactoryFinder.find(JAXWSPROVIDER_PROPERTY, DEFAULT_JAXWSPROVIDER);\n }\n if (!(provider instanceof Provider)) {\n Class pClass = Provider.class;\n String classnameAsResource = pClass.getName().replace('.', '/') + \".class\";\n ClassLoader loader = pClass.getClassLoader();\n if (loader == null) {\n loader = ClassLoader.getSystemClassLoader();\n }\n URL targetTypeURL = loader.getResource(classnameAsResource);\n throw new LinkageError(\"ClassCastException: attempting to cast\" + provider.getClass()\n .getClassLoader().getResource(classnameAsResource) + \"to\" + targetTypeURL.toString());\n }\n return (Provider) provider;\n } catch (WebServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new WebServiceException(\"Unable to createEndpointReference Provider\", ex);\n }\n }", "private static <T extends ComponentProvider> T getDetachedWindowProvider(\n\t\t\tfinal Class<T> providerClass, final DockingWindowManager windowManager) {\n\n\t\tObjects.requireNonNull(windowManager, \"DockingWindowManager cannot be null\");\n\n\t\tAtomicReference<T> ref = new AtomicReference<>();\n\n\t\trunSwing(() -> {\n\t\t\tObject rootNode = getInstanceField(\"root\", windowManager);\n\t\t\tList<?> windowNodeList = (List<?>) invokeInstanceMethod(\"getDetachedWindows\", rootNode);\n\t\t\tfor (Object windowNode : windowNodeList) {\n\t\t\t\tObject childNode = getInstanceField(\"child\", windowNode);\n\t\t\t\tComponentProvider provider = getComponentProviderFromNode(childNode, providerClass);\n\n\t\t\t\tif (provider != null) {\n\t\t\t\t\tref.set(providerClass.cast(provider));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\treturn ref.get();\n\t}", "public ComponentNode getNode(Component comp) {\n if (comp == null) {\n return (ComponentNode)getRoot();\n }\n ComponentNode node = (ComponentNode)map.get(comp);\n if (node == null) {\n Component parentComp = getParent(comp);\n ComponentNode parent = getNode(parentComp);\n if (parent == null) {\n return getNode(parentComp);\n }\n // Fall back to parent if no child matches.\n node = parent;\n for (int i=0;i < parent.getChildCount();i++) {\n ComponentNode child = (ComponentNode)parent.getChildAt(i);\n if (child.getComponent() == comp) {\n node = child;\n break;\n }\n }\n }\n return node;\n }", "private <T> T getComponent(Class<T> clazz) {\n List<T> list = Context.getRegisteredComponents(clazz);\n if (list == null || list.size() == 0)\n throw new RuntimeException(\"Cannot find component of \" + clazz);\n return list.get(0);\n }", "public CourseComponent find(Filter<CourseComponent> matcher) {\n if (matcher.apply(this))\n return this;\n if (!isContainer())\n return null;\n CourseComponent found = null;\n for (CourseComponent c : children) {\n found = c.find(matcher);\n if (found != null)\n return found;\n }\n return null;\n }", "public ProtocolProviderService getParentProvider()\n {\n return provider;\n }", "<T extends Component> Optional<T> getExactComponent(Class<T> type);", "protected static <T extends DialogComponentProvider> T getDialogComponentProvider(Window window,\n\t\t\tClass<T> ghidraClass) {\n\n\t\tif (!(window instanceof DockingDialog)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!window.isShowing()) {\n\t\t\treturn null;\n\t\t}\n\n\t\tDialogComponentProvider provider = ((DockingDialog) window).getDialogComponent();\n\t\tif (provider == null || !provider.isVisible()) {\n\t\t\t// provider can be null if the DockingDialog is disposed before we can get the provider\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!ghidraClass.isAssignableFrom(provider.getClass())) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn ghidraClass.cast(provider);\n\t}", "<T extends Component> Optional<T> getComponent(Class<T> type);", "public String getProviderClassName();", "private static EndpointProvider\n getEndpointProvider(final String providerClass) {\n ServiceLoader<EndpointProvider> providerServices\n = ServiceLoader.load(EndpointProvider.class);\n for (EndpointProvider provider : providerServices) {\n if (providerClass.equals(provider.getClass().getName())) {\n return provider;\n }\n }\n return null;\n }", "private GComponent getComponentAt(Point point)\n {\n // Create a reverse list iterator\n ListIterator<GComponent> it = this.components.listIterator(this.components.size());\n while (it.hasPrevious())\n {\n GComponent component = it.previous();\n \n // If this component is a the specified position, then return it\n if (component.getBounds().contains(point))\n return component;\n }\n \n // Nothing found, so return null\n return null;\n }", "private static synchronized Provider getProvider() throws Exception {\n\t\t\tProvider provider = SunPKCS11BlockCipherFactory.provider;\n\n\t\t\tif ((provider == null) && useProvider) {\n\t\t\t\ttry {\n\t\t\t\t\tClass<?> clazz = Class.forName(\"sun.security.pkcs11.SunPKCS11\");\n\n\t\t\t\t\tif (Provider.class.isAssignableFrom(clazz)) {\n\t\t\t\t\t\tConstructor<?> contructor = clazz.getConstructor(String.class);\n\n\t\t\t\t\t\t// The SunPKCS11 Config name should be unique in order\n\t\t\t\t\t\t// to avoid repeated initialization exceptions.\n\t\t\t\t\t\tString name = null;\n\t\t\t\t\t\tPackage pkg = AES.class.getPackage();\n\n\t\t\t\t\t\tif (pkg != null)\n\t\t\t\t\t\t\tname = pkg.getName();\n\t\t\t\t\t\tif (name == null || name.length() == 0)\n\t\t\t\t\t\t\tname = \"org.jitsi.impl.neomedia.transform.srtp\";\n\n\t\t\t\t\t\tprovider = (Provider) contructor.newInstance(\"--name=\" + name + \"\\\\n\" + \"nssDbMode=noDb\\\\n\" + \"attributes=compatibility\");\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (provider == null)\n\t\t\t\t\t\tuseProvider = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tSunPKCS11BlockCipherFactory.provider = provider;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn provider;\n\t\t}", "protected Node getComponentNode() {\n return componentNode;\n }", "private ObjectClassWrapper findObjectClassWrapperInTree( ObjectClassImpl oc )\n {\n SchemaWrapper schemaWrapper = findSchemaWrapperInTree( oc.getSchema() );\n if ( schemaWrapper == null )\n {\n return null;\n }\n \n // Finding the correct node\n int group = Activator.getDefault().getPreferenceStore().getInt( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING );\n List<TreeNode> children = schemaWrapper.getChildren();\n if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_FOLDERS )\n {\n for ( TreeNode child : children )\n {\n Folder folder = ( Folder ) child;\n if ( folder.getType() == FolderType.OBJECT_CLASS )\n {\n for ( TreeNode folderChild : folder.getChildren() )\n {\n ObjectClassWrapper ocw = ( ObjectClassWrapper ) folderChild;\n if ( ocw.getObjectClass().equals( oc ) )\n {\n return ocw;\n }\n }\n }\n }\n }\n else if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_MIXED )\n {\n for ( Object child : children )\n {\n if ( child instanceof ObjectClassWrapper )\n {\n ObjectClassWrapper ocw = ( ObjectClassWrapper ) child;\n if ( ocw.getObjectClass().equals( oc ) )\n {\n return ocw;\n }\n }\n }\n }\n \n return null;\n }", "public ProcessProvider getComponent() {\n return component;\n }", "public FeedProvider getFeedProvider(AbstractComponent component) {\n return component.getCapability(FeedProvider.class);\n }", "public Component select( Object hint )\n throws ComponentException\n {\n final Component component = (Component)m_components.get( hint );\n\n if( null != component )\n {\n return component;\n }\n else\n {\n throw new ComponentException( hint.toString(), \"Unable to provide implementation.\" );\n }\n }", "public <T extends Component> T getComponent(Class<T> componentType);", "public static Component findComponentByName(DialogComponentProvider provider,\n\t\t\tString componentName) {\n\t\treturn findComponentByName(provider.getComponent(), componentName, false);\n\t}", "public Optional<ComponentSymbol> getComponent() {\r\n if (!this.getEnclosingScope().getSpanningSymbol().isPresent()) {\r\n return Optional.empty();\r\n }\r\n if (!(this.getEnclosingScope().getSpanningSymbol().get() instanceof ComponentSymbol)) {\r\n return Optional.empty();\r\n }\r\n return Optional.of((ComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get());\r\n }", "public static IPSGroupProviderInstance newInstance(Element source)\n throws PSUnknownNodeTypeException\n {\n validateElementName(source, XML_NODE_NAME);\n PSXmlTreeWalker tree = new PSXmlTreeWalker(source);\n String className = getRequiredElement(tree, CLASSNAME_ATTR);\n IPSGroupProviderInstance newInstance = null;\n try\n {\n Class newClass = Class.forName(className);\n if (validateClass(newClass))\n {\n newInstance = (IPSGroupProviderInstance)newClass.newInstance();\n }\n }\n catch (IllegalAccessException e) {}\n catch (ClassNotFoundException e) {}\n catch (InstantiationException e) {}\n\n if (newInstance == null)\n {\n Object[] args = {XML_NODE_NAME, CLASSNAME_ATTR, className};\n throw new PSUnknownNodeTypeException(\n IPSObjectStoreErrors.XML_ELEMENT_INVALID_CHILD, args);\n }\n\n newInstance.fromXml(source, null, null);\n return newInstance;\n }", "public <T extends Control> T getComponentInParent(Class<T> clazz) {\r\n return getComponentInParent(spatial, clazz);\r\n }", "@SuppressWarnings(\"unchecked\")\n\n\tprivate <T extends Component> T findComponent(Container root, String name) {\n\n\t\tfor (Component child : root.getComponents()) {\n\n\t\t\tif (name.equals(child.getName())) {\n\n\t\t\t\treturn (T) child;\n\n\t\t\t}\n\n\t\t\tif (child instanceof Container) {\n\n\t\t\t\tT subChild = findComponent((Container) child, name);\n\n\t\t\t\tif (subChild != null) {\n\n\t\t\t\t\treturn subChild;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn null;\n\n\t}", "private static Node getFirstExtensionNode(Node extensionsNode) {\n\t\tfinal String extensionTag = EXT_NAME;\n\t\tNodeList nodes = extensionsNode.getChildNodes();\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tNode child = nodes.item(i);\n\t\t\tif (extensionTag.equals(child.getNodeName()))\n\t\t\t\treturn child;\n\t\t}\n\t\treturn null;\n\t}", "@VisibleForTesting\n public static <T> Class<FailoverProxyProvider<T>> getFailoverProxyProviderClass(\n Configuration conf, URI nameNodeUri, Class<T> xface) throws IOException {\n if (nameNodeUri == null) {\n return null;\n }\n String host = nameNodeUri.getHost();\n String configKey = HdfsClientConfigKeys.Failover.PROXY_PROVIDER_KEY_PREFIX\n + \".\" + host;\n try {\n @SuppressWarnings(\"unchecked\")\n Class<FailoverProxyProvider<T>> ret = (Class<FailoverProxyProvider<T>>) conf\n .getClass(configKey, null, FailoverProxyProvider.class);\n if (ret != null) {\n // If we found a proxy provider, then this URI should be a logical NN.\n // Given that, it shouldn't have a non-default port number.\n int port = nameNodeUri.getPort();\n if (port > 0 && port != NameNode.DEFAULT_PORT) {\n throw new IOException(\"Port \" + port + \" specified in URI \"\n + nameNodeUri + \" but host '\" + host\n + \"' is a logical (HA) namenode\"\n + \" and does not use port information.\");\n }\n }\n return ret;\n } catch (RuntimeException e) {\n if (e.getCause() instanceof ClassNotFoundException) {\n throw new IOException(\"Could not load failover proxy provider class \"\n + conf.get(configKey) + \" which is configured for authority \"\n + nameNodeUri, e);\n } else {\n throw e;\n }\n }\n }", "@objid (\"808c0856-1dec-11e2-8cad-001ec947c8cc\")\n public abstract GmCompositeNode getCompositeFor(Class<? extends MObject> metaclass);", "public static Component getFirstChildType(Component parent, int type) {\n\t\tList<Component> comps = Component.organizeComponents(Arrays.asList(parent));\n\t\tfor (Component c : comps) {\n\t\t\tif (type == c.getType()) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "java.lang.String getProvider();", "protected <C> C getParentComponent(Class<C> componentType) {\n return componentType.cast(((BaseInjectionActivity) getActivity()).getActivityComponent());\n }", "public Component getComponent(String path)\r\n {\r\n Class<? extends Component> componentClass = components.get(path);\r\n if (componentClass == null)\r\n {\r\n return null;\r\n }\r\n Constructor<?>[] constructors = componentClass.getConstructors();\r\n for (Constructor<?> constructor : constructors)\r\n {\r\n if ((constructor.getParameterTypes().length == 1) \r\n && (constructor.getParameterTypes()[0] == Component.class))\r\n {\r\n Component instance;\r\n try\r\n {\r\n instance = (Component) constructor.newInstance(new Object[] {null});\r\n } catch (InstantiationException | IllegalAccessException\r\n | IllegalArgumentException | InvocationTargetException e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n postConstruct(instance);\r\n return instance;\r\n }\r\n }\r\n throw new IllegalStateException(\"Component of class \" + componentClass.getName() \r\n + \" has no constructor with a single Component parameter\");\r\n }", "private ExportPkg pickProvider(ImportPkg ip) {\n if (Debug.packages) {\n Debug.println(\"pickProvider: for - \" + ip);\n }\n ExportPkg provider = null;\n for (Iterator i = ip.pkg.exporters.iterator(); i.hasNext(); ) {\n ExportPkg ep = (ExportPkg)i.next();\n tempBlackListChecks++;\n if (tempBlackList.contains(ep)) {\n tempBlackListHits++;\n continue;\n }\n if (!checkAttributes(ep, ip)) {\n if (Debug.packages) {\n Debug.println(\"pickProvider: attribute match failed for - \" + ep);\n }\n continue;\n }\n if (tempResolved.contains(ep.bpkgs.bundle)) {\n provider = ep;\n break;\n }\n if ((ep.bpkgs.bundle.state & BundleImpl.RESOLVED_FLAGS) != 0) {\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n if (checkUses(ep)) {\n provider = ep;\n break;\n } else {\n tempProvider = oldTempProvider;\n tempBlackList.add(ep);\n continue;\n }\n }\n if (ep.bpkgs.bundle.state == Bundle.INSTALLED && checkResolve(ep.bpkgs.bundle)) { \n provider = ep;\n break;\n }\n }\n if (Debug.packages) {\n if (provider != null) {\n Debug.println(\"pickProvider: \" + ip + \" - got provider - \" + provider);\n } else {\n Debug.println(\"pickProvider: \" + ip + \" - found no provider\");\n }\n }\n return provider;\n }", "public Component getComponent(String name) {\n Optional<Component> component = elements.getComponent(name);\n\n if(component.isPresent()) {\n return component.get();\n } else {\n Assert.fail(\"Missing component \" + name);\n return null;\n }\n\n }", "public <T extends RMShape> T getParent(Class<T> aClass)\n{\n for(RMShape s=getParent(); s!=null; s=s.getParent()) if(aClass.isInstance(s)) return (T)s;\n return null; // Return null since parent of class wasn't found\n}", "public Optional<ExpandedComponentInstanceSymbol> getComponentInstance() {\r\n if (!this.getEnclosingScope().getSpanningSymbol().isPresent()) {\r\n return Optional.empty();\r\n }\r\n if (!(this.getEnclosingScope().getSpanningSymbol()\r\n .get() instanceof ExpandedComponentInstanceSymbol)) {\r\n return Optional.empty();\r\n }\r\n return Optional\r\n .of((ExpandedComponentInstanceSymbol) this.getEnclosingScope().getSpanningSymbol().get());\r\n }", "public <U extends T> U getComponent(Class<U> clazz);", "private SchemaComponent findOutermostParentElement(){\n SchemaComponent element = null;\n //go up the tree and look for the last instance of <element>\n\tSchemaComponent sc = getParent();\n while(sc != null){\n if(sc instanceof Element){\n element = sc;\n }\n\t sc = sc.getParent();\n }\n return element;\n }", "public static SpItem findSpItemInContext(SpItem spItem, Class<?> c) {\n SpItem returnableItem = null;\n Enumeration<SpItem> e = spItem.children();\n\n while (e.hasMoreElements()) {\n SpItem child = e.nextElement();\n\n if (c.isInstance(child)) {\n returnableItem = child;\n\n break;\n }\n }\n\n return returnableItem;\n }", "private static Class<?> getClass(Type type) {\n if (type instanceof Class) {\n return (Class) type;\n }\n else if (type instanceof ParameterizedType) {\n return getClass(((ParameterizedType) type).getRawType());\n }\n else if (type instanceof GenericArrayType) {\n Type componentType = ((GenericArrayType) type).getGenericComponentType();\n Class<?> componentClass = getClass(componentType);\n if (componentClass != null ) {\n return Array.newInstance(componentClass, 0).getClass();\n }\n else {\n return null;\n }\n }\n else {\n return null;\n }\n }", "private static Provider findProviderFor(String receiver) {\n\t\tfor (Provider provider : providers) {\n\t\t\tif (provider.canSendTo(receiver)) {\n\t\t\t\treturn provider;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected <SubT extends E> Provider<SubT> getByKeyProvider(Key<SubT> key) {\n if(!injector.hasProvider(key)) {\n injector.putBinding(key, (Provider<SubT>) null);\n }\n return () -> injector.getInstance(key);\n }", "public static Component clickComponentProvider(ComponentProvider provider, int button, int x,\n\t\t\tint y, int clickCount, int modifiers, boolean popupTrigger) {\n\n\t\tJComponent component = provider.getComponent();\n\t\tfinal Component clickComponent = SwingUtilities.getDeepestComponentAt(component, x, y);\n\t\tclickMouse(clickComponent, MouseEvent.BUTTON1, x, y, clickCount, modifiers, popupTrigger);\n\t\treturn clickComponent;\n\t}", "public ServiceNode getNode(Class clazz) {\n return allNodes.get(clazz);\n }", "private static Constructor findComparatorConstructor(Class cls) {\n try {\n return cls.getConstructor(new Class[] { Comparator.class });\n } catch (NoSuchMethodException nsme) {\n return null;\n } catch (Exception e) {\n throw new GeneralException(e);\n }\n }", "<P extends CtElement> P getParent(Class<P> parentType) throws ParentNotInitializedException;", "private Class<?> getCallerClass(final int index) {\n if (getCallerClass != null) {\n try {\n final Object[] params = new Object[]{index};\n return (Class<?>) getCallerClass.invoke(null, params);\n } catch (final Exception ex) {\n // logger.debug(\"Unable to determine caller class via Sun Reflection\", ex);\n }\n }\n return null;\n }", "public ILexComponent getParent();", "private Entity findEntity(Node node) {\n \n if (node instanceof Entity) {\n return (Entity) node;\n }\n \n else if (node != ((SimpleApplication) stateManager.getApplication()).getRootNode()){\n return findEntity(node.getParent());\n }\n \n else {\n return null;\n }\n \n }", "public DefaultMutableTreeNode getRequestedNode()\n {\n // Reset node to be displayed\n displayNode = root;\n \n // Iterate trough the path array\n for (int i = 0; i < pathArray.length; i++)\n {\n if (displayNode.getDepth() > 1)\n {\n displayNode = (DefaultMutableTreeNode)\n displayNode.getChildAt(pathArray[i]);\n }\n }\n \n // Return node to be displayed\n return displayNode;\n }", "static Provider<?> getProviderForExpression(Injector injector,\n String expression) {\n try {\n Class<?> type = Classes.loadClass(expression,\n JndiBindings.class.getClassLoader());\n return injector.getProvider(type);\n } catch (ClassNotFoundException e) {\n return null;\n }\n }", "XClass getClassOrElementClass();", "private AccessTypeInjector getInjector(String classCanonicalName) {\n try {\n for (AccessTypeInjector injector : accessTypeInjectors\n .select(new AccessTypeInjector.Selector(classCanonicalName))) {\n return injector;\n }\n } catch (Exception e) {\n log.error(\"No access type injector found for class name: {}\", classCanonicalName, e);\n }\n return null;\n }", "@Override\r\n\tpublic TypeWrapper getComponentType() {\n\t\treturn null;\r\n\t}", "public Component getComponent(int componentId) {\r\n if (opened != null && opened.getId() == componentId) {\r\n return opened;\r\n }\r\n if (chatbox != null && chatbox.getId() == componentId) {\r\n return chatbox;\r\n }\r\n if (singleTab != null && singleTab.getId() == componentId) {\r\n return singleTab;\r\n }\r\n if (overlay != null && overlay.getId() == componentId) {\r\n return overlay;\r\n }\r\n for (Component c : tabs) {\r\n if (c != null && c.getId() == componentId) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }", "public XCN getAdministeringProvider(int rep) { \r\n\t\tXCN retVal = this.getTypedField(10, rep);\r\n\t\treturn retVal;\r\n }", "@SuppressWarnings(\"unchecked\")\n protected <C> C getComponent(Class<C> componentType) {\n return componentType.cast(((HasComponent<C>) getActivity()).getComponent());\n }", "@Override\n\tpublic ILiteComponent getBestMatch() {\n\t\tILiteComponent bestComponent = null;\n\t\t//EEvaluationResult bestResult = EEvaluationResult.MISSING;\n\t\tfor(Entry<ILiteComponent, ILiteDependencyItem> e : fComponentEntries.entrySet()) {\n\t\t\tILiteComponent c = e.getKey();\n\t\t\tEEvaluationResult r = e.getValue().getEvaluationResult();\n\t\t\tif(r == EEvaluationResult.FULFILLED) {\n\t\t\t\treturn c;\n\t\t\t} else if(r == EEvaluationResult.SELECTABLE) {\n\t\t\t\tif(bestComponent == null)\n\t\t\t\t\tbestComponent = c;\n\t\t\t\telse\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn bestComponent;\n\t}", "public Object[] getSuccessorNodes (Object node) throws InvalidComponentException;", "public CourseComponent getAncestor(EnumSet<BlockType> types) {\n if (types.contains(type))\n return this;\n IBlock ancestor = parent;\n if (ancestor == null)\n return null;\n do {\n if (types.contains(ancestor.getType()))\n return (CourseComponent) ancestor;\n } while ((ancestor = ancestor.getParent()) != null);\n return null;\n }", "public RubyModule findImplementer(RubyModule clazz) {\n for (RubyModule module = this; module != null; module = module.getSuperClass()) {\n if (module.isSame(clazz)) return module;\n }\n \n return null;\n }", "public <T extends Control> T getComponentInChild(final Class<T> clazz) {\r\n return getComponentInChild(spatial, clazz);\r\n }", "public ServiceNode initSubgraphByNode(Class clazz) {\n // pokusi se najit dany node\n ServiceNode node = allNodes.get(clazz);\n\n // pokud node neexistuje\n if (node == null) {\n // vytvori ho\n node = createNewNode(clazz);\n\n // nastavi implementaci v pripade rozhrani\n clazz = node.getClazzImpl();\n\n // najde vsechny jeho zavislosti podle setteru\n Set<Method> setters = finder.findInjectedSetters(clazz);\n\n for (Method setter : setters) {\n Class<?> paramClass = setter.getParameterTypes()[0];\n node.addSetterChild(initSubgraphByNode(paramClass));\n }\n\n // najde vsechny jeho zavislosti podle filedu\n Set<Field> fields = finder.findInjectedFields(clazz);\n for (Field field : fields) {\n node.addFieldChild(initSubgraphByNode(field.getType()));\n }\n\n // najde vsechny jeho zavislosti podle konstruktoru\n Constructor constructor = finder.findInjectedConstructor(clazz);\n\n if (constructor != null) {\n Class[] paramTypes = constructor.getParameterTypes();\n\n Set<ServiceNode> constructorChildren = Arrays.stream(paramTypes)\n .map(this::initSubgraphByNode)\n .collect(Collectors.toSet());\n\n node.addConstructorChildren(constructorChildren);\n }\n }\n\n return node;\n }", "public static Component getAncestorOfClass(Class<JInternalFrame> class1,\n\t\t\tComponent freeColPanel) {\n\t\tSystem.out.println(\"ERROR!\");new Exception().printStackTrace();throw new UnsupportedOperationException(\"Broken!\");\n\t}", "@Override\n public abstract String getComponentType();", "protected abstract Class<? extends TreeStructure> getTreeType();", "private ComponentCandidate getComponentCandidateAccordingToNonTOCommunicationOccurrence(\r\n final ASGAnnotation annotation)\r\n {\n GASTClass calledClass = (GASTClass) annotation.getAnnotatedElements().get(PatternConstants.CALLED_CLASS_ROLE)\r\n .get(0);\r\n GASTClass callingClass = (GASTClass) annotation.getAnnotatedElements().get(PatternConstants.CALLING_CLASS_ROLE)\r\n .get(0);\r\n String calledClassName = calledClass.getSimpleName();\r\n String callingClassName = callingClass.getSimpleName();\r\n for (ComponentCandidate compCand : this.metricValuesModel.getIterations(0).getComponentCandidates())\r\n {\r\n EcoreUtil.resolveAll(compCand);\r\n if (componentContainsClass(compCand.getFirstComponent(), callingClassName)\r\n && componentContainsClass(compCand.getSecondComponent(), calledClassName))\r\n {\r\n return compCand;\r\n }\r\n }\r\n return null;\r\n }", "private static RegistryImpl findRegistryImpl(String classname) \n throws ContentHandlerException\n {\n synchronized (mutex) {\n RegistryImpl impl = \n RegistryImpl.getRegistryImpl(classname, classSecurityToken);\n // Make sure there is a Registry; \n if (impl.getRegistry() == null) {\n impl.setRegistry(new Registry(impl));\n }\n return impl;\n }\n }", "public XCN[] getAdministeringProvider() {\r\n \tXCN[] retVal = this.getTypedField(10, new XCN[0]);\r\n \treturn retVal;\r\n }", "public <S> ComponentInstance<S> getComponentInstance();", "<T> T getComponent(Object key);", "public IProvider provider();", "public CompositeNodeItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}", "protected <K extends Resource> K getFromParent(String uri, Class<K> resourceType) {\n\t\tfor (RepositoryService rs : parent.getRepositoryServices()) {\n\t\t\tif (rs == this)\n\t\t\t\tcontinue;\n\t\t\ttry {\n\t\t\t\tK r = parent.doGetResource(uri, resourceType, rs);\n\t\t\t\tif (r != null)\n\t\t\t\t\treturn r;\n\t\t\t} catch (JRRuntimeException e) {\n\t\t\t}\n\t\t}\n\t\t// System.out.println(\"get from server not found \" + uri);\n\t\treturn null;\n\t}", "eu.europeana.uim.repox.rest.client.xml.Provider retrieveProvider(String providerId)\n throws RepoxException;", "private synchronized void loadProvider() {\n\t\tif (provider != null) {\n\t\t\t// Prevents loading by two thread in parallel\n\t\t\treturn;\n\t\t}\n\t\tfinal IExtensionRegistry xRegistry = Platform.getExtensionRegistry();\n\t\tfinal IExtensionPoint xPoint = xRegistry\n\t\t\t\t.getExtensionPoint(PROVIDERS_ID);\n\t\tfor (IConfigurationElement element : xPoint.getConfigurationElements()) {\n\t\t\ttry {\n\t\t\t\tfinal String id = element.getAttribute(\"id\");\n\t\t\t\tif (provider != null) {\n\t\t\t\t\tlog(null, \"Only one extension provider allowed. Provider\"\n\t\t\t\t\t\t\t+ id + \" ignored\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tprovider = (IFormulaExtensionProvider) element\n\t\t\t\t\t\t\t.createExecutableExtension(\"class\");\n\t\t\t\t}\n\t\t\t\tif (DEBUG)\n\t\t\t\t\tSystem.out.println(\"Registered provider extension \" + id);\n\t\t\t} catch (CoreException e) {\n\t\t\t\tlog(e, \"while loading extension provider\");\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n public <R> R lookup(Class<R> clazz, ComponentType compType) {\n ComponentBean bean = this.componentMap.get(compType);\n if (bean == null)\n return null;\n if (bean.getSuperType().equals(clazz))\n return (R) bean.getObject();\n return null;\n }", "public IProgramElement findElementForType(String packageName, String typeName) {\n\n\t\tsynchronized (this) {\n\t\t\t// Build a cache key and check the cache\n\t\t\tStringBuilder keyb = (packageName == null) ? new StringBuilder() : new StringBuilder(packageName);\n\t\t\tkeyb.append(\".\").append(typeName);\n\t\t\tString key = keyb.toString();\n\t\t\tIProgramElement cachedValue = typeMap.get(key);\n\t\t\tif (cachedValue != null) {\n\t\t\t\treturn cachedValue;\n\t\t\t}\n\n\t\t\tList<IProgramElement> packageNodes = findMatchingPackages(packageName);\n\n\t\t\tfor (IProgramElement pkg : packageNodes) {\n\t\t\t\t// this searches each file for a class\n\t\t\t\tfor (IProgramElement fileNode : pkg.getChildren()) {\n\t\t\t\t\tIProgramElement cNode = findClassInNodes(fileNode.getChildren(), typeName, typeName);\n\t\t\t\t\tif (cNode != null) {\n\t\t\t\t\t\ttypeMap.put(key, cNode);\n\t\t\t\t\t\treturn cNode;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\n\t\t// IProgramElement packageNode = null;\n\t\t// if (packageName == null) {\n\t\t// packageNode = root;\n\t\t// } else {\n\t\t// if (root == null)\n\t\t// return null;\n\t\t// List kids = root.getChildren();\n\t\t// if (kids == null) {\n\t\t// return null;\n\t\t// }\n\t\t// for (Iterator it = kids.iterator(); it.hasNext() && packageNode == null;) {\n\t\t// IProgramElement node = (IProgramElement) it.next();\n\t\t// if (packageName.equals(node.getName())) {\n\t\t// packageNode = node;\n\t\t// }\n\t\t// }\n\t\t// if (packageNode == null) {\n\t\t// return null;\n\t\t// }\n\t\t// }\n\n\t\t// // this searches each file for a class\n\t\t// for (Iterator it = packageNode.getChildren().iterator(); it.hasNext();) {\n\t\t// IProgramElement fileNode = (IProgramElement) it.next();\n\t\t// IProgramElement cNode = findClassInNodes(fileNode.getChildren(), typeName, typeName);\n\t\t// if (cNode != null) {\n\t\t// typeMap.put(key, cNode);\n\t\t// return cNode;\n\t\t// }\n\t\t// }\n\t\t// return null;\n\t}", "NodeInformationProvider getNodeInformationProvider();", "@Override\r\n\tpublic Provider findProvider(Long providerId) {\n\t\treturn providerRepository.findOne(providerId);\r\n\t}", "public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }", "Object getComponent(WebElement element);", "Provider createProvider();", "public static Executor getExecutor(EvaluatorComponent component) {\n\t\tEvaluatorData data = component.getData();\n\t\tString language = data.getLanguage();\n\t\tExecutor executor = null;\n\t\t// cache here if necessary\n\t\tfor (EvaluatorProvider provider : registry) {\n\t\t\tif (provider.getLanguage().equals(language)) {\n\t\t\t\texecutor = provider.compile(data.getCode());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn executor;\n\t}", "IClassBuilder getParent();", "private Node<TokenAttributes> findFirst(Node<TokenAttributes> current_node) {\n if (current_node.getParent() != null && current_node.getParent().getChildren().size() == 1) {\n return findFirst(current_node.getParent());\n }\n if (current_node.getParent() == null) {\n return current_node;\n }\n return current_node;\n }", "public IPSComponent peekParent();", "protected View getCompartmentView() {\n\t\tView view = (View) getDecoratorTarget().getAdapter(View.class);\r\n\t\tIterator it = view.getPersistedChildren().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tView child = (View) it.next();\r\n\t\t\tif (child.getType().equals(DeployCoreConstants.HYBRIDLIST_SEMANTICHINT)) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ComponentProvider showProvider(Tool tool, String name) {\n\t\tComponentProvider provider = tool.getComponentProvider(name);\n\t\ttool.showComponentProvider(provider, true);\n\t\treturn provider;\n\t}", "@Override\n public Object getFieldByProvider(String provider, String key) {\n PeopleDataProvider[] dataProviders = (PeopleDataProvider[])getService().getResourceDataProviders();\n for(int i=0; i<dataProviders.length; i++) {\n PeopleDataProvider pd = dataProviders[i];\n if(StringUtil.equals(pd.getName(),provider)) {\n if(pd instanceof AbstractPeopleDataProvider) {\n Object value = ((AbstractPeopleDataProvider)pd).getValue(this, key);\n return value;\n }\n }\n }\n return null; \n }", "boolean hasComponent(Class<? extends Component> componentClass);", "private static Node getFirstExtensionNodeFromWorkingSet(Node extensionsNode, String workingSetName) {\n\t\tfinal String extensionTag = EXT_NAME;\n\t\tfinal String commentTag = \"#comment\";\n\t\tNode child;\n\t\tNodeList nodes = extensionsNode.getChildNodes();\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tchild = nodes.item(i);\n\t\t\tif (commentTag.equals(child.getNodeName()) && workingSetName.equals(child.getNodeValue()))\n\t\t\t\tfor (int j = i; j < nodes.getLength(); j++) {\n\t\t\t\t\tchild = nodes.item(j);\n\t\t\t\t\tif (extensionTag.equals(child.getNodeName()))\n\t\t\t\t\t\treturn child;\n\t\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "<T> T resolve(Class<T> type);" ]
[ "0.55078375", "0.5501486", "0.5484058", "0.5461959", "0.5346745", "0.52717006", "0.52662456", "0.52460915", "0.5232855", "0.5195451", "0.5174138", "0.51422024", "0.5113151", "0.5104527", "0.50579286", "0.50377506", "0.5027439", "0.50168973", "0.500804", "0.5001382", "0.49808848", "0.49677393", "0.49381924", "0.48979643", "0.4872542", "0.4850141", "0.48307067", "0.47945428", "0.4766691", "0.47640252", "0.474594", "0.47213694", "0.47080052", "0.47011653", "0.4699577", "0.46958014", "0.4685383", "0.4684687", "0.46524414", "0.4633305", "0.46271545", "0.4615406", "0.46107903", "0.45823973", "0.456656", "0.4555297", "0.45540443", "0.45357025", "0.4529467", "0.4527164", "0.4517827", "0.44959423", "0.4495507", "0.4495306", "0.44877443", "0.44871426", "0.4478747", "0.4466725", "0.44628516", "0.44323698", "0.44316489", "0.44248798", "0.44180992", "0.44093844", "0.4401844", "0.43957698", "0.43876213", "0.4383596", "0.43831214", "0.43767467", "0.4368908", "0.43621054", "0.4354713", "0.43480217", "0.43448934", "0.43440515", "0.4343849", "0.4343154", "0.43426764", "0.4342354", "0.43335357", "0.43319952", "0.43299627", "0.43265128", "0.43257746", "0.43128043", "0.43074468", "0.42988807", "0.4285768", "0.42781204", "0.4269457", "0.42681524", "0.42676812", "0.42672065", "0.42640248", "0.4261191", "0.42607638", "0.42583472", "0.42555282", "0.42505708" ]
0.8189384
0
Finds the button with the indicated TEXT that is a subcomponent of the indicated container, and then programmatically presses the button. The following is a sample JUnit test use: env.showTool(); OptionDialog dialog = (OptionDialog)env.waitForDialog(OptionDialog.class, 1000); assertNotNull(dialog); pressButtonByText(dialog, "OK");
public static void pressButtonByText(DialogComponentProvider provider, String buttonText) { pressButtonByText(provider.getComponent(), buttonText, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void pressButtonByText(DialogComponentProvider provider, String buttonText,\n\t\t\tboolean waitForCompletion) {\n\t\tpressButtonByText(provider.getComponent(), buttonText, waitForCompletion);\n\t}", "private void handleSearchButtonSelected() {\n\t\tShell shell = getShell();\n\t\tIProject project = getProject(editorLocal.getProjectName());\n\t\tIJavaProject javaProject = JavaCore.create(project);\n\t\tIType[] types = new IType[0];\n\t\tboolean[] radioSetting = new boolean[2];\n\t\ttry {\n\t\t\t// fix for Eclipse bug 66922 Wrong radio behaviour when switching\n\t\t\t// remember the selected radio button\n\t\t\tradioSetting[0] = mTestRadioButton.getSelection();\n\t\t\tradioSetting[1] = mTestContainerRadioButton.getSelection();\n\t\t\ttypes = TestSearchEngine.findTests(getLaunchConfigurationDialog(), javaProject, getTestKind());\n\t\t} catch (InterruptedException e) {\n\t\t\tsetErrorMessage(e.getMessage());\n\t\t\treturn;\n\t\t} catch (InvocationTargetException e) {\n\t\t\tLOG.error(\"Error finding test types\", e);\n\t\t\treturn;\n\t\t} finally {\n\t\t\tmTestRadioButton.setSelection(radioSetting[0]);\n\t\t\tmTestContainerRadioButton.setSelection(radioSetting[1]);\n\t\t}\n\t\tSelectionDialog dialog = new TestSelectionDialog(shell, types);\n\t\tdialog.setTitle(JUnitMessages.JUnitLaunchConfigurationTab_testdialog_title);\n\t\tdialog.setMessage(JUnitMessages.JUnitLaunchConfigurationTab_testdialog_message);\n\t\tif (dialog.open() == Window.CANCEL) {\n\t\t\treturn;\n\t\t}\n\t\tObject[] results = dialog.getResult();\n\t\tif ((results == null) || (results.length < 1)) {\n\t\t\treturn;\n\t\t}\n\t\tIType type = (IType) results[0];\n\t\tif (type != null) {\n\t\t\tmTestText.setText(type.getFullyQualifiedName('.'));\n\t\t}\n\t}", "public void clickOnSearchButton() {\n elementControl.clickElement(searchButton);\n }", "@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }", "public void clickSearchButton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- SearchButton should be clicked\");\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"BybtnSearch\"));\r\n\t\t\tclick(locator_split(\"BybtnSearch\"));\r\n\t\t\twaitForPageToLoad(100);\r\n\t\t\tSystem.out.println(\"SearchButton is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- SearchButton is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- SearchButton is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"BybtnSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "public void clickSubmitInkAndTonnerSearchButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Ink and Tonner Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnInkSeacrh\"));\r\n\t\t\tclick(locator_split(\"btnInkSeacrh\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Ink and Tonner Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Ink and Tonner Search icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Ink and Tonner Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnInkSeacrh\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void clickSubmitSearchButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnSearchSubmit\"));\r\n\t\t\tclick(locator_split(\"btnSearchSubmit\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Sarch icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnSearchSubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "@Test\n public void test_call_Ambulance_Button_launches_Dialog() {\n onView(withText(\"I understand\")).perform(click());\n //Find the views and perform the action\n onView(withId(R.id.redFlag_call_ambulance)).perform(click());\n //Check if action returns desired outcome\n onView(withText(\"CALL AMBULANCE?\")).check(matches(isDisplayed()));\n\n }", "@Override\r\n\r\n\tpublic void doAction(Object object, Object param, Object extParam,Object... args) {\n\t\tString match = \"\";\r\n\t\tString ks = \"\";\r\n\t\tint time = 3000; // Default wait 3 secs before and after the dialog shows.\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t\tIWindow activeWindow = RationalTestScript.getScreen().getActiveWindow();\r\n\t\t\t// ITopWindow activeWindow = (ITopWindow)AutoObjectFactory.getHtmlDialog(\"ITopWindow\");\r\n\t\t\tif ( activeWindow != null ) {\r\n\t\t\t\tif ( activeWindow.getWindowClassName().equals(\"#32770\") ) {\r\n\t\t\t\t\tactiveWindow.inputKeys(param.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t/*int hwnd = Win32IEHelper.getDialogTop();\r\n\t\t\tTopLevelTestObject too = null;\r\n\t\t\tTestObject[] foundTOs = RationalTestScript.find(RationalTestScript.atChild(\".hwnd\", (long)hwnd, \".domain\", \"Win\"));\r\n\t\t\tif ( foundTOs!=null ) {\r\n\t\t\t\t// Maximize it\r\n\t\t\t\tif ( foundTOs[0]!=null) {\r\n\t\t\t\t\ttoo = new TopLevelTestObject(foundTOs[0]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (too!=null) {\r\n\t\t\t\ttoo.inputKeys(param.toString());\r\n\t\t\t}*/\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (NullPointerException e ) {\t\t\t\r\n\t\t} catch (ClassCastException e) {\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"Error finding the HTML dialog.\");\r\n\t\t}\r\n\t}", "public void actionButton(String text);", "public void ClickShowMoreOptions(){ \r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Show More Option Button should be clicked\");\r\n\t\ttry{ \r\n\t\t\tclick(locator_split(\"btnShowMoreOptions\")); \r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Show More Option Button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Show More Option Button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnShowMoreOptions\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n\tpublic void testClickOnOkayButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getOkayButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}", "@DisplayName(\"Teste ao vivo\")\n @Test\n void execute() throws Exception {\n driver.manage().timeouts().implicitlyWait(15000, TimeUnit.MILLISECONDS);\n By by;\n boolean booleanResult;\n\n // 1. Navigate to '{{ApplicationURL}}'\n // Navigates the specified URL (Auto-generated)\n driver.navigate().to(ApplicationURL);\n\n // 2. Click 'q1'\n by = By.cssSelector(\"#search\");\n driver.findElement(by).click();\n\n // 3. Type 'Ração' in 'q1'\n by = By.cssSelector(\"#search\");\n driver.findElement(by).sendKeys(\"Ração\");\n\n // 4. Click '1'\n by = By.xpath(\"//button[. = '\\n\t\t\t\t\t\t\t\\n\t\t\t\t\t\t']\");\n driver.findElement(by).click();\n\n // 5. Click 'Ra&ccedil;&atilde;o Royal Canin Maxi ...'\n by = By.xpath(\"//h3[. = 'Ração Royal Canin Maxi - Cães Adultos - 15kg']\");\n driver.findElement(by).click();\n\n // 6. Click 'Adicionar ao carrinho1'\n by = By.cssSelector(\"#adicionarAoCarrinho\");\n driver.findElement(by).click();\n\n // 7. Click 'SPAN'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 8. Click 'SPAN1'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 9. Click 'SPAN'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 10. Click 'insira seu cupom/vale'\n by = By.cssSelector(\"#botaoCupom\");\n driver.findElement(by).click();\n\n // 11. Click 'cupomDesconto'\n by = By.cssSelector(\"#cupomDesconto\");\n driver.findElement(by).click();\n\n // 12. Type '1212' in 'cupomDesconto'\n by = By.cssSelector(\"#cupomDesconto\");\n driver.findElement(by).sendKeys(\"1212\");\n\n // 13. Click 'Aplicar'\n by = By.cssSelector(\"#aplicaCupom\");\n driver.findElement(by).click();\n\n // 14. Click 'Entendi'\n by = By.xpath(\"//a[. = 'Entendi']\");\n driver.findElement(by).click();\n\n }", "public void clickOnText(String text);", "public void clickOnAddVehicleButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary\"), SHORTWAIT);\r\n\t}", "public void ClickChecoutSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutregistrationsubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutregistrationsubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@Test\n public void keywordSelectTest() {\n\n onView(withId(R.id.fab)).perform(click());\n\n try{\n Thread.sleep(2000);\n } catch(Exception e) {\n\n }\n\n onView(withText(\"Cat\")).check(matches(isDisplayed()));\n onView(withText(\"Dog\")).check(matches(isDisplayed()));\n\n DataInteraction constraintLayout = onData(anything())\n .inAdapterView(allOf(withId(R.id.keyword_list_view),\n childAtPosition(\n withClassName(is(\"android.support.constraint.ConstraintLayout\")),\n 0)))\n .atPosition(1);\n\n constraintLayout.perform(click());\n\n try{\n Thread.sleep(2000);\n } catch(Exception e) {\n\n }\n\n onView(allOf(withText(\"Dog\"), withId(R.id.test_result_view))).check(matches(isDisplayed()));\n\n }", "@And (\"^I click on \\\"([^\\\"]*)\\\"$\")\n\tpublic void click_on(String object){\n\t\tString result = selenium.clickButton(object);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}", "public void ClickMyAccountSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountSubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountSubmit\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "protected abstract void pressedOKButton( );", "public void selectItemInDropdown(By parentBy, By childBy, String expectedTextItem) {\n\t\texplicitWait.until(ExpectedConditions.elementToBeClickable(parentBy)).click();\n\n\t\t// 2 - Wait all elements which loading(in HTML page/DOM)\n\t\t// presence\n\t\texplicitWait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(childBy));\n\n\t\t// Store all elements\n\t\tList<WebElement> allItems = driver.findElements(childBy);\n\n\t\tfor (WebElement item : allItems) {\n\t\t\tif (item.getText().trim().equals(expectedTextItem)) {\n\t\t\t\tif (item.isDisplayed()) { // 3 - If item need to select in view ( can see) => click\n\t\t\t\t\titem.click();\n\t\t\t\t} else { // 4 - If item need to select (can't see) => scroll down => click\n\t\t\t\t\tjsExecutor.executeScript(\"arguments[0].scrollIntoView(true)\", item);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\t}", "public void clickSearchButton() {\n\t\tsearchButton.click();\n\t}", "private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }", "public void clickOnVINButton() {\n if(VINButton.isDisplayed()) {\n\t\twaitAndClick(VINButton);\n\t }\n }", "@Test\n public void test_rf_continue_button_opens_correct_activity() {\n //Click the positive button in the dialog\n onView(withText(\"I understand\")).perform(click());\n //Find the views and perform action\n onView(withId(R.id.redFlag_continue)).perform(click());\n //Check if action returns desired outcome\n intended(hasComponent(ObservableSignsActivity.class.getName()));\n }", "public void clickOnVSPNButton() {\n if(VSPNButton.isDisplayed()) {\n\t\twaitAndClick(VSPNButton);\n\t}\n }", "public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}", "@Given(\"click menu button {string}\")\n public void clickMenuButton(String string) {\n $(MenuButtons.ProfileMenuButton).click();\n $(MenuButtons.AdminPopupItem).click();\n }", "public void clickFirstQviewbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Qview First Buy button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\t/*List<WebElement> eles=driver.findElements((locator_split(\"btnQview\")));\r\n\t\t\tSystem.out.println(eles.size());\r\n\t\t\teles.get(0).click();*/\r\n\r\n\t\t\tclick(locator_split(\"btnQview\"));\t\t\t\t\r\n\t\t\tSystem.out.println(\"Clicked on the First Buy button\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- First Buy Button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview First Buy button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQview\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public static void clickMenuItem(By byObj, String text) throws IOException\t{\n\t\ttry {\n\t\t\tint n = countNumberOfObjectOnPage(byObj);\n\t\t\tfor (int i=0;i<=n;i++) {\t\n\t\t\t\tif(i==n) {\n\t\t\t\t\tTestNotify.warning(GenLogTC() + \"Cannot find item [\" + text + \"].\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString t=getTextFromAnObjectInTheList(byObj, i); \n\t\t\t\t\tif (t.equals(text))\t{\n\t\t\t\t\t\tWebElement e = driver.findElements(byObj).get(i);\n\t\t\t\t\t\tActions builder = new Actions(driver);\n\t\t\t\t\t\tbuilder.click(e).build().perform();\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tTestNotify.fatal(GenLogTC() + e.getMessage());\n\t\t}\n\t}", "public void ClickQviewAddtoCartbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Qview Add to cart button should be clicked\");\r\n\t\ttry{\r\n\t\t\tclick(locator_split(\"btnQviewAddtoCart\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Qview Add to cart button is clicked\");\r\n\t\t\tSystem.out.println(\"Clicked the Add to Cart in QView\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview Add to cart button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQviewAddtoCart\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}", "public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }", "public void Regcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Regcontinuebutton\"));\r\n\t\t\tclick(locator_split(\"Regcontinuebutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- continue Registartion button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked \"+elementProperties.getProperty(\"Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Regcontinuebutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void clickCookieOKButton(WebDriver driver)\n\t\t {\n\t\t\t \n\t\t\t try\n\t\t\t {\n\t\t\t\tList<WebElement> allbutton = driver.findElements(By.tagName(\"button\"));\n\t\t\t\t\n\t\t\t\tfor(WebElement btn:allbutton)\n\t\t\t\t{\n\t\t\t\t\tString strbtnText = btn.getText();\n\t\t\t\t\tif(strbtnText.equals(\"OK\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbtn.click();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.out.println(\"\");\n\t\t\t }\n\t\t }", "public void clickRegistrationaccounttyperadiobutton(String option){\r\n\r\n\t\tString Acctype = getValue(option);\r\n\t\tString countrygroup_accounttype =\"Spain,France,BernardFrance,BernardBelgium,PresselAustria\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Account type Radio button clicked\");\r\n\t\ttry{\r\n\t\t\tif(!(countrygroup_accounttype).contains(countries.get(countrycount))){\r\n\t\t\t\twaitforElementVisible(locator_split(\"rdbRegistrationAccounttype\"));\r\n\t\t\t\tclickSpecificElementByProperty(locator_split(\"rdbRegistrationAccounttype\"),\"value\",Acctype);\r\n\t\t\t\tSystem.out.println(\"Account type Radio button clicked for \"+Acctype);\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Account type Radio button clicked for \"+Acctype);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Account type Radio button is not applicable to \" + country);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Account type Radio button is not clicked \"+elementProperties.getProperty(\"rdbRegistrationAccounttype\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"rdbRegistrationAccounttype\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}", "public void testSearchButton(){\n solo.clickOnView(solo.getView(R.id.search_instrument_search_button));\n // test if we are in next activity\n solo.assertCurrentActivity(\"should not go to next activity\", SearchInstrumentsActivity.class);\n\n /* search with keywords */\n //write in edit text\n solo.enterText((EditText) solo.getView(R.id.search_instrument_et), \"apple\");\n //click search button\n solo.clickOnView(solo.getView(R.id.search_instrument_search_button));\n // test if we are in next activity\n solo.assertCurrentActivity(\"did not change acitivity\", DisplaySearchResultsActivity.class);\n }", "public void clickYes ();", "@Test\n public void rentClientMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_rental_client\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_name\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"Icon Windsor Rent\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"No\")), 2000);\n device.findObject(By.text(\"No\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_furnishing\")).click();\n device.findObject(By.text(\"Fully-Furnished\")).click();\n clickButton(device);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")\n .childSelector(new UiSelector().index(1))).click();\n device.findObject(By.text(\"2\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"Building Names\")), 2000);\n device.findObject(By.text(\"ADD BUILDING\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Windsor Park\")), 10000);\n device.findObject(By.text(\"Icon Windsor Park\")).click();\n clickButton(device);\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RENTAL CLIENT\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "public void selectItemInEdittableDropdown(By parentBy, By childBy, String expectedTextItem) {\n\t\tdriver.findElement(parentBy).clear();\n\t\tdriver.findElement(parentBy).sendKeys(expectedTextItem);\n\t\tsleepInSecond(1);\n\n\t\t// Store all elements\n\t\tList<WebElement> allItems = driver.findElements(childBy);\n\n\t\tfor (WebElement item : allItems) {\n\t\t\tif (item.getText().trim().equals(expectedTextItem)) {\n\t\t\t\tif (item.isDisplayed()) { // 3 - If item need to select in view ( can see) => click\n\t\t\t\t\titem.click();\n\t\t\t\t} else { // 4 - If item need to select (can't see) => scroll down => click\n\t\t\t\t\tjsExecutor.executeScript(\"arguments[0].scrollIntoView(true)\", item);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}", "public abstract void executeRunButton();", "@Test\n\tpublic void testClickOnCancelButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getCancelButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputNotApplied();\n\t}", "public static void selectOptionAndClickDoneKeyboard(WebElement element, String option)\n\t{\n\t\tif(isIOSDriver())\n\t\t{\n\t\t\telement.click();\n\t\t\twaitForElementToAppearToUse(By.xpath(\"//XCUIElementTypePickerWheel\"), 5).sendKeys(option);\n\t\t\tgetElement(By.xpath(\"//XCUIElementTypeToolbar/XCUIElementTypeButton[@label=\\\"Done\\\"]\")).click();\n\t\t\twait(5).until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(\"//XCUIElementTypePickerWheel\")));\n\t\t}else if(isAndroidDriver())//TODO: added\n\t\t{\n\t\t\t//this is handled in AndroidSCrolling class -- > scrollAndSearchSpinnerVertically method\n\t\t}\n\t}", "public void ClickYes()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Yes\")).click();\n\t}", "public void clickOnVehicleNameDropdownButton() {\r\n\t\tsafeClick(vehicleLinkPath.replace(\"ant-card-head-title\", \"ant-select ant-select-enabled\"), MEDIUMWAIT);\r\n\t}", "private Technique clickButton(TextButton button) {\n\t\tInputEvent event1 = new InputEvent();\n event1.setType(InputEvent.Type.touchDown);\n button.fire(event1);\n InputEvent event2 = new InputEvent();\n event2.setType(InputEvent.Type.touchUp);\n button.fire(event2);\n return selectedTechnique;\n\t}", "public void clickCheckoutButton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- CheckOut button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"btnCheckout\"));\r\n\t\t\tclick(locator_split(\"btnCheckout\")); \r\n\t\t\tsleep(1000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- CheckOut button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- CheckOut button is not clicked \"+elementProperties.getProperty(\"btnCheckout\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnCheckout\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t\tReporter.log(\"Clicked on Checkout button\");\r\n\t}", "public void clickAnywhereInScreenToClosePopup(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Page should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"pageSKU\"));\r\n\t\t\tclick(locator_split(\"pageSKU\")); \r\n\t\t\tsleep(1000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Somewhere in SKU page clicked\");\r\n\t\t\tSystem.out.println(\"SKU page Clicked to close popup\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- SKU page is not clicked \"+elementProperties.getProperty(\"pageSKU\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"pageSKU\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t}", "public void createControl() {\n Button button1 = new Button(getShell(), SWT.PUSH);\n button1.setText(\"PolicyValueSelectionDialog with valid\\n\" +\n \"selection element at construction\");\n\n final PolicyValueSelectionDialog dialog1 =\n new PolicyValueSelectionDialog(button1.getShell(),\n \"myPolicy1\", selectionElement1);\n button1.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n dialog1.open();\n String[] results = (String[]) dialog1.getResult();\n if (results != null) {\n System.out.println(\"You chose:\");\n for (int i = 0; i < results.length; i++) {\n System.out.println(results[i]);\n }\n } else {\n System.out.println(\"You chose nothing\");\n }\n }\n });\n dialog1.setInitialSelections(new String[]{\"choice7\", \"choice3\"});\n\n Button button2 = new Button(getShell(), SWT.PUSH);\n button2.setText(\"PolicyValueSelectionDialog with invalid\\n\" +\n \"selection element at construction\");\n\n final PolicyValueSelectionDialog dialog2 =\n new PolicyValueSelectionDialog(button1.getShell(),\n \"myPolicy2\", selectionElement2);\n button2.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n dialog2.open();\n String[] results = (String[]) dialog2.getResult();\n if (results != null) {\n System.out.println(\"You chose:\");\n for (int i = 0; i < results.length; i++) {\n System.out.println(results[i]);\n }\n } else {\n System.out.println(\"You chose nothing\");\n }\n }\n });\n\n\n }", "public static void asyncClick( final SWTWorkbenchBot bot, final SWTBotButton button, final ICondition waitCondition )\n throws TimeoutException\n {\n bot.waitUntil( new DefaultCondition()\n {\n public boolean test() throws Exception\n {\n return button.isEnabled();\n }\n\n\n public String getFailureMessage()\n {\n return \"Button isn't enabled.\";\n }\n } );\n\n UIThreadRunnable.asyncExec( bot.getDisplay(), new VoidResult()\n {\n public void run()\n {\n button.click();\n }\n } );\n\n if ( waitCondition != null )\n {\n bot.waitUntil( waitCondition );\n }\n }", "public void clickSearch() {\n\t\twaitForDocumentReady(5);\n\t\tlog.debug(\"Clicking on search button\");\n\t\tclickOn(search_button, 20);\n\t\tlog.info(\"Clicked on search button\");\n\t\tlogger.log(Status.INFO, \"Search for cruise completed\");\n\t\t\n\t}", "@Test\n public void ShowMoreIncomeButton() {\n onView(withId(R.id.showMoreIncome)).check(matches(isDisplayed())); // Find button\n onView(withId(R.id.showMoreIncome)).check(matches(isClickable())); // Check if clickable\n onView(withId(R.id.showMoreIncome)).perform(click()); // Perform click\n intended(hasComponent(showMoreIncome.class.getName())); // Opens more income page\n }", "public String verifyButtonText(String object, String data) {\n\t\tlogger.debug(\"Verifying the button text\");\n\t\ttry {\n\n\t\t\tString actual = wait.until(explicitWaitForElement((By.xpath(OR.getProperty(object))))).getText();\n\t\t\tString expected = data.trim();\n\t\t\tif (actual.equals(expected))\n\t\t\t\treturn Constants.KEYWORD_PASS;\n\t\t\telse\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" -- Button text not verified \" + actual + \" -- \" + expected;\n\t\t} \n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"TimeoutCause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn Constants.KEYWORD_FAIL + \" Object not found \" + e.getMessage();\n\t\t\t\t\t}\n\n\t}", "@When(\"^I click on Book button$\")\n\tpublic void i_click_on_Book_button() throws Throwable {\n\t\tfs.selectBookOption();\n\t}", "@Override\r\n public void onClick(final DialogInterface dialog, final int whichButton) {\r\n }", "public void clickApplyButtonInAboutMe() throws UIAutomationException{\t\r\n\t\telementController.requireElementSmart(fileName,\"Apply Button In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Apply Button In About Me\");\r\n\t\tUIActions.click(fileName,\"Apply Button In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Apply Button In About Me\");\r\n\t/*\ttry\r\n\t\t{\r\n\t\t\tThread.sleep(3500);\r\n\t\t}\r\n\t\tcatch(Exception e){}\r\n\t\telementController.requireElementSmart(fileName,\"No Changes Applied Notification\",GlobalVariables.configuration.getAttrSearchList(), \"No Changes Applied Notification\");\r\n\t\tString tabTextInPage=UIActions.getText(fileName,\"No Changes Applied Notification\",GlobalVariables.configuration.getAttrSearchList(), \"No Changes Applied Notification\");\r\n\t\tString tabTextInXML=dataController.getPageDataElements(fileName,\"No Changes Notification Name\" , \"Name\");\r\n\t\tif(!tabTextInPage.contains(tabTextInXML)){\r\n\t\t\tthrow new UIAutomationException( \"'\"+tabTextInXML +\"' not found\");\r\n\t\t}*/\r\n\t\t}", "public void clickloginbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Login Button should be clicked\");\r\n\t\ttry{\r\n\t\t\tclick(locator_split(\"btnLogin\"));\r\n\t\t\tsleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Login Button is clicked\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Login button is not clicked with WebElement \"+elementProperties.getProperty(\"btnLogin\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnLogin\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickContinueButtonForUnit() {\r\n\t\twebAppDriver.clickElementByCss(btnContinueButtonStorageUnitCss);\r\n\t\twebAppDriver.verifyPresenceOfTextInDivTagText(\"Your Reservation\");\r\n\t}", "@When(\"User clicks on Find Details button\")\r\n\tpublic void user_clicks_on_find_details_button() \r\n\t{\n\t driver.findElement(By.xpath(\"//input[@type='submit']\")).click();\r\n\t}", "protected GuiTestObject okbutton(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"), anchor, flags);\n\t}", "public void ClickMyAccountContinueShopping(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account Registration continue shopping should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountContinueShopping\"));\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tSystem.out.println(\"My Account Registration continue shopping is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration continue shopping is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration continue shopping is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountContinueShopping\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "private static By bButton(String sBy) {\n String sBy1 = sBy.toLowerCase().trim();\n String sBy2 = \"Continue\";\n switch(sBy1){\n case \"continue\": sBy2 = \"Continue\";\n break;\n case \"complete\": sBy2 = \"Complete\";\n break;\n case \"mvp plans\": sBy2 = \"MVP Plans\";\n break;\n case \"vip report\": sBy2 = \"VIP Report\";\n break;\n }\n String locator = \"//button[text()='\"+sBy2+\"']\";\n return By.xpath(locator) ;\n }", "@Test\n public void resaleClientMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_client\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_name\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"Icon Windsor Resale\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"2 BHK\")).click();\n clickButton(device);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")\n .childSelector(new UiSelector().index(1))).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"Min Carpet Area\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"880\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Mid\")).click();\n clickButton(device);\n device.wait(Until.findObject(By.text(\"Min Parking\")), 2000);\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(By.text(\"ADD BUILDING\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Windsor Apartments\")), 10000);\n device.findObject(By.text(\"Icon Windsor Apartments\")).click();\n clickButton(device);\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE CLIENT\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "public void clickOnCreateButton() {\n\t\twaitForElement(createButton);\n\t\tclickOn(createButton);\n\t}", "public void testRun() {\n\t\tsolo.waitForActivity(\"StartActivity\", 2000);\n //Wait for activity: 'com.bitdubai.android_core.app.DesktopActivity'\n\t\tassertTrue(\"DesktopActivity is not found!\", solo.waitForActivity(\"DesktopActivity\"));\n //Set default small timeout to 66809 milliseconds\n\t\tTimeout.setSmallTimeout(66809);\n //Click on Next\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Click on Next\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Click on Next\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Click on Next\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Click on Got it\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Wait for activity: 'com.bitdubai.android_core.app.DesktopActivity'\n\t\tassertTrue(\"DesktopActivity is not found!\", solo.waitForActivity(\"DesktopActivity\"));\n //Click on ImageView\n\t\tsolo.clickOnView(solo.getView(\"image_view\", 26));\n //Wait for activity: 'com.bitdubai.android_core.app.DesktopActivity'\n\t\tassertTrue(\"DesktopActivity is not found!\", solo.waitForActivity(\"DesktopActivity\"));\n //Click on LinearLayout\n\t\tsolo.clickInRecyclerView(3, 0);\n //Wait for activity: 'com.bitdubai.android_core.app.AppActivity'\n\t\tassertTrue(\"AppActivity is not found!\", solo.waitForActivity(\"AppActivity\"));\n //Wait for dialog\n //Click on Be John Doe\n\t\ttry {\n\t\t\t//assertTrue(\"DesktopActivity is not found!\", solo.waitForDialogToOpen(5000));\n\t\t\tsolo.clickOnView(solo.getView(\"btn_left\"));\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tsolo.wait(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Click on ImageView\n\t\tsolo.clickOnView(solo.getView(android.widget.ImageButton.class, 0));\n\t}", "@Test\n\t@TestProperties(name = \"Click element ${by}:${locator}\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void clickElement() {\n\t\tfindElement(by, locator).click();\n\t}", "@Test\n\tpublic void addButtonsTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showcover &&\n\t\t\t\tConfiguration.reorderplaylist && \n\t\t\t\t!Configuration.queuetrack \n\t\t\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\tgui.addButtons();\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\tJButton button =null;\n\t\t\tJButton button2 =null;\n\t\t\t\n\t\t\tfor (int i = 0; i < g.getContentPane().getComponentCount(); i++) {\n\t\t\t\tif(g.getContentPane().getComponent(i).getName()!= null && g.getContentPane().getComponent(i).getName().equals(\"trackUp\")) {\n\t\t\t\t\tbutton = (JButton) g.getContentPane().getComponent(i);\n\t\t\t\t}\n\t\t\t\telse if(g.getContentPane().getComponent(i).getName()!= null && g.getContentPane().getComponent(i).getName().equals(\"trackDown\")) {\n\t\t\t\t\tbutton2 = (JButton) g.getContentPane().getComponent(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tassertTrue(button.getBounds().getX() == 506);\n\t\t\tassertTrue(button.getBounds().getY() == 327);\n\t\t\tassertTrue(button.getBounds().getWidth() == 120);\n\t\t\tassertTrue(button.getBounds().getHeight() == 25);\n\t\t\tassertTrue(button.getActionListeners()!= null);\n\t\t\t\n\t\t\tassertTrue(button2.getBounds().getX() == 506);\n\t\t\tassertTrue(button2.getBounds().getY() == 360);\n\t\t\tassertTrue(button2.getBounds().getWidth() == 120);\n\t\t\tassertTrue(button2.getBounds().getHeight() == 25);\n\t\t\tassertTrue(button2.getActionListeners()!= null);\n\t\t}\n\t}", "public void clickOnAddVehicleGroupButton() {\r\n\t\tsafeClick(addVehicleGroupButton, SHORTWAIT); // span[text()=' Add Vehicle Group']\r\n\t}", "public void Click_Done()\r\n\t{\r\n\t\tExplicitWait(Specialdone);\r\n\t\tif (Specialdone.isDisplayed()) \r\n\t\t{\r\n\t\t\tJavascriptexecutor(Specialdone);\r\n\t\t\tExplicitWait(Checkavailability);\r\n\t\t\t//System.out.println(\"Clicked on Special Rate plan done button \");\r\n\t\t\tlogger.info(\"Clicked on Special Rate plan done button\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Special Rate plan done button\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Special Rate plan done button not found\");\r\n\t\t\tlogger.error(\"Special Rate plan done button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Special Rate plan done button not found\");\r\n\r\n\t\t}\r\n\t}", "public static void clickButton(String objXPath, String objectName) throws InterruptedException\n\t{\n\t\tif(driver.findElement(By.xpath(objXPath)).isDisplayed())\n\t\t{\n\t\t\tdriver.findElement(By.xpath(objXPath)).click();\n\t\t\tSystem.out.println(\"Pass: \"+objectName+\" button clicked\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Fail: \"+objectName+\" button does not exist, please check the application\");\n\t\t}\n\t}", "public String clickButton(String object, String data) {\n\t\tlogger.debug(\"Clicking on Button\");\n\t\tWebElement ele=null;\n\t\ttry {\n\t\t\t//System.out.println(\"inside clickbutton---\"); \n\t\t\t//waitForPageLoad(driver);\n\t\t\t//System.out.println(\"inside clickbutton---\");\n\t\t\tele =wait.until(explicitWaitForElement((By.xpath(OR.getProperty(object)))));\n\t\t\t\t ele.click();\n\t\t\t\t// browserSpecificPause(object, data);\n\t\t\t}\n\t\t\n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch(WebDriverException ex){\n\t\t\t\ttry{\n\t\t\t\t\tString exceptionMessage=ex.getMessage();\n\t\t\t\t\t\tif(exceptionMessage.contains(\"Element is not clickable at point\"))\n\t\t\t\t\t\t{\n\t\t\t\t\tif(new ApplicationSpecificKeywordEventsUtil().clickJs(ele).equals(Constants.KEYWORD_PASS))\n\t\t\t\t\t\t\t\treturn Constants.KEYWORD_PASS;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\treturn Constants.KEYWORD_FAIL;\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t\treturn Constants.KEYWORD_FAIL+\"not able to Click\"+ex.getMessage();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\treturn Constants.KEYWORD_FAIL+e.getMessage();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t} \n\t\tcatch (Exception e) {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to click on Button\" + e.getMessage();\n\t\t}\n\t\treturn Constants.KEYWORD_PASS;\n\t}", "public void clickOnSuccessOkBtn() throws Exception {\r\n\t\r\n\t\t\tclickOnButton(btnOKSuccess);\r\n\t\t\tlog(\"clicked on OK button and object is:-\" + btnOKSuccess.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t}", "void clickSomewhereElse();", "protected void buttonPressed(\r\n\t\tint buttonId)\r\n\t{\r\n\t\tvalue = text.getText();\r\n\t\tif ( value != null && value.length() > 10 ) {\r\n\t\t\tint ret = FAILED;\r\n\t\t\tif ( buttonId == IDialogConstants.OK_ID ) {\r\n\t\t\t\tret = PASSED;\r\n\t\t\t} else if ( buttonId == IDialogConstants.CLOSE_ID ) {\r\n\t\t\t\tret = BLOCKED;\r\n\t\t\t}\r\n\t\t\tsetReturnCode(ret);\r\n\t\t\tclose();\r\n\t\t}\r\n\t}", "@Test\n public void autoCom(){\n onView(withId(R.id.autoCompleteTextView))\n .perform(typeText(\"So\"), closeSoftKeyboard());\n\n\n onView(withText(\"Southern Ocean\"))\n .inRoot(withDecorView(not(is(mActivity.getWindow().getDecorView()))))\n .check(matches(isDisplayed()));\n\n onView(withText(\"South China Sea\"))\n .inRoot(withDecorView(not(is(mActivity.getWindow().getDecorView()))))\n .check(matches(isDisplayed()));\n }", "public void usrOptionBtn() {\n\t\tpause(2000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"userOptBtn\")));\n\t\ttemp.click();\n\t}", "private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }", "@Test\n\tpublic void testPushButton(){\n\t\tbox.pushButton(setMrMe);\n\t\tassertEquals(1, setMrMe.size());\n\t}", "@Test\n public void EmplicitWaitTest() {\n\n Driver.getDriver().get(\"https://the-internet.herokuapp.com/dynamic_controls\");\n\n //click on enable\n Driver.getDriver().findElement(By.xpath(\"//form[@id='input-example']//button\")).click();\n\n\n // this is a class used to emplicit wait\n WebDriverWait wait = new WebDriverWait(Driver.getDriver(), 10);//creating object\n //this is when wait happens\n // we are waiting for certain element this xpath is clicable\n wait.until(//waiting\n ExpectedConditions.elementToBeClickable(//to click\n By.xpath(\"//input[@type='text']\")));//clicking by the xpath\n\n\n\n //eneter text\n\n Driver.getDriver().findElement(By.xpath(\"//input[@type='text']\")).sendKeys(\"Hello World\");\n\n\n }", "public void setSearchButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_searchButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_searchButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_searchButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setSearchButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void checkoutcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked in popu page\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"checkoutregistrationcontinue\"));\r\n\t\t\tclick(locator_split(\"checkoutregistrationcontinue\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- ccontinue Registartion button clicked in popu page\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked in popu page\"+elementProperties.getProperty(\"_Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutregistrationcontinue\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void ClickChecoutInsertBillingInfobutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout InsertBillingInfo submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutInsertBillingInfo\"));\r\n\t\t\tSystem.out.println(\"Checkout InsertBillingInfo submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout InsertBillingInfo submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout InsertBillingInfo submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutInsertBillingInfo\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void clickSalvar (){driver.findElement(botaoSalvar).click();}", "public abstract void executeBagButton();", "public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}", "protected void okPressed() {\r\n \t\tArrayList resources= new ArrayList(10);\r\n \t\tfindCheckedResources(resources, (IContainer)fTree.getInput());\r\n \t\tif (fWorkingSet == null)\r\n \t\t\tfWorkingSet= new WorkingSet(getText().getText(), resources.toArray());\r\n \t\telse if (fWorkingSet instanceof WorkingSet) {\r\n \t\t\t// Add not accessible resources\r\n \t\t\tIResource[] oldResources= fWorkingSet.getResources();\r\n \t\t\tfor (int i= 0; i < oldResources.length; i++)\r\n \t\t\t\tif (!oldResources[i].isAccessible())\r\n \t\t\t\t\tresources.add(oldResources[i]);\r\n \r\n \t\t\t((WorkingSet)fWorkingSet).setName(getText().getText());\r\n \t\t\t((WorkingSet)fWorkingSet).setResources(resources.toArray());\r\n \t\t}\r\n \t\tsuper.okPressed();\r\n \t}", "public static void goTo() {\n\tBrowser.instance.findElement(maintenanceMenu).click();\r\n\tWebElement element = Browser.instance.findElement(By.linkText(\"Tender and Bag Maintenance\"));\r\n Actions action = new Actions(Browser.instance);\r\n action.moveToElement(element).build().perform(); \r\n Browser.instance.findElement(By.linkText(\"Bag Types\")).click();\r\n // WebDriverWait wait = new WebDriverWait(Browser.instance,10);\r\n WebDriverWait wait = new WebDriverWait(Browser.instance,10);\r\n\twait.until(ExpectedConditions.elementToBeClickable(editButton));\r\n//\tBrowser.instance.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS);\r\n}", "@When(\"I click on the search button\")\n\tpublic void i_click_on_search_button() {\n\t\tdriver.findElement(By.xpath(searchbtn)).click();\n\t}", "public void ButtonStatusToOneWay() throws InterruptedException {\n\n Thread.sleep(10000);\n //action=new Actions(this.driver);\n if (oneWayButton.isSelected()) {\n System.out.println(\"One way Button is already selected\");\n } else {\n wait.until(ExpectedConditions.elementSelectionStateToBe(oneWayButton,false));\n oneWayButton.click();\n System.out.println(\"one way button is clicked\");\n }\n\n\n }", "public void drpdownTeamOwner(WebElement element,String text) throws InterruptedException {\n\t\t\n\t\tSelect oSelect = new Select(element);\n\t\tList <WebElement> elementCount = oSelect.getOptions();\n\t\tThread.sleep(3000);\n\t\tfor(WebElement we:elementCount){\n\t\t\t//System.out.println(we.getText());\n\t\t\tif(we.getText().equalsIgnoreCase(text)) {\n\t\t\t\twe.click();\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private void clickButton(ChooseDifficultyUI testUI, int buttonNumber, String newDifficulty){\n assertNotEquals(newDifficulty, GameData.gameDifficulty);\n //Create a click position at a point within the button's area (in this case, exactly central).\n Vector2 clickPosition = new Vector2(buttonNumber * SCREEN_WIDTH/4, BUTTON_Y + BUTTON_HEIGHT/2);\n testUI.getInput(SCREEN_WIDTH, clickPosition);\n //test that clickPosition is within area\n assertTrue(clickPosition.x < buttonNumber * SCREEN_WIDTH / 4 - BUTTON_WIDTH / 2 + BUTTON_WIDTH);\n assertTrue(clickPosition.x > buttonNumber * SCREEN_WIDTH / 4 - BUTTON_WIDTH / 2);\n assertTrue(clickPosition.y < BUTTON_Y + BUTTON_HEIGHT);\n assertTrue(clickPosition.y > BUTTON_Y);\n //Test that the difficulty has been correctly changed.\n assertEquals(newDifficulty, GameData.gameDifficulty);\n }", "@And (\"^I click \\\"([^\\\"]*)\\\"$\")\n\tpublic void click(String object){\n\t\tString result = selenium.click(object);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}", "public void clickOnGroupNameDropdownButton() {\r\n\t\tsafeClick(vehicleLinkPath.replace(\"ant-card-head-title\", \"ant-select ant-select-enabled\"), MEDIUMWAIT);\r\n\t}", "public void clickOnCancelButtonInMarkAsCompletePopup() {\n getLogger().info(\"Click on cancel button in mark as complete button\");\n try {\n waitForClickableOfElement(eleCancelBtn, \"Wait for click on cancel button\");\n clickElement(eleCancelBtn, \"Click on cancel button\");\n NXGReports.addStep(\"Verify click on cancel button in mark as complete popup successful \", LogAs.PASSED, null);\n } catch (Exception ex) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify click on cancel button in mark as complete popup fail\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "@Test\n public void checkButtonClickToast1() {\n onView(withText(\"Nutella Pie\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "public static void checkAndClickStartButton() {\r\n\t\tcheckElementNotInteractableExceptionByID(\"startB\", \"\\\"Start\\\" button\");\r\n\t}", "private void createButtonComp() {\n GridData gd = new GridData(SWT.CENTER, SWT.DEFAULT, true, false);\n Composite okBtnComp = new Composite(shell, SWT.NONE);\n GridLayout okBtnCompLayout = new GridLayout(2, true);\n okBtnComp.setLayout(okBtnCompLayout);\n okBtnComp.setLayoutData(gd);\n\n GridData bd = new GridData(110, 30);\n okBtn = new Button(okBtnComp, SWT.PUSH);\n okBtn.setText(\"OK\");\n okBtn.setLayoutData(bd);\n okBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n calculateDuration();\n shell.dispose();\n }\n });\n\n bd = new GridData(110, 30);\n cancelBtn = new Button(okBtnComp, SWT.PUSH);\n cancelBtn.setText(\"Close\");\n cancelBtn.setLayoutData(bd);\n cancelBtn.addSelectionListener(new SelectionAdapter() {\n\n /*\n * (non-Javadoc)\n * \n * @see\n * org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse\n * .swt.events.SelectionEvent)\n */\n @Override\n public void widgetSelected(SelectionEvent e) {\n setReturnValue(-1);\n close();\n }\n });\n }" ]
[ "0.6084282", "0.60295045", "0.6027084", "0.5926249", "0.5808261", "0.5723254", "0.57157516", "0.56899047", "0.56623775", "0.56583613", "0.5652666", "0.56427026", "0.5586214", "0.5579828", "0.5535214", "0.5430125", "0.540621", "0.53745115", "0.5355727", "0.53309095", "0.5325048", "0.5302657", "0.52814597", "0.5254333", "0.5248794", "0.5246714", "0.52417296", "0.5229513", "0.5219822", "0.5196969", "0.51785696", "0.51702774", "0.5151639", "0.5151628", "0.5149921", "0.51475745", "0.5139705", "0.51366365", "0.5136125", "0.513198", "0.5121971", "0.5121259", "0.51127726", "0.5094228", "0.50931466", "0.5093051", "0.507045", "0.50634974", "0.5026733", "0.50223523", "0.5017416", "0.5011491", "0.50110716", "0.5006341", "0.50044775", "0.5002693", "0.49826777", "0.4981774", "0.4981732", "0.4978452", "0.49782398", "0.49767634", "0.49743927", "0.49727148", "0.49705395", "0.49694917", "0.4963589", "0.4954121", "0.49457583", "0.49457157", "0.49425623", "0.4940528", "0.4939375", "0.49364665", "0.49268404", "0.49249804", "0.49180862", "0.49067065", "0.49050185", "0.49018225", "0.4901115", "0.48984498", "0.48980153", "0.48944935", "0.48920003", "0.48892194", "0.48788702", "0.48741084", "0.48735735", "0.4872389", "0.48675025", "0.48667303", "0.48598695", "0.48596814", "0.48554486", "0.4844446", "0.48442787", "0.48428378", "0.4838318", "0.48378384" ]
0.5729826
5
Finds the button with the indicated TEXT that is a subcomponent of the indicated container, and then programmatically presses the button.
public static void pressButtonByText(DialogComponentProvider provider, String buttonText, boolean waitForCompletion) { pressButtonByText(provider.getComponent(), buttonText, waitForCompletion); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnSearchButton() {\n elementControl.clickElement(searchButton);\n }", "public void actionButton(String text);", "public void clickOnText(String text);", "public void clickSearchButton() {\n\t\tsearchButton.click();\n\t}", "public void clickSubmitInkAndTonnerSearchButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Ink and Tonner Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnInkSeacrh\"));\r\n\t\t\tclick(locator_split(\"btnInkSeacrh\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Ink and Tonner Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Ink and Tonner Search icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Ink and Tonner Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnInkSeacrh\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void clickSearchButton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- SearchButton should be clicked\");\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"BybtnSearch\"));\r\n\t\t\tclick(locator_split(\"BybtnSearch\"));\r\n\t\t\twaitForPageToLoad(100);\r\n\t\t\tSystem.out.println(\"SearchButton is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- SearchButton is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- SearchButton is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"BybtnSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickOnAddVehicleButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary\"), SHORTWAIT);\r\n\t}", "@And (\"^I click on \\\"([^\\\"]*)\\\"$\")\n\tpublic void click_on(String object){\n\t\tString result = selenium.clickButton(object);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}", "public void clickSubmitSearchButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnSearchSubmit\"));\r\n\t\t\tclick(locator_split(\"btnSearchSubmit\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Sarch icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnSearchSubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "private Technique clickButton(TextButton button) {\n\t\tInputEvent event1 = new InputEvent();\n event1.setType(InputEvent.Type.touchDown);\n button.fire(event1);\n InputEvent event2 = new InputEvent();\n event2.setType(InputEvent.Type.touchUp);\n button.fire(event2);\n return selectedTechnique;\n\t}", "public static void clickButton(String objXPath, String objectName) throws InterruptedException\n\t{\n\t\tif(driver.findElement(By.xpath(objXPath)).isDisplayed())\n\t\t{\n\t\t\tdriver.findElement(By.xpath(objXPath)).click();\n\t\t\tSystem.out.println(\"Pass: \"+objectName+\" button clicked\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Fail: \"+objectName+\" button does not exist, please check the application\");\n\t\t}\n\t}", "@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }", "void clickSomewhereElse();", "private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }", "public void clickSubmitButton(){\n actionsWithOurElements.clickOnElement(buttonSubmit);\n }", "public static View getBtText(LinearLayout debugRootView) {\n if (debugRootView == null) {\n return null;\n }\n for (int i = 0; i < debugRootView.getChildCount(); i++) {\n View childView = debugRootView.getChildAt(i);\n if (childView instanceof Button) {\n if (((Button) childView).getText().toString().equalsIgnoreCase(debugRootView.getContext().getString(R.string.text))) {\n return childView;\n }\n }\n }\n return null;\n }", "public abstract void executeRunButton();", "public static void pressButtonByText(DialogComponentProvider provider, String buttonText) {\n\t\tpressButtonByText(provider.getComponent(), buttonText, true);\n\t}", "public void clickAddButtonInStockTab(){\r\n\t\t\r\n\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-border-layout-ct') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Add..')]\").click();\r\n\t\t\r\n\t\t//McsElement.getElementByAttributeValueAndParentElement(driver, \"div\", \"@class\", \"x-panel-bbar\", \"button\", \"text()\", \"Add...\", true, true).click();\r\n\t\t\r\n\t\tReporter.log(\"Clicked on Add button in Stock Tab\", true);\r\n\t}", "public void mousePressed(MouseEvent e) {\n mDown=true;\n int i=0;\n // Iterate through each button bounding box\n for(Rectangle r : buttonBounds) {\n // Check if the click point intersects with the rectangle's area\n if(r.contains(e.getPoint())) {\n // If it does, call the buttonCallback with the appropriate button display text\n buttonCallback(buttonNames.get(i));\n }\n i++;\n }\n }", "public void clickOnEditButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary.ant-btn-circle\"), SHORTWAIT);\r\n\t}", "protected abstract void pressedOKButton( );", "String handleButtonPress(Button button);", "public void ClickChecoutSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutregistrationsubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutregistrationsubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public void testButtonAndNamingContainerSiblings()\n {\n FacesContext context = FacesContext.getCurrentInstance();\n\n // rootPanel\n // button1\n // table1\n TestUIXPanel button1 = new TestUIXPanel();\n button1.setId(\"commandButton1\");\n TestNamingContainer table1 = new TestNamingContainer();\n table1.setId(\"table1\");\n TestUIXPanel rootPanel = new TestUIXPanel();\n rootPanel.setId(\"rootPanel\");\n \n context.getViewRoot().getChildren().add(rootPanel);\n \n rootPanel.getChildren().add(button1);\n rootPanel.getChildren().add(table1);\n TestUIXPanel tableChild = new TestUIXPanel();\n tableChild.setId(\"tableChildId\");\n table1.getChildren().add(tableChild);\n \n String relativeId =\n RenderUtils.getRelativeId(context, button1, \"table1\");\n assertEquals(\"table1\", relativeId);\n \n relativeId =\n RenderUtils.getRelativeId(context, button1, \":table1\");\n assertEquals(\"table1\", relativeId);\n \n // new way would find nothing, so we'd have to get something logical\n relativeId =\n RenderUtils.getRelativeId(context, table1, \"someRandomId\");\n assertEquals(\"table1_Client:someRandomId\", relativeId);\n \n relativeId =\n RenderUtils.getRelativeId(context, table1, \":commandButton1\");\n assertEquals(\"commandButton1\", relativeId);\n\n // to get to the commandButton from the table, you need to pop out of the\n // table\n relativeId =\n RenderUtils.getRelativeId(context, table1, \"::commandButton1\");\n assertEquals(\"commandButton1\", relativeId);\n \n // backward compatibility test -- this was the old syntax for siblings to the table.\n // this should be found by looking at the nc's parent from findRelativeComponent\n relativeId =\n RenderUtils.getRelativeId(context, table1, \"commandButton1\");\n assertEquals(\"commandButton1\", relativeId);\n \n // backward compatibility test -- this was the old syntax for children to the table.\n relativeId =\n RenderUtils.getRelativeId(context, table1, \"table1:tableChildId\");\n assertEquals(\"table1:tableChildId\", relativeId);\n // this is the new syntax for children to the table\n relativeId =\n RenderUtils.getRelativeId(context, table1, \"tableChildId\");\n assertEquals(\"table1:tableChildId\", relativeId);\n\n }", "public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }", "public abstract boolean onButtonClick(Player player, int button);", "public static void checkAndClickPlayButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\", \"\\\"Play\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\", \"\\\"Play\\\" button\");\r\n\t}", "public void clickFirstQviewbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Qview First Buy button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\t/*List<WebElement> eles=driver.findElements((locator_split(\"btnQview\")));\r\n\t\t\tSystem.out.println(eles.size());\r\n\t\t\teles.get(0).click();*/\r\n\r\n\t\t\tclick(locator_split(\"btnQview\"));\t\t\t\t\r\n\t\t\tSystem.out.println(\"Clicked on the First Buy button\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- First Buy Button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview First Buy button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQview\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void acceptTenderButton() {\n\t\tBy elem = By.cssSelector(\"button\");\n\t\tList<WebElement> elements = driver.findElements(elem);\n\t\t\n\t\tfor (WebElement item : elements) {\n\t\t\tString test = item.getAttribute(\"innerHTML\");\n\t\t\tif (test.contains(\"ACCEPT TENDER\")) {\n\t\t\t\titem.click();\n\t\t\t}\n\t\t}\n\t}", "@And(\"^I click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_click_On_Button(String actkey) throws Throwable {\n\t\tThread.sleep(5000);\r\n\t\t//loginPage.getDriver().findElement(By.xpath(\".//*[contains(@value,'Edit')]\")).click();\r\n\t\tenduser.Qos_screen_edit_and_save(actkey);\r\n\t\t\r\n\t}", "public void ClickMyAccountSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountSubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountSubmit\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void clickOnVINButton() {\n if(VINButton.isDisplayed()) {\n\t\twaitAndClick(VINButton);\n\t }\n }", "@Override\r\n\tpublic void onButtonEvent(GlassUpEvent event, int contentId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private void clickOnBtn(String btnTxt) {\n waitForElementClickable(xpathBtn.replace(\"*btn*\", btnTxt));\n assertAndClick(xpathBtn.replace(\"*btn*\", btnTxt));\n logger.info(\"# Clicked on '\" + btnTxt + \"' button\");\n }", "public abstract void executeBagButton();", "public void clickOnCreateButton() {\n\t\twaitForElement(createButton);\n\t\tclickOn(createButton);\n\t}", "public void buttonClick() {\n\t\tdriver.get(\"https://es.wikipedia.org\");\n\t\tWebElement input = driver.findElement(By.id(\"searchInput\"));\n\t\tinput.sendKeys(\"React\");\n\t\tinput.clear();\n\t\tinput.sendKeys(\"Angular\");\n\t\t\n\t\tWebElement button = driver.findElement(By.id(\"searchButton\"));\n\t\tbutton.click();\n\t}", "private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "public void setHotKeysJButtonGenerico(JButton jButton,JInternalFrameBase jInternalFrameBase,String sNombreHotKeyAbstractAction,String sTipoBusqueda) {\r\n\t\tjButton.addActionListener(new ButtonActionListener(jInternalFrameBase,sNombreHotKeyAbstractAction));\r\n\t}", "void buttonPressed(ButtonType type);", "public void performClick() {\n\t\tgetWrappedElement().click();\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmCustomViewGroup.updateViewLayout(childView,new ViewGroup.LayoutParams(50, 50));\r\n\t\t\t\tcellChildView = new Button(MainActivity.this);\r\n\t\t\t\tcellChildView.setText(\"1111\");\r\n\t\t\t\tCellLayoutParams cellLayoutParams = new CellLayoutParams(0, 0, 100, 100);\r\n\t\t\t\tmCellViewGroup.addView(cellChildView, cellLayoutParams);\r\n\t\t\t}", "public void clickOnDeleteButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-danger.ant-btn-circle\"), MEDIUMWAIT);\r\n\t}", "SubActionButton getSubActionButtonView();", "public String clickButton(String object, String data) {\n\t\tlogger.debug(\"Clicking on Button\");\n\t\tWebElement ele=null;\n\t\ttry {\n\t\t\t//System.out.println(\"inside clickbutton---\"); \n\t\t\t//waitForPageLoad(driver);\n\t\t\t//System.out.println(\"inside clickbutton---\");\n\t\t\tele =wait.until(explicitWaitForElement((By.xpath(OR.getProperty(object)))));\n\t\t\t\t ele.click();\n\t\t\t\t// browserSpecificPause(object, data);\n\t\t\t}\n\t\t\n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch(WebDriverException ex){\n\t\t\t\ttry{\n\t\t\t\t\tString exceptionMessage=ex.getMessage();\n\t\t\t\t\t\tif(exceptionMessage.contains(\"Element is not clickable at point\"))\n\t\t\t\t\t\t{\n\t\t\t\t\tif(new ApplicationSpecificKeywordEventsUtil().clickJs(ele).equals(Constants.KEYWORD_PASS))\n\t\t\t\t\t\t\t\treturn Constants.KEYWORD_PASS;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\treturn Constants.KEYWORD_FAIL;\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t\treturn Constants.KEYWORD_FAIL+\"not able to Click\"+ex.getMessage();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\treturn Constants.KEYWORD_FAIL+e.getMessage();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t} \n\t\tcatch (Exception e) {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to click on Button\" + e.getMessage();\n\t\t}\n\t\treturn Constants.KEYWORD_PASS;\n\t}", "@Test\n public void ShowMoreIncomeButton() {\n onView(withId(R.id.showMoreIncome)).check(matches(isDisplayed())); // Find button\n onView(withId(R.id.showMoreIncome)).check(matches(isClickable())); // Check if clickable\n onView(withId(R.id.showMoreIncome)).perform(click()); // Perform click\n intended(hasComponent(showMoreIncome.class.getName())); // Opens more income page\n }", "public void onClick(View v) \n {\n Button b = (Button) v;\n Toast.makeText(this.mAnchorView.getContext(), b.getText(), Toast.LENGTH_SHORT).show();\n this.dismiss();\n }", "public void clickOnFridge() {\n click(getElementFromList(containerFrigde, 0));\n }", "WebElement getSearchButton();", "void userPressConnectButton();", "public void buttonClicked();", "public static void clickIntertnational() {\n try {\n AppiumDriver<MobileElement> driver = getAppiumDriver();\n waitToElement(\"// android.widget.TextView[@text='International']\");\n MobileElement internationalBTN = driver.findElementByXPath(\"// android.widget.TextView[@text='International']\");\n internationalBTN.click();\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"unable to click International transfer button\" + e.getMessage());\n }\n }", "@Override\n public void onBoomButtonClick(int index) {\n }", "private void findClubEvent () {\n \n findClubEvent (\n findButton.getText(), \n findText.getText().trim(), \n true);\n \n if (findText.getText().trim().length() == 0) {\n findText.grabFocus();\n statusBar.setStatus(\"Enter a search string\");\n }\n }", "public void setSearchButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_searchButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_searchButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_searchButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setSearchButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void clickSearch() {\n\t\twaitForDocumentReady(5);\n\t\tlog.debug(\"Clicking on search button\");\n\t\tclickOn(search_button, 20);\n\t\tlog.info(\"Clicked on search button\");\n\t\tlogger.log(Status.INFO, \"Search for cruise completed\");\n\t\t\n\t}", "private static By bButton(String sBy) {\n String sBy1 = sBy.toLowerCase().trim();\n String sBy2 = \"Continue\";\n switch(sBy1){\n case \"continue\": sBy2 = \"Continue\";\n break;\n case \"complete\": sBy2 = \"Complete\";\n break;\n case \"mvp plans\": sBy2 = \"MVP Plans\";\n break;\n case \"vip report\": sBy2 = \"VIP Report\";\n break;\n }\n String locator = \"//button[text()='\"+sBy2+\"']\";\n return By.xpath(locator) ;\n }", "private void newOrderbutton(String txt) {\n Button btn = new Button(txt);\n newBtnStyle(btn);\n\n boolean containsbtn = false;\n btn.setId(txt);\n for (Node node : activeOrders.getChildren()) {\n String button = ((Button) node).getText();\n if (txt.equals(button))\n containsbtn = true;\n\n }\n if (!containsbtn) {\n activeOrders.getChildren().add(btn);\n\n changeActive(btn);\n } else {\n //Alert clerc about the amount to pay back.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Nyt bord\");\n alert.setHeaderText(\"Bord: \" + txt + \" eksistere allerede\");\n alert.showAndWait();\n }\n }", "@When(\"I click on the search button\")\n\tpublic void i_click_on_search_button() {\n\t\tdriver.findElement(By.xpath(searchbtn)).click();\n\t}", "public void ClickQviewAddtoCartbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Qview Add to cart button should be clicked\");\r\n\t\ttry{\r\n\t\t\tclick(locator_split(\"btnQviewAddtoCart\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Qview Add to cart button is clicked\");\r\n\t\t\tSystem.out.println(\"Clicked the Add to Cart in QView\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview Add to cart button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQviewAddtoCart\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "public void clickCreateButton() {\n this.action.click(this.createButton);\n }", "@Override\n\tpublic void pressed(PushButton button) {\n\t\tvm.getConfigurationPanel().getButton(index);\n\t\t\n\t}", "public void testSearchButton(){\n solo.clickOnView(solo.getView(R.id.search_instrument_search_button));\n // test if we are in next activity\n solo.assertCurrentActivity(\"should not go to next activity\", SearchInstrumentsActivity.class);\n\n /* search with keywords */\n //write in edit text\n solo.enterText((EditText) solo.getView(R.id.search_instrument_et), \"apple\");\n //click search button\n solo.clickOnView(solo.getView(R.id.search_instrument_search_button));\n // test if we are in next activity\n solo.assertCurrentActivity(\"did not change acitivity\", DisplaySearchResultsActivity.class);\n }", "public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}", "public void clickOnElement (By locator){\n appiumDriver.findElement(locator).click();\n }", "public abstract void buttonPressed();", "public final void click() {\n getUnderlyingElement().click();\n }", "public void clickOnAddVehicleGroupButton() {\r\n\t\tsafeClick(addVehicleGroupButton, SHORTWAIT); // span[text()=' Add Vehicle Group']\r\n\t}", "public void clickOnVSPNButton() {\n if(VSPNButton.isDisplayed()) {\n\t\twaitAndClick(VSPNButton);\n\t}\n }", "public void onClick(final View v) {\r\n\t\t\tfinal String theCaption = ((Button)v).getText().toString();\r\n\t\t\tSDStreetNumber.this.handleButtonClickByCaption(theCaption);\r\n\t\t}", "public void clickgoButton(){\n \n \t \n driver.findElement(By.cssSelector(goButton)).click();\n }", "@Override\n public void actionPerformed(final ActionEvent e) {\n for (Map.Entry<FrameContainer<?>, JToggleButton> entry : buttons.entrySet()) {\n if (entry.getValue().equals(e.getSource())) {\n final TextFrame frame = (TextFrame) controller.getSwingWindow(\n entry.getKey());\n if (frame != null && frame.equals(activeWindow)) {\n entry.getValue().setSelected(true);\n }\n entry.getKey().activateFrame();\n }\n }\n }", "@Step\n public void clickRegistrationButton(){\n actionWithWebElements.clickOnElement(registrationButton);\n }", "public static void click(final TestObject testObject, final String tabLabel) throws Exception {\r\n\r\n\t\tfinal Object[] titles = (Object[]) testObject.getProperty(\"titleAt\");\r\n\r\n\t\tint index = -1;\r\n\t\tfor (int cont = 0; cont < titles.length; cont++) {\r\n\t\t\tif (titles[cont].toString().equals(tabLabel)) {\r\n\t\t\t\tindex = cont;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (index == -1) {\r\n\t\t\tthrow new Exception(\"TabbedPaneUI - click: tab label not found.\");\r\n\t\t}\r\n\t\tnew GuiSubitemTestObject(testObject).click(atIndex(index));\r\n\t}", "@Test\n public void keywordSelectTest() {\n\n onView(withId(R.id.fab)).perform(click());\n\n try{\n Thread.sleep(2000);\n } catch(Exception e) {\n\n }\n\n onView(withText(\"Cat\")).check(matches(isDisplayed()));\n onView(withText(\"Dog\")).check(matches(isDisplayed()));\n\n DataInteraction constraintLayout = onData(anything())\n .inAdapterView(allOf(withId(R.id.keyword_list_view),\n childAtPosition(\n withClassName(is(\"android.support.constraint.ConstraintLayout\")),\n 0)))\n .atPosition(1);\n\n constraintLayout.perform(click());\n\n try{\n Thread.sleep(2000);\n } catch(Exception e) {\n\n }\n\n onView(allOf(withText(\"Dog\"), withId(R.id.test_result_view))).check(matches(isDisplayed()));\n\n }", "@Then(\"^click on search button to list the buses$\")\n\tpublic void click_on_search_button_to_list_the_buses() throws Throwable {\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.xpath(\"//button[text()='Search Buses']\")).sendKeys(Keys.ENTER);\n\t\tThread.sleep(7000);\n//\t WebElement click = driver.findElementByXPath(\"//button[text()='Search Buses']\");\n//\t\tActions obj = new Actions(driver);\n//\t\tobj.moveToElement(click).perform();\n\t \n\t\t//closeDriver();\n\t\t//quitDriver();\n\t\t\n\t\t\n\t}", "public static void checkAndClickStartButton() {\r\n\t\tcheckElementNotInteractableExceptionByID(\"startB\", \"\\\"Start\\\" button\");\r\n\t}", "public void clickDeleteButtonInStockTab(){\r\n\t\t\r\n\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-border-layout-ct') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Delete')]\").click();\r\n\t\t//McsElement.getElementByAttributeValueAndParentElement(driver, \"div\", \"@class\", \"x-panel-bbar\", \"button\", \"text()\", \"Delete\", true, true).click();\r\n\t\t\r\n\t\tReporter.log(\"Clicked on Delete button in Stock Tab\", true);\r\n\t}", "public void clickConfirmDeleteButton() {\n // GeneralUtilities.waitSomeSeconds(1);\n // validateElementText(titleConfirmDeleteToDo, \"Delete To-Do?\");\n // validateElementText(titleConfirmDeleteToDoDescription, \"Are you sure you'd like to delete these To-Dos? Once deleted, you will not be able to retrieve any documents uploaded on the comments in the selected To-Dos.\");\n // waitForCssValueChanged(divConfirmDeleteToDo, \"Div Confirm Delete ToDo\", \"display\", \"block\");\n //\n // hoverElement(buttonConfirmDeleteToDo, \"Button Confirm Delete ToDo\");\n waitForAnimation(divConfirmDeleteToDoAnimate, \"Div Confirm Delete ToDo Animation\");\n clickElement(buttonConfirmDeleteToDo, \"Button Confirm Delete ToDo\");\n waitForCssValueChanged(divConfirmDeleteToDo, \"Div Confirm Delete ToDo\", \"display\", \"none\");\n }", "public void clickYes ();", "Button getBtn();", "public void clickEditButton(){\r\n\t\t\r\n\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-tab-panel-noborder') and not(contains(@class,'x-hide-display'))]//button[contains(@class,'icon-ov-edit')]\").click();\r\n\t\t\r\n\t}", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "@Override\n public void onClick(View V){\n int r = 0; int c = 0;\n boolean broke = false;\n //finds the coordinates of the button that was clicked\n for(; r < 4; r++){\n for(c = 0; c < 4; c++){\n if(V.getId() == grid.getIDAt(r, c)) {\n broke = true;\n break;\n }\n }\n if(broke)\n break;\n }\n if(!broke)\n return;\n broke = false;\n int rBlank = 0;\n int cBlank = 0;\n //checks to see if the move is legal, and performs it if it is\n for(; rBlank < 4; rBlank++){\n for(cBlank = 0; cBlank < 4; cBlank++){\n if(grid.getButtonAt(rBlank, cBlank).getText() == \"\") {\n broke = true;\n if((r == rBlank && c == cBlank+1) || (r == rBlank && c == cBlank-1)\n || (r == rBlank+1 && c == cBlank) || (r == rBlank-1 && c == cBlank)){\n CharSequence tmp = grid.getButtonAt(r, c).getText();\n grid.getButtonAt(r, c).setText(grid.getButtonAt(rBlank, cBlank).getText());\n grid.getButtonAt(rBlank, cBlank).setText(tmp);\n }\n break;\n }\n }\n if(broke)\n break;\n }\n solved = grid.checkCorrect(correct);\n }", "@Test\n public void checkButtonClickToast1() {\n onView(withText(\"Nutella Pie\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "public void clickContinueButtonForUnit() {\r\n\t\twebAppDriver.clickElementByCss(btnContinueButtonStorageUnitCss);\r\n\t\twebAppDriver.verifyPresenceOfTextInDivTagText(\"Your Reservation\");\r\n\t}" ]
[ "0.6464412", "0.60690844", "0.6063368", "0.586", "0.5718922", "0.57156205", "0.5714102", "0.57034016", "0.5685538", "0.55871016", "0.5557051", "0.55311704", "0.54929775", "0.54754275", "0.54675114", "0.54604137", "0.5456728", "0.54464746", "0.5433518", "0.542765", "0.5423135", "0.5419327", "0.5418836", "0.54045546", "0.53977966", "0.5369509", "0.53672916", "0.5351775", "0.53457063", "0.5342503", "0.53350085", "0.5316093", "0.53142977", "0.5306074", "0.5303703", "0.5298041", "0.52927905", "0.52896184", "0.528153", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.5277322", "0.52664816", "0.5266198", "0.52569324", "0.52540714", "0.52522886", "0.5248479", "0.5245201", "0.5245098", "0.52429926", "0.52412724", "0.52237654", "0.52230597", "0.5211774", "0.52108955", "0.5210384", "0.5203188", "0.5196511", "0.5191817", "0.5187598", "0.5187496", "0.5184738", "0.5180741", "0.5174374", "0.5173487", "0.5172024", "0.5168717", "0.51584256", "0.5151978", "0.5147798", "0.5145248", "0.5140258", "0.5128746", "0.5128381", "0.5123203", "0.5119133", "0.51137745", "0.5102093", "0.5102045", "0.5098883", "0.5093679", "0.5091528", "0.50907665", "0.5090281", "0.50853425", "0.5084494", "0.50791585", "0.5078678", "0.5070368" ]
0.5218658
64
Checks the selected state of a JToggleButton in a thread safe way.
public static void assertToggleButtonSelected(JToggleButton button, boolean selected) { AtomicBoolean ref = new AtomicBoolean(); runSwing(() -> ref.set(button.isSelected())); Assert.assertEquals("Button not in expected selected state", selected, ref.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "public boolean isSelected() {\n return (state & STATE_SELECTED) != 0;\n }", "public boolean isSelected();", "public boolean isSelected();", "private void checkButton(ActionEvent e) {\n List<PuzzleButton> selectedButtons = buttons.stream()\n .filter(PuzzleButton::isSelectedButton)\n .collect(Collectors.toList());\n PuzzleButton currentButton = (PuzzleButton) e.getSource();// getting current button\n currentButton.setSelectedButton(true);\n int currentButtonIndex = buttons.indexOf(currentButton);\n //if no button are selected, do not update collection of PuzzleButton\n if (selectedButtons.size() == 1) {\n int lastClickedButtonIndex = 0;\n\n for (PuzzleButton button : buttons) {\n if (button.isSelectedButton() && !button.equals(currentButton)) {\n lastClickedButtonIndex = buttons.indexOf(button);\n }\n }\n Collections.swap(buttons, lastClickedButtonIndex, currentButtonIndex);\n updateButtons();\n }\n }", "public abstract boolean isSelected();", "public boolean isSelected_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isSelected()) { return true; } else { return false;} \r\n\t}", "@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }", "public boolean isSelected_click_ActivateCoupon_Button(){\r\n\t\tif(click_ActivateCoupon_Button.isSelected()) { return true; } else { return false;} \r\n\t}", "@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\t\tContainer element = (Container) viewHolder.ckBox.getTag();\n\t\t\t\t\t\telement.setSelected(buttonView.isChecked());\n\t\t\t\t\t}", "public boolean isSelected() { \n \treturn selection != null; \n }", "public boolean isSelected() { return selected; }", "boolean getCheckState();", "public boolean VerifyButtonStatus() throws InterruptedException {\n\n Thread.sleep(10000);\n if(roundTripButton.isSelected()) {\n System.out.println(\"round trip Button is already selected\");\n wait.until(ExpectedConditions.elementToBeClickable(oneWayButton));\n oneWayButton.click();\n System.out.println(\"Switched to One Way button\");\n }\n else if(oneWayButton.isSelected()){\n System.out.println(\"One way button is already selected\");\n roundTripButton.click();\n System.out.println(\"Switched to Round Trip button\");\n\n }\n return true;\n }", "public boolean isSelected() {\n/* 876 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isSelected() {\n return checkbox.isSelected();\n }", "void onCheckedChanged(Chip chip, boolean isChecked);", "public void ButtonStatusToOneWay() throws InterruptedException {\n\n Thread.sleep(10000);\n //action=new Actions(this.driver);\n if (oneWayButton.isSelected()) {\n System.out.println(\"One way Button is already selected\");\n } else {\n wait.until(ExpectedConditions.elementSelectionStateToBe(oneWayButton,false));\n oneWayButton.click();\n System.out.println(\"one way button is clicked\");\n }\n\n\n }", "public boolean isSelected()\n {\n\treturn _isSelected;\n }", "public boolean isSelected(){\r\n return selected;\r\n }", "public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}", "public boolean isSelected() {\r\n return isSelected;\r\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\tif(arg0.isChecked()){\n\t\t\tsd.lock();\n\t\t}else{\n\t\t\tsd.unlock();\n\t\t}\n\t}", "private void checkSelectable() {\n \t\tboolean oldIsSelectable = isSelectable;\n \t\tisSelectable = isSelectAllEnabled();\n \t\tif (oldIsSelectable != isSelectable) {\n \t\t\tfireEnablementChanged(SELECT_ALL);\n \t\t}\n \t}", "public static Boolean getButtonSelected(int x, int y){\n\t\treturn display[x][y].isSelected();\n\t}", "public void check () {\n // declaring local variables\n WebElement webElement;\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. ===\");\n } else {\n // getting the web element of the check box with the default timeout\n // and then check its status\n\n int MAXRETRIES = 3;\n int tries = 1;\n while (!this.isChecked() && tries <= MAXRETRIES) {\n // need to give a second for the browser to catch up with the web driver\n //sleep(1, TimeUnit.SECONDS);\n\n // Directly get the web element since we know that it exists and is displayed\n webElement = getWebElement ();\n this.clickWebElement (webElement);\n\n\n\n\n tries++;\n if (this.isChecked() == false)\n {\n sleep(1, TimeUnit.SECONDS);\n }\n }\n }\n }", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "public boolean elementSelectionStateToBe(final By by, final boolean selected) {\n return (new WebDriverWait(webDriver, DRIVER_WAIT_TIME))\n .until(ExpectedConditions.elementSelectionStateToBe(by, selected));\n }", "static void setNotSelected(){isSelected=false;}", "public boolean isSelected() \n {\n return selected;\n }", "public Boolean toggleSelected()\n\t{\n\t\tthis._selected = !this._selected;\n\t\treturn this._selected;\n\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isSelected()\n {\n return selected;\n }", "@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n if (arg1 == true) {\n }\n { //Do something\n kc.setChecked(false);\n }\n //do something else\n lbButton = true;\n\n }", "public boolean isSelected() {\r\n return selected;\r\n }", "@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n if (arg1 == true) {\n }\n { //Do something\n li.setChecked(false);\n }\n //do something else\n kgButton = true;\n }", "@SuppressLint(\"NewApi\")\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\n\t\t\t\t\t\t\tboolean isChecked) {\n\n\t\t\t\t\t\tToggleButton tb = (ToggleButton) buttonView;\n\t\t\t\t\t\tint id = tb.getId();\n\n\t\t\t\t\t\tif (tb.isChecked()) {\n\t\t\t\t\t\t\ttb.setChecked(true);\n\t\t\t\t\t\t\tthumbnailsselection[id] = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttb.setChecked(false);\n\t\t\t\t\t\t\tthumbnailsselection[id] = false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "@Override\n public void onClick(View v) {\n\n holder.routineCompletedButton.setSelected(!holder.routineCompletedButton.isSelected());\n\n }", "public boolean isSelected(WebElement element){\r\n\r\n\t\treturn element.isSelected();\r\n\r\n\t}", "@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n mItem.mIsChecked = isChecked;\n\n if (TAB_AUTO == mTabIndex) {\n setConfigBtnState();\n } else if (TAB_MANUAL == mTabIndex) {\n setConfirmBtnsState();\n } else {\n myAssert(false, \"No such tab!\");\n }\n }", "public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}", "@Override\n\t\tpublic void onCheckedChanged(CompoundButton buttonView,\n\t\t\t\tboolean isChecked) {\n\n\t\t\tmCheckStates.put((Integer) buttonView.getTag(), isChecked);\n\t\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}", "@Override\n\tpublic boolean requiresToggleButton() {\n\t\treturn false;\n\t}", "public boolean elementSelectionStateToBe(final WebElement element, final boolean selected) {\n return (new WebDriverWait(webDriver, DRIVER_WAIT_TIME))\n .until(ExpectedConditions.elementSelectionStateToBe(element, selected));\n }", "public boolean isSelected() {\n\t\treturn _booleanNode.isPartiallyTrue();\n\t}", "public boolean isSelectionChanged();", "@Override\r\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\tswitch (buttonView.getId()) {\r\n\t\tcase R.id.switch_preview:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.startpreview, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_use_STUN:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.useSTUN, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_forbid_server_call:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.forbidcall, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_open_BLFList:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.openBLFList, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_open_session_timer:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.opensessiontimer, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_open_Rport:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.openRport, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_open_PRACK:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.openPRACK, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_start_Tel_type_call:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.startTeltypecall, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_compatible_special_server:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.specialserver, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_allow_URI_transition:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.URItransition, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_show_name_quotationmark:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.namequotationmark, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_start_voice_message:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.voicemessage, isregister);\r\n\t\t\tbreak;\r\n\t\tcase R.id.cb_open_DNS_SRV:\r\n\t\t\tisregister = isChecked ? true : false;\r\n\t\t\tSystemShare.setSettingBoolean(mContext, sp_name, Constant.openDNSSRV, isregister);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public boolean isSelected() {\n return isEnabled;\n }", "public void actionPerformed(ActionEvent arg0)\n {\n userAlert = chkAlert.getState();\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\n\t}", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\n\t}", "public void check (boolean doNotVerify) {\n // declaring local variables\n WebElement webElement;\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. ===\");\n } else if (doNotVerify) {\n // Only click the element and immediately return.\n // Directly get the web element since we know that it exists and is displayed\n webElement = getWebElement ();\n this.clickWebElement (webElement);\n } else {\n // getting the web element of the check box with the default timeout\n // and then check its status\n\n int MAXRETRIES = 3;\n int tries = 1;\n while (!this.isChecked() && tries <= MAXRETRIES) {\n // need to give a second for the browser to catch up with the web driver\n //sleep(1, TimeUnit.SECONDS);\n\n // Directly get the web element since we know that it exists and is displayed\n webElement = getWebElement ();\n this.clickWebElement (webElement);\n\n\n tries++;\n if (this.isChecked() == false)\n {\n sleep(1, TimeUnit.SECONDS);\n }\n }\n }\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n RowData data = (RowData) viewHolder.chkBox.getTag();\n if (isChecked) {\n\n checkBoxState.set(data.position, true);\n Log.i(tag, \"cursor.getPosition(true) with onChecked Listener : \" + data.position);\n }\n else {\n checkBoxState.set(data.position, false);\n Log.i(tag, \"cursor.getPosition(false) with onChecked Listener : \" + data.position);\n }\n }", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t bFlagHehuo = !bFlagHehuo;\r\n\t\t\t\t hehuo_btn.setChecked(bFlagHehuo);\r\n\t\t\t }", "private void rdnamActionPerformed(java.awt.event.ActionEvent evt) {\n if( rdnam.isSelected())\n { \n gt= true;\n }\n \n \n }", "public void onCheckedChanged(CompoundButton compoundButton, boolean bl) {\n if (!MbaSettingsActivity.access$000(MbaSettingsActivity.this)) {\n ToggleableSettingItemView toggleableSettingItemView = MbaSettingsActivity.access$100(MbaSettingsActivity.this);\n boolean bl2 = !bl;\n toggleableSettingItemView.setCheckedIgnoringListener(bl2);\n return;\n }\n if (!bl) {\n MbaSettingsActivity.access$200(MbaSettingsActivity.this);\n return;\n }\n MbaSettingsActivity mbaSettingsActivity = MbaSettingsActivity.this;\n Intent intent = EfiListActivity.makeIntent((Context)MbaSettingsActivity.this);\n int n2 = bvv0076vv007600760076v;\n switch (n2 * (n2 + b0076v0076vv007600760076v) % .b0075uuuu0075u0075u0075()) {\n default: {\n bvv0076vv007600760076v = 84;\n b0076v0076vv007600760076v = .b00750075007500750075uu0075u0075();\n if ((.b00750075007500750075uu0075u0075() + .buuuuu0075u0075u0075()) * .b00750075007500750075uu0075u0075() % b007600760076vv007600760076v == bv00760076vv007600760076v) break;\n bvv0076vv007600760076v = .b00750075007500750075uu0075u0075();\n bv00760076vv007600760076v = .b00750075007500750075uu0075u0075();\n }\n case 0: \n }\n mbaSettingsActivity.startActivityForResult(intent, 32);\n }", "public boolean isSelected_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isSelected()) { return true; } else { return false;} \r\n\t}", "public abstract boolean hasSelection();", "public boolean isSelected_click_CloseModal_Button(){\r\n\t\tif(click_CloseModal_Button.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "boolean isPickEnabled();", "public Boolean isChecked(){\n return aSwitch.isChecked();\n }", "@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}", "public JCommandToggleButton getSelectedButton() {\n return this.buttonSelectionGroup.getSelected();\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n\n } else {\n\n }\n }", "private void paintActionPerformed(final java.awt.event.ActionEvent evt) {\n\t\t\tpaintChecked = !paintChecked;\n\t\t}", "boolean getVisible(ActionEvent event) {\n JCheckBox box = (JCheckBox) event.getSource();\n return box.isSelected();\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n }", "public boolean isChecked () {\n // declaring local variables\n WebElement webElement;\n String className;\n boolean returnValue = true;\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. Returning value '\" + returnValue + \"' ===\");\n } else {\n // getting the web element with the default timeout\n webElement = getWebElement();\n\n returnValue = webElement.isSelected();\n }\n\n return returnValue;\n }", "@Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n }", "public boolean isSelected_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isSelected()) { return true; } else { return false;} \r\n\t}", "@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}", "@Override\n public void onCheckedChanged(CompoundButton toggleButton, boolean isChecked) {\n if (!isChecked) {\n viewHolder.state_endpoint_in_scene_text_view.setText(context.getResources().getString(R.string.label_off));\n state[0] = 0;\n } else {\n viewHolder.state_endpoint_in_scene_text_view.setText(context.getResources().getString(R.string.label_on));\n state[0] = 255;\n }\n // If the values are modified while the user does not check/unckeck the checkbox, then we update the value from the controller.\n int exist = mode.getPayload().indexOf(c);\n if (exist != -1) {\n mode.getPayload().get(exist).setV(state[0]);\n }\n }", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public void toggleChecked(boolean b) {\n for (int i = 0; i < itemsDigested.size(); i++) {\n ListItem item = itemsDigested.get(i);\n if (b && item.getChecked() != ListItem.CHECKED) {\n item.setChecked(true);\n notifyItemChanged(i);\n } else if (!b && item.getChecked() == ListItem.CHECKED) {\n item.setChecked(false);\n notifyItemChanged(i);\n }\n }\n\n if (mainFrag.mActionMode != null) {\n mainFrag.mActionMode.invalidate();\n }\n\n if (getCheckedItems().size() == 0) {\n mainFrag.selection = false;\n if (mainFrag.mActionMode != null) mainFrag.mActionMode.finish();\n mainFrag.mActionMode = null;\n }\n }", "public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "boolean hasStablesSelected();", "@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "public static boolean isSelected(WebElement element) {\n\t\tboolean selected = element.isSelected();\n\t\treturn selected;\n\n\t}", "public boolean isSelected() {\n return SELECTED.equals(message);\n }", "@Override\n\tpublic JToggleButton getToggleButton() {\n\t\treturn null;\n\t}", "@Override\r\n\t\t\t\t public void onClick(View v) {\n\t\t\t\t\t bFlagGongsi = !bFlagGongsi;\r\n\t\t\t\t\t gongsi_btn.setChecked(bFlagGongsi);\r\n\t\t\t\t }", "public boolean isChecked() {\r\n\t\treturn getCheck().isSelected();\r\n\t}", "@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent actionevent) {\n\t\t\t\tif (select.isSelected()) {\r\n\t\t\t\t\tservice.selectTask(row);\r\n\t\t\t\t\t// service.getTask(row).setSelected(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tservice.cancleTask(row);\r\n\t\t\t\t\t// service.getTask(row).setSelected(false);\r\n\t\t\t\t}\r\n\t\t\t\t// System.out.println(\"after: \" + service.getSelectedSet());\r\n\r\n\t\t\t}", "public static void setToggleActionSelected(ToggleDockingActionIf toggleAction,\n\t\t\tActionContext context, boolean selected, boolean wait) {\n\n\t\tboolean shouldPerformAction = runSwing(() -> {\n\t\t\treturn toggleAction.isSelected() != selected;\n\t\t});\n\n\t\tif (shouldPerformAction) {\n\t\t\tperformAction(toggleAction, context, wait);\n\t\t}\n\t}", "private void checkIntruder() {\r\n\t\tif(togGrp.getSelectedToggle().equals(radioOn)) {\r\n\t\t\tsetStyle(\"-fx-background-color: red\");\r\n\t\t\tmediaPlayer.play();\r\n\t\t};\r\n\t}", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }", "boolean getButtonRelease(Buttons but);", "public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }", "public boolean ButtonStatusToRoundTrip(){\n\n wait.until(ExpectedConditions.elementSelectionStateToBe(roundTripButton,false));\n roundTripButton.click();\n System.out.println(\"Round Trip button is clicked\");\n do {\n return true;\n }\n while (roundTripButton.isSelected());\n\n\n }", "public boolean checkDualExciters() {\r\n return dualExciter.isSelected();\r\n }", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t bFlagZhaopin = !bFlagZhaopin;\r\n\t\t\t\t zhaopin_btn.setChecked(bFlagZhaopin);\r\n\t\t\t }" ]
[ "0.6065645", "0.6065645", "0.6065645", "0.6010127", "0.5976002", "0.5976002", "0.5971468", "0.5856909", "0.5818161", "0.572904", "0.5704233", "0.56885976", "0.5668983", "0.56351733", "0.5604993", "0.55866665", "0.5580256", "0.5563777", "0.556216", "0.5561465", "0.5513359", "0.5502984", "0.5491657", "0.54834306", "0.54818493", "0.54574186", "0.54561377", "0.5445228", "0.5426343", "0.54218", "0.54116803", "0.5409677", "0.54033273", "0.53963995", "0.53896654", "0.53613794", "0.53434485", "0.5334107", "0.53306556", "0.53183764", "0.5308252", "0.5297746", "0.5296102", "0.5265064", "0.5263352", "0.52354974", "0.52354974", "0.5223309", "0.522163", "0.5212692", "0.5212567", "0.5203266", "0.5196621", "0.51842487", "0.5178918", "0.5165377", "0.5165377", "0.51635903", "0.5160012", "0.5153469", "0.514362", "0.51414156", "0.51408714", "0.5138132", "0.5129469", "0.5126016", "0.5115746", "0.51156116", "0.5114107", "0.5113067", "0.511021", "0.51054966", "0.50976557", "0.5082351", "0.5082024", "0.50816816", "0.50782394", "0.50765216", "0.5071952", "0.5070578", "0.5068731", "0.50683516", "0.50642776", "0.5061252", "0.5059575", "0.5058671", "0.5056308", "0.5055433", "0.50473124", "0.50287884", "0.5022517", "0.50190985", "0.5015393", "0.5014923", "0.5007271", "0.5001309", "0.49861914", "0.4982622", "0.49785295", "0.4967726" ]
0.6492369
0
Checks the enablement state of a JComponent in a thread safe way.
public static void assertEnabled(JComponent component, boolean enabled) { AtomicBoolean ref = new AtomicBoolean(); runSwing(() -> ref.set(component.isEnabled())); Assert.assertEquals("Component not in expected enablement state", enabled, ref.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkEnabled() {\n }", "public boolean areComponentsEnabled() {\n return itiefe.isEnabled();\n }", "boolean hasEnabled();", "public void checkin(CriticalComponent criticalComponent);", "boolean updateEnabling();", "public void checkEnabled()\n {\n if(graph == null || graph.vertices.size() < 1)\n {\n removeJButton.setEnabled(false);\n removeJMenuItem.setEnabled(false);\n printJMenuItem.setEnabled(false);\n calculateJButton.setEnabled(false);\n findPathJMenuItem.setEnabled(false);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else if(graph.vertices.size() < 3)\n {\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n printJMenuItem.setEnabled(false);\n calculateJButton.setEnabled(false);\n findPathJMenuItem.setEnabled(false);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else if(graph.vertices.size() <= 5)\n {\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n printJMenuItem.setEnabled(true);\n calculateJButton.setEnabled(true);\n findPathJMenuItem.setEnabled(true);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else\n {\n if(bruteForceJRadioButton.isSelected())\n {\n nearestJRadioButton.setSelected(true);\n nearestNeighborJRadioButtonMenuItem.setSelected(true);\n methodJLabel.setText(\"Nearest Neighbor\");\n }\n printJMenuItem.setEnabled(true);\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n calculateJButton.setEnabled(true);\n findPathJMenuItem.setEnabled(true);\n bruteForceJRadioButton.setEnabled(false);\n bruteForceJRadioButtonMenuItem.setEnabled(false);\n }\n }", "private boolean testFocusability(Component aComponent) {\n return focused.contains(aComponent);\n }", "protected boolean accept(Component comp)\n {\n return (comp.isVisible()\n \t && comp.isDisplayable()\n \t && comp.isEnabled()\n \t && comp.isFocusable());\n }", "public boolean isEnabled () {\r\n\tcheckWidget();\r\n\treturn getEnabled () && parent.isEnabled ();\r\n}", "public void checkIsEnabled() {\r\n\t\tMcsElement.getElementByPartAttributeValueAndParentElement(driver, \"div\", \"@class\", PURCHASING_PRODUCT_WINDOW_CLASS, \"input\", \"@name\",\r\n\t\t\t\t\"isEnabled\", true, true).click();\r\n\t\tReporter.log(\"Check IsEnabled\", true);\r\n\t}", "private void setComponentStatus() {}", "public static void setEnabled(JPanel jpanel, boolean boo) {\n for (int i = 0; i < jpanel.getComponentCount(); i++) {\n if (jpanel.getComponent(i).getClass().equals(txtTexto.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtCodigo.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtNumeros.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtFecha.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtCelular.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtTelefono.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtNumerosFormato.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(combo.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JComboBox.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JRadioButton.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JCheckBox.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtHoraHMS.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtPassword.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n\n if (jpanel.getComponent(i).getClass().equals(JButton.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JTextField.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JPasswordField.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JFormattedTextField.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n }\n }\n }", "private void updateEnabledState() {\n updateEnabledState(spinner, spinner.isEnabled()); }", "public void testRefreshPanel() {\n Operation element = new OperationImpl();\n element.setConcurrency(CallConcurrencyKind.CONCURRENT);\n\n panel.configurePanel(element);\n\n assertTrue(\"Failed to refresh panel correctly.\",\n ((JCheckBox) panel.retrievePanel().getComponent(0)).isSelected());\n }", "public boolean isGrabbable(Component c);", "private boolean tryInactivate() {\n if (active) {\n if (!pool.tryDecrementActiveCount())\n return false;\n active = false;\n }\n return true;\n }", "private boolean tryInactivate() {\n if (active) {\n if (!pool.tryDecrementActiveCount())\n return false;\n active = false;\n }\n return true;\n }", "public void test3_1EnableStatusListener() throws Exception {\n synchronized(mLock) {\n mInitialized = false;\n createListenerLooper(false, true, false);\n waitForLooperInitialization_l();\n\n mReverb2.setEnabled(true);\n mIsEnabled = true;\n getReverb(0);\n mReverb.setEnabled(false);\n int looperWaitCount = MAX_LOOPER_WAIT_COUNT;\n while (mIsEnabled && (looperWaitCount-- > 0)) {\n try {\n mLock.wait();\n } catch(Exception e) {\n }\n }\n terminateListenerLooper();\n releaseReverb();\n }\n assertFalse(\"enable status not updated\", mIsEnabled);\n }", "private void enableComponents(boolean input){\n jButton11.setEnabled(input);\n jButton12.setEnabled(input);\n jButton13.setEnabled(input);\n jButton21.setEnabled(input);\n jButton22.setEnabled(input);\n jButton23.setEnabled(input);\n jButton31.setEnabled(input);\n jButton32.setEnabled(input);\n jButton33.setEnabled(input);\n jButton2.setEnabled(!input);\n jTextNome.setEditable(!input);\n }", "protected abstract void enable();", "protected boolean checkEnabledPermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.enabledPermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.enabledPermission = new FormPermission(this.parentForm.getArchiveName(), \"enabled\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.enabledPermission != null) {\r\n manager.checkPermission(this.enabledPermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }", "public abstract boolean isEnabled();", "public abstract boolean isEnabled();", "protected void checkIfReady() throws Exception {\r\n checkComponents();\r\n }", "public static void verify_element_is_enabled(By locator) throws CheetahException {\n\t\ttry {\n\t\t\twait_for_element(locator);\n\t\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(element);\n\t\t\tdriverUtils.unHighlightElement(element);\n\t\t\tassertEquals(true, element.isEnabled());\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "private void checkEnableDisable() {\n\t\tif (_trainingSet.getCount() > 0) {\n\t\t\t_saveSetMenuItem.setEnabled(true);\n\t\t\t_saveSetAsMenuItem.setEnabled(true);\n\t\t\t_trainMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_saveSetMenuItem.setEnabled(false);\n\t\t\t_saveSetAsMenuItem.setEnabled(false);\n\t\t\t_trainMenuItem.setEnabled(false);\n\t\t}\n\n\t\tif (_currentTrainGrid == null) {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t}\n\n\t\tif (_index > 0) {\n\t\t\t_leftGridMenuItem.setEnabled(true);\n\t\t\t_leftBtn.setEnabled(true);\n\t\t\t_firstGridMenuItem.setEnabled(true);\n\t\t\t_firstBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_leftGridMenuItem.setEnabled(false);\n\t\t\t_leftBtn.setEnabled(false);\n\t\t\t_firstGridMenuItem.setEnabled(false);\n\t\t\t_firstBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index < _trainingSet.getCount() - 1) {\n\t\t\t_rightGridMenuItem.setEnabled(true);\n\t\t\t_rightBtn.setEnabled(true);\n\t\t\t_lastGridMenuItem.setEnabled(true);\n\t\t\t_lastBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_rightGridMenuItem.setEnabled(false);\n\t\t\t_rightBtn.setEnabled(false);\n\t\t\t_lastGridMenuItem.setEnabled(false);\n\t\t\t_lastBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index >= _trainingSet.getCount()) {\n\t\t\t_indexLabel.setText(String.format(NEW_INDEX_LABEL, _trainingSet.getCount()));\n\t\t} else {\n\t\t\t_indexLabel.setText(String.format(INDEX_LABEL, _index + 1, _trainingSet.getCount()));\n\t\t}\n\n\t\t_resultLabel.setText(EMPTY_RESULT_LABEL);\n\t}", "public void enablePanel(boolean b);", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();", "private boolean canAddSupport() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "public boolean verifyEnabled(WebElement ele) {\n\t\ttry {\r\n\t\t\tif(ele.isEnabled()) {\r\n\t\t\t\treportSteps(\"The element \"+ele+\" is Enabled\",\"pass\");\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treportSteps(\"The element \"+ele+\" is not Enabled\",\"fail\");\r\n\t\t\t}\r\n\t\t} catch (WebDriverException e) {\r\n\t\t\tSystem.out.println(\"WebDriverException : \"+e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean canEnlist() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "public boolean enabled(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : enabled(TitleBuilder.byHandle(hWnd));\n\t}", "private void updateEnabledState(Container c, boolean enabled) {\n for (int counter = c.getComponentCount() - 1; counter >= 0;counter--) {\n Component child = c.getComponent(counter);\n child.setEnabled(enabled);\n if (child instanceof Container) {\n updateEnabledState((Container)child, enabled); } } }", "static boolean canAddComponentToContainer(IDisplayModel displayModel,\r\n\t\t\t\tIComponent component, IContainer container, boolean forPalette, StatusHolder holder) {\r\n\t\t\r\n\t\tStatusBuilder builder = new StatusBuilder(ComponentSystemPlugin.getDefault());\r\n\t\tIAttributes attr = (IAttributes) component.getAdapter(IAttributes.class);\r\n\t\tif (attr == null) {\r\n\t\t\tif (holder != null) {\r\n\t\t\t\tString fmt = Messages.getString(\"Utilities.NoAttributesAdapterError\"); //$NON-NLS-1$\r\n\t\t\t\tObject params[] = {component.getId()};\r\n\t\t\t\tbuilder.add(IStatus.ERROR, fmt, params);\r\n\t\t\t\tholder.setStatus(builder.createStatus(\"\", null)); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tboolean isLayoutObject = attr.getBooleanAttribute(CommonAttributes.IS_LAYOUT_OBJECT, false);\r\n\t\tboolean isTopLevelOnly = attr.getBooleanAttribute(CommonAttributes.IS_TOP_LEVEL_ONLY_LAYOUT_OBJECT, false);\r\n\t\tboolean isExclusiveChild = attr.getBooleanAttribute(CommonAttributes.IS_EXCLUSIVE_CHILD_LAYOUT_OBJECT, false);\r\n\r\n\t\tIComponentInstance parentInstance = Utilities.getComponentInstance(container.getEObject());\r\n\t\tIAttributes parentAttributes = (IAttributes) parentInstance.getComponent().getAdapter(IAttributes.class);\r\n\t\tboolean parentIsTopLevelContentContainer = \r\n\t\t\tparentAttributes.getBooleanAttribute(CommonAttributes.IS_TOP_LEVEL_CONTENT_CONTAINER, false);\r\n\t\tEObject[] potentialSiblings = getLayoutChildren(parentInstance);\r\n\t\t\r\n\t\tboolean currentExclusiveChildError = false;\r\n\t\tif (!forPalette)\r\n\t\t\tcurrentExclusiveChildError = isLayoutObject && containsExclusiveChild(potentialSiblings);\r\n\t\tif (currentExclusiveChildError && (holder != null)) {\r\n\t\t\tString fmt = Messages.getString(\"Utilities.CurrentExclusiveChildError\"); //$NON-NLS-1$\r\n\t\t\tIComponentInstance containerInstance = \r\n\t\t\t\t(IComponentInstance) EcoreUtil.getRegisteredAdapter(container.getEObject(), IComponentInstance.class);\r\n\t\t\tObject params[] = {containerInstance.getName()};\r\n\t\t\tbuilder.add(IStatus.ERROR, fmt, params);\r\n\t\t}\r\n\t\t\r\n\t\tboolean topLevelOnlyError = isTopLevelOnly && !parentIsTopLevelContentContainer;\r\n\t\tif (topLevelOnlyError && (holder != null)) {\r\n\t\t\tString fmt = Messages.getString(\"Utilities.TopLevelOnlyError\"); //$NON-NLS-1$\r\n\t\t\tObject params[] = {component.getFriendlyName()};\r\n\t\t\tbuilder.add(IStatus.ERROR, fmt, params);\r\n\t\t}\r\n\t\t\r\n\t\tboolean exclusiveChildSiblingsError = false;\r\n\t\tif (!forPalette)\r\n\t\t\texclusiveChildSiblingsError = isExclusiveChild && (potentialSiblings != null); \r\n\t\tif (exclusiveChildSiblingsError && (holder != null)) {\r\n\t\t\tString fmt = Messages.getString(\"Utilities.ExclusiveChildSiblingsError\"); //$NON-NLS-1$\r\n\t\t\tObject params[] = {component.getFriendlyName()};\r\n\t\t\tbuilder.add(IStatus.ERROR, fmt, params);\r\n\t\t}\r\n\t\t\r\n\t\tboolean result = !currentExclusiveChildError &&\r\n\t\t\t\t\t\t\t!topLevelOnlyError &&\r\n\t\t\t\t\t\t\t!exclusiveChildSiblingsError;\r\n\t\t\r\n\t\t\r\n\t\tif (!result && (holder != null)) {\r\n\t\t\tIComponentInstance containerInstance = (IComponentInstance) EcoreUtil\r\n\t\t\t.getRegisteredAdapter(container.getEObject(), IComponentInstance.class);\r\n\t\t\tObject params[] = { component.getFriendlyName(), containerInstance.getName() };\r\n\t\t\tholder.setStatus(builder.createMultiStatus(Messages.getString(\"Utilities.CantAddObjectError\"), params)); //$NON-NLS-1$\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@GuardedBy(\"mLock\")\n @VisibleForTesting\n boolean isServiceAvailableLocked() {\n if (mComponentName == null) {\n mComponentName = updateServiceInfoLocked();\n }\n return mComponentName != null;\n }", "public void test2_0SetEnabledGetEnabled() throws Exception {\n getReverb(0);\n try {\n mReverb.setEnabled(true);\n assertTrue(\"invalid state from getEnabled\", mReverb.getEnabled());\n mReverb.setEnabled(false);\n assertFalse(\"invalid state to getEnabled\", mReverb.getEnabled());\n } catch (IllegalStateException e) {\n fail(\"setEnabled() in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public interface ConditionalActionHandler extends ActionListener\n{\n /**\n * Return whether or not the action associated with this listener\n * is enabled.\n * <p/>\n * Achtung! Keep in mind implementations of this method should be short and\n * sweet -- don't do anything even moderately heavy here as this method is\n * called very very often -- every time the AWT event queue goes idle.\n *\n * @return True to enable the Action associated with this component.\n */\n public boolean isEnabled();\n}", "public boolean getEnabled () {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\treturn (OS.PtWidgetFlags (topHandle) & OS.Pt_BLOCKED) == 0;\r\n}", "private void enablePreferredAndMinimumIfComponentAvaible() {\r\n\t\tboolean itemInRow = tableLayoutUtil.containesItemInRow(cellForEditing.getCellY());\r\n\t\tJMenuItem temp;\r\n\t\tfor (int i = 0; i < changeSizeMeasurementPopupRow.getComponentCount(); i++) {\n\t\t\tComponent c = changeSizeMeasurementPopupRow.getComponent(i);\n\t\t\tif (c instanceof JMenuItem) {\n\t\t\t\ttemp = (JMenuItem) changeSizeMeasurementPopupRow.getComponent(i);\r\n\t\t\t\tif (itemInRow) {\r\n\t\t\t\t\tif (temp.getActionCommand().equals(\"PREFERRED\") || temp.getActionCommand().equals(\"MINIMUM\")) {\r\n\t\t\t\t\t\ttemp.setEnabled(true);\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t} else if (temp.getActionCommand().equals(\"PREFERRED\") || temp.getActionCommand().equals(\"MINIMUM\")) {\r\n\t\t\t\t\ttemp.setEnabled(false);\r\n\t\t\t\t}\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public abstract void Enabled();", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tACTION_B_ENABLE(e);\r\n\t\t\t}", "@Override\n protected boolean canHighlight(Component component,\n ComponentAdapter adapter) {\n return component instanceof JComponent;\n }", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "public static boolean verifyEnabilityOfElement(WebElement element) {\n\t\ttry {\n\n\t\t\tif (element.isEnabled())\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t}", "public static void verifyEnabledStatus(By byObj, Boolean status) throws IllegalArgumentException, IllegalAccessException, IOException {\n\t\tBoolean currentStatus = getEnabledStatus(byObj);\n\t\tString sObjName = getObjectName(byObj);\n\t\tif (status.equals(true)) {\n\t\t\tif (currentStatus.equals(true)) {\n\t\t\t\tTestNotify.pass(GenLogTC() + \" The object [\" + sObjName + \"] is Enabled.\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tTestNotify.fail(GenLogTC() + \" The object [\" + sObjName + \"] is not Enabled.\");\n\t\t\t}\n\t\t}\n\t\tif (status.equals(false)) {\n\t\t\tif (currentStatus.equals(true))\t{\n\t\t\t\tTestNotify.fail(GenLogTC() + \" The object [\" + sObjName + \"] is not Disabled.\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tTestNotify.pass(GenLogTC() + \" The object [\" + sObjName + \"] is Disabled.\");\n\t\t\t}\n\t\t}\n\t}", "protected void updateEnabled() {\n\t\tFieldGroup control = getUIControl();\n\t\tif (control != null) {\n\t\t\tCollection<? extends IRidget> ridgets = getRidgets();\n\t\t\tfor (IRidget ridget : ridgets) {\n\t\t\t\tridget.setEnabled(isEnabled());\n\t\t\t}\n\t\t\tcontrol.setEnabled(isEnabled());\n\t\t}\n\t}", "public boolean AssetIDEnable() {\r\n\t\t// return IsElementEnabledStatus(DefineSetup_AssetID_txtBx);\r\n\t\t// DefineSetup_AssetID_txtBx.isDisplayed();\r\n\t\t// return DefineSetup_AssetID_txtBx.isDisplayed();\r\n\t\treturn IsElementEnabledStatus(DefineSetup_AssetID_txtBx);\r\n\t}", "protected void beforeUnlockWaitingForBooleanCondition() {\n }", "private boolean needsRepaintAfterBlit(){\n Component heavyParent=getParent();\n while(heavyParent!=null&&heavyParent.isLightweight()){\n heavyParent=heavyParent.getParent();\n }\n if(heavyParent!=null){\n ComponentPeer peer=heavyParent.getPeer();\n if(peer!=null&&peer.canDetermineObscurity()&&\n !peer.isObscured()){\n // The peer says we aren't obscured, therefore we can assume\n // that we won't later be messaged to paint a portion that\n // we tried to blit that wasn't valid.\n // It is certainly possible that when we blited we were\n // obscured, and by the time this is invoked we aren't, but the\n // chances of that happening are pretty slim.\n return false;\n }\n }\n return true;\n }", "boolean hasIsSupportComp();", "public void onEnabled() {\r\n }", "public boolean isEnabled_click_ActivateCoupon_Button(){\r\n\t\tif(click_ActivateCoupon_Button.isEnabled()) { return true; } else { return false;} \r\n\t}", "boolean isPickEnabled();", "public void enable() {\n\t\tif (!permanent) {\n\t\t\tenabled = true;\n\t\t\trect.setColor(c);\n\t\t}\n\t}", "private void drawCheck(Graphics2D g2, Component c, boolean enabled, int x, int y, int w, int h)\r\n/* 201: */ {\r\n/* 202:235 */ g2.translate(x, y);\r\n/* 203:236 */ if (enabled)\r\n/* 204: */ {\r\n/* 205:237 */ g2.setColor(UIManager.getColor(\"RadioButton.check\"));\r\n/* 206:238 */ g2.fillOval(0, 0, w, h);\r\n/* 207:239 */ UIManager.getIcon(\"RadioButton.checkIcon\").paintIcon(c, g2, 0, 0);\r\n/* 208: */ }\r\n/* 209: */ else\r\n/* 210: */ {\r\n/* 211:241 */ g2.setColor(MetalLookAndFeel.getControlDisabled());\r\n/* 212:242 */ g2.fillOval(0, 0, w, h);\r\n/* 213: */ }\r\n/* 214:244 */ g2.translate(-x, -y);\r\n/* 215: */ }", "@Override\npublic boolean isComponentAtomic() {\n\treturn false;\n}", "@Override\n\t\t\tprotected void updateEnabled() {\n\t\t\t}", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJToggleButton x = (JToggleButton) e.getSource();\n\t\t\t\tif(x.isSelected()){\n\t\t\t\t\tif(host_txtfield.getText().trim().isEmpty()){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please provide a hostname\", \"Lock Settings\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif(port_txtfield.getText().trim().isEmpty()){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please provide a port\", \"Lock Settings\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif(dbname_txtfield.getText().trim().isEmpty()){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please provide a database name\", \"Lock Settings\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\thost_txtfield.setEnabled(false);\n\t\t\t\t\tport_txtfield.setEnabled(false);\n\t\t\t\t\tdbname_txtfield.setEnabled(false);\n\t\t\t\t\tuseLocalSettings_checkBox.setEnabled(false);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(!useLocalSettings_checkBox.isSelected()){\n\t\t\t\t\t\thost_txtfield.setEnabled(true);\n\t\t\t\t\t\tport_txtfield.setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t\tdbname_txtfield.setEnabled(true);\n\t\t\t\t\tuseLocalSettings_checkBox.setEnabled(true);\n\t\t\t\t}\n\t\t\t}", "boolean isLocked();", "boolean isLocked();", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {\n if(price.isEnabled()){\n price.setEnabled(false);\n \n }else{\n price.setEnabled(true);\n }\n \n ;\n // if(price.enabled(true))\n // {}\n \n \n }", "public boolean isEnabled() { return _enabled; }", "protected final void checkWriteable()\n throws IllegalStateException\n {\n if( m_readOnly )\n {\n throw new IllegalStateException\n ( \"ComponentSelector is read only and can not be modified\" );\n }\n }", "public boolean isLocked();", "private void CheckEnable()\n {\n btn_prev.setEnabled(true);\n btn_next.setEnabled(true);\n\n if(increment+1 == pageCount)\n {\n btn_next.setEnabled(false);\n }\n if(increment == 0)\n {\n btn_prev.setEnabled(false);\n }\n }", "public @Bool boolean isLocked()\r\n\t\tthrows PropertyNotPresentException;", "private void updateEnableStatus()\n {\n this.menu.setEnabled(this.menu.getItemCount() > 0);\n }", "@Override\r\n\tpublic void enable() {\n\t\tcurrentState.enable();\r\n\t}", "public static void isElementEnabled(WebElement element) {\n \tboolean elementEnabled= element.isEnabled();\n \t\n \tif(elementEnabled) {\n \t\tSystem.out.println(element+\" \"+\"object is Enabled\");\n \t}\n \telse {\n \t\tSystem.out.println(element+\" \"+\"object is not Enabled\");\n \t}\n }", "@Override\n boolean check(PixelLogicEvent event) {\n if (event instanceof PixelLogicLevelStatusChangeEvent) {\n PixelLogicLevelStatusChangeEvent statusChangeEvent = (PixelLogicLevelStatusChangeEvent) event;\n PixelLogicLevel level = statusChangeEvent.getLevel();\n // 6x6, 5*7, 4*8 are all ok\n if (PixelLogicLevelStatus.loaded.equals(statusChangeEvent.getStatus())) {\n this.isThePuzzelBigEnough = level.getRows() * level.getColumns() >= 32;\n this.blocked = false;\n return false;\n }\n }\n // reset on board is empty\n if (event instanceof PixelLogicBoardChangedEvent) {\n PixelLogicBoardChangedEvent changedBoardEvent = (PixelLogicBoardChangedEvent) event;\n if (changedBoardEvent.getLevel().isEmpty()) {\n this.blocked = false;\n }\n }\n if (this.isThePuzzelBigEnough == null || this.blocked == null || !this.isThePuzzelBigEnough || this.blocked) {\n return false;\n }\n // check if level is solved or destroyed\n if (event instanceof PixelLogicLevelStatusChangeEvent) {\n PixelLogicLevelStatusChangeEvent statusChangeEvent = (PixelLogicLevelStatusChangeEvent) event;\n PixelLogicLevelStatus status = statusChangeEvent.getStatus();\n if (PixelLogicLevelStatus.solved.equals(status)) {\n // ignore certain level's\n PixelLogicLevel level = statusChangeEvent.getLevel();\n if (\"Heart\".equals(level.getName()) || \"Windows\".equals(level.getName())) {\n return false;\n }\n // achievement reached\n return !this.blocked;\n }\n if (PixelLogicLevelStatus.destroyed.equals(status)) {\n this.isThePuzzelBigEnough = null;\n this.blocked = null;\n return false;\n }\n }\n // check if something is blocked by the user\n if (event instanceof PixelLogicBoardChangedEvent) {\n PixelLogicBoardChangedEvent changedBoardEvent = (PixelLogicBoardChangedEvent) event;\n Boolean value = changedBoardEvent.getValue();\n if (changedBoardEvent.isPixelChanged()) {\n if (value != null && !value) {\n this.blocked = true;\n }\n return false;\n }\n }\n return false;\n }", "protected boolean accept(Component aComponent) {\n if (!super.accept(aComponent)) {\n return false;\n } else if (SunToolkit.isInstanceOf(aComponent, \"javax.swing.JTable\")) {\n // JTable only has ancestor focus bindings, we thus force it\n // to be focusable by returning true here.\n return true;\n } else if (SunToolkit.isInstanceOf(aComponent, \"javax.swing.JComboBox\")) {\n JComboBox<?> box = (JComboBox)aComponent;\n return box.getUI().isFocusTraversable(box);\n } else if (aComponent instanceof JComponent) {\n if (SunToolkit.isInstanceOf(aComponent,\n \"javax.swing.JToggleButton\")) {\n ButtonModel model = ((JToggleButton)aComponent).getModel();\n if (model != null) {\n ButtonGroup group = model.getGroup();\n if (group != null) {\n Enumeration<AbstractButton> elements =\n group.getElements();\n int idx = 0;\n while (elements.hasMoreElements()) {\n AbstractButton member = elements.nextElement();\n if (member instanceof JToggleButton &&\n member.isVisible() && member.isDisplayable() &&\n member.isEnabled() && member.isFocusable()) {\n if (member == aComponent) {\n return idx == 0;\n }\n idx++;\n }\n }\n }\n }\n }\n\n JComponent jComponent = (JComponent)aComponent;\n InputMap inputMap = jComponent.getInputMap(JComponent.WHEN_FOCUSED,\n false);\n while (inputMap != null && inputMap.size() == 0) {\n inputMap = inputMap.getParent();\n }\n if (inputMap != null) {\n return true;\n }\n // Delegate to the fitnessTestPolicy, this will test for the\n // case where the developer has overridden isFocusTraversable to\n // return true.\n }\n return fitnessTestPolicy.accept(aComponent);\n }", "public boolean isElementEnabled(By by){\n\t\t\n\t\treturn DRIVER.findElement(by).isEnabled();\n\t}", "private static synchronized void checkAndUpdateComponentState(\n Component component, boolean isIncrement) {\n\n if (component.getRestartPolicyHandler().isLongLived()) {\n if (isIncrement) {\n // check if all containers are in READY state\n if (!component.upgradeStatus.areContainersUpgrading() &&\n !component.cancelUpgradeStatus.areContainersUpgrading() &&\n component.componentMetrics.containersReady.value() ==\n component.componentMetrics.containersDesired.value()) {\n component.setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState.STABLE);\n // component state change will trigger re-check of service state\n component.context.getServiceManager().checkAndUpdateServiceState();\n }\n } else{\n // container moving out of READY state could be because of FLEX down so\n // still need to verify the count before changing the component state\n if (component.componentMetrics.containersReady.value()\n < component.componentMetrics.containersDesired.value()) {\n component.setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState\n .FLEXING);\n } else if (component.componentMetrics.containersReady.value()\n == component.componentMetrics.containersDesired.value()) {\n component.setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState.STABLE);\n }\n // component state change will trigger re-check of service state\n component.context.getServiceManager().checkAndUpdateServiceState();\n }\n } else {\n // component state change will trigger re-check of service state\n component.context.getServiceManager().checkAndUpdateServiceState();\n }\n // triggers the state machine in component to reach appropriate state\n // once the state in spec is changed.\n component.dispatcher.getEventHandler().handle(\n new ComponentEvent(component.getName(),\n ComponentEventType.CHECK_STABLE));\n }", "protected void afterLockWaitingForBooleanCondition() {\n }", "public void enable() {\r\n m_enabled = true;\r\n }", "public void enable();", "boolean getEnabled();", "boolean getEnabled();", "boolean getEnabled();", "public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }", "private void enableControls(boolean b) {\n\n\t}", "void jEnableMenu_actionPerformed(ActionEvent e) {\n //need to check if this is already enabled\n \n DefaultMutableTreeNode node = (DefaultMutableTreeNode) jComponentTree.getLastSelectedPathComponent();\n if (node.getParent() != rootNode) { //when it's an instance\n PluginDescriptor value = (PluginDescriptor) ((EGTreeNode) node).getComponent();\n if (value.getID().equalsIgnoreCase(jLabel1.getText())) {\n if (value.isVisualPlugin()) { //add visual plugin to the selected area\n String visualArea = (String) jVisualAreaComboBox.getSelectedItem();\n if ((visualArea != null) && (!visualArea.equalsIgnoreCase(\"\")))\n GeawConfigObject.getGuiWindow().addToContainer(visualArea, ((VisualPlugin) value.getPlugin()).getComponent(), value.getLabel());\n PluginRegistry.addVisualAreaInfo(visualArea, (VisualPlugin) value.getPlugin());\n }\n //get interfaces\n ListModel ls = jBroadcastListenerList.getModel();\n for (int c = 0; c < ls.getSize(); c++) {\n ComponentInterface ci = (ComponentInterface) ls.getElementAt(c);\n if (ci.isActive()) {\n try {\n BroadcastEventRegistry.addEventListener(ci.getInterfaceClass(), ((AppEventListener) value.getPlugin()));\n } catch (AppEventListenerException ex) {\n ex.printStackTrace();\n \n } catch (ListenerEventMismatchException ex) {\n ex.printStackTrace();\n }\n }\n }\n /**\n * @todo add coupled ls, broadcastls etc\n */\n } else {\n JOptionPane.showMessageDialog(null, \"Parameters not set for the component.\");\n }\n }\n }", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "@Override\n public void loadPanel () {\n\n // do we need these??\n out_top.load_selected_tab_panel();\n out_bottom.load_selected_tab_panel();\n\n // Q: should do setState on the checkboxes?\n // A: only if flags were changed programatically without doing that,,,,\n\n // old ways....\n //\n // switch (stall_model_type) {\n // case STALL_MODEL_IDEAL_FLOW: \n // bt3.setBackground(Color.yellow);\n // bt4_1.setBackground(Color.white);\n // bt4_2.setBackground(Color.white);\n // break;\n // case STALL_MODEL_DFLT: \n // bt3.setBackground(Color.white);\n // bt4_2.setBackground(Color.white);\n // bt4_1.setBackground(Color.yellow);\n // break;\n // case STALL_MODEL_REFINED: \n // bt3.setBackground(Color.white);\n // bt4_1.setBackground(Color.white);\n // bt4_2.setBackground(Color.yellow);\n // break;\n // }\n // if (ar_lift_corr) {\n // bt6.setBackground(Color.white);\n // bt5.setBackground(Color.yellow);\n // } else {\n // bt5.setBackground(Color.white);\n // bt6.setBackground(Color.yellow);\n // }\n // if (induced_drag_on) {\n // bt8.setBackground(Color.white);\n // bt7.setBackground(Color.yellow);\n // } else {\n // bt7.setBackground(Color.white);\n // bt8.setBackground(Color.yellow);\n // }\n // if (re_corr) {\n // bt10.setBackground(Color.white);\n // bt9.setBackground(Color.yellow);\n // } else {\n // bt9.setBackground(Color.white);\n // bt10.setBackground(Color.yellow);\n // }\n // switch (bdragflag) {\n // case 1: \n // cbt1.setBackground(Color.yellow);\n // cbt2.setBackground(Color.white);\n // cbt3.setBackground(Color.white);\n // break;\n // case 2:\n // cbt2.setBackground(Color.yellow);\n // cbt1.setBackground(Color.white);\n // cbt3.setBackground(Color.white);\n // break;\n // case 3:\n // cbt3.setBackground(Color.yellow);\n // cbt2.setBackground(Color.white);\n // cbt1.setBackground(Color.white);\n // break;\n // }\n // if (stab_aoa_correction) \n // stab_bt_aoa.setBackground(Color.yellow);\n // else\n // stab_bt_aoa.setBackground(Color.white);\n\n // do nto do this, ause stack overflow\n // computeFlowAndRegenPlotAndAdjust();\n // recomp_all_parts();\n }", "public boolean isEnabled() { return this.myEnabled; }", "private void buttonEnable(){\n\t\t\taddC1.setEnabled(true);\n\t\t\taddC2.setEnabled(true);\n\t\t\taddC3.setEnabled(true);\n\t\t\taddC4.setEnabled(true);\n\t\t\taddC5.setEnabled(true);\n\t\t\taddC6.setEnabled(true);\n\t\t\taddC7.setEnabled(true);\n\t\t}" ]
[ "0.650755", "0.59199524", "0.58758646", "0.585941", "0.5845792", "0.5744802", "0.56336516", "0.5619617", "0.5589796", "0.55687857", "0.5519078", "0.5517915", "0.54524994", "0.5438708", "0.53776485", "0.5350793", "0.5350793", "0.53292894", "0.5318911", "0.5302434", "0.52848923", "0.52763546", "0.52763546", "0.52745205", "0.5268134", "0.52617335", "0.5256087", "0.52552986", "0.52552986", "0.52552986", "0.52552986", "0.52552986", "0.52552986", "0.52552986", "0.52552986", "0.5248081", "0.5240001", "0.5224374", "0.51959187", "0.51901346", "0.51834375", "0.5177059", "0.51568085", "0.5140663", "0.51331425", "0.512499", "0.5115579", "0.5114143", "0.51076907", "0.51055497", "0.51055497", "0.51055497", "0.51055497", "0.51055497", "0.5102777", "0.50993484", "0.50941056", "0.5092829", "0.5085302", "0.50751823", "0.50638443", "0.50615495", "0.5059934", "0.505888", "0.5055998", "0.50503576", "0.50443053", "0.5042658", "0.5029781", "0.5029781", "0.50224435", "0.5021256", "0.5021256", "0.5017645", "0.4990899", "0.498261", "0.49759826", "0.49746874", "0.4974487", "0.49725375", "0.49725094", "0.49695534", "0.49643603", "0.49633235", "0.49601173", "0.49571955", "0.49565917", "0.49462277", "0.4944856", "0.4941855", "0.4939806", "0.4939806", "0.4939806", "0.49388227", "0.49278364", "0.49146828", "0.49047506", "0.4902018", "0.4901375", "0.48999253" ]
0.61395556
1
A helper method to find all actions with the given name
public static Set<DockingActionIf> getActionsByName(Tool tool, String name) { Set<DockingActionIf> result = new HashSet<>(); Set<DockingActionIf> toolActions = tool.getAllActions(); for (DockingActionIf action : toolActions) { if (action.getName().equals(name)) { result.add(action); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Action getAction(String name) { return actions.get(name); }", "public ActionReader getAction(String name);", "String[] getActions();", "public ActionList getActions();", "public static Set<DockingActionIf> getActionsByOwner(Tool tool, String name) {\n\t\treturn tool.getDockingActionsByOwnerName(name);\n\t}", "public static Set<DockingActionIf> getActionsByOwnerAndName(Tool tool, String owner,\n\t\t\tString name) {\n\t\tSet<DockingActionIf> ownerActions = tool.getDockingActionsByOwnerName(owner);\n\t\treturn ownerActions.stream()\n\t\t\t\t.filter(action -> action.getName().equals(name))\n\t\t\t\t.collect(Collectors.toSet());\n\t}", "public Set<ActionReader> getActions();", "String getActionName();", "public static ImagingAction getActionByName(String actionName) {\n for (ImagingAction imagingAction : getImagingActions()) {\n if (imagingAction.getName().equals(actionName)) {\n return imagingAction;\n }\n }\n return null;\n }", "@Override\r\n\tpublic List<Action> findAll() throws SQLException {\n\t\treturn null;\r\n\t}", "public static Action action(String id) {\n/* 205 */ return actions.get(id);\n/* */ }", "String getActionName(Closure action);", "public static void readActionNames()throws Exception{\r\n\t\tSystem.out.println(\"Read action names...\");\r\n\t\tBufferedReader actionReader = new BufferedReader(new FileReader(ACTION_URL));\r\n\t\tString line = null;\r\n\t\tactionNameArray = new String[ actionNumber ];\r\n\t\tint cnt = 0;\r\n\t\twhile((line = actionReader.readLine())!=null){\r\n\t\t\tactionNameArray[ cnt++ ] = line.replace(\" \", \"_\");\r\n\t\t}\r\n\t\tactionReader.close();\r\n\t}", "public static Collection<Action> actions(String... ids) {\n/* 216 */ List<Action> result = new ArrayList<>();\n/* 217 */ for (String id : ids) {\n/* 218 */ if (id.startsWith(\"---\")) result.add(ActionUtils.ACTION_SEPARATOR); \n/* 219 */ Action action = action(id);\n/* 220 */ if (action != null) result.add(action); \n/* */ } \n/* 222 */ return result;\n/* */ }", "public List<IAction> getActions(Verrechnet kontext){\n\t\treturn null;\n\t}", "public List<ActionValue> getActions(State state);", "public Action[] getActions(Object target, Object sender) {\n \t\treturn actions;\n \t}", "public String[] getActions() {\n return impl.getActions();\n }", "public Action getAction(int index) { return actions.get(index); }", "Collection<? extends Action> getHas_action();", "@Override\n\tpublic List<JSONObject> getActions(JSONObject params) {\n\t\treturn this.selectList(\"getActions\", params);\n\t}", "List<ActionDescriptor> listActionsSupported() throws IOException;", "public ActionDefinition isAction(String name){\n return((ActionDefinition)actionDefs.get(getDefName(name)));\n }", "public CachetActionList getActions() {\n throw new RuntimeException(\"Method not implemented.\");\n }", "public static List<IcyAbstractAction> getAllActions()\r\n {\r\n final List<IcyAbstractAction> result = new ArrayList<IcyAbstractAction>();\r\n\r\n for (Field field : GeneralActions.class.getFields())\r\n {\r\n final Class<?> type = field.getType();\r\n\r\n try\r\n {\r\n if (type.isAssignableFrom(IcyAbstractAction[].class))\r\n result.addAll(Arrays.asList(((IcyAbstractAction[]) field.get(null))));\r\n else if (type.isAssignableFrom(IcyAbstractAction.class))\r\n result.add((IcyAbstractAction) field.get(null));\r\n }\r\n catch (Exception e)\r\n {\r\n // ignore\r\n }\r\n }\r\n\r\n return result;\r\n }", "public static DockingActionIf getAction(DialogComponentProvider provider, String actionName) {\n\n\t\tSet<DockingActionIf> actions = provider.getActions();\n\t\tfor (DockingActionIf action : actions) {\n\t\t\tif (action.getName().equals(actionName)) {\n\t\t\t\treturn action;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public java.util.Enumeration getProjectActions() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getProjectActions();\n }", "public List<Action> getActions() {\n\n if (actions != null)\n return new ArrayList<>(actions.values());\n else\n return new ArrayList<>();\n\n }", "com.rpg.framework.database.Protocol.CharacterAction getActions(int index);", "com.rpg.framework.database.Protocol.CharacterAction getActions(int index);", "public List<A> getAvailableActionsFor(S state);", "Stream<ActionDefinition> actions();", "private ArrayList<String> getAllActions() {\n\t\t\n\t\tArrayList<String> allActions = new ArrayList<String>();\n\t\tallActions.add(\"Job fisher\");\n\t\tallActions.add(\"Job captain\");\n\t\tallActions.add(\"Job teacher\");\n\t\tallActions.add(\"Job factory worker\");\n\t\tallActions.add(\"Job factory boss\");\n\t\tallActions.add(\"Job elderly caretaker\");\n\t\tallActions.add(\"Job work outside village\");\n\t\tallActions.add(\"Job unemployed\");\n\t\treturn allActions;\n\t}", "@Override\n\tpublic Action[] getActions(Object target, Object sender) {\n\t\treturn ACTIONS;\n\t}", "ActionsSet getActions();", "public static List<String> getActuators(List<Action> actions){\n\t\tList<String> actuators = new ArrayList<>();\n\t\tif(actions==null || actions.size()==0) return actuators;\n\t\tfor(Action act : actions)\n\t\t\tactuators.add(act.getResource().getName());\n\t\treturn actuators;\n\t}", "public abstract List<Instruction> getPossibleActions();", "public static OptionalThing<ActionExecute> findActionExecute(String actionName, RoutingParamPath paramPath) {\n return findActionMapping(actionName).map(mapping -> mapping.findActionExecute(paramPath));\n }", "String getAction();", "String getAction();", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "protected Actions exec() {\n return actions;\n }", "public List<Action> getActions(){return actions;}", "public Action(String name) {\n this.name = name;\n }", "Set<Action> getAvailableActions(Long entityId, Class<Action> entityClass);", "@Test\n\tpublic void testGetActionMethods() throws ClassNotFoundException,\n\t\t\tNoSuchMethodException, SecurityException {\n\t\tConcreteActionsFactory concreteActionsFactory = new ConcreteActionsFactory();\n\n\t\tClass clazz = Class.forName(\"org.dsol.service.ConcreteActions1\");\n\t\tList<Method> methods = concreteActionsFactory.getActionMethods(clazz);\n\n\t\tAssert.assertEquals(2, methods.size());\n\n\t\tAssert.assertTrue(methods.contains(clazz.getMethod(\"hi\", String.class,\n\t\t\t\tString.class)));\n\t\tAssert.assertTrue(methods.contains(clazz.getMethod(\"getStarted\")));\n\n\t}", "private String getActionName(String path) {\r\n\t\t// We're guaranteed that the path will start with a slash\r\n\t\tint slash = path.lastIndexOf('/');\r\n\t\treturn path.substring(slash + 1);\r\n\t}", "static synchronized ExplorerActionsImpl findExplorerActionsImpl(ExplorerManager em) {\n assert em != null;\n if (em.actions == null) {\n em.actions = new ExplorerActionsImpl();\n em.actions.attach(em);\n }\n\n return em.actions;\n }", "private List<Command> getCommands(String name) {\r\n\t\tList<Command> result = new ArrayList<>();\r\n\t\tfor (Command command : commands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (LearnedCommand command : learnedCommands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public boolean getActionJustPressed(String name) {\n synchronized(actions) {\n InputAction action = actions.get(name);\n return action != null && action.getJustPressed(this);\n }\n }", "void addActions(Object bean) {\n Class<?> clazz = bean.getClass();\n Method[] ms = clazz.getMethods();\n for (Method m : ms) {\n if (isActionMethod(m)) {\n Mapping mapping = m.getAnnotation(Mapping.class);\n String url = mapping.value();\n UrlMatcher matcher = new UrlMatcher(url);\n if (matcher.getArgumentCount()!=m.getParameterTypes().length) {\n warnInvalidActionMethod(m, \"Arguments in URL '\" + url + \"' does not match the arguments of method.\");\n continue;\n }\n log.info(\"Mapping url '\" + url + \"' to method '\" + m.toGenericString() + \"'.\");\n urlMap.put(matcher, new Action(bean, m));\n }\n }\n }", "static public Action[] getActions()\r\n {\r\n JTextPane TempTextPane = new JTextPane();\r\n\t return(TempTextPane.getActions() );\r\n }", "@Transient\n\tpublic WFSProgress getProgressByActionName(String name){\n\t\tWFSProgress result = null;\n\t\tif(!this.getProgresses().isEmpty()){\n\t\t\tfor(WFSProgress ds : this.getProgresses()){\n\t\t\t\tif(ds.getSequence() == null)continue;\n\t\t\t\tif(ds.getSequence().getWfAction().getName().equals(name)){\n\t\t\t\t\tresult = ds;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public interface ActionMatcher {\n boolean match(Action action, ActionParameters actionUri);\n}", "public List<Action> getActions() {\n return this.data.getActions();\n }", "public Set getActions () {\n if (actions == null) // lazy aren't we\n initActions ();\n return actions;\n }", "protected QaIOReporter performAction(String name) {\n Node node = null;\n try {\n node = TestUtil.THIS.findData(name).getNodeDelegate();\n } catch (Exception ex) {\n ex.printStackTrace(dbg);\n fail(\"Cannot get Node Delegate for 'data/\" + name +\"' due:\\n\" + ex);\n }\n QaIOReporter reporter = performAction(new Node[] {node});\n return reporter;\n }", "public List<Action> actions() {\r\n\t\treturn this.actions;\r\n\t}", "public Collection<Action> getActions() {\n\t\treturn Collections.unmodifiableCollection(actionList);\n\t}", "public int showPossibleActions(String[] string);", "public static List<GroupAction> getGroupActionList( )\n {\n return _dao.selectGroupActionList( _plugin );\n }", "default List<ItemAction<T>> actions() {\n return new ArrayList<>();\n }", "public ContentHandler[] forAction(String action) {\n return impl.forAction(action);\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n if (actionsBuilder_ == null) {\n return actions_.get(index);\n } else {\n return actionsBuilder_.getMessage(index);\n }\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n if (actionsBuilder_ == null) {\n return actions_.get(index);\n } else {\n return actionsBuilder_.getMessage(index);\n }\n }", "@Override\n\tpublic Action getAction(int i) {\n\t\treturn this.actions.get(i);\n\t}", "public List<Action> getActions()\r\n {\r\n return Collections.unmodifiableList(actions);\r\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n return actions_.get(index);\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n return actions_.get(index);\n }", "public abstract ActionInMatch act();", "private Command getCommandByName(String name) {\n for (Command command : commands) {\n if (command.getName().equals(name)) {\n return command;\n }\n }\n return null;\n }", "public void checkActions() {\n\t\tfor (BaseAction ba : this.actions) {\n\t\t\tba.checkAction();\n\t\t}\n\t}", "private ArrayList<String> getPossibleActions() {\n\t\t\n\t\tRandom r = new Random();\n\t\tArrayList<String> possibleActions = new ArrayList<String>();\n\t\tfor (String actionTitle : getAllActions()) {\n\t\t\tif (r.nextDouble() < 0.3) {\n\t\t\t\tpossibleActions.add(actionTitle);\n\t\t\t}\n\t\t}\n\t\treturn possibleActions;\n\t}", "String getOnAction();", "public static SendMethod findByName(String name) {\n\t\tfor (SendMethod sendMethod : SendMethod.values()) {\n\t\t\tif (sendMethod.getName().equals(name)) {\n\t\t\t\treturn sendMethod;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@GET\n @Path(\"/actions/tags/{tags}\")\n public Collection<RESTActionType> getActionTypeByTag(@PathParam(\"tags\") String tags, @HeaderParam(\"Accept-Language\") String language) {\n String[] tagsArray = tags.split(\",\");\n Set<ActionType> results = new LinkedHashSet<>();\n for (String tag : tagsArray) {\n results.addAll(definitionsService.getActionTypeByTag(tag));\n }\n return localizationHelper.generateActions(results, language);\n }", "public ActionDefinition actdef(String n){\n ActionDefinition rc = isAction(n);\n if (rc == null){\n return(null);\n }\n else\n return(rc);\n }", "void listActions(String userName, String experimentIds, Bundle arguments,\n Callback<Set<String>> callback);", "@Override\n public String getActions() {\n\treturn \"\";\n }", "@Override\r\n public List<Move> findActions(Role role)\r\n throws MoveDefinitionException {\r\n \tMap<Role, Set<Proposition>> legalPropositions = propNet.getLegalPropositions();\r\n \tSet<Proposition> legals = legalPropositions.get(role);\r\n \tList<Move> actions = new ArrayList<Move>();\r\n \tfor(Proposition p: legals){\r\n \t\t\tactions.add(getMoveFromProposition(p));\r\n \t}\r\n\t\treturn actions;\r\n }", "@Override\r\n\tpublic List<ActionInput> getActions()\r\n\t{\n\t\treturn null;\r\n\t}", "@Path(\"devices/actions/{id}\")\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<Action> getAllActionsOnDevice(@PathParam(\"id\") String id) {\n return ContextManager.getInstance().getAllActionsOnDevice(id);\n }", "public ArrayList<GameActionSet> getPossibleActions(GameMap map, GamePath movePath)\n {\n return getPossibleActions(map, movePath, false);\n }", "public List<Action> getUserActions(User user){\n return (List<Action>) HibernateUtility.getSessionFactory().openSession()\n .createQuery(\"FROM Action WHERE author = :user\")\n .setParameter(\"user\", user)\n .list();\n }", "@RequestMapping(value = \"/name/{name:.+}\", method = RequestMethod.GET)\n @Override\n public List<Command> commandForName(@PathVariable String name) {\n try {\n return repos.findByName(name);\n } catch (Exception e) {\n logger.error(\"Error getting command: \" + e.getMessage());\n throw new ServiceException(e);\n }\n }", "public CayenneAction getAction(String key) {\n return (CayenneAction) actionMap.get(key);\n }", "private void registerActions() {\n // File menu :\n new NewAction();\n new LoadOIFitsAction();\n new LoadFitsImageAction();\n\n new ExportOIFitsAction();\n new ExportFitsImageAction();\n\n // Edit menu :\n new DeleteSelectionAction();\n\n // Processing menu :\n new RunAction();\n new ResampleImageAction();\n\n // Interop menu :\n // Send OIFits (SAMP) :\n new SendOIFitsAction();\n // Send Fits (SAMP) :\n new SendFitsAction();\n }", "public Actions getActions() {\n if (actions == null) {\n actions = new Actions();\n }\n return actions;\n }", "public abstract Action getAction();", "public Action removeAction(String name) {\n\n //set the deleted action to null\n for(Configuration conf : configurations) {\n\n for(Screen s : MainModel.getInstance().getScreensFromConf(conf)) {\n\n for(Link link : s.getLinks()) {\n\n if(link.getAction() != null) {\n\n if(link.getAction().getName().equals(name))\n link.setAction(null);\n\n }\n }\n }\n }\n\n Action thisAction = getAction(name);\n\n //SE L'AZIONE è DI TIPO VOCALE\n if(thisAction instanceof ActionVocal) {\n\n ArrayList<SVMmodel> modelsRemoved = new ArrayList<>();\n //RIMUOVO TUTTI I SUONI CHE SI RIFERISCONO AD ESSA\n ((ActionVocal) thisAction).deleteAllSounds();\n\n //E TUTTI GLI SVMModels CHE HANNO QUEI SUONI\n for (SVMmodel mod : svmModels.values()) {\n\n if (mod.containsSound(thisAction.getName())) {\n mod.prepareForDelete();\n modelsRemoved.add(mod);\n }\n\n }\n\n for(SVMmodel model : modelsRemoved) {\n\n svmModels.remove(model.getName());\n\n for(Configuration conf : configurations) {\n\n if(conf.hasModel() && conf.getModel().equals(model)) {\n conf.setModel(null);\n }\n }\n }\n\n }\n\n return actions.remove(name);\n }", "@GET\n @Path(\"/actions\")\n public Collection<RESTActionType> getAllActionTypes(@HeaderParam(\"Accept-Language\") String language) {\n Collection<ActionType> actionTypes = definitionsService.getAllActionTypes();\n return localizationHelper.generateActions(actionTypes, language);\n }", "org.naru.park.ParkController.CommonAction getAll();", "org.naru.park.ParkController.CommonAction getAll();", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Operation lookupOperation(java.lang.String name, List paramTypes) {\n Operation op;\n \n //UML-MOF-Common\n Iterator allOperationsIt = allOperations().iterator();\n while(allOperationsIt.hasNext()){\n op = (Operation) allOperationsIt.next(); \n if(name.equals(op.getNameA()) && op.hasMatchingSignature(paramTypes)){\n return op;\n } \n }\n\n return null;\n }", "@RequestMapping(value = \"actions/{entityType}/{id}\", method = RequestMethod.GET)\n public Resources<Action> getActions(@PathVariable ProjectEntityType entityType, @PathVariable ID id) {\n return Resources.of(\n extensionManager.getExtensions(ProjectEntityActionExtension.class).stream()\n .map(x -> x.getAction(getEntity(entityType, id)).map(action -> resolveExtensionAction(x, action)))\n .filter(Optional::isPresent)\n .map(Optional::get)\n .filter(Action::getEnabled)\n .collect(Collectors.toList()),\n uri(MvcUriComponentsBuilder.on(getClass()).getActions(entityType, id))\n );\n }", "protected HashSet<GoapAction> extractPossibleActions() {\r\n\t\tHashSet<GoapAction> possibleActions = new HashSet<GoapAction>();\r\n\r\n\t\ttry {\r\n\t\t\tfor (GoapAction goapAction : this.goapUnit.getAvailableActions()) {\r\n\t\t\t\tif (goapAction.checkProceduralPrecondition(this.goapUnit)) {\r\n\t\t\t\t\tpossibleActions.add(goapAction);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn possibleActions;\r\n\t}", "public Action[] getActions() {\n return TextAction.augmentList(super.getActions(), defaultActions);\n }", "public static List<Action> getActions (List<Action> list) {\n\n // This can be fairly easy with lambda (but lambdas are not supported in Java 7)\n Predicate<Action> condition = new Predicate<Action>()\n {\n @Override\n public boolean test(Action action) {\n return action.isValid();\n }\n };\n\n Supplier<List<Action>> supplier = new Supplier<List<Action>>() {\n @Override\n public List<Action> get() {\n return new ArrayList<Action>();\n }\n };\n\n List<Action> filtered = list.stream()\n .filter( condition ).collect(Collectors.toCollection(supplier));\n return filtered;\n }" ]
[ "0.7597417", "0.6711573", "0.65880316", "0.6423776", "0.6145476", "0.6137768", "0.611756", "0.6088767", "0.60679007", "0.60427195", "0.59779114", "0.5963767", "0.58847004", "0.5881752", "0.58307904", "0.5761987", "0.5751861", "0.5725649", "0.57246333", "0.57092893", "0.5707166", "0.5695095", "0.56556815", "0.564407", "0.5629285", "0.5581892", "0.55781263", "0.55552804", "0.55518186", "0.55502784", "0.5547015", "0.5537213", "0.55349237", "0.5531528", "0.553139", "0.55270284", "0.55013806", "0.5483328", "0.548169", "0.548169", "0.5460254", "0.5460254", "0.5459856", "0.5451572", "0.5442473", "0.54411685", "0.5431961", "0.54284585", "0.54274493", "0.5408496", "0.53806454", "0.5377063", "0.53744036", "0.5370891", "0.5364262", "0.5350674", "0.5347842", "0.5338496", "0.53312105", "0.5323968", "0.531597", "0.53059083", "0.53057224", "0.53045017", "0.5286598", "0.5280385", "0.5280385", "0.5270383", "0.5270116", "0.52667755", "0.52667755", "0.52579004", "0.52550495", "0.52502877", "0.52420187", "0.5241415", "0.52347004", "0.5231422", "0.52291167", "0.52287334", "0.52204484", "0.5219567", "0.5214033", "0.52135044", "0.5201583", "0.51950157", "0.51922476", "0.5180819", "0.51742005", "0.51680595", "0.51653326", "0.5162327", "0.5154174", "0.51533663", "0.51533663", "0.51485616", "0.5129483", "0.5125076", "0.51232237", "0.51205945" ]
0.6857733
1
A helper method to find all actions with the given owner's name (this will not include reserved system actions)
public static Set<DockingActionIf> getActionsByOwner(Tool tool, String name) { return tool.getDockingActionsByOwnerName(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<DockingActionIf> getActionsByOwnerAndName(Tool tool, String owner,\n\t\t\tString name) {\n\t\tSet<DockingActionIf> ownerActions = tool.getDockingActionsByOwnerName(owner);\n\t\treturn ownerActions.stream()\n\t\t\t\t.filter(action -> action.getName().equals(name))\n\t\t\t\t.collect(Collectors.toSet());\n\t}", "public Action[] getActions(Object target, Object sender) {\n \t\treturn actions;\n \t}", "public Action getAction(String name) { return actions.get(name); }", "@Override\n\tpublic Action[] getActions(Object target, Object sender) {\n\t\treturn ACTIONS;\n\t}", "public static Set<DockingActionIf> getActionsByName(Tool tool, String name) {\n\n\t\tSet<DockingActionIf> result = new HashSet<>();\n\n\t\tSet<DockingActionIf> toolActions = tool.getAllActions();\n\t\tfor (DockingActionIf action : toolActions) {\n\t\t\tif (action.getName().equals(name)) {\n\t\t\t\tresult.add(action);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n\tpublic List<Action> findAll() throws SQLException {\n\t\treturn null;\r\n\t}", "public List<Action> getUserActions(User user){\n return (List<Action>) HibernateUtility.getSessionFactory().openSession()\n .createQuery(\"FROM Action WHERE author = :user\")\n .setParameter(\"user\", user)\n .list();\n }", "String[] getActions();", "public Set<ActionReader> getActions();", "public IPermission[] getPermissionsForOwner(String owner, String activity, String target)\n throws AuthorizationException;", "public static List<String> getActuators(List<Action> actions){\n\t\tList<String> actuators = new ArrayList<>();\n\t\tif(actions==null || actions.size()==0) return actuators;\n\t\tfor(Action act : actions)\n\t\t\tactuators.add(act.getResource().getName());\n\t\treturn actuators;\n\t}", "public Collection findOwnerPresentations(Agent owner, String toolId, String showHidden);", "public ActionList getActions();", "public List<String> allUsersInteractedWith(String owner)\n\t{\n\t\tSet<String> users = new HashSet<>();\n\t\tfor (Chat chat : db.findBySenderOrReceiver(owner, owner))\n\t\t{\n\t\t\t// if the receiver is the owner, the sender is someone else (the user)\n\t\t\t// and vice versa\n\t\t\tString receiver = chat.getReceiver();\n\t\t\tString sender = chat.getSender();\n\t\t\tusers.add(sender.equals(owner) ? receiver : sender);\n\t\t}\n\t\treturn new ArrayList<String>(users);\n\t}", "public List<IAction> getActions(Verrechnet kontext){\n\t\treturn null;\n\t}", "public static DockingActionIf getAction(DialogComponentProvider provider, String actionName) {\n\n\t\tSet<DockingActionIf> actions = provider.getActions();\n\t\tfor (DockingActionIf action : actions) {\n\t\t\tif (action.getName().equals(actionName)) {\n\t\t\t\treturn action;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public final List<Action> getTopLevelActions(String playerId, SwccgGame game, PhysicalCard self) {\n List<Action> actions = super.getTopLevelActions(playerId, game, self);\n\n // Creatures may attack a non-creature if they are present with a valid target during owner's battle phase\n if (GameConditions.isDuringYourPhase(game, playerId, Phase.BATTLE)\n && !GameConditions.isDuringAttack(game)\n && !GameConditions.isDuringBattle(game)) {\n GameState gameState = game.getGameState();\n ModifiersQuerying modifiersQuerying = game.getModifiersQuerying();\n if (!modifiersQuerying.hasParticipatedInAttackOnNonCreatureThisTurn(self)) {\n PhysicalCard location = modifiersQuerying.getLocationThatCardIsPresentAt(gameState, self);\n if (location != null) {\n if (!modifiersQuerying.mayNotInitiateAttacksAtLocation(gameState, location, playerId)\n && GameConditions.canSpot(game, self, SpotOverride.INCLUDE_ALL, Filters.nonCreatureCanBeAttackedByCreature(self, false))) {\n actions.add(new InitiateAttackNonCreatureAction(self));\n }\n }\n }\n }\n\n return actions;\n }", "public java.util.Enumeration getProjectActions() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getProjectActions();\n }", "@Override\n\tpublic List<JSONObject> getActions(JSONObject params) {\n\t\treturn this.selectList(\"getActions\", params);\n\t}", "public ActionReader getAction(String name);", "public static Collection<Action> actions(String... ids) {\n/* 216 */ List<Action> result = new ArrayList<>();\n/* 217 */ for (String id : ids) {\n/* 218 */ if (id.startsWith(\"---\")) result.add(ActionUtils.ACTION_SEPARATOR); \n/* 219 */ Action action = action(id);\n/* 220 */ if (action != null) result.add(action); \n/* */ } \n/* 222 */ return result;\n/* */ }", "static synchronized ExplorerActionsImpl findExplorerActionsImpl(ExplorerManager em) {\n assert em != null;\n if (em.actions == null) {\n em.actions = new ExplorerActionsImpl();\n em.actions.attach(em);\n }\n\n return em.actions;\n }", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "public PDAction getU() {\n/* 158 */ COSDictionary u = (COSDictionary)this.actions.getDictionaryObject(\"U\");\n/* 159 */ PDAction retval = null;\n/* 160 */ if (u != null)\n/* */ {\n/* 162 */ retval = PDActionFactory.createAction(u);\n/* */ }\n/* 164 */ return retval;\n/* */ }", "Collection<? extends Action> getHas_action();", "public FilterApplyAction(ListComponent owner) {\r\n this(owner, ACTION_ID);\r\n }", "public static ImagingAction getActionByName(String actionName) {\n for (ImagingAction imagingAction : getImagingActions()) {\n if (imagingAction.getName().equals(actionName)) {\n return imagingAction;\n }\n }\n return null;\n }", "public List<IPermissionOwner> getAllPermissionOwners();", "com.rpg.framework.database.Protocol.CharacterAction getActions(int index);", "com.rpg.framework.database.Protocol.CharacterAction getActions(int index);", "String getActionName();", "Set<Action> getAvailableActions(Long entityId, Class<Action> entityClass);", "String getActionName(Closure action);", "public List<A> getAvailableActionsFor(S state);", "List<ActionDescriptor> listActionsSupported() throws IOException;", "protected HashSet<GoapAction> extractPossibleActions() {\r\n\t\tHashSet<GoapAction> possibleActions = new HashSet<GoapAction>();\r\n\r\n\t\ttry {\r\n\t\t\tfor (GoapAction goapAction : this.goapUnit.getAvailableActions()) {\r\n\t\t\t\tif (goapAction.checkProceduralPrecondition(this.goapUnit)) {\r\n\t\t\t\t\tpossibleActions.add(goapAction);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn possibleActions;\r\n\t}", "Stream<ActionDefinition> actions();", "ActionsSet getActions();", "public Collection findTemplatesByOwner(Agent owner);", "public List<Action> getActions() {\n\n if (actions != null)\n return new ArrayList<>(actions.values());\n else\n return new ArrayList<>();\n\n }", "private ArrayList<String> getAllActions() {\n\t\t\n\t\tArrayList<String> allActions = new ArrayList<String>();\n\t\tallActions.add(\"Job fisher\");\n\t\tallActions.add(\"Job captain\");\n\t\tallActions.add(\"Job teacher\");\n\t\tallActions.add(\"Job factory worker\");\n\t\tallActions.add(\"Job factory boss\");\n\t\tallActions.add(\"Job elderly caretaker\");\n\t\tallActions.add(\"Job work outside village\");\n\t\tallActions.add(\"Job unemployed\");\n\t\treturn allActions;\n\t}", "public List<Action> getActions()\r\n {\r\n return Collections.unmodifiableList(actions);\r\n }", "@Override\n public Action getAction(Actor actor, GameMap map) {\n Dinosaur dino = (Dinosaur) actor;\n dinoClass = dino.getClass();\n here = map.locationOf(dino);\n\n Action ret = null;\n for(Exit exit: here.getExits()){\n if (map.isAnActorAt(exit.getDestination())) {\n //make sure they're not trying to mate with Player\n if(map.getActorAt(exit.getDestination()).getDisplayChar() != '@'){\n Dinosaur target = (Dinosaur) map.getActorAt(exit.getDestination());\n //if they are the same species\n if (!target.isPregnant() && target.getDisplayChar() == dino.getDisplayChar()\n && target.getGender() != dino.getGender() && !(target instanceof BabyDinosaur)){\n //if Pterodactyls are trying to mate, make sure their on a tree\n if(target instanceof Pterodactyl){\n Pterodactyl pteroOne = (Pterodactyl) target;\n Pterodactyl pteroTwo = (Pterodactyl) dino;\n if(pteroOne.getOnTree() && pteroTwo.getOnTree()){\n ret= new MateAction(target);\n }\n }\n else{\n ret= new MateAction(target);\n }\n }\n }\n }\n }\n //if no breeding they'll just move closer to a target OR return null if no target\n if(ret == null){\n ret = moveCloser(dino, map);\n }\n return ret;\n }", "private ArrayList<String> getPossibleActions() {\n\t\t\n\t\tRandom r = new Random();\n\t\tArrayList<String> possibleActions = new ArrayList<String>();\n\t\tfor (String actionTitle : getAllActions()) {\n\t\t\tif (r.nextDouble() < 0.3) {\n\t\t\t\tpossibleActions.add(actionTitle);\n\t\t\t}\n\t\t}\n\t\treturn possibleActions;\n\t}", "public List<ActionVocal> getVocalActions() {\n ArrayList<ActionVocal> result = new ArrayList<>();\n for (Action item : actions.values()) {\n if (item instanceof ActionVocal) result.add((ActionVocal)item);\n }\n return result;\n }", "public List<ActionValue> getActions(State state);", "public Set getActions () {\n if (actions == null) // lazy aren't we\n initActions ();\n return actions;\n }", "@Override\r\n public List<Move> findActions(Role role)\r\n throws MoveDefinitionException {\r\n \tMap<Role, Set<Proposition>> legalPropositions = propNet.getLegalPropositions();\r\n \tSet<Proposition> legals = legalPropositions.get(role);\r\n \tList<Move> actions = new ArrayList<Move>();\r\n \tfor(Proposition p: legals){\r\n \t\t\tactions.add(getMoveFromProposition(p));\r\n \t}\r\n\t\treturn actions;\r\n }", "public PDAction getFo() {\n/* 187 */ COSDictionary fo = (COSDictionary)this.actions.getDictionaryObject(\"Fo\");\n/* 188 */ PDAction retval = null;\n/* 189 */ if (fo != null)\n/* */ {\n/* 191 */ retval = PDActionFactory.createAction(fo);\n/* */ }\n/* 193 */ return retval;\n/* */ }", "public CachetActionList getActions() {\n throw new RuntimeException(\"Method not implemented.\");\n }", "protected Actions exec() {\n return actions;\n }", "List<ManagementLockOwner> owners();", "public String getName() {\n return \"GetIndividualsFullAction\";\n }", "public void userActionTriggeredOnObject(String userActionsName) {\n\n\t\tLog.info(\"triggering user action:\" + userActionsName);\n\n\t\t// if (userActionsName.equalsIgnoreCase(\"examine\")){\n\t\t// this.triggerPopup();\n\t\t// }\n\n\t\t// check for object specific actions\n\t\tif (itemsActions!=null){\n\t\t\n\t\t\tCommandList actions = itemsActions.getActionsForTrigger(\n\t\t\t\tTriggerType.UserActionUsed, userActionsName);\n\n\t\tLog.info(\"item actions found: \\n\" + actions.toString());\n\t\t// in future this function should support an arraylist\n\t\t\t\tInstructionProcessor.processInstructions(actions, \"FROM_inventory\"\n\t\t\t\t\t\t+ \"_\" + this.Name,null);\n\n\t\t}\n\t\t\n\t}", "public static List<IcyAbstractAction> getAllActions()\r\n {\r\n final List<IcyAbstractAction> result = new ArrayList<IcyAbstractAction>();\r\n\r\n for (Field field : GeneralActions.class.getFields())\r\n {\r\n final Class<?> type = field.getType();\r\n\r\n try\r\n {\r\n if (type.isAssignableFrom(IcyAbstractAction[].class))\r\n result.addAll(Arrays.asList(((IcyAbstractAction[]) field.get(null))));\r\n else if (type.isAssignableFrom(IcyAbstractAction.class))\r\n result.add((IcyAbstractAction) field.get(null));\r\n }\r\n catch (Exception e)\r\n {\r\n // ignore\r\n }\r\n }\r\n\r\n return result;\r\n }", "public CObject get_ActionObjects(CAct pAction)\r\n {\r\n pAction.evtFlags &= ~CEvent.EVFLAGS_NOTDONEINSTART;\r\n rh2EnablePick = true;\r\n short qoil = pAction.evtOiList;\t\t\t\t// Pointe l'oiList\r\n CObject pObject = get_CurrentObjects(qoil);\r\n if (pObject != null)\r\n {\r\n if (repeatFlag == false)\r\n {\r\n // Pas de suivant\r\n pAction.evtFlags &= ~CAct.ACTFLAGS_REPEAT;\t\t// Ne pas refaire cette action\r\n return pObject;\r\n }\r\n else\r\n {\r\n // Un suivant\r\n pAction.evtFlags |= CAct.ACTFLAGS_REPEAT;\t\t// Refaire cette action\r\n rh2ActionLoop = true;\t\t\t \t// Refaire un tour d'actions\r\n return pObject;\r\n }\r\n }\r\n pAction.evtFlags &= ~CAct.ACTFLAGS_REPEAT;\t\t\t\t// Ne pas refaire cette action\r\n pAction.evtFlags |= CEvent.EVFLAGS_NOTDONEINSTART;\r\n return pObject;\r\n }", "public List<Action> getActions(){return actions;}", "public java.util.List<com.rpg.framework.database.Protocol.CharacterAction> getActionsList() {\n if (actionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(actions_);\n } else {\n return actionsBuilder_.getMessageList();\n }\n }", "public java.util.List<com.rpg.framework.database.Protocol.CharacterAction> getActionsList() {\n if (actionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(actions_);\n } else {\n return actionsBuilder_.getMessageList();\n }\n }", "public static OptionalThing<ActionExecute> findActionExecute(String actionName, RoutingParamPath paramPath) {\n return findActionMapping(actionName).map(mapping -> mapping.findActionExecute(paramPath));\n }", "public List<Action> actions() {\r\n\t\treturn this.actions;\r\n\t}", "public abstract List<Instruction> getPossibleActions();", "public List<Action> getActions() {\n return this.data.getActions();\n }", "com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction();", "@Override\r\n\tpublic List<ActionInput> getActions()\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\n public String getActions() {\n\treturn \"\";\n }", "void listActions(String userName, String experimentIds, Bundle arguments,\n Callback<Set<String>> callback);", "public String[] getActions() {\n return impl.getActions();\n }", "static public Action[] getActions()\r\n {\r\n JTextPane TempTextPane = new JTextPane();\r\n\t return(TempTextPane.getActions() );\r\n }", "@Override\r\n\tpublic Map<String, Action> getAdminActons() {\n\t\treturn null;\r\n\t}", "public List<ExoSocialActivity> getUserActivities(Identity owner) throws ActivityStorageException;", "public Collection<Action> getActions() {\n\t\treturn Collections.unmodifiableCollection(actionList);\n\t}", "public static Action action(String id) {\n/* 205 */ return actions.get(id);\n/* */ }", "public String getActions()\n {\n StringBuffer sb = new StringBuffer();\n boolean first = true;\n \n if ( ( m_eventTypeMask & MASK_SERVICE ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_SERVICE );\n }\n if ( ( m_eventTypeMask & MASK_CONTROL ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_CONTROL );\n }\n if ( ( m_eventTypeMask & MASK_CORE ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_CORE );\n }\n \n return sb.toString();\n }", "public static void readActionNames()throws Exception{\r\n\t\tSystem.out.println(\"Read action names...\");\r\n\t\tBufferedReader actionReader = new BufferedReader(new FileReader(ACTION_URL));\r\n\t\tString line = null;\r\n\t\tactionNameArray = new String[ actionNumber ];\r\n\t\tint cnt = 0;\r\n\t\twhile((line = actionReader.readLine())!=null){\r\n\t\t\tactionNameArray[ cnt++ ] = line.replace(\" \", \"_\");\r\n\t\t}\r\n\t\tactionReader.close();\r\n\t}", "public static List<GroupAction> getGroupActionList( )\n {\n return _dao.selectGroupActionList( _plugin );\n }", "public List<Task> getTaskForToday(String owner) {\n\n\t\tList<Task> tasksEOD = null;\n\t\tif (owner.equals(TVSchedulerConstants.CESAR)) {\n\t\t\ttasksEOD = getCesarTasksExpiringToday();\n\t\t} else if (owner.equals(TVSchedulerConstants.HOME)) {\n\t\t\ttasksEOD = getHomeTasksExpiringToday();\n\t\t}\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.add(Calendar.HOUR, -2);\n\t\tList<Task> tasksPermanentTasks = taskRepository\n\t\t\t\t.getTaskByOwnerAndExpireAtTheEndOfTheDayAndCompletionDateAfter(owner, false, calendar.getTime());\n\t\tList<Task> tasks = tasksEOD;\n\t\ttasks.addAll(tasksPermanentTasks);\n\t\tDate date = DateUtils.truncate(new Date(), Calendar.DATE);\n\t\ttasksPermanentTasks = taskRepository.getTaskByDateAndOwnerAndExpireAtTheEndOfTheDayAndDone(date, owner, false,\n\t\t\t\ttrue);\n\t\ttasks.addAll(tasksPermanentTasks);\n\t\treturn tasks;\n\t}", "public static List<Action> getActions (List<Action> list) {\n\n // This can be fairly easy with lambda (but lambdas are not supported in Java 7)\n Predicate<Action> condition = new Predicate<Action>()\n {\n @Override\n public boolean test(Action action) {\n return action.isValid();\n }\n };\n\n Supplier<List<Action>> supplier = new Supplier<List<Action>>() {\n @Override\n public List<Action> get() {\n return new ArrayList<Action>();\n }\n };\n\n List<Action> filtered = list.stream()\n .filter( condition ).collect(Collectors.toCollection(supplier));\n return filtered;\n }", "@OneToMany(fetch = FetchType.LAZY, mappedBy = Action.Attributes.SYSTEM, targetEntity = Action.class, orphanRemoval = true)\n\tpublic Set<Action> getActions() {\n\t\treturn this.actions;\n\t}", "@Test\n public void testGetMyTasks_ByOwner() throws HTException {\n\n Task t = createTask_OnePotentialOwner();\n\n List<Task> results = services.getMyTasks(\"user1\", TaskTypes.ALL,\n GenericHumanRole.ACTUAL_OWNER, null,\n new ArrayList<Status>(), null, null, null, null, 0);\n\n Assert.assertEquals(1, results.size());\n\n Task taskToCheck = results.get(0);\n\n Assert.assertEquals(t.getActualOwner(), taskToCheck.getActualOwner());\n Assert.assertEquals(Task.Status.RESERVED, taskToCheck.getStatus());\n }", "public Actions getActions() {\n if (actions == null) {\n actions = new Actions();\n }\n return actions;\n }", "default List<ItemAction<T>> actions() {\n return new ArrayList<>();\n }", "public void checkActions() {\n\t\tfor (BaseAction ba : this.actions) {\n\t\t\tba.checkAction();\n\t\t}\n\t}", "String getAction();", "String getAction();", "public ArrayList<Action> getActions() {\n\t\tSquare [] adjacents = adjacentCells(); \n\t\tint sol[]=new int[adjacents.length];\n\t\tArrayList solutions = new ArrayList(); \n\n\t\tdistributeSand(0,getS(),adjacents,sol,solutions);\n\n\t\tArrayList<Action> actions=new ArrayList<Action>();\n\n\t\tint aux[]; \n\t\tfor (int k=0;k<adjacents.length;k++) {\n\t\t\tfor (int i=0; i<solutions.size();i++){\n\t\t\t\taux=(int[]) solutions.get(i);\n\t\t\t\tactions.add(new Action(adjacents[k],adjacents,aux));\n\t\t\t} \n\t\t} \n\t\treturn actions;\n\t}", "public PDAction getE() {\n/* 71 */ COSDictionary e = (COSDictionary)this.actions.getDictionaryObject(\"E\");\n/* 72 */ PDAction retval = null;\n/* 73 */ if (e != null)\n/* */ {\n/* 75 */ retval = PDActionFactory.createAction(e);\n/* */ }\n/* 77 */ return retval;\n/* */ }", "public Action getAction(int index) { return actions.get(index); }", "java.lang.String getOwner();", "java.lang.String getOwner();", "public String actionsToString() {\n String res = \"\";\n for (UserCheck userCheck: checks) {\n res += userCheck.toString() + \" \\n\";\n }\n return res;\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n if (actionsBuilder_ == null) {\n return actions_.get(index);\n } else {\n return actionsBuilder_.getMessage(index);\n }\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n if (actionsBuilder_ == null) {\n return actions_.get(index);\n } else {\n return actionsBuilder_.getMessage(index);\n }\n }", "protected Set<Action> deriveClickTypeScrollActionsFromTopLevelWidgets(Set<Action> actions, SUT system, State state){\n // To derive actions (such as clicks, drag&drop, typing ...) we should first create an action compiler.\n StdActionCompiler ac = new AnnotatingActionCompiler();\n\n // To find all possible actions that TESTAR can click on we should iterate through all widgets of the state.\n for(Widget w : getTopWidgets(state)){\n //optional: iterate through top level widgets based on Z-index:\n //for(Widget w : getTopWidgets(state)){\n\n if(w.get(Tags.Role, Roles.Widget).toString().equalsIgnoreCase(\"UIAMenu\")){\n // filtering out actions on menu-containers (that would add an action in the middle of the menu)\n continue; // skip this iteration of the for-loop\n }\n\n // Only consider enabled and non-blocked widgets\n if(w.get(Enabled, true) && !w.get(Blocked, false)){\n\n // Do not build actions for widgets on the blacklist\n // The blackListed widgets are those that have been filtered during the SPY mode with the\n //CAPS_LOCK + SHIFT + Click clickfilter functionality.\n if (!blackListed(w)){\n\n //For widgets that are:\n // - clickable\n // and\n // - unFiltered by any of the regular expressions in the Filter-tab, or\n // - whitelisted using the clickfilter functionality in SPY mode (CAPS_LOCK + SHIFT + CNTR + Click)\n // We want to create actions that consist of left clicking on them\n if(isClickable(w) && (isUnfiltered(w) || whiteListed(w))) {\n //Create a left click action with the Action Compiler, and add it to the set of derived actions\n actions.add(ac.leftClickAt(w));\n }\n\n //For widgets that are:\n // - typeable\n // and\n // - unFiltered by any of the regular expressions in the Filter-tab, or\n // - whitelisted using the clickfilter functionality in SPY mode (CAPS_LOCK + SHIFT + CNTR + Click)\n // We want to create actions that consist of typing into them\n if(isTypeable(w) && (isUnfiltered(w) || whiteListed(w))) {\n //Create a type action with the Action Compiler, and add it to the set of derived actions\n actions.add(ac.clickTypeInto(w, this.getRandomText(w), true));\n }\n //Add sliding actions (like scroll, drag and drop) to the derived actions\n //method defined below.\n addSlidingActions(actions,ac,SCROLL_ARROW_SIZE,SCROLL_THICK,w, state);\n }\n }\n }\n return actions;\n }", "public static String getActionName(Action action) {\n\t\tString tempName = action.getName();\n\t\tint length = tempName.length();\n\t\tint nameLength = length;\n\t\tif (tempName.contains(StateEnum.INACTIVE.toString())) {\n\t\t\tnameLength = length - StateEnum.INACTIVE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.ENABLE.toString())) {\n\t\t\tnameLength = length - StateEnum.ENABLE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.RUNNING.toString())) {\n\t\t\tnameLength = length - StateEnum.RUNNING.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.COMPLETED.toString())) {\n\t\t\tnameLength = length - StateEnum.COMPLETED.toString().length() - 4;\n\t\t}\n\t\treturn tempName.substring(0, nameLength);\n\t}", "String getOnAction();", "public List<FileAction> getFileActions(Commit commit) {\r\n return datastore.createQuery(FileAction.class)\r\n .field(\"commit_id\")\r\n .equal(commit.getId()).asList();\r\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n return actions_.get(index);\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n return actions_.get(index);\n }" ]
[ "0.7359365", "0.61252517", "0.5858882", "0.5850454", "0.57741255", "0.5719765", "0.5713571", "0.5637789", "0.56176335", "0.55812615", "0.55480564", "0.5520516", "0.5516009", "0.5499499", "0.54889685", "0.54621035", "0.5404498", "0.53887755", "0.5385841", "0.5345597", "0.53231466", "0.52849585", "0.52633154", "0.52633154", "0.525847", "0.52298015", "0.5216002", "0.51881635", "0.51809347", "0.51705086", "0.5169676", "0.51542693", "0.51308393", "0.51302075", "0.5129079", "0.5092707", "0.5072227", "0.50659364", "0.5055344", "0.5043146", "0.50417364", "0.5039725", "0.50036144", "0.4992133", "0.4991433", "0.4981932", "0.4973502", "0.49710602", "0.49697366", "0.49631438", "0.49514416", "0.49431023", "0.49351192", "0.4929741", "0.49119923", "0.49028128", "0.4899347", "0.48967257", "0.48887777", "0.48873305", "0.48868626", "0.48844266", "0.48571435", "0.48522457", "0.48469457", "0.4837377", "0.48280457", "0.4827455", "0.48217767", "0.4820206", "0.48087057", "0.48084036", "0.48031595", "0.4791139", "0.47837096", "0.4774685", "0.47720638", "0.47514316", "0.47501615", "0.47500125", "0.47443345", "0.4718143", "0.47126013", "0.4700268", "0.46854573", "0.46854573", "0.4670337", "0.46665755", "0.46661532", "0.46611497", "0.46611497", "0.46509895", "0.4646358", "0.4646358", "0.46279386", "0.46233544", "0.46181682", "0.46096987", "0.46096548", "0.46096548" ]
0.7142432
1
A helper method to find all actions by name, with the given owner's name (this will not include reserved system actions)
public static Set<DockingActionIf> getActionsByOwnerAndName(Tool tool, String owner, String name) { Set<DockingActionIf> ownerActions = tool.getDockingActionsByOwnerName(owner); return ownerActions.stream() .filter(action -> action.getName().equals(name)) .collect(Collectors.toSet()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<DockingActionIf> getActionsByOwner(Tool tool, String name) {\n\t\treturn tool.getDockingActionsByOwnerName(name);\n\t}", "public Action getAction(String name) { return actions.get(name); }", "public static Set<DockingActionIf> getActionsByName(Tool tool, String name) {\n\n\t\tSet<DockingActionIf> result = new HashSet<>();\n\n\t\tSet<DockingActionIf> toolActions = tool.getAllActions();\n\t\tfor (DockingActionIf action : toolActions) {\n\t\t\tif (action.getName().equals(name)) {\n\t\t\t\tresult.add(action);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Action[] getActions(Object target, Object sender) {\n \t\treturn actions;\n \t}", "public ActionReader getAction(String name);", "@Override\r\n\tpublic List<Action> findAll() throws SQLException {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Action[] getActions(Object target, Object sender) {\n\t\treturn ACTIONS;\n\t}", "public static DockingActionIf getAction(DialogComponentProvider provider, String actionName) {\n\n\t\tSet<DockingActionIf> actions = provider.getActions();\n\t\tfor (DockingActionIf action : actions) {\n\t\t\tif (action.getName().equals(actionName)) {\n\t\t\t\treturn action;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static List<String> getActuators(List<Action> actions){\n\t\tList<String> actuators = new ArrayList<>();\n\t\tif(actions==null || actions.size()==0) return actuators;\n\t\tfor(Action act : actions)\n\t\t\tactuators.add(act.getResource().getName());\n\t\treturn actuators;\n\t}", "String[] getActions();", "public List<Action> getUserActions(User user){\n return (List<Action>) HibernateUtility.getSessionFactory().openSession()\n .createQuery(\"FROM Action WHERE author = :user\")\n .setParameter(\"user\", user)\n .list();\n }", "public static ImagingAction getActionByName(String actionName) {\n for (ImagingAction imagingAction : getImagingActions()) {\n if (imagingAction.getName().equals(actionName)) {\n return imagingAction;\n }\n }\n return null;\n }", "public Set<ActionReader> getActions();", "public ActionList getActions();", "public List<IAction> getActions(Verrechnet kontext){\n\t\treturn null;\n\t}", "public static Collection<Action> actions(String... ids) {\n/* 216 */ List<Action> result = new ArrayList<>();\n/* 217 */ for (String id : ids) {\n/* 218 */ if (id.startsWith(\"---\")) result.add(ActionUtils.ACTION_SEPARATOR); \n/* 219 */ Action action = action(id);\n/* 220 */ if (action != null) result.add(action); \n/* */ } \n/* 222 */ return result;\n/* */ }", "String getActionName();", "@Override\n\tpublic List<JSONObject> getActions(JSONObject params) {\n\t\treturn this.selectList(\"getActions\", params);\n\t}", "public java.util.Enumeration getProjectActions() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getProjectActions();\n }", "String getActionName(Closure action);", "static synchronized ExplorerActionsImpl findExplorerActionsImpl(ExplorerManager em) {\n assert em != null;\n if (em.actions == null) {\n em.actions = new ExplorerActionsImpl();\n em.actions.attach(em);\n }\n\n return em.actions;\n }", "@Override\n public final List<Action> getTopLevelActions(String playerId, SwccgGame game, PhysicalCard self) {\n List<Action> actions = super.getTopLevelActions(playerId, game, self);\n\n // Creatures may attack a non-creature if they are present with a valid target during owner's battle phase\n if (GameConditions.isDuringYourPhase(game, playerId, Phase.BATTLE)\n && !GameConditions.isDuringAttack(game)\n && !GameConditions.isDuringBattle(game)) {\n GameState gameState = game.getGameState();\n ModifiersQuerying modifiersQuerying = game.getModifiersQuerying();\n if (!modifiersQuerying.hasParticipatedInAttackOnNonCreatureThisTurn(self)) {\n PhysicalCard location = modifiersQuerying.getLocationThatCardIsPresentAt(gameState, self);\n if (location != null) {\n if (!modifiersQuerying.mayNotInitiateAttacksAtLocation(gameState, location, playerId)\n && GameConditions.canSpot(game, self, SpotOverride.INCLUDE_ALL, Filters.nonCreatureCanBeAttackedByCreature(self, false))) {\n actions.add(new InitiateAttackNonCreatureAction(self));\n }\n }\n }\n }\n\n return actions;\n }", "public IPermission[] getPermissionsForOwner(String owner, String activity, String target)\n throws AuthorizationException;", "public Collection findOwnerPresentations(Agent owner, String toolId, String showHidden);", "public List<String> allUsersInteractedWith(String owner)\n\t{\n\t\tSet<String> users = new HashSet<>();\n\t\tfor (Chat chat : db.findBySenderOrReceiver(owner, owner))\n\t\t{\n\t\t\t// if the receiver is the owner, the sender is someone else (the user)\n\t\t\t// and vice versa\n\t\t\tString receiver = chat.getReceiver();\n\t\t\tString sender = chat.getSender();\n\t\t\tusers.add(sender.equals(owner) ? receiver : sender);\n\t\t}\n\t\treturn new ArrayList<String>(users);\n\t}", "com.rpg.framework.database.Protocol.CharacterAction getActions(int index);", "com.rpg.framework.database.Protocol.CharacterAction getActions(int index);", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "public FilterApplyAction(ListComponent owner) {\r\n this(owner, ACTION_ID);\r\n }", "public PDAction getU() {\n/* 158 */ COSDictionary u = (COSDictionary)this.actions.getDictionaryObject(\"U\");\n/* 159 */ PDAction retval = null;\n/* 160 */ if (u != null)\n/* */ {\n/* 162 */ retval = PDActionFactory.createAction(u);\n/* */ }\n/* 164 */ return retval;\n/* */ }", "public static OptionalThing<ActionExecute> findActionExecute(String actionName, RoutingParamPath paramPath) {\n return findActionMapping(actionName).map(mapping -> mapping.findActionExecute(paramPath));\n }", "public void userActionTriggeredOnObject(String userActionsName) {\n\n\t\tLog.info(\"triggering user action:\" + userActionsName);\n\n\t\t// if (userActionsName.equalsIgnoreCase(\"examine\")){\n\t\t// this.triggerPopup();\n\t\t// }\n\n\t\t// check for object specific actions\n\t\tif (itemsActions!=null){\n\t\t\n\t\t\tCommandList actions = itemsActions.getActionsForTrigger(\n\t\t\t\tTriggerType.UserActionUsed, userActionsName);\n\n\t\tLog.info(\"item actions found: \\n\" + actions.toString());\n\t\t// in future this function should support an arraylist\n\t\t\t\tInstructionProcessor.processInstructions(actions, \"FROM_inventory\"\n\t\t\t\t\t\t+ \"_\" + this.Name,null);\n\n\t\t}\n\t\t\n\t}", "@Override\n public Action getAction(Actor actor, GameMap map) {\n Dinosaur dino = (Dinosaur) actor;\n dinoClass = dino.getClass();\n here = map.locationOf(dino);\n\n Action ret = null;\n for(Exit exit: here.getExits()){\n if (map.isAnActorAt(exit.getDestination())) {\n //make sure they're not trying to mate with Player\n if(map.getActorAt(exit.getDestination()).getDisplayChar() != '@'){\n Dinosaur target = (Dinosaur) map.getActorAt(exit.getDestination());\n //if they are the same species\n if (!target.isPregnant() && target.getDisplayChar() == dino.getDisplayChar()\n && target.getGender() != dino.getGender() && !(target instanceof BabyDinosaur)){\n //if Pterodactyls are trying to mate, make sure their on a tree\n if(target instanceof Pterodactyl){\n Pterodactyl pteroOne = (Pterodactyl) target;\n Pterodactyl pteroTwo = (Pterodactyl) dino;\n if(pteroOne.getOnTree() && pteroTwo.getOnTree()){\n ret= new MateAction(target);\n }\n }\n else{\n ret= new MateAction(target);\n }\n }\n }\n }\n }\n //if no breeding they'll just move closer to a target OR return null if no target\n if(ret == null){\n ret = moveCloser(dino, map);\n }\n return ret;\n }", "List<ActionDescriptor> listActionsSupported() throws IOException;", "public static void readActionNames()throws Exception{\r\n\t\tSystem.out.println(\"Read action names...\");\r\n\t\tBufferedReader actionReader = new BufferedReader(new FileReader(ACTION_URL));\r\n\t\tString line = null;\r\n\t\tactionNameArray = new String[ actionNumber ];\r\n\t\tint cnt = 0;\r\n\t\twhile((line = actionReader.readLine())!=null){\r\n\t\t\tactionNameArray[ cnt++ ] = line.replace(\" \", \"_\");\r\n\t\t}\r\n\t\tactionReader.close();\r\n\t}", "Collection<? extends Action> getHas_action();", "Stream<ActionDefinition> actions();", "public List<A> getAvailableActionsFor(S state);", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public PDAction getFo() {\n/* 187 */ COSDictionary fo = (COSDictionary)this.actions.getDictionaryObject(\"Fo\");\n/* 188 */ PDAction retval = null;\n/* 189 */ if (fo != null)\n/* */ {\n/* 191 */ retval = PDActionFactory.createAction(fo);\n/* */ }\n/* 193 */ return retval;\n/* */ }", "private ArrayList<String> getAllActions() {\n\t\t\n\t\tArrayList<String> allActions = new ArrayList<String>();\n\t\tallActions.add(\"Job fisher\");\n\t\tallActions.add(\"Job captain\");\n\t\tallActions.add(\"Job teacher\");\n\t\tallActions.add(\"Job factory worker\");\n\t\tallActions.add(\"Job factory boss\");\n\t\tallActions.add(\"Job elderly caretaker\");\n\t\tallActions.add(\"Job work outside village\");\n\t\tallActions.add(\"Job unemployed\");\n\t\treturn allActions;\n\t}", "public List<Action> getActions() {\n\n if (actions != null)\n return new ArrayList<>(actions.values());\n else\n return new ArrayList<>();\n\n }", "@Override\r\n public List<Move> findActions(Role role)\r\n throws MoveDefinitionException {\r\n \tMap<Role, Set<Proposition>> legalPropositions = propNet.getLegalPropositions();\r\n \tSet<Proposition> legals = legalPropositions.get(role);\r\n \tList<Move> actions = new ArrayList<Move>();\r\n \tfor(Proposition p: legals){\r\n \t\t\tactions.add(getMoveFromProposition(p));\r\n \t}\r\n\t\treturn actions;\r\n }", "public ActionDefinition isAction(String name){\n return((ActionDefinition)actionDefs.get(getDefName(name)));\n }", "public Action removeAction(String name) {\n\n //set the deleted action to null\n for(Configuration conf : configurations) {\n\n for(Screen s : MainModel.getInstance().getScreensFromConf(conf)) {\n\n for(Link link : s.getLinks()) {\n\n if(link.getAction() != null) {\n\n if(link.getAction().getName().equals(name))\n link.setAction(null);\n\n }\n }\n }\n }\n\n Action thisAction = getAction(name);\n\n //SE L'AZIONE è DI TIPO VOCALE\n if(thisAction instanceof ActionVocal) {\n\n ArrayList<SVMmodel> modelsRemoved = new ArrayList<>();\n //RIMUOVO TUTTI I SUONI CHE SI RIFERISCONO AD ESSA\n ((ActionVocal) thisAction).deleteAllSounds();\n\n //E TUTTI GLI SVMModels CHE HANNO QUEI SUONI\n for (SVMmodel mod : svmModels.values()) {\n\n if (mod.containsSound(thisAction.getName())) {\n mod.prepareForDelete();\n modelsRemoved.add(mod);\n }\n\n }\n\n for(SVMmodel model : modelsRemoved) {\n\n svmModels.remove(model.getName());\n\n for(Configuration conf : configurations) {\n\n if(conf.hasModel() && conf.getModel().equals(model)) {\n conf.setModel(null);\n }\n }\n }\n\n }\n\n return actions.remove(name);\n }", "Set<Action> getAvailableActions(Long entityId, Class<Action> entityClass);", "ActionsSet getActions();", "public static List<IcyAbstractAction> getAllActions()\r\n {\r\n final List<IcyAbstractAction> result = new ArrayList<IcyAbstractAction>();\r\n\r\n for (Field field : GeneralActions.class.getFields())\r\n {\r\n final Class<?> type = field.getType();\r\n\r\n try\r\n {\r\n if (type.isAssignableFrom(IcyAbstractAction[].class))\r\n result.addAll(Arrays.asList(((IcyAbstractAction[]) field.get(null))));\r\n else if (type.isAssignableFrom(IcyAbstractAction.class))\r\n result.add((IcyAbstractAction) field.get(null));\r\n }\r\n catch (Exception e)\r\n {\r\n // ignore\r\n }\r\n }\r\n\r\n return result;\r\n }", "public static Action action(String id) {\n/* 205 */ return actions.get(id);\n/* */ }", "public List<IPermissionOwner> getAllPermissionOwners();", "private Command getCommandByName(String name) {\n for (Command command : commands) {\n if (command.getName().equals(name)) {\n return command;\n }\n }\n return null;\n }", "protected Actions exec() {\n return actions;\n }", "@Transient\n\tpublic WFSProgress getProgressByActionName(String name){\n\t\tWFSProgress result = null;\n\t\tif(!this.getProgresses().isEmpty()){\n\t\t\tfor(WFSProgress ds : this.getProgresses()){\n\t\t\t\tif(ds.getSequence() == null)continue;\n\t\t\t\tif(ds.getSequence().getWfAction().getName().equals(name)){\n\t\t\t\t\tresult = ds;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public String getName() {\n return \"GetIndividualsFullAction\";\n }", "public Collection findTemplatesByOwner(Agent owner);", "private ArrayList<String> getPossibleActions() {\n\t\t\n\t\tRandom r = new Random();\n\t\tArrayList<String> possibleActions = new ArrayList<String>();\n\t\tfor (String actionTitle : getAllActions()) {\n\t\t\tif (r.nextDouble() < 0.3) {\n\t\t\t\tpossibleActions.add(actionTitle);\n\t\t\t}\n\t\t}\n\t\treturn possibleActions;\n\t}", "public List<ActionValue> getActions(State state);", "protected HashSet<GoapAction> extractPossibleActions() {\r\n\t\tHashSet<GoapAction> possibleActions = new HashSet<GoapAction>();\r\n\r\n\t\ttry {\r\n\t\t\tfor (GoapAction goapAction : this.goapUnit.getAvailableActions()) {\r\n\t\t\t\tif (goapAction.checkProceduralPrecondition(this.goapUnit)) {\r\n\t\t\t\t\tpossibleActions.add(goapAction);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn possibleActions;\r\n\t}", "public CachetActionList getActions() {\n throw new RuntimeException(\"Method not implemented.\");\n }", "public Set getActions () {\n if (actions == null) // lazy aren't we\n initActions ();\n return actions;\n }", "com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction();", "static public Action[] getActions()\r\n {\r\n JTextPane TempTextPane = new JTextPane();\r\n\t return(TempTextPane.getActions() );\r\n }", "void listActions(String userName, String experimentIds, Bundle arguments,\n Callback<Set<String>> callback);", "public List<Action> getActions()\r\n {\r\n return Collections.unmodifiableList(actions);\r\n }", "public List<ActionVocal> getVocalActions() {\n ArrayList<ActionVocal> result = new ArrayList<>();\n for (Action item : actions.values()) {\n if (item instanceof ActionVocal) result.add((ActionVocal)item);\n }\n return result;\n }", "private List<Command> getCommands(String name) {\r\n\t\tList<Command> result = new ArrayList<>();\r\n\t\tfor (Command command : commands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (LearnedCommand command : learnedCommands) {\r\n\t\t\tif (command.name().equals(name) || command.aliases().contains(name)) {\r\n\t\t\t\tresult.add(command);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "protected QaIOReporter performAction(String name) {\n Node node = null;\n try {\n node = TestUtil.THIS.findData(name).getNodeDelegate();\n } catch (Exception ex) {\n ex.printStackTrace(dbg);\n fail(\"Cannot get Node Delegate for 'data/\" + name +\"' due:\\n\" + ex);\n }\n QaIOReporter reporter = performAction(new Node[] {node});\n return reporter;\n }", "ActionExecutor get(SimpleTypeName name) {\n // Check the action name to determine if it belongs to Lumen.\n String ns = name.getNamespace();\n String sparkNs = LumenProcedureExecutor.getNamespace();\n if (sparkNs.equals(ns)) {\n LumenProcedureExecutor sparkExec = (LumenProcedureExecutor) bridge\n .getPALExecutor();\n return sparkExec;\n }\n\n synchronized (this) {\n return executors.get(name);\n }\n }", "public java.util.List<com.rpg.framework.database.Protocol.CharacterAction> getActionsList() {\n if (actionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(actions_);\n } else {\n return actionsBuilder_.getMessageList();\n }\n }", "public java.util.List<com.rpg.framework.database.Protocol.CharacterAction> getActionsList() {\n if (actionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(actions_);\n } else {\n return actionsBuilder_.getMessageList();\n }\n }", "public CObject get_ActionObjects(CAct pAction)\r\n {\r\n pAction.evtFlags &= ~CEvent.EVFLAGS_NOTDONEINSTART;\r\n rh2EnablePick = true;\r\n short qoil = pAction.evtOiList;\t\t\t\t// Pointe l'oiList\r\n CObject pObject = get_CurrentObjects(qoil);\r\n if (pObject != null)\r\n {\r\n if (repeatFlag == false)\r\n {\r\n // Pas de suivant\r\n pAction.evtFlags &= ~CAct.ACTFLAGS_REPEAT;\t\t// Ne pas refaire cette action\r\n return pObject;\r\n }\r\n else\r\n {\r\n // Un suivant\r\n pAction.evtFlags |= CAct.ACTFLAGS_REPEAT;\t\t// Refaire cette action\r\n rh2ActionLoop = true;\t\t\t \t// Refaire un tour d'actions\r\n return pObject;\r\n }\r\n }\r\n pAction.evtFlags &= ~CAct.ACTFLAGS_REPEAT;\t\t\t\t// Ne pas refaire cette action\r\n pAction.evtFlags |= CEvent.EVFLAGS_NOTDONEINSTART;\r\n return pObject;\r\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n if (actionsBuilder_ == null) {\n return actions_.get(index);\n } else {\n return actionsBuilder_.getMessage(index);\n }\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n if (actionsBuilder_ == null) {\n return actions_.get(index);\n } else {\n return actionsBuilder_.getMessage(index);\n }\n }", "public static String getActionName(Action action) {\n\t\tString tempName = action.getName();\n\t\tint length = tempName.length();\n\t\tint nameLength = length;\n\t\tif (tempName.contains(StateEnum.INACTIVE.toString())) {\n\t\t\tnameLength = length - StateEnum.INACTIVE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.ENABLE.toString())) {\n\t\t\tnameLength = length - StateEnum.ENABLE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.RUNNING.toString())) {\n\t\t\tnameLength = length - StateEnum.RUNNING.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.COMPLETED.toString())) {\n\t\t\tnameLength = length - StateEnum.COMPLETED.toString().length() - 4;\n\t\t}\n\t\treturn tempName.substring(0, nameLength);\n\t}", "String getAction();", "String getAction();", "public Action getAction(int index) { return actions.get(index); }", "public static List<Action> getActions (List<Action> list) {\n\n // This can be fairly easy with lambda (but lambdas are not supported in Java 7)\n Predicate<Action> condition = new Predicate<Action>()\n {\n @Override\n public boolean test(Action action) {\n return action.isValid();\n }\n };\n\n Supplier<List<Action>> supplier = new Supplier<List<Action>>() {\n @Override\n public List<Action> get() {\n return new ArrayList<Action>();\n }\n };\n\n List<Action> filtered = list.stream()\n .filter( condition ).collect(Collectors.toCollection(supplier));\n return filtered;\n }", "@Override\r\n\tpublic List<ActionInput> getActions()\r\n\t{\n\t\treturn null;\r\n\t}", "public List<Action> getActions(){return actions;}", "public abstract List<Instruction> getPossibleActions();", "public List<Action> getActions() {\n return this.data.getActions();\n }", "protected Set<Action> deriveClickTypeScrollActionsFromTopLevelWidgets(Set<Action> actions, SUT system, State state){\n // To derive actions (such as clicks, drag&drop, typing ...) we should first create an action compiler.\n StdActionCompiler ac = new AnnotatingActionCompiler();\n\n // To find all possible actions that TESTAR can click on we should iterate through all widgets of the state.\n for(Widget w : getTopWidgets(state)){\n //optional: iterate through top level widgets based on Z-index:\n //for(Widget w : getTopWidgets(state)){\n\n if(w.get(Tags.Role, Roles.Widget).toString().equalsIgnoreCase(\"UIAMenu\")){\n // filtering out actions on menu-containers (that would add an action in the middle of the menu)\n continue; // skip this iteration of the for-loop\n }\n\n // Only consider enabled and non-blocked widgets\n if(w.get(Enabled, true) && !w.get(Blocked, false)){\n\n // Do not build actions for widgets on the blacklist\n // The blackListed widgets are those that have been filtered during the SPY mode with the\n //CAPS_LOCK + SHIFT + Click clickfilter functionality.\n if (!blackListed(w)){\n\n //For widgets that are:\n // - clickable\n // and\n // - unFiltered by any of the regular expressions in the Filter-tab, or\n // - whitelisted using the clickfilter functionality in SPY mode (CAPS_LOCK + SHIFT + CNTR + Click)\n // We want to create actions that consist of left clicking on them\n if(isClickable(w) && (isUnfiltered(w) || whiteListed(w))) {\n //Create a left click action with the Action Compiler, and add it to the set of derived actions\n actions.add(ac.leftClickAt(w));\n }\n\n //For widgets that are:\n // - typeable\n // and\n // - unFiltered by any of the regular expressions in the Filter-tab, or\n // - whitelisted using the clickfilter functionality in SPY mode (CAPS_LOCK + SHIFT + CNTR + Click)\n // We want to create actions that consist of typing into them\n if(isTypeable(w) && (isUnfiltered(w) || whiteListed(w))) {\n //Create a type action with the Action Compiler, and add it to the set of derived actions\n actions.add(ac.clickTypeInto(w, this.getRandomText(w), true));\n }\n //Add sliding actions (like scroll, drag and drop) to the derived actions\n //method defined below.\n addSlidingActions(actions,ac,SCROLL_ARROW_SIZE,SCROLL_THICK,w, state);\n }\n }\n }\n return actions;\n }", "public String getActions()\n {\n StringBuffer sb = new StringBuffer();\n boolean first = true;\n \n if ( ( m_eventTypeMask & MASK_SERVICE ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_SERVICE );\n }\n if ( ( m_eventTypeMask & MASK_CONTROL ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_CONTROL );\n }\n if ( ( m_eventTypeMask & MASK_CORE ) != 0 )\n {\n if ( first )\n {\n sb.append( ',' );\n }\n else\n {\n first = false;\n }\n sb.append( EVENT_TYPE_CORE );\n }\n \n return sb.toString();\n }", "@Override\n public String getActions() {\n\treturn \"\";\n }", "public String[] getActions() {\n return impl.getActions();\n }", "List<ManagementLockOwner> owners();", "public List<Action> actions() {\r\n\t\treturn this.actions;\r\n\t}", "public static List<GroupAction> getGroupActionList( )\n {\n return _dao.selectGroupActionList( _plugin );\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n return actions_.get(index);\n }", "public com.rpg.framework.database.Protocol.CharacterAction getActions(int index) {\n return actions_.get(index);\n }", "public Collection<Action> getActions() {\n\t\treturn Collections.unmodifiableCollection(actionList);\n\t}", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Operation lookupOperation(java.lang.String name, List paramTypes) {\n Operation op;\n \n //UML-MOF-Common\n Iterator allOperationsIt = allOperations().iterator();\n while(allOperationsIt.hasNext()){\n op = (Operation) allOperationsIt.next(); \n if(name.equals(op.getNameA()) && op.hasMatchingSignature(paramTypes)){\n return op;\n } \n }\n\n return null;\n }", "public PDAction getE() {\n/* 71 */ COSDictionary e = (COSDictionary)this.actions.getDictionaryObject(\"E\");\n/* 72 */ PDAction retval = null;\n/* 73 */ if (e != null)\n/* */ {\n/* 75 */ retval = PDActionFactory.createAction(e);\n/* */ }\n/* 77 */ return retval;\n/* */ }", "public List<ExoSocialActivity> getUserActivities(Identity owner) throws ActivityStorageException;", "public void checkActions() {\n\t\tfor (BaseAction ba : this.actions) {\n\t\t\tba.checkAction();\n\t\t}\n\t}", "public void interact(String name)\n {\n\n // Gets each item from the current room item's array list.\n for (Item object : currentRoom.getInventory().getItems()){\n\n // check for item is found.\n if (object.getName().equals(name)){\n object.interact();\n break;\n }\n }\n\n // Gets each person from the character's array list.\n for (Person person : characters){\n\n // check for person is found.\n if (person.getName().equals(name)){\n //person.interact();\n break;\n }\n }\n }", "public void executeAction( String actionInfo );", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }" ]
[ "0.7158747", "0.61698675", "0.61021596", "0.58007777", "0.5653872", "0.5652864", "0.5545967", "0.55386883", "0.54787624", "0.5466087", "0.54590803", "0.54437315", "0.5390995", "0.5327131", "0.5315829", "0.52977425", "0.5292855", "0.52570486", "0.52474827", "0.52361524", "0.522828", "0.52244914", "0.52095413", "0.51985407", "0.51615906", "0.5134433", "0.5133285", "0.5072543", "0.5072543", "0.5032035", "0.5026512", "0.49847603", "0.49786067", "0.49699682", "0.496425", "0.49592927", "0.49362096", "0.4896936", "0.48932102", "0.48916912", "0.4887975", "0.48691756", "0.48572877", "0.4840195", "0.4832291", "0.48315668", "0.48279676", "0.4825258", "0.48128185", "0.48095143", "0.47985962", "0.47956845", "0.4793275", "0.47883445", "0.4785361", "0.4783713", "0.4772473", "0.47625107", "0.47527316", "0.47477794", "0.4741586", "0.47303763", "0.47184", "0.4716882", "0.47167698", "0.4700869", "0.46947712", "0.4670159", "0.46673888", "0.46632966", "0.46619442", "0.4660181", "0.4653283", "0.4653283", "0.46512556", "0.46393028", "0.46393028", "0.46358785", "0.46296275", "0.46185464", "0.4616234", "0.461405", "0.46040818", "0.4603006", "0.46004283", "0.459783", "0.45968127", "0.45855072", "0.4580903", "0.45765203", "0.45669216", "0.45669216", "0.45652482", "0.45578372", "0.45541024", "0.45490208", "0.454824", "0.4547498", "0.4546559", "0.45404533" ]
0.74895155
0
Returns the action by the given name that belongs to the given provider
public static DockingActionIf getLocalAction(ComponentProvider provider, String actionName) { Tool tool = provider.getTool(); DockingToolActions toolActions = tool.getToolActions(); DockingActionIf action = toolActions.getLocalAction(provider, actionName); return action; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DockingActionIf getAction(DialogComponentProvider provider, String actionName) {\n\n\t\tSet<DockingActionIf> actions = provider.getActions();\n\t\tfor (DockingActionIf action : actions) {\n\t\t\tif (action.getName().equals(actionName)) {\n\t\t\t\treturn action;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public ActionReader getAction(String name);", "public Action getAction(String name) { return actions.get(name); }", "String getActionName(Closure action);", "ActionExecutor get(SimpleTypeName name) {\n // Check the action name to determine if it belongs to Lumen.\n String ns = name.getNamespace();\n String sparkNs = LumenProcedureExecutor.getNamespace();\n if (sparkNs.equals(ns)) {\n LumenProcedureExecutor sparkExec = (LumenProcedureExecutor) bridge\n .getPALExecutor();\n return sparkExec;\n }\n\n synchronized (this) {\n return executors.get(name);\n }\n }", "String getActionName();", "public static ImagingAction getActionByName(String actionName) {\n for (ImagingAction imagingAction : getImagingActions()) {\n if (imagingAction.getName().equals(actionName)) {\n return imagingAction;\n }\n }\n return null;\n }", "public CayenneAction getAction(String key) {\n return (CayenneAction) actionMap.get(key);\n }", "public IPSAAClientAction getAction(String actionType)\n {\n IPSAAClientAction action = m_actions.get(actionType);\n if(action == null)\n {\n // Use reflection to instantiate the class\n String pack = getClass().getPackage().getName();\n String className = pack + \".impl.PS\" + actionType + \"Action\";\n \n try\n {\n Class clazz = Class.forName(className);\n action = (IPSAAClientAction) clazz.newInstance();\n m_actions.put(actionType, action);\n }\n catch (ClassNotFoundException ignore)\n {\n // ignore\n }\n catch (InstantiationException e)\n {\n ms_log.error(e.getLocalizedMessage(), e);\n }\n catch (IllegalAccessException e)\n {\n ms_log.error(e.getLocalizedMessage(), e);\n }\n \n }\n return action;\n }", "public static Action action(String id) {\n/* 205 */ return actions.get(id);\n/* */ }", "com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction();", "String getAction();", "String getAction();", "public Action getAction(int index) { return actions.get(index); }", "public Action(String name) {\n this.name = name;\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Operation lookupOperation(java.lang.String name, List paramTypes) {\n Operation op;\n \n //UML-MOF-Common\n Iterator allOperationsIt = allOperations().iterator();\n while(allOperationsIt.hasNext()){\n op = (Operation) allOperationsIt.next(); \n if(name.equals(op.getNameA()) && op.hasMatchingSignature(paramTypes)){\n return op;\n } \n }\n\n return null;\n }", "public interface ActionProvider {\n\n\n /**\n * Example of generic method to fetch actions by particular type.\n *\n * @param entityId the entity identifier\n * @param entityClass the entity class\n * @return the available actions for entity\n */\n Set<Action> getAvailableActions(Long entityId, Class<Action> entityClass);\n}", "public Class<? extends Action> getActionClass(String kind) {\n\t\treturn actionKinds.get(kind);\n\t}", "public String getAction() {\n\t\treturn action.get();\n\t}", "public abstract Action getAction();", "public Action getAction(Object key) {\n\t\treturn (Action) get(key);\n\t}", "public Action getAction(String actionName) {\r\n try {\r\n return processModel.getAction(actionName);\r\n } catch (WorkflowException we) {\r\n return null;\r\n }\r\n }", "public IProvider lookupProvider(Class<? extends IProvider> providerType);", "public String getName() {\n return \"GetMarkerSetMembershipAction\";\n }", "public Method getActionFactory() {\n return this.actionFactory;\n }", "public String getAction(Material material) {\n if (!materials.contains(material)) {\n return null;\n }\n\n return getParkourKitData().getString(\"ParkourKit.\" + name + \".\" + material.name() + \".Action\").toLowerCase();\n }", "ActionInfo getActionInfo(long actionID) throws IOException;", "public String getAction () {\n return action;\n }", "public ActionDefinition isAction(String name){\n return((ActionDefinition)actionDefs.get(getDefName(name)));\n }", "public String getAction() {\n return action;\n }", "String getOnAction();", "public ActionButton getButton(String action) {\n\t\tActionButton returnButton;\n\t\tif (action.equals(Action.MOVE_SHEPHERD.toString())) {\n\t\t\treturnButton = moveShepherdButton;\n\t\t} else if (action.equals(Action.MOVE_SHEEP.toString())) {\n\t\t\treturnButton = moveSheepButton;\n\t\t} else if (action.equals(Action.COUPLE.toString())) {\n\t\t\treturnButton = coupleButton;\n\t\t} else if (action.equals(Action.COUPLE_SHEEPS.toString())) {\n\t\t\treturnButton = coupleSheepsButton;\n\t\t} else if (action.equals(Action.KILL.toString())) {\n\t\t\treturnButton = killButton;\n\t\t} else if (action.equals(Action.BUY_CARD.toString())) {\n\t\t\treturnButton = buyCardButton;\n\t\t} else {\n\t\t\treturnButton = null;\n\t\t}\n\t\treturn returnButton;\n\t}", "public String getAction() {\r\n\t\treturn action;\r\n\t}", "@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}", "public void executeAction( String actionInfo );", "public Optional<ChatCommand> getAction(final CommandMatcher matcher, final ConfigManager config) {\n final Optional<String> optName = matcher.getCommand();\n if (optName.isEmpty()) {\n return Optional.empty();\n }\n final String commandName = optName.get();\n return getCommand(commandName, config);\n }", "public ActionDefinition actdef(String n){\n ActionDefinition rc = isAction(n);\n if (rc == null){\n return(null);\n }\n else\n return(rc);\n }", "public interface ActionMatcher {\n boolean match(Action action, ActionParameters actionUri);\n}", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "private String getActionName(String path) {\r\n\t\t// We're guaranteed that the path will start with a slash\r\n\t\tint slash = path.lastIndexOf('/');\r\n\t\treturn path.substring(slash + 1);\r\n\t}", "public Action getEnvInjectAction(AbstractBuild<?, ?> build) {\n \n if (build == null) {\n throw new NullPointerException(\"A build object must be set.\");\n }\n \n List<Action> actions;\n if (build instanceof MatrixRun) {\n actions = ((MatrixRun) build).getParentBuild().getActions();\n } else {\n actions = build.getActions();\n }\n \n for (Action action : actions) {\n if (EnvInjectAction.URL_NAME.equals(action.getUrlName())) {\n return action;\n }\n }\n return null;\n }", "ActionType getType();", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n return this.action;\n }", "public abstract boolean resolveAction(String str, Bundle bundle);", "public int getActionType();", "public A getAction() {\r\n\t\treturn action;\r\n\t}", "private static String getActionFromMessageAttributes(MessageInfo msgInfo) {\n String action = null;\n if (msgInfo != null\n && msgInfo.getExtensionAttributes() != null) {\n String attr = getAction(msgInfo);\n if (attr != null) {\n action = attr;\n msgInfo.setProperty(ACTION, action);\n }\n }\n return action;\n }", "Action getType();", "public Optional<Action> delegateToHandler(Action action, ModelStateProvider modelStateProvider) {\n\t\tActionHandler handler = actionHandlers.get(action.getKind());\n\t\tif (handler != null) {\n\t\t\thandler.setModelStateProvider(modelStateProvider);\n\t\t\treturn handler.handle(action);\n\t\t}\n\t\treturn Optional.empty();\n\t}", "public static Method getMethodByName(final Class<?> cls, final String action) throws NoSuchMethodException {\r\n for (final Method m : cls.getMethods()) {\r\n if (m.getName().equals(action)) {\r\n return m;\r\n }\r\n }\r\n throw new NoSuchMethodException(action);\r\n }", "java.lang.String getProvider();", "@Override\r\n\tpublic String getAction() {\n\t\tString action = null;\r\n\t\tif(caction.getSelectedIndex() == -1) {\r\n\t\t\treturn null;\r\n\t}\r\n\tif(caction.getSelectedIndex() >= 0) {\r\n\t\t\taction = caction.getSelectedItem().toString();\r\n\t}\r\n\t\treturn action;\r\n\t\r\n\t}", "public RvSnoopAction getAction(String command);", "public PDAction getFo() {\n/* 187 */ COSDictionary fo = (COSDictionary)this.actions.getDictionaryObject(\"Fo\");\n/* 188 */ PDAction retval = null;\n/* 189 */ if (fo != null)\n/* */ {\n/* 191 */ retval = PDActionFactory.createAction(fo);\n/* */ }\n/* 193 */ return retval;\n/* */ }", "public DynamicMethod retrieveMethod(String name) {\n return getMethods().get(name);\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public static Set<DockingActionIf> getActionsByName(Tool tool, String name) {\n\n\t\tSet<DockingActionIf> result = new HashSet<>();\n\n\t\tSet<DockingActionIf> toolActions = tool.getAllActions();\n\t\tfor (DockingActionIf action : toolActions) {\n\t\t\tif (action.getName().equals(name)) {\n\t\t\t\tresult.add(action);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public String getName() {\n return \"GetIndividualsFullAction\";\n }", "protected ActionFactory getActionFactory() {\n\t\treturn this.actionFactory;\n\t}", "public PDAction getE() {\n/* 71 */ COSDictionary e = (COSDictionary)this.actions.getDictionaryObject(\"E\");\n/* 72 */ PDAction retval = null;\n/* 73 */ if (e != null)\n/* */ {\n/* 75 */ retval = PDActionFactory.createAction(e);\n/* */ }\n/* 77 */ return retval;\n/* */ }", "java.lang.String getKeyRevocationActionType();", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public Optional<ActionTypeParameter> getActionTypeParameter(String actionTypeName, String actionTypeParameterName) {\n return Optional.ofNullable(MetadataActionTypesConfiguration.getInstance().getActionType(actionTypeName)\n .orElseThrow(() -> new RuntimeException(\"action type \" + actionTypeName + \" not found\"))\n .getParameters().get(actionTypeParameterName));\n }", "public BindingAction test(final Node node,String uri,String name,String[] parameters) {\n\n if (name==null) return null;\n\n if (node instanceof Attr && (NamespaceSupport.NSDECL.equals(uri)\n || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri))) {\n if (node.getNodeValue().startsWith(\"java:\")) return new SkipAction();\n else return null;\n }\n\n final Class<?> clazz= getClassForURI(uri);\n\n //System.out.println(\"Load class \"+clazz+\" \"+className);\n if (clazz==null) return null;\n final ClassKey classKey=new ClassKey(clazz);\n\n //System.out.println(\"Loaded \"+clazz.getSimpleName());\n\n if (name.equals(\"this\")) {\n return new BindingAction() {\n public Key getKey() {return classKey;}\n\n public void execute(Object object, ObjectProcessor processor) throws ProcessingException {\n if (object!=null) processor.processContent((Element) node);\n }\n };\n }\n\n if (name.equals(\"null\")) {\n return new BindingAction() {\n public Key getKey() {return classKey;}\n\n public void execute(Object object, ObjectProcessor processor) throws ProcessingException {\n if (object==null) processor.processContent((Element) node);\n }\n };\n }\n\n AccessibleObject ao= null;\n\n for (Field field : clazz.getFields())\n if (field.getName().equals(name)) ao=field;\n\n for (Method method : clazz.getMethods())\n if (method.getName().equals(name)) ao = method;\n\n if (ao==null) return null;\n\n return createAction(node,new ClassKey(clazz),ao,parameters);\n }", "public Action getByAdvert(Advert advert, ActionType type){\n return (Action) HibernateUtility.getSessionFactory().openSession()\n .createQuery(\"FROM Action WHERE advert = :advert and type = :type\")\n .setParameter(\"advert\", advert)\n .setParameter(\"type\", type).uniqueResult();\n }", "public IPermissionActivity getOrCreatePermissionActivity(IPermissionOwner owner, String name, String fname, String targetProviderKey);", "public String getAction(String currentSymbol){\n\t\tif (this.action.containsKey(currentSymbol)){\n\t\t\treturn this.action.get(currentSymbol);\n\t\t}else{\n\t\t\treturn this.action.get(\"*\"); // * pode ser usado como coringa pra \"qualquer caractere\"\n\t\t}\n\t}", "public String getActionName() {\n\t\treturn this.function;\n\t}", "public com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction() {\n com.cantor.drop.aggregator.model.CFTrade.TradeAction result = com.cantor.drop.aggregator.model.CFTrade.TradeAction.valueOf(action_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.TradeAction.EXECUTED : result;\n }", "public static Component clickComponentProvider(ComponentProvider provider) {\n\n\t\tJComponent component = provider.getComponent();\n\t\tDockableComponent dockableComponent = getDockableComponent(component);\n\t\tselectTabIfAvailable(dockableComponent);\n\t\tRectangle bounds = component.getBounds();\n\t\tint centerX = (bounds.x + bounds.width) >> 1;\n\t\tint centerY = (bounds.y + bounds.height) >> 1;\n\n\t\treturn clickComponentProvider(provider, MouseEvent.BUTTON1, centerX, centerY, 1, 0, false);\n\t}", "public Action getBestAction(State state);", "@Transient\n\tpublic WFSProgress getProgressByActionName(String name){\n\t\tWFSProgress result = null;\n\t\tif(!this.getProgresses().isEmpty()){\n\t\t\tfor(WFSProgress ds : this.getProgresses()){\n\t\t\t\tif(ds.getSequence() == null)continue;\n\t\t\t\tif(ds.getSequence().getWfAction().getName().equals(name)){\n\t\t\t\t\tresult = ds;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "ActionType createActionType();", "public abstract String getIntentActionString();", "public Action getAction() {\n\treturn action;\n }", "public Action getAction() {\n return action;\n }", "@NonNull\n public Action getAction() {\n return this.action;\n }", "public com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction() {\n com.cantor.drop.aggregator.model.CFTrade.TradeAction result = com.cantor.drop.aggregator.model.CFTrade.TradeAction.valueOf(action_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.TradeAction.EXECUTED : result;\n }", "public int getAction() {\n return action;\n }", "public int getAction() {\n\t\treturn action;\n\t}", "public static ActionNameResolver getActionNameResolverX(final ServletContext servletContext, String beanName) {\n\n // get the spring web application context\n final WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);\n\n // get the bean.\n\n ActionNameResolver resolver;\n try {\n resolver = (ActionNameResolver) wac.getBean(beanName, ActionNameResolver.class);\n if (LOG.isTraceEnabled()) {\n LOG.trace(\"Using ActionNameResolver as configured: \" + resolver.getClass().getName());\n }\n } catch (NoSuchBeanDefinitionException e) {\n return nullActionNameResolver;\n }\n\n return resolver;\n }", "@Override\r\n public ResearchAction getAction(SolGame game, SolShip researchShip) {\r\n Planet nearestPlanet = game.getPlanetManager().getNearestPlanet(researchShip.getPosition());\r\n if (!planetResearchMap.containsKey(nearestPlanet)) {\r\n String systemName = \"<Unknown>\";\r\n for (SolarSystem system : game.getGalaxyBuilder().getBuiltSolarSystems()) {\r\n if (system.getPlanets().contains(nearestPlanet)) {\r\n systemName = system.getName();\r\n break;\r\n }\r\n }\r\n planetResearchMap.put(nearestPlanet, new PlanetResearchAction(nearestPlanet, systemName));\r\n }\r\n return planetResearchMap.get(nearestPlanet);\r\n }", "public boolean getActionJustPressed(String name) {\n synchronized(actions) {\n InputAction action = actions.get(name);\n return action != null && action.getJustPressed(this);\n }\n }", "public static Set<DockingActionIf> getActionsByOwner(Tool tool, String name) {\n\t\treturn tool.getDockingActionsByOwnerName(name);\n\t}", "public int getAction() {\n return action_;\n }", "String lookupMashFromName(String name);", "@Override\n\tpublic Action getAction(int i) {\n\t\treturn this.actions.get(i);\n\t}", "public static void performAction(DockingActionIf action, ComponentProvider provider,\n\t\t\tboolean wait) {\n\n\t\tActionContext context = runSwing(() -> {\n\t\t\tActionContext actionContext = new DefaultActionContext();\n\t\t\tif (provider == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tActionContext newContext = provider.getActionContext(null);\n\t\t\tif (newContext == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tactionContext = newContext;\n\t\t\tactionContext.setSourceObject(provider.getComponent());\n\n\t\t\treturn actionContext;\n\t\t});\n\n\t\tdoPerformAction(action, context, wait);\n\t}", "public static AttributedURIType getAction(Message message) {\n String action = null;\n LOG.fine(\"Determining action\");\n Exception fault = message.getContent(Exception.class);\n\n // REVISIT: add support for @{Fault}Action annotation (generated\n // from the wsaw:Action WSDL element). For the moment we just\n // pick up the wsaw:Action attribute by walking the WSDL model\n // directly \n action = getActionFromServiceModel(message, fault);\n LOG.fine(\"action: \" + action);\n return action != null ? getAttributedURI(action) : null;\n }", "public static SendMethod findByName(String name) {\n\t\tfor (SendMethod sendMethod : SendMethod.values()) {\n\t\t\tif (sendMethod.getName().equals(name)) {\n\t\t\t\treturn sendMethod;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public int getAction()\n {\n return m_action;\n }", "public String getProviderClassName();", "public CurrencyXRateProvider findByName(String name) {\n\t\treturn (CurrencyXRateProvider) this\n\t\t\t\t.getEntityManager()\n\t\t\t\t.createNamedQuery(CurrencyXRateProvider.NQ_FIND_BY_NAME)\n\t\t\t\t.setParameter(\"clientId\",\n\t\t\t\t\t\tSession.user.get().getClient().getId())\n\t\t\t\t.setParameter(\"name\", name).getSingleResult();\n\t}", "public int getAction() {\n return action_;\n }" ]
[ "0.7393949", "0.69655395", "0.6866072", "0.6255322", "0.58758646", "0.5865874", "0.5816839", "0.565748", "0.5639007", "0.5517844", "0.5442503", "0.5442143", "0.5442143", "0.5427379", "0.53432274", "0.5307676", "0.52588457", "0.5232824", "0.52201754", "0.51857173", "0.51855093", "0.51851946", "0.5135314", "0.51288307", "0.5111376", "0.51034343", "0.51028824", "0.50618464", "0.50418335", "0.5041486", "0.50277126", "0.50244683", "0.50222003", "0.50199825", "0.5005463", "0.5000157", "0.49967924", "0.49829456", "0.49755973", "0.49755973", "0.49755973", "0.4971583", "0.49687517", "0.49627936", "0.4959143", "0.4959143", "0.4959143", "0.4959143", "0.49566537", "0.49537435", "0.49532467", "0.4952385", "0.494779", "0.49464273", "0.49411917", "0.49406523", "0.49406204", "0.4938828", "0.4921323", "0.49211124", "0.49173355", "0.491602", "0.4881207", "0.4878061", "0.4868884", "0.48686564", "0.48601922", "0.4856416", "0.4853305", "0.4852783", "0.48519346", "0.48314536", "0.48275158", "0.48140952", "0.48140466", "0.48129576", "0.48033607", "0.48023695", "0.48022208", "0.4789083", "0.47832385", "0.47728714", "0.47665396", "0.47646064", "0.4760092", "0.475705", "0.4755513", "0.47546947", "0.4751477", "0.47447896", "0.47383985", "0.4735314", "0.47124854", "0.4709066", "0.46961612", "0.46802184", "0.46734506", "0.4670403", "0.4666807", "0.4665632" ]
0.6601403
3
Returns the given dialog's action that has the given name
public static DockingActionIf getAction(DialogComponentProvider provider, String actionName) { Set<DockingActionIf> actions = provider.getActions(); for (DockingActionIf action : actions) { if (action.getName().equals(actionName)) { return action; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Action getAction(String name) { return actions.get(name); }", "String getActionName();", "public ActionReader getAction(String name);", "String getAction();", "String getAction();", "String getActionName(Closure action);", "public String getAction() {\n\t\treturn action.get();\n\t}", "public PDAction getFo() {\n/* 187 */ COSDictionary fo = (COSDictionary)this.actions.getDictionaryObject(\"Fo\");\n/* 188 */ PDAction retval = null;\n/* 189 */ if (fo != null)\n/* */ {\n/* 191 */ retval = PDActionFactory.createAction(fo);\n/* */ }\n/* 193 */ return retval;\n/* */ }", "public String getAction () {\n return action;\n }", "public String getAction() {\n return action;\n }", "@Override\r\n\tpublic String getAction() {\n\t\tString action = null;\r\n\t\tif(caction.getSelectedIndex() == -1) {\r\n\t\t\treturn null;\r\n\t}\r\n\tif(caction.getSelectedIndex() >= 0) {\r\n\t\t\taction = caction.getSelectedItem().toString();\r\n\t}\r\n\t\treturn action;\r\n\t\r\n\t}", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\r\n\t\treturn action;\r\n\t}", "String getOnAction();", "public String getAction() {\n return this.action;\n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction(String currentSymbol){\n\t\tif (this.action.containsKey(currentSymbol)){\n\t\t\treturn this.action.get(currentSymbol);\n\t\t}else{\n\t\t\treturn this.action.get(\"*\"); // * pode ser usado como coringa pra \"qualquer caractere\"\n\t\t}\n\t}", "public RvSnoopAction getAction(String command);", "@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}", "public static ImagingAction getActionByName(String actionName) {\n for (ImagingAction imagingAction : getImagingActions()) {\n if (imagingAction.getName().equals(actionName)) {\n return imagingAction;\n }\n }\n return null;\n }", "int getActionCommand();", "public abstract Action getAction();", "public boolean getActionJustPressed(String name) {\n synchronized(actions) {\n InputAction action = actions.get(name);\n return action != null && action.getJustPressed(this);\n }\n }", "private static String getActionFromMessageAttributes(MessageInfo msgInfo) {\n String action = null;\n if (msgInfo != null\n && msgInfo.getExtensionAttributes() != null) {\n String attr = getAction(msgInfo);\n if (attr != null) {\n action = attr;\n msgInfo.setProperty(ACTION, action);\n }\n }\n return action;\n }", "public int getAction()\n {\n return m_action;\n }", "public ActionDefinition isAction(String name){\n return((ActionDefinition)actionDefs.get(getDefName(name)));\n }", "@Transient\n\tpublic WFSProgress getProgressByActionName(String name){\n\t\tWFSProgress result = null;\n\t\tif(!this.getProgresses().isEmpty()){\n\t\t\tfor(WFSProgress ds : this.getProgresses()){\n\t\t\t\tif(ds.getSequence() == null)continue;\n\t\t\t\tif(ds.getSequence().getWfAction().getName().equals(name)){\n\t\t\t\t\tresult = ds;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public int getAction() {\n return action;\n }", "int getAction();", "com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction();", "public String getActionName() {\n\t\treturn this.function;\n\t}", "public A getAction() {\r\n\t\treturn action;\r\n\t}", "public static Action action(String id) {\n/* 205 */ return actions.get(id);\n/* */ }", "public ActionUtilisateur choisirUneAction() ;", "public String getAction(GoogleCloudDialogflowV2WebhookRequest webHookRequest) {\n String action = \"\";\n\n GoogleCloudDialogflowV2QueryResult queryResult = webHookRequest.getQueryResult();\n\n if (queryResult != null) {\n action = queryResult.getAction();\n }\n\n return action;\n }", "public Action getAction(int index) { return actions.get(index); }", "public Action(String name) {\n this.name = name;\n }", "public CayenneAction getAction(String key) {\n return (CayenneAction) actionMap.get(key);\n }", "public Action getAction(Object key) {\n\t\treturn (Action) get(key);\n\t}", "public int getAction() {\n\t\treturn action;\n\t}", "public abstract String getIntentActionString();", "public PDAction getE() {\n/* 71 */ COSDictionary e = (COSDictionary)this.actions.getDictionaryObject(\"E\");\n/* 72 */ PDAction retval = null;\n/* 73 */ if (e != null)\n/* */ {\n/* 75 */ retval = PDActionFactory.createAction(e);\n/* */ }\n/* 77 */ return retval;\n/* */ }", "private String getActionName(String path) {\r\n\t\t// We're guaranteed that the path will start with a slash\r\n\t\tint slash = path.lastIndexOf('/');\r\n\t\treturn path.substring(slash + 1);\r\n\t}", "public String getActionWindowID() {\n String[] values = (String[]) pathParams.get(ACTION);\n if (values != null && values.length > 0) {\n return values[0];\n }\n return null;\n }", "public Action getAction() {\n return action;\n }", "public String getAction() {\n Object ref = action_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n }\n }", "public String getAction() {\n Object ref = action_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public ActionButton getButton(String action) {\n\t\tActionButton returnButton;\n\t\tif (action.equals(Action.MOVE_SHEPHERD.toString())) {\n\t\t\treturnButton = moveShepherdButton;\n\t\t} else if (action.equals(Action.MOVE_SHEEP.toString())) {\n\t\t\treturnButton = moveSheepButton;\n\t\t} else if (action.equals(Action.COUPLE.toString())) {\n\t\t\treturnButton = coupleButton;\n\t\t} else if (action.equals(Action.COUPLE_SHEEPS.toString())) {\n\t\t\treturnButton = coupleSheepsButton;\n\t\t} else if (action.equals(Action.KILL.toString())) {\n\t\t\treturnButton = killButton;\n\t\t} else if (action.equals(Action.BUY_CARD.toString())) {\n\t\t\treturnButton = buyCardButton;\n\t\t} else {\n\t\t\treturnButton = null;\n\t\t}\n\t\treturn returnButton;\n\t}", "public static Set<DockingActionIf> getActionsByOwner(Tool tool, String name) {\n\t\treturn tool.getDockingActionsByOwnerName(name);\n\t}", "public com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction() {\n com.cantor.drop.aggregator.model.CFTrade.TradeAction result = com.cantor.drop.aggregator.model.CFTrade.TradeAction.valueOf(action_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.TradeAction.EXECUTED : result;\n }", "public com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction() {\n com.cantor.drop.aggregator.model.CFTrade.TradeAction result = com.cantor.drop.aggregator.model.CFTrade.TradeAction.valueOf(action_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.TradeAction.EXECUTED : result;\n }", "public Action getSelectedAction() {\n return selectedAction;\n }", "public int getAction() {\n return action_;\n }", "public static Set<DockingActionIf> getActionsByName(Tool tool, String name) {\n\n\t\tSet<DockingActionIf> result = new HashSet<>();\n\n\t\tSet<DockingActionIf> toolActions = tool.getAllActions();\n\t\tfor (DockingActionIf action : toolActions) {\n\t\t\tif (action.getName().equals(name)) {\n\t\t\t\tresult.add(action);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Text getByName(String name){\r\n\t\tfor (int i=0;i<thisDialog.size();i++){\r\n\t\t\tif (thisDialog.get(i).getName().equals(name)){\r\n\t\t\t\treturn thisDialog.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public com.vmware.converter.AlarmAction getAction() {\r\n return action;\r\n }", "public Action getAction() {\n\treturn action;\n }", "public int getAction() {\n return action_;\n }", "public PDAction getX() {\n/* 99 */ COSDictionary x = (COSDictionary)this.actions.getDictionaryObject(\"X\");\n/* 100 */ PDAction retval = null;\n/* 101 */ if (x != null)\n/* */ {\n/* 103 */ retval = PDActionFactory.createAction(x);\n/* */ }\n/* 105 */ return retval;\n/* */ }", "public javax.accessibility.AccessibleAction getAccessibleAction() {\n try {\n XAccessibleAction unoAccessibleAction = (XAccessibleAction)\n UnoRuntime.queryInterface(XAccessibleAction.class, unoAccessibleContext);\n return (unoAccessibleAction != null) ? \n new AccessibleActionImpl(unoAccessibleAction) : null;\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }", "public String getAction(Material material) {\n if (!materials.contains(material)) {\n return null;\n }\n\n return getParkourKitData().getString(\"ParkourKit.\" + name + \".\" + material.name() + \".Action\").toLowerCase();\n }", "public Optional<ChatCommand> getAction(final CommandMatcher matcher, final ConfigManager config) {\n final Optional<String> optName = matcher.getCommand();\n if (optName.isEmpty()) {\n return Optional.empty();\n }\n final String commandName = optName.get();\n return getCommand(commandName, config);\n }", "public PDAction getU() {\n/* 158 */ COSDictionary u = (COSDictionary)this.actions.getDictionaryObject(\"U\");\n/* 159 */ PDAction retval = null;\n/* 160 */ if (u != null)\n/* */ {\n/* 162 */ retval = PDActionFactory.createAction(u);\n/* */ }\n/* 164 */ return retval;\n/* */ }", "public ActionDefinition actdef(String n){\n ActionDefinition rc = isAction(n);\n if (rc == null){\n return(null);\n }\n else\n return(rc);\n }", "@NonNull\n public Action getAction() {\n return this.action;\n }", "CancelAction getCancelAction();", "Action getType();", "public Class<? extends Action> getActionClass(String kind) {\n\t\treturn actionKinds.get(kind);\n\t}", "public static Set<DockingActionIf> getActionsByOwnerAndName(Tool tool, String owner,\n\t\t\tString name) {\n\t\tSet<DockingActionIf> ownerActions = tool.getDockingActionsByOwnerName(owner);\n\t\treturn ownerActions.stream()\n\t\t\t\t.filter(action -> action.getName().equals(name))\n\t\t\t\t.collect(Collectors.toSet());\n\t}", "public Action getExecuteAction() {\n return this.data.getExecuteAction();\n }", "ActionInfo getActionInfo(long actionID) throws IOException;", "public String getDocAction();", "public String getDocAction();", "public String getActionArg() {\n\t\treturn actionArg;\n\t}", "public Action getAction(String actionName) {\r\n try {\r\n return processModel.getAction(actionName);\r\n } catch (WorkflowException we) {\r\n return null;\r\n }\r\n }", "public static DockingActionIf getLocalAction(ComponentProvider provider, String actionName) {\n\t\tTool tool = provider.getTool();\n\t\tDockingToolActions toolActions = tool.getToolActions();\n\t\tDockingActionIf action = toolActions.getLocalAction(provider, actionName);\n\t\treturn action;\n\t}", "@OnClick(R.id.converter_sale_or_purchase_cv)\n public void chooseAction() {\n mDialog = new DialogList(mContext,\n mActionDialogTitle, mListForActionDialog, null,\n new RecyclerViewAdapterDialogList.OnItemClickListener() {\n @Override\n public void onClick(int position) {\n if (position == 0) {\n mAction = ConstantsManager.CONVERTER_ACTION_PURCHASE;\n } else {\n mAction = ConstantsManager.CONVERTER_ACTION_SALE;\n }\n mPreferenceManager.setConverterAction(mAction);\n mDialog.getDialog().dismiss();\n setLang();\n }\n });\n ((ImageView) mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done))\n .setImageResource(R.drawable.ic_tr);\n mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done)\n .setBackground(getResources().getDrawable(R.drawable.ic_tr));\n }", "public NamedAction createNamedAction(String name) {\n NamedActionImpl action = new NamedActionImpl();\n action.setName(name);\n return action;\n }", "@Override\n\tpublic Action getAction(int i) {\n\t\treturn this.actions.get(i);\n\t}", "public PDAction getPO() {\n/* 247 */ COSDictionary po = (COSDictionary)this.actions.getDictionaryObject(\"PO\");\n/* 248 */ PDAction retval = null;\n/* 249 */ if (po != null)\n/* */ {\n/* 251 */ retval = PDActionFactory.createAction(po);\n/* */ }\n/* 253 */ return retval;\n/* */ }", "public String getName() {\n return ACTION_DETAILS[id][NAME_DETAIL_INDEX];\n }", "public void executeAction( String actionInfo );", "public String calcelAction() {\n\t\tthis.setViewOrNewAction(false);\n\t\treturn null;\n\t}", "public static String getActionName(Action action) {\n\t\tString tempName = action.getName();\n\t\tint length = tempName.length();\n\t\tint nameLength = length;\n\t\tif (tempName.contains(StateEnum.INACTIVE.toString())) {\n\t\t\tnameLength = length - StateEnum.INACTIVE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.ENABLE.toString())) {\n\t\t\tnameLength = length - StateEnum.ENABLE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.RUNNING.toString())) {\n\t\t\tnameLength = length - StateEnum.RUNNING.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.COMPLETED.toString())) {\n\t\t\tnameLength = length - StateEnum.COMPLETED.toString().length() - 4;\n\t\t}\n\t\treturn tempName.substring(0, nameLength);\n\t}", "public static AttributedURIType getAction(Message message) {\n String action = null;\n LOG.fine(\"Determining action\");\n Exception fault = message.getContent(Exception.class);\n\n // REVISIT: add support for @{Fault}Action annotation (generated\n // from the wsaw:Action WSDL element). For the moment we just\n // pick up the wsaw:Action attribute by walking the WSDL model\n // directly \n action = getActionFromServiceModel(message, fault);\n LOG.fine(\"action: \" + action);\n return action != null ? getAttributedURI(action) : null;\n }", "public IPSAAClientAction getAction(String actionType)\n {\n IPSAAClientAction action = m_actions.get(actionType);\n if(action == null)\n {\n // Use reflection to instantiate the class\n String pack = getClass().getPackage().getName();\n String className = pack + \".impl.PS\" + actionType + \"Action\";\n \n try\n {\n Class clazz = Class.forName(className);\n action = (IPSAAClientAction) clazz.newInstance();\n m_actions.put(actionType, action);\n }\n catch (ClassNotFoundException ignore)\n {\n // ignore\n }\n catch (InstantiationException e)\n {\n ms_log.error(e.getLocalizedMessage(), e);\n }\n catch (IllegalAccessException e)\n {\n ms_log.error(e.getLocalizedMessage(), e);\n }\n \n }\n return action;\n }", "public void actionButton(String text);", "public PDAction getD() {\n/* 128 */ COSDictionary d = (COSDictionary)this.actions.getDictionaryObject(COSName.D);\n/* 129 */ PDAction retval = null;\n/* 130 */ if (d != null)\n/* */ {\n/* 132 */ retval = PDActionFactory.createAction(d);\n/* */ }\n/* 134 */ return retval;\n/* */ }", "public PDAction getBl() {\n/* 216 */ COSDictionary bl = (COSDictionary)this.actions.getDictionaryObject(\"Bl\");\n/* 217 */ PDAction retval = null;\n/* 218 */ if (bl != null)\n/* */ {\n/* 220 */ retval = PDActionFactory.createAction(bl);\n/* */ }\n/* 222 */ return retval;\n/* */ }", "final public String getActionCommand() {\n return command;\n }", "public int getActionType();", "public int getAction(int state) {\n return explorationPolicy.ChooseAction(qvalues[state]);\n }", "public String getActionInfo() {\n\n String\taction\t= getAction();\n\n if (ACTION_AppsProcess.equals(action)) {\n return \"Process:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_DocumentAction.equals(action)) {\n return \"DocumentAction=\" + getDocAction();\n } else if (ACTION_AppsReport.equals(action)) {\n return \"Report:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_AppsTask.equals(action)) {\n return \"Task:AD_Task_ID=\" + getAD_Task_ID();\n } else if (ACTION_SetVariable.equals(action)) {\n return \"SetVariable:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_SubWorkflow.equals(action)) {\n return \"Workflow:MPC_Order_Workflow_ID=\" + getMPC_Order_Workflow_ID();\n } else if (ACTION_UserChoice.equals(action)) {\n return \"UserChoice:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_UserWorkbench.equals(action)) {\n return \"Workbench:?\";\n } else if (ACTION_UserForm.equals(action)) {\n return \"Form:AD_Form_ID=\" + getAD_Form_ID();\n } else if (ACTION_UserWindow.equals(action)) {\n return \"Window:AD_Window_ID=\" + getAD_Window_ID();\n }\n\n /*\n * else if (ACTION_WaitSleep.equals(action))\n * return \"Sleep:WaitTime=\" + getWaitTime();\n */\n return \"??\";\n\n }", "private Command getCommandByName(String name) {\n for (Command command : commands) {\n if (command.getName().equals(name)) {\n return command;\n }\n }\n return null;\n }" ]
[ "0.73775625", "0.7242831", "0.71186715", "0.68627965", "0.68627965", "0.6841713", "0.647275", "0.62598836", "0.6227112", "0.62092996", "0.6196451", "0.61848927", "0.61848927", "0.61848927", "0.61432874", "0.6110334", "0.61096686", "0.60927165", "0.6066363", "0.6066363", "0.6066363", "0.6066363", "0.6056848", "0.60093117", "0.5950496", "0.5937772", "0.59197664", "0.58962506", "0.58878857", "0.58809334", "0.58768773", "0.5869808", "0.5867471", "0.5822221", "0.58186054", "0.5770442", "0.5764521", "0.57639676", "0.5743518", "0.5742307", "0.57401943", "0.57382476", "0.57293344", "0.57257193", "0.5714653", "0.57096565", "0.57057273", "0.57041055", "0.56916", "0.5670778", "0.5663104", "0.5661879", "0.56592095", "0.56410295", "0.5639551", "0.56357247", "0.5619061", "0.55932295", "0.55827016", "0.5577278", "0.5571838", "0.55640936", "0.5555815", "0.55536216", "0.5541147", "0.55382967", "0.55285436", "0.5520793", "0.5501291", "0.54931504", "0.54593253", "0.5435243", "0.54260004", "0.5419415", "0.5416272", "0.54027176", "0.5398379", "0.5388463", "0.5388463", "0.5385257", "0.5382942", "0.5375965", "0.5363001", "0.5356192", "0.535402", "0.5351358", "0.5347365", "0.53373885", "0.5336578", "0.53279203", "0.5327236", "0.53258616", "0.5318515", "0.5312321", "0.52927125", "0.5285623", "0.5284772", "0.5276288", "0.52742636", "0.527106" ]
0.65209323
6
Performs the specified action within the Swing Thread. If the action results in a modal dialog, waitForCompletion must be false.
public static void performAction(DockingActionIf action, boolean waitForCompletion) { ActionContext context = runSwing(() -> { ActionContext actionContext = new DefaultActionContext(); DockingWindowManager activeInstance = DockingWindowManager.getActiveInstance(); if (activeInstance == null) { return actionContext; } ComponentProvider provider = activeInstance.getActiveComponentProvider(); if (provider == null) { return actionContext; } ActionContext providerContext = provider.getActionContext(null); if (providerContext != null) { return providerContext; } return actionContext; }); doPerformAction(action, context, waitForCompletion); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void performDialogAction(DockingActionIf action, DialogComponentProvider provider,\n\t\t\tboolean wait) {\n\n\t\tActionContext context = runSwing(() -> {\n\t\t\tActionContext actionContext = provider.getActionContext(null);\n\t\t\tif (actionContext != null) {\n\t\t\t\tactionContext.setSourceObject(provider.getComponent());\n\t\t\t}\n\t\t\treturn actionContext;\n\t\t});\n\n\t\tdoPerformAction(action, context, wait);\n\t}", "public void runOnUiThread(Runnable action) {\n synchronized(action) {\n mActivity.runOnUiThread(action);\n try {\n action.wait();\n } catch (InterruptedException e) {\n Log.v(TAG, \"waiting for action running on UI thread is interrupted: \" +\n e.toString());\n }\n }\n }", "public void waitCursorForAction(JComponent comp, Thread thr) {\r\n waitCursorForAction(comp, thr, false);\r\n }", "abstract public boolean timedActionPerformed(ActionEvent e);", "private void bonusAction() throws InterruptedException {\n\n bonusActionPane.setVisible(true);\n PauseTransition delay = new PauseTransition(Duration.seconds(3));\n delay.setOnFinished( event -> bonusActionPane.setVisible(false) );\n delay.play();\n\n }", "@Override\n public void actionPerformed(final ActionEvent e)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n frame.blockGUI();\n navigate(e);\n frame.releaseGUI();\n }\n });\n }\n }).start();\n }", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public static void performAction(DockingActionIf action, ComponentProvider provider,\n\t\t\tboolean wait) {\n\n\t\tActionContext context = runSwing(() -> {\n\t\t\tActionContext actionContext = new DefaultActionContext();\n\t\t\tif (provider == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tActionContext newContext = provider.getActionContext(null);\n\t\t\tif (newContext == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tactionContext = newContext;\n\t\t\tactionContext.setSourceObject(provider.getComponent());\n\n\t\t\treturn actionContext;\n\t\t});\n\n\t\tdoPerformAction(action, context, wait);\n\t}", "protected boolean invokeAction( int action )\n {\n switch ( action )\n {\n case ACTION_INVOKE:\n {\n clickButton();\n return true;\n }\n }\n return super.invokeAction( action );\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thelper_.start();\n\t\t\t}", "void ShowWaitDialog(String title, String message);", "public void actionPerformed(ActionEvent e)\n {\n // check thread is really finished\n if (testThread != null)\n logger.log(Level.INFO, \"testThread.isAlive()==\" + testThread.isAlive());\n else\n logger.log(Level.INFO, \"testThread==null\");\n\n // create Thread from Runnable (WorkTask)\n testThread = new Thread(new WorkerTask(null));\n // make sure thread will be killed if app is unexpectedly killed\n testThread.setDaemon(true);\n testThread.start();\n }", "public static void performAction(DockingActionIf action, ActionContext context, boolean wait) {\n\t\tdoPerformAction(action, context, wait);\n\t}", "public void doAction(Action action) {\n\t\tif (!isMyTurn) {\n\t\t\treporter.log(Level.SEVERE, \"User did action but it's not his turn\");\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tconnection.send(action);\n\t\t} catch (IOException e) {\n\t\t\treporter.log(Level.SEVERE, \"Can't send action\", e);\n\t\t\treturn;\n\t\t}\n\t\tif (progress instanceof ProgressRounds) {\n\t\t\tprogress = ((ProgressRounds) progress).advance();\n\t\t}\n\t\tsetMyTurn(false);\n\t\t// notifyListeners(action);\n\t}", "public void performSubmit(Action action) {\n performSubmit(action, true);\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tOpenABOXJDialog getStarted = new OpenABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initExisting(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}", "public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}", "public void performAction();", "public void waitCursorForAction(JComponent comp, Thread thr, boolean disable) {\r\n Cursor orig = comp.getCursor();\r\n boolean status = comp.isEnabled();\r\n if (disable) comp.setEnabled(false);\r\n comp.setCursor(waitCursor);\r\n thr.start();\r\n try {\r\n thr.join();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MousePointerManager.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if (disable) comp.setEnabled(status);\r\n comp.setCursor(orig);\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint b = (int) combo.getSelectedItem();\r\n\t\t\t\t//JOptionPane.showMessageDialog(content, \"N'est Pas Complet\", \"A maintenance\",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tnew Verification(b);\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\n if(RUN_CC.equals(e.getActionCommand())) {\n\n try {\n int seed = ( new Integer(seed_f.getText()).intValue());\n double alpha = ( new Double(alpha_f.getText()).doubleValue());\n double delta = ( new Double(delta_f.getText()).doubleValue());\n int number_BCs = ( new Integer(number_BCs_f.getText()).intValue());\n\n cca.setSeed(seed);\n cca.setAlpha(alpha);\n cca.setDelta(delta);\n cca.setN(number_BCs); // number of output biclusters\n \n JOptionPane.showMessageDialog(null, \"CC algorithm is running... \\nThe calculations may take some time\");\n for (int i = 0; i < 500000000; i++) {} //wait\n owner.runMachine_CC.runBiclustering(cca);\n\n dialog.setVisible(false);\n dialog.dispose();\n \n }\n catch(NumberFormatException nfe) { nfe.printStackTrace(); }\n }\n\n else if(RUN_CC_DIALOG_CANCEL.equals(e.getActionCommand())) {\n dialog.setVisible(false);\n dialog.dispose();\n }\n\n }", "public void actionPerformed(ActionEvent e)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t\tcatch_up_thread.runCatchUp();\r\n\t\t\t}", "public void exitingToRight() throws Exception\r\n\t{\r\n\t\t/*\r\n\t\tSwingWorker worker = new SwingWorker() {\r\n\t\t public Object construct() {\r\n\t\t \t//add the code for the background thread\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t public void finished() {\r\n\t\t \t//code that you add here will run in the UI thread\r\n\t\t \t\r\n\t\t }\r\n\t \r\n\t\t};\r\n\t\tworker.start(); //Start the background thread\r\n\r\n\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\tDoShowDialog doShowDialog = new DoShowDialog();\r\n\t\ttry {\r\n\t\t SwingUtilities.invokeAndWait(doShowDialog);\r\n\t\t}\r\n\t\tcatch \r\n\t\t (java.lang.reflect.\r\n\t\t InvocationTargetException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//EPSG\r\n\t\tblackboard.put(\"selectedImportEPSG\", jComboEPSG.getSelectedItem());\r\n\t\tblackboard.put(\"mostrarError\", true);\r\n\t\t\r\n\t\tif (chkDelete.isSelected())\r\n\t\t{\r\n\t\t\t//JOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t\t//\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t\t\r\n\t\t\tint answer = JOptionPane.showConfirmDialog(aplicacion.getMainFrame(), I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso\"));\r\n\t\t if (answer == JOptionPane.YES_OPTION) {\t\t \r\n\t\t \tblackboard.put(\"borrarNoIncluidas\", true);\r\n\t\t \tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t \t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.confirmarborrar\"));\r\n\t\t } \r\n\t\t else if (answer == JOptionPane.NO_OPTION || answer == JOptionPane.CANCEL_OPTION) {\r\n\t\t \tblackboard.put(\"borrarNoIncluidas\", false);\r\n\t\t \tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t \t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.denegarborrar\"));\r\n\t\t }\t\t\t\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tblackboard.put(\"borrarNoIncluidas\", false);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif (!rusticaValida || !urbanaValida)\r\n\t\t{\t\t\t\r\n\t\t\t/*String text = JOptionPane.showInputDialog(aplicacion.getMainFrame(), \r\n\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t if (text == null) \r\n\t\t {\t\r\n\t\t \t//wizardContext.inputChanged();\r\n\t\t \treturn; //throw new Exception();\r\n\t\t }\t\t*/ \r\n\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t} \r\n\t\t\r\n\t}", "public void run() {\n JOptionPane pane = new JOptionPane(\"<html>\"+\n \"<font color=black>\"+\n \"Waiting to load UI Components for \"+\n \"the </font><br>\"+\n \"<font color=blue>\"+svcName+\"</font>\"+\n \"<font color=black> service running \"+\n \"on<br>\"+\n \"machine: <font color=blue>\"+\n hostName+\n \"</font><font color=black> address: \"+\n \"</font><font color=blue>\"+\n hostAddress+\"</font><br>\"+\n \"<font color=black>\"+\n \"The timeframe is longer then \"+\n \"expected,<br>\"+\n \"verify network connections.\"+\n \"</font></html>\",\n JOptionPane.WARNING_MESSAGE);\n dialog = pane.createDialog(null, \"Network Delay\");\n dialog.setModal(false);\n dialog.setVisible(true);\n }", "public void postActionEvent() {\n fireActionPerformed();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSwingWorker<Void,Void> worker = new SwingWorker<Void,Void>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected Void doInBackground() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t//frmIpfs.getContentPane().add(infomation,BorderLayout.CENTER);\n\t\t\t\t\t\t//new Thread(infomation).start();\n\t\t\t\t\t\tinfomation.drawStart();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}}).start();\n\t\t\t\t\t\t\tcenter.start();\n\t\t\t\t\t\t\twait.startSucess();\n\t\t\t\t\t\t\tstartButton.setEnabled(false);\n\t\t\t\t\t\t\tcloseButton.setEnabled(true);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew IODialog();\n\t\t\t\t\t\t} catch (CipherException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew BlockChainDialog();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tnew ExceptionDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t};\n\t\t\t\tworker.execute();\n\t\t\t}", "public void actionPerformed(ActionEvent e)\n {\n testThread.interrupt();\n }", "protected void submitAction() {\n\t\ttry {\n\t\t\tString username = userField.getText();\n\t\t\tAbstractAgent loggedClient = parent.getAgent().login(username, new String(passField.getPassword()));\n\t\t\tif (loggedClient instanceof AdminMS) {\n\t\t\t\tAdminUI adminUI = new AdminUI((AdminMS) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tadminUI.run();\n\t\t\t} else if (loggedClient instanceof IUser) {\n\t\t\t\tUserUI userUI = new UserUI((IUser) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tuserUI.run();\n\t\t\t}\n\t\t\tif (loggedClient != null)\n\t\t\t\tparent.dispose();\n\t\t} catch (LoginException e) {\n\t\t\tmessageLabel.setText(e.getMessage());\n\t\t} catch (RemoteException e) {\n\t\t\tJOptionPane.showMessageDialog(parent, e);\n\t\t}\n\t}", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "public void actionPerformed(ActionEvent e) {\n\n if (e.getSource() == m_StartBut) {\n if (m_RunThread == null) {\n\ttry {\n\t m_RunThread = new ExperimentRunner(m_Exp);\n\t m_RunThread.setPriority(Thread.MIN_PRIORITY); // UI has most priority\n\t m_RunThread.start();\n\t} catch (Exception ex) {\n ex.printStackTrace();\n\t logMessage(\"Problem creating experiment copy to run: \"\n\t\t + ex.getMessage());\n\t}\n }\n } else if (e.getSource() == m_StopBut) {\n m_StopBut.setEnabled(false);\n logMessage(\"User aborting experiment. \");\n if (m_Exp instanceof RemoteExperiment) {\n\tlogMessage(\"Waiting for remote tasks to \"\n\t\t +\"complete...\");\n }\n ((ExperimentRunner)m_RunThread).abortExperiment();\n // m_RunThread.stop() ??\n m_RunThread = null;\n }\n }", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "public void clickFailure(ActionEvent actionEvent) {\n current.getSelector().update(Selector.AnswerType.FAILURE);\n nextCard();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tthread.start();\n\t\t\t\t\t\t}", "protected void showDialog(final IJobChangeEvent event) {\r\n\t\tDisplay display = Display.getDefault();\r\n\t\tdisplay.asyncExec(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tShell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\r\n\t\t\t\tswitch (event.getResult().getSeverity()) {\r\n\t\t\t\tcase IStatus.ERROR:\r\n\t\t\t\t\tErrorDialog.openError(shell, \"Code Generation Error\", null, event.getResult());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase IStatus.CANCEL:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code Generation Canceled\", event.getJob().getName() + \"Code generation canceled!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code generation finished!\", event.getJob().getName()+\" finished without errors!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "@Override\n public void click() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n int result = fileChooser.showOpenDialog(TurtleFileOpen.this);\n\n if (result == JFileChooser.APPROVE_OPTION) {\n final File selFile = fileChooser.getSelectedFile();\n //the user selects the file\n execute(new Runnable() {\n public void run() {\n openFile(selFile);\n }\n });\n }\n }\n });\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t if(isFieldsEmpty() == true) {\n\t\t\t\t\t errorPopUpBox(\"Please Enter a value in one of the search fields\",\"Error\");\n\t\t\t\t }else {\n\t\t\t\t\t \n\t\t\t\t\t new Thread(new Runnable(){\n\t\t\t\t\t @Override\n\t\t\t\t\t public void run(){\n\t\t\t\t\t \t\n\t\t\t\t\t \t\tgetAtmId();\n\t\t\t\t\t \t\tgetAtmBranchName();\n\t\t\t\t\t \t\tgetBalance();\n\t\t\t\t\t \t\tgetMaxCash();\n\t\t\t\t\t \t\tgetAtmStNum();\n\t\t\t\t\t \t\tgetAtmStName();\n\t\t\t\t\t \t\tgetAtmCity();\n\t\t\t\t\t \t\tgetAtmState();\n\t\t\t\t\t \t\tgetAtmZip();\n\t\t\t\t\t \t\tatmTable.refresh();\n\t\t\t\t\t }\n\t\t\t\t\t }).start();\n\t\t\t\t\t\n\t\t\t\t }\t \n\t\t\t }", "private static boolean click(WebElement element, String sLog, WebElement ajax, int nMaxWaitTime,\n\t\t\tboolean bException)\n\t{\n\t\t// Click the option\n\t\tFramework.click(element, sLog);\n\n\t\t// Wait for AJAX to complete\n\t\tif (Framework.wasElementRefreshed(ajax, nMaxWaitTime))\n\t\t{\n\t\t\t// AJAX completed successfully before timeout\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// AJAX did not complete before timeout & user wants an exception thrown\n\t\t\tif (bException)\n\t\t\t{\n\t\t\t\tString sError = \"AJAX did not complete before timeout occurred.\";\n\t\t\t\tLogs.logError(new GenericActionNotCompleteException(sError));\n\t\t\t}\n\t\t}\n\n\t\t// AJAX did not complete before timeout (and user did not want an exception thrown)\n\t\tLogs.log.warn(\"AJAX did not complete before timeout occurred\");\n\t\treturn false;\n\t}", "void actionCompleted(ActionLookupData actionLookupData);", "public void actionPerformed(ActionEvent ae){\n if(waitingForRepaint){\n repaint();\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tResultPage resultPage = new ResultPage(Agent.agentResult);\n\t\t\t\tframe.setVisible(false);\n\t\t\t\tresultPage.setVisible(true);\n\t\t\t}", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}", "public void dispatchSubmit(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(1, action));\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tint returnVal = fileChooser.showOpenDialog(panel);\n\n\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\tFile file = fileChooser.getSelectedFile();\n\n\t\t\t\t\tif (communicationsHandler instanceof Server) {\n\t\t\t\t\t\tFileUserSelectorUI fileUI = new FileUserSelectorUI(file, myMessagePane.getText(),\n\t\t\t\t\t\t\t\tcommunicationsHandler);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// This is a client, send file request to server.\n\t\t\t\t\t\tcommunicationsHandler.sendFileRequest(file, myMessagePane.getText(), null);\n\t\t\t\t\t}\n\n\t\t\t\t\tmyMessagePane.setText(\"\");\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardSimulaneousLayerWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "private void attemptTuiCommand(final TermuxSessionBridgeEnd bridgeEnd, final String command) {\n if(tuiCommandAttempt != null) tuiCommandAttempt.cancel(true);\n\n tuiCommandAttempt = workerThread.submit(new Runnable() {\n @Override\n public void run() {\n Runnable runnableCommand = tuiCore.createTuiRunnable(command);\n if (runnableCommand == null) Bridge.this.sendBackToTermux(bridgeEnd, command);\n else runnableCommand.run();\n }\n }, null);\n }", "public void actionPerformed(ActionEvent evt) {\r\n if (evt.getActionCommand().equals(\"OK\")) {\r\n dispose();\r\n runRefactoring();\r\n } else if (evt.getActionCommand().equals(\"Cancel\")) {\r\n dispose();\r\n }\r\n\r\n if (currentPackage != null) {\r\n currentPackage.repaint();\r\n }\r\n }", "private void action(String action) {\n\n\t\tSystem.out.println(name + \" is \" + action);\n\n\t\ttry {\n\t\t\tThread.sleep(((long)(Math.random() * 150)));\n\t\t} catch (InterruptedException e) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "public void actionPerformed(ActionEvent event) {\t\n\t\tif (event.getActionCommand().equals(\"comboBoxChanged\")) {\n\t\t\tthis.setBoxes((String) select.getSelectedItem());\n\t\t} else if (event.getActionCommand().equals(\"Start\")) {\t\t\t\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public void run(IAction action) {\n\t\tMessageDialog.openInformation(window.getShell(), \"AccTrace\",\n\t\t\t\t\"Hello, Eclipse world\");\n\t}", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }", "@Override\n public boolean waitToProceed() {\n return false;\n }", "public void actionPerformed(ActionEvent e) {\r\n\r\n\tif (e.getActionCommand().equals(\"okButton\")) {\r\n\t try {\r\n\t\tString number = txtNumber.getText().toString();\r\n\t\tlogTrace(this.getClass().getName(), \"actionPerformed()\", new StringBuilder().append(\"Transfering to : \").append(number).append(\" Call id : \").append(callId).toString());\r\n\t\tif (checkAtleastOneNumber(number)) {\r\n\t\t procedureBlindTransfer(callId, number);\r\n\t\t setVisible(false);\r\n\t\t}\r\n\t\t\r\n\t } catch (InvalidGUIObjectException e1) {\r\n\t }\r\n\t} else if (e.getActionCommand().equals(\"cancelButton\")) {\r\n\t try {\r\n\t\tsetVisible(false);\r\n\t } catch (InvalidGUIObjectException e1) {\r\n\t }\r\n\t}\r\n\r\n }", "public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" command \" + commandName + \" execution in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" execution requested.\" );\n // start the execute command thread\n final ExecuteCommandThread executeCommandThread = new ExecuteCommandThread();\n executeCommandThread.commandName = commandName;\n executeCommandThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( executeCommandThread.ended )\n {\n if ( executeCommandThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n executeCommandThread.message,\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n executeCommandThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" command \" + commandName + \" executed.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" executed.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }", "@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tNewABOXJDialog getStarted = new NewABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initNew(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t\tlogme.error(\"Could not load ontology: \", e1);\n\t\t\t\t} catch (OWLOntologyStorageException e1) {\n\t\t\t\t\tcontroller.logappendError(\"Uh-oh - an exception occurred when writing the ontology: \" + e1.getMessage());\n\t\t\t\t\tlogme.error(\"Could not write ontology: \", e1);\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}", "DialogResult show();", "public void doInteract()\r\n\t{\n\t}", "public void buttonShowComplete(ActionEvent actionEvent) {\n }", "public void runOnUiThread(Runnable action) {\n h.post(action);\n }", "public void run(IAction action) {\n\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(shell);\r\n\t\tsaveAsDialog.open();\r\n\t}", "public void waitCompletion()\n {\n\n if (isThreadEnabled())\n {\n try\n {\n executionThread.join();\n }\n catch (InterruptedException ex)\n {\n throw new RuntimeException(ex);\n }\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tComicInfo comic = (ComicInfo)list.getSelectedValue();\n\t\t\t\tThread getContent = new SearchGetContent(comic.getTitle(),comic.getURL(),theview);\n\t\t\t\tgetContent.start();\n\t\t\t}", "private void okPressed() {\n String destPath = pathField.getText();\n \n // Resolves destination folder\n // TODO: move those I/O bound calls to job as they can lock the main thread\n Object ret[] = FileToolkit.resolvePath(destPath, mainFrame.getActiveTable().getCurrentFolder());\n // The path entered doesn't correspond to any existing folder\n if (ret==null || (files.size()>1 && ret[1]!=null)) {\n showErrorDialog(Translator.get(\"this_folder_does_not_exist\", destPath));\n return;\n }\n \n AbstractFile destFolder = (AbstractFile)ret[0];\n String newName = (String)ret[1];\n \t\t\n // Retrieve default action when a file exists in destination, default choice\n // (if not specified by the user) is 'Ask'\n int defaultFileExistsAction = fileExistsActionComboBox.getSelectedIndex();\n if(defaultFileExistsAction==0)\n defaultFileExistsAction = FileCollisionDialog.ASK_ACTION;\n else\n defaultFileExistsAction = DEFAULT_ACTIONS[defaultFileExistsAction-1];\n // We don't remember default action on purpose: we want the user to specify it each time,\n // it would be too dangerous otherwise.\n \t\t\n startJob(destFolder, newName, defaultFileExistsAction);\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n protected void execute()\n {\n // Display the dialog and wait for the close action (the user\n // selects the Okay button or the script execution completes\n // and a Cancel button is issued)\n int option = cancelDialog.showMessageDialog(dialog,\n \"<html><b>Script execution in progress...<br><br>\"\n + CcddUtilities.colorHTMLText(\"*** Press </i>Halt<i> \"\n + \"to terminate script execution ***\",\n Color.RED),\n \"Script Executing\",\n JOptionPane.ERROR_MESSAGE,\n DialogOption.HALT_OPTION);\n\n // Check if the script execution was terminated by the user and\n // that the script is still executing\n if (option == OK_BUTTON && scriptThread.isAlive())\n {\n // Forcibly stop script execution. Note: this method is\n // deprecated due to inherent issues that can occur when a\n // thread is abruptly stopped. However, the stop method is\n // the only manner in which the script can be terminated\n // (without additional code within the script itself, which\n // cannot be assumed since the scripts are user-generated).\n // There shouldn't be a potential for object corruption in\n // the application since it doesn't reference any objects\n // created by a script\n scriptThread.stop();\n\n // Set the execution status(es) to indicate the scripts\n // didn't complete\n isBad = new boolean[associations.size()];\n Arrays.fill(isBad, true);\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardOptionsWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardConstrainedLayerWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "void CloseWaitDialog();", "@Override\n\tpublic void doAction(String action) {\n\t\tthis.action = action;\n\t\t\n\t\tthis.gameController.pause();\n\t}", "public void actionPerformed(ActionEvent event) {\r\n\r\n if ((progressBar != null) && !progressBar.isComplete()) {\r\n completed = false;\r\n\r\n if (Preferences.is(Preferences.PREF_LOG)) {\r\n String tempStr = new String(this.getClass().getName().substring(this.getClass().getName().lastIndexOf(\".\") +\r\n 1) + \" failed.\");\r\n\r\n if (srcImage != null) {\r\n srcImage.getHistoryArea().append(tempStr);\r\n }\r\n }\r\n\r\n threadStopped = true;\r\n\r\n if (progressBar != null) {\r\n progressBar.dispose();\r\n }\r\n }\r\n }", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\r\n\tpublic void doAction(Object object, Object param, Object extParam,Object... args) {\n\t\tString match = \"\";\r\n\t\tString ks = \"\";\r\n\t\tint time = 3000; // Default wait 3 secs before and after the dialog shows.\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t\tIWindow activeWindow = RationalTestScript.getScreen().getActiveWindow();\r\n\t\t\t// ITopWindow activeWindow = (ITopWindow)AutoObjectFactory.getHtmlDialog(\"ITopWindow\");\r\n\t\t\tif ( activeWindow != null ) {\r\n\t\t\t\tif ( activeWindow.getWindowClassName().equals(\"#32770\") ) {\r\n\t\t\t\t\tactiveWindow.inputKeys(param.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t/*int hwnd = Win32IEHelper.getDialogTop();\r\n\t\t\tTopLevelTestObject too = null;\r\n\t\t\tTestObject[] foundTOs = RationalTestScript.find(RationalTestScript.atChild(\".hwnd\", (long)hwnd, \".domain\", \"Win\"));\r\n\t\t\tif ( foundTOs!=null ) {\r\n\t\t\t\t// Maximize it\r\n\t\t\t\tif ( foundTOs[0]!=null) {\r\n\t\t\t\t\ttoo = new TopLevelTestObject(foundTOs[0]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (too!=null) {\r\n\t\t\t\ttoo.inputKeys(param.toString());\r\n\t\t\t}*/\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (NullPointerException e ) {\t\t\t\r\n\t\t} catch (ClassCastException e) {\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"Error finding the HTML dialog.\");\r\n\t\t}\r\n\t}", "public void actionPerformed(ActionEvent e) {\n if (caller != null) {\n String url = fieldURL.getText();\n /* Calls a parsing task in a new thread. */\n caller.extUrlWSDLImport(url);\n }\n setVisible(false);\n dispose();\n }", "public void actionPerformed(ActionEvent ae) {\n _notifyAction();\n }", "public void clickAction() throws InterruptedException{\n\t\tThread.sleep(1000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"actionsbtn\"), \"Actions Button\");\n\t\tThread.sleep(1000);\n\t}", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t\tTournamentView t =new TournamentView(parent, game, myFighters) ; \r\n\t \t\t\t\tt.setVisible(true); \r\n\t \t\t\t\t Runnable r = new Runnable() {\r\n\t \t\t\t\t\t public void run() {\r\n\t \t\t\t\t\t try {\r\n\t \t\t\t\t\t\t\tThread.sleep(1000);\r\n\t \t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t \t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t \t\t\t\t\t\t\te.printStackTrace();\r\n\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t // your Code ... \r\n\t \t\t\t\t\t setVisible(false);\r\n\t \t\t\t\t\t }\r\n\t \t\t\t\t\t };\r\n\t \t\t\t\tThread t1 = new Thread(r) ;\r\n\t \t\t\t\tt1.start();\r\n\t\t\t\t}", "private boolean performAction(int action) {\n TagEditorFragment tagEditorFragment = (TagEditorFragment) caller;\n final int size = rows.getChildCount();\n List<TagEditRow> selected = new ArrayList<>();\n for (int i = 0; i < size; ++i) {\n View view = rows.getChildAt(i);\n TagEditRow row = (TagEditRow) view;\n if (row.isSelected()) {\n selected.add(row);\n }\n }\n switch (action) {\n case MENU_ITEM_DELETE:\n if (!selected.isEmpty()) {\n for (TagEditRow r : selected) {\n r.delete();\n }\n tagEditorFragment.updateAutocompletePresetItem(null);\n }\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_COPY:\n copyTags(selected, false);\n tagEditorFragment.updateAutocompletePresetItem(null);\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_CUT:\n copyTags(selected, true);\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_CREATE_PRESET:\n CustomPreset.create(tagEditorFragment, selected);\n tagEditorFragment.presetFilterUpdate.update(null);\n break;\n case MENU_ITEM_SELECT_ALL:\n ((PropertyRows) caller).selectAllRows();\n return true;\n case MENU_ITEM_DESELECT_ALL:\n ((PropertyRows) caller).deselectAllRows();\n return true;\n case MENU_ITEM_HELP:\n HelpViewer.start(caller.getActivity(), R.string.help_propertyeditor);\n return true;\n default:\n return false;\n }\n return true;\n }", "abstract public void performAction();", "void onCompleteActionWithError(SmartEvent smartEvent);", "public final void sleepBetweenActions()\n {\n long numOfMillis = Long\n .parseLong(getProperty(\"wait.between.user.actions.in.millis\"));\n if (numOfMillis > 10000)\n {\n numOfMillis = 10000;\n } else if (numOfMillis < 0)\n {\n numOfMillis = 0;\n }\n try\n {\n Thread.sleep(numOfMillis);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }", "public void act()\n {\n displayBoard();\n Greenfoot.delay(10);\n \n if( checkPlayerOneWin() == true )\n {\n JOptionPane.showMessageDialog( null, \"Congratulations Player One!\", \"playerOne Win\", JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( checkPlayerTwoWin() == true )\n {\n JOptionPane.showMessageDialog( null, \"Congratulations Player Two!\", \"plauerTwo Win\",JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( checkBoardFilled() == true )\n {\n JOptionPane.showMessageDialog( null, \"It is a draw!\", \"Wrong step\", JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( messageShown == false )\n {\n showTurn();\n \n messageShown = true;\n }\n \n checkMouseClick();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n dialog.dismiss();\n if (operatingDialog != null) {\n if (operatingDialog.isShowing()) {\n return;\n }\n if (thread != null && thread.isAlive()) {\n return;\n }\n thread.start();\n operatingDialog.show();\n }\n }", "public static void asyncClick( final SWTWorkbenchBot bot, final SWTBotMenu menu, final ICondition waitCondition )\n throws TimeoutException\n {\n UIThreadRunnable.asyncExec( bot.getDisplay(), new VoidResult()\n {\n public void run()\n {\n menu.click();\n }\n } );\n\n if ( waitCondition != null )\n {\n bot.waitUntil( waitCondition );\n }\n }", "public void run(IAction action) {\n\t\tInstaSearchUI.getWorkbenchWindow().getActivePage().activate( InstaSearchUI.getActiveEditor() );\n\t\tNewSearchUI.openSearchDialog(InstaSearchUI.getWorkbenchWindow(), InstaSearchPage.ID);\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"对话框\");\r\n\t\t\t}", "private void showFinishMsg() {}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}", "public void dispatchCancel(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(2, action));\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(results.isEmpty())\n\t\t\t\t\treturn;\n\t\t\t\tString collectionName = \toutputTypes_dropDown.getSelectedItem().equals(\"PackageDataSet\")? \"packageDataSets\" : \n\t\t\t\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"PackageFamily\")? \"packageFamilies\" :\n\t\t\t\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"File\")? \"files\" :\n\t\t\t\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"Package\")? \"packages\" :\n\t\t\t\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"ParentFile\")? \"parentFiles\" :\n\t\t\t\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"Source\")? \"sources\" : \"\";\n\t\t\t\tnew Thread(new Printer(results, client, dbname_txtfield.getText(), output_txtarea, collectionName)).start();\n\t\t\t}", "public boolean performFinish() {\n\t\tfinal String containerName = page1.getContainerName();\n\t\tfinal String fileName = page1.getFileName();\n\t\t\t\t\n\t\tString s = page1.getContainerName()+page1.getFileName();\n\t\t\n\t\tIResource actionContainer = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path( page1.getContainerName()));\n\t\n\t\tString actionFileName = page1.getFileName();\n\t\t\t\t\t\n\t\tIContainer container = (IContainer) actionContainer;\n\t\tfinal IFile file = container.getFile(new Path(actionFileName));\t\t\n\t\t\t\t\n\t\tif(file.exists()){\t\t\t\n\t\t\t\tboolean b = MessageDialog.openConfirm(this.getShell(), \"Confirm\", \"The selected action file already exists. Do you want to override it?\");\n\t\t\t\tif (b==false){ \n\t\t\t\t\t//updateStatus(\"Action File already exists\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t\ttransform(operaModel, s );\n\t\t\n\t\tgetShell().getDisplay().asyncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tIWorkbenchPage page =\n\t\t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n\t\t\t\ttry {\n\t\t\t\t\tIDE.openEditor(page, file, true);\n\t\t\t\t} catch (PartInitException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public void actionSuccessful() {\n System.out.println(\"Action performed successfully!\");\n }", "void onCompleteActionWithSuccess(SmartEvent smartEvent);", "public void clickOnSuccessOkBtn() throws Exception {\r\n\t\r\n\t\t\tclickOnButton(btnOKSuccess);\r\n\t\t\tlog(\"clicked on OK button and object is:-\" + btnOKSuccess.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.err.println(\"action\");\n\t\t\t\tFTPSiteDialog dialog = new FTPSiteDialog(FTP_Client_Frame.this);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t}", "@SuppressWarnings(\"unused\")\n public void handleTestEvent(int result) {\n ApplicationManager.getApplication().invokeLater(() -> {\n checkInProgress = false;\n setStatusAndShowResults(result);\n com.intellij.openapi.progress.Task.Backgroundable task = getAfterCheckTask(result);\n ProgressManager.getInstance().run(task);\n });\n }" ]
[ "0.59666514", "0.5965371", "0.57532865", "0.56618935", "0.5473442", "0.53965646", "0.5388226", "0.5378051", "0.5351238", "0.5327025", "0.5323031", "0.5320751", "0.5283636", "0.5270851", "0.5238461", "0.5208349", "0.5195089", "0.5177639", "0.51732546", "0.51643133", "0.516139", "0.51323205", "0.50981534", "0.50956076", "0.5086707", "0.5078718", "0.50767535", "0.5066079", "0.50228465", "0.5014362", "0.5000225", "0.49884865", "0.49800593", "0.49679607", "0.49604842", "0.49472985", "0.4943923", "0.49364603", "0.49314216", "0.49281788", "0.49276054", "0.49271396", "0.49200758", "0.4915933", "0.49128577", "0.49105194", "0.4899724", "0.48985535", "0.4897679", "0.4896616", "0.48953018", "0.48849097", "0.48803866", "0.4873535", "0.4873076", "0.4866786", "0.4866786", "0.48651734", "0.48592722", "0.48520532", "0.48445162", "0.48387066", "0.4837806", "0.48319197", "0.48303553", "0.48289034", "0.4823409", "0.48218107", "0.4819251", "0.48189706", "0.4818832", "0.4818089", "0.48136473", "0.48104027", "0.4804651", "0.4803379", "0.48011523", "0.47950742", "0.47935084", "0.47875103", "0.47873643", "0.47777787", "0.47766602", "0.47731614", "0.47728655", "0.47695088", "0.47607023", "0.47543544", "0.4754195", "0.47505644", "0.47455475", "0.47415516", "0.47345516", "0.47316667", "0.4731309", "0.47289917", "0.4725486", "0.47196057", "0.471735", "0.47167534" ]
0.6361882
0
Performs the specified action with context within the Swing Thread. If the action results in a modal dialog, waitForCompletion must be false.
public static void performAction(DockingActionIf action, ComponentProvider provider, boolean wait) { ActionContext context = runSwing(() -> { ActionContext actionContext = new DefaultActionContext(); if (provider == null) { return actionContext; } ActionContext newContext = provider.getActionContext(null); if (newContext == null) { return actionContext; } actionContext = newContext; actionContext.setSourceObject(provider.getComponent()); return actionContext; }); doPerformAction(action, context, wait); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void performAction(DockingActionIf action, boolean waitForCompletion) {\n\n\t\tActionContext context = runSwing(() -> {\n\t\t\tActionContext actionContext = new DefaultActionContext();\n\t\t\tDockingWindowManager activeInstance = DockingWindowManager.getActiveInstance();\n\t\t\tif (activeInstance == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tComponentProvider provider = activeInstance.getActiveComponentProvider();\n\t\t\tif (provider == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tActionContext providerContext = provider.getActionContext(null);\n\t\t\tif (providerContext != null) {\n\t\t\t\treturn providerContext;\n\t\t\t}\n\n\t\t\treturn actionContext;\n\t\t});\n\n\t\tdoPerformAction(action, context, waitForCompletion);\n\t}", "public static void performDialogAction(DockingActionIf action, DialogComponentProvider provider,\n\t\t\tboolean wait) {\n\n\t\tActionContext context = runSwing(() -> {\n\t\t\tActionContext actionContext = provider.getActionContext(null);\n\t\t\tif (actionContext != null) {\n\t\t\t\tactionContext.setSourceObject(provider.getComponent());\n\t\t\t}\n\t\t\treturn actionContext;\n\t\t});\n\n\t\tdoPerformAction(action, context, wait);\n\t}", "public static void performAction(DockingActionIf action, ActionContext context, boolean wait) {\n\t\tdoPerformAction(action, context, wait);\n\t}", "public void runOnUiThread(Runnable action) {\n synchronized(action) {\n mActivity.runOnUiThread(action);\n try {\n action.wait();\n } catch (InterruptedException e) {\n Log.v(TAG, \"waiting for action running on UI thread is interrupted: \" +\n e.toString());\n }\n }\n }", "public void waitCursorForAction(JComponent comp, Thread thr) {\r\n waitCursorForAction(comp, thr, false);\r\n }", "abstract public boolean timedActionPerformed(ActionEvent e);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thelper_.start();\n\t\t\t}", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\n public void actionPerformed(final ActionEvent e)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n frame.blockGUI();\n navigate(e);\n frame.releaseGUI();\n }\n });\n }\n }).start();\n }", "private void bonusAction() throws InterruptedException {\n\n bonusActionPane.setVisible(true);\n PauseTransition delay = new PauseTransition(Duration.seconds(3));\n delay.setOnFinished( event -> bonusActionPane.setVisible(false) );\n delay.play();\n\n }", "public void actionPerformed(ActionEvent e)\n {\n // check thread is really finished\n if (testThread != null)\n logger.log(Level.INFO, \"testThread.isAlive()==\" + testThread.isAlive());\n else\n logger.log(Level.INFO, \"testThread==null\");\n\n // create Thread from Runnable (WorkTask)\n testThread = new Thread(new WorkerTask(null));\n // make sure thread will be killed if app is unexpectedly killed\n testThread.setDaemon(true);\n testThread.start();\n }", "protected boolean invokeAction( int action )\n {\n switch ( action )\n {\n case ACTION_INVOKE:\n {\n clickButton();\n return true;\n }\n }\n return super.invokeAction( action );\n }", "public void performAction();", "public void start(BundleContext context)\n {\n m_context = context;\n if (SwingUtilities.isEventDispatchThread())\n {\n run();\n }\n else\n {\n try\n {\n javax.swing.SwingUtilities.invokeAndWait(this);\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }\n }", "public void actionPerformed(ActionEvent evt) {\r\n if (evt.getActionCommand().equals(\"OK\")) {\r\n dispose();\r\n runRefactoring();\r\n } else if (evt.getActionCommand().equals(\"Cancel\")) {\r\n dispose();\r\n }\r\n\r\n if (currentPackage != null) {\r\n currentPackage.repaint();\r\n }\r\n }", "public void doAction(Action action) {\n\t\tif (!isMyTurn) {\n\t\t\treporter.log(Level.SEVERE, \"User did action but it's not his turn\");\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tconnection.send(action);\n\t\t} catch (IOException e) {\n\t\t\treporter.log(Level.SEVERE, \"Can't send action\", e);\n\t\t\treturn;\n\t\t}\n\t\tif (progress instanceof ProgressRounds) {\n\t\t\tprogress = ((ProgressRounds) progress).advance();\n\t\t}\n\t\tsetMyTurn(false);\n\t\t// notifyListeners(action);\n\t}", "public void waitCursorForAction(JComponent comp, Thread thr, boolean disable) {\r\n Cursor orig = comp.getCursor();\r\n boolean status = comp.isEnabled();\r\n if (disable) comp.setEnabled(false);\r\n comp.setCursor(waitCursor);\r\n thr.start();\r\n try {\r\n thr.join();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MousePointerManager.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if (disable) comp.setEnabled(status);\r\n comp.setCursor(orig);\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tOpenABOXJDialog getStarted = new OpenABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initExisting(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}", "public void doInteract()\r\n\t{\n\t}", "public void performSubmit(Action action) {\n performSubmit(action, true);\n }", "public void run(IAction action) {\n\t\tMessageDialog.openInformation(window.getShell(), \"AccTrace\",\n\t\t\t\t\"Hello, Eclipse world\");\n\t}", "public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}", "void ShowWaitDialog(String title, String message);", "static boolean sendMessage(Component paramComponent, AWTEvent paramAWTEvent)\n/* */ {\n/* 237 */ paramAWTEvent.isPosted = true;\n/* 238 */ AppContext localAppContext1 = AppContext.getAppContext();\n/* 239 */ final AppContext localAppContext2 = paramComponent.appContext;\n/* 240 */ DefaultKeyboardFocusManagerSentEvent localDefaultKeyboardFocusManagerSentEvent = new DefaultKeyboardFocusManagerSentEvent(paramAWTEvent, localAppContext1);\n/* */ \n/* */ \n/* 243 */ if (localAppContext1 == localAppContext2) {\n/* 244 */ localDefaultKeyboardFocusManagerSentEvent.dispatch();\n/* */ } else {\n/* 246 */ if (localAppContext2.isDisposed()) {\n/* 247 */ return false;\n/* */ }\n/* 249 */ SunToolkit.postEvent(localAppContext2, localDefaultKeyboardFocusManagerSentEvent);\n/* 250 */ if (EventQueue.isDispatchThread())\n/* */ {\n/* 252 */ EventDispatchThread localEventDispatchThread = (EventDispatchThread)Thread.currentThread();\n/* 253 */ localEventDispatchThread.pumpEvents(1007, new Conditional() {\n/* */ public boolean evaluate() {\n/* 255 */ return (!this.val$se.dispatched) && (!localAppContext2.isDisposed());\n/* */ }\n/* */ });\n/* */ } else {\n/* 259 */ synchronized (localDefaultKeyboardFocusManagerSentEvent) {\n/* 260 */ for (;;) { if ((!localDefaultKeyboardFocusManagerSentEvent.dispatched) && (!localAppContext2.isDisposed())) {\n/* */ try {\n/* 262 */ localDefaultKeyboardFocusManagerSentEvent.wait(1000L);\n/* */ }\n/* */ catch (InterruptedException localInterruptedException) {}\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 270 */ return localDefaultKeyboardFocusManagerSentEvent.dispatched;\n/* */ }", "public void exitingToRight() throws Exception\r\n\t{\r\n\t\t/*\r\n\t\tSwingWorker worker = new SwingWorker() {\r\n\t\t public Object construct() {\r\n\t\t \t//add the code for the background thread\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t public void finished() {\r\n\t\t \t//code that you add here will run in the UI thread\r\n\t\t \t\r\n\t\t }\r\n\t \r\n\t\t};\r\n\t\tworker.start(); //Start the background thread\r\n\r\n\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\tDoShowDialog doShowDialog = new DoShowDialog();\r\n\t\ttry {\r\n\t\t SwingUtilities.invokeAndWait(doShowDialog);\r\n\t\t}\r\n\t\tcatch \r\n\t\t (java.lang.reflect.\r\n\t\t InvocationTargetException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//EPSG\r\n\t\tblackboard.put(\"selectedImportEPSG\", jComboEPSG.getSelectedItem());\r\n\t\tblackboard.put(\"mostrarError\", true);\r\n\t\t\r\n\t\tif (chkDelete.isSelected())\r\n\t\t{\r\n\t\t\t//JOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t\t//\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t\t\r\n\t\t\tint answer = JOptionPane.showConfirmDialog(aplicacion.getMainFrame(), I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso\"));\r\n\t\t if (answer == JOptionPane.YES_OPTION) {\t\t \r\n\t\t \tblackboard.put(\"borrarNoIncluidas\", true);\r\n\t\t \tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t \t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.confirmarborrar\"));\r\n\t\t } \r\n\t\t else if (answer == JOptionPane.NO_OPTION || answer == JOptionPane.CANCEL_OPTION) {\r\n\t\t \tblackboard.put(\"borrarNoIncluidas\", false);\r\n\t\t \tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t \t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.denegarborrar\"));\r\n\t\t }\t\t\t\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tblackboard.put(\"borrarNoIncluidas\", false);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif (!rusticaValida || !urbanaValida)\r\n\t\t{\t\t\t\r\n\t\t\t/*String text = JOptionPane.showInputDialog(aplicacion.getMainFrame(), \r\n\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t if (text == null) \r\n\t\t {\t\r\n\t\t \t//wizardContext.inputChanged();\r\n\t\t \treturn; //throw new Exception();\r\n\t\t }\t\t*/ \r\n\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t} \r\n\t\t\r\n\t}", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\n\n if (e.getSource() == m_StartBut) {\n if (m_RunThread == null) {\n\ttry {\n\t m_RunThread = new ExperimentRunner(m_Exp);\n\t m_RunThread.setPriority(Thread.MIN_PRIORITY); // UI has most priority\n\t m_RunThread.start();\n\t} catch (Exception ex) {\n ex.printStackTrace();\n\t logMessage(\"Problem creating experiment copy to run: \"\n\t\t + ex.getMessage());\n\t}\n }\n } else if (e.getSource() == m_StopBut) {\n m_StopBut.setEnabled(false);\n logMessage(\"User aborting experiment. \");\n if (m_Exp instanceof RemoteExperiment) {\n\tlogMessage(\"Waiting for remote tasks to \"\n\t\t +\"complete...\");\n }\n ((ExperimentRunner)m_RunThread).abortExperiment();\n // m_RunThread.stop() ??\n m_RunThread = null;\n }\n }", "public void actionPerformed(ActionEvent e)\n {\n testThread.interrupt();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint b = (int) combo.getSelectedItem();\r\n\t\t\t\t//JOptionPane.showMessageDialog(content, \"N'est Pas Complet\", \"A maintenance\",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tnew Verification(b);\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t}", "@Override\r\n\r\n\tpublic void doAction(Object object, Object param, Object extParam,Object... args) {\n\t\tString match = \"\";\r\n\t\tString ks = \"\";\r\n\t\tint time = 3000; // Default wait 3 secs before and after the dialog shows.\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t\tIWindow activeWindow = RationalTestScript.getScreen().getActiveWindow();\r\n\t\t\t// ITopWindow activeWindow = (ITopWindow)AutoObjectFactory.getHtmlDialog(\"ITopWindow\");\r\n\t\t\tif ( activeWindow != null ) {\r\n\t\t\t\tif ( activeWindow.getWindowClassName().equals(\"#32770\") ) {\r\n\t\t\t\t\tactiveWindow.inputKeys(param.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t/*int hwnd = Win32IEHelper.getDialogTop();\r\n\t\t\tTopLevelTestObject too = null;\r\n\t\t\tTestObject[] foundTOs = RationalTestScript.find(RationalTestScript.atChild(\".hwnd\", (long)hwnd, \".domain\", \"Win\"));\r\n\t\t\tif ( foundTOs!=null ) {\r\n\t\t\t\t// Maximize it\r\n\t\t\t\tif ( foundTOs[0]!=null) {\r\n\t\t\t\t\ttoo = new TopLevelTestObject(foundTOs[0]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (too!=null) {\r\n\t\t\t\ttoo.inputKeys(param.toString());\r\n\t\t\t}*/\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (NullPointerException e ) {\t\t\t\r\n\t\t} catch (ClassCastException e) {\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"Error finding the HTML dialog.\");\r\n\t\t}\r\n\t}", "public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" command \" + commandName + \" execution in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" execution requested.\" );\n // start the execute command thread\n final ExecuteCommandThread executeCommandThread = new ExecuteCommandThread();\n executeCommandThread.commandName = commandName;\n executeCommandThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( executeCommandThread.ended )\n {\n if ( executeCommandThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n executeCommandThread.message,\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n executeCommandThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" command \" + commandName + \" executed.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" executed.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }", "protected void submitAction() {\n\t\ttry {\n\t\t\tString username = userField.getText();\n\t\t\tAbstractAgent loggedClient = parent.getAgent().login(username, new String(passField.getPassword()));\n\t\t\tif (loggedClient instanceof AdminMS) {\n\t\t\t\tAdminUI adminUI = new AdminUI((AdminMS) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tadminUI.run();\n\t\t\t} else if (loggedClient instanceof IUser) {\n\t\t\t\tUserUI userUI = new UserUI((IUser) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tuserUI.run();\n\t\t\t}\n\t\t\tif (loggedClient != null)\n\t\t\t\tparent.dispose();\n\t\t} catch (LoginException e) {\n\t\t\tmessageLabel.setText(e.getMessage());\n\t\t} catch (RemoteException e) {\n\t\t\tJOptionPane.showMessageDialog(parent, e);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSwingWorker<Void,Void> worker = new SwingWorker<Void,Void>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected Void doInBackground() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t//frmIpfs.getContentPane().add(infomation,BorderLayout.CENTER);\n\t\t\t\t\t\t//new Thread(infomation).start();\n\t\t\t\t\t\tinfomation.drawStart();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}}).start();\n\t\t\t\t\t\t\tcenter.start();\n\t\t\t\t\t\t\twait.startSucess();\n\t\t\t\t\t\t\tstartButton.setEnabled(false);\n\t\t\t\t\t\t\tcloseButton.setEnabled(true);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew IODialog();\n\t\t\t\t\t\t} catch (CipherException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew BlockChainDialog();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tnew ExceptionDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t};\n\t\t\t\tworker.execute();\n\t\t\t}", "public void dispatchCancel(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(2, action));\n }", "void actionCompleted(ActionLookupData actionLookupData);", "public void actionPerformed(ActionEvent e) {\n\n if(RUN_CC.equals(e.getActionCommand())) {\n\n try {\n int seed = ( new Integer(seed_f.getText()).intValue());\n double alpha = ( new Double(alpha_f.getText()).doubleValue());\n double delta = ( new Double(delta_f.getText()).doubleValue());\n int number_BCs = ( new Integer(number_BCs_f.getText()).intValue());\n\n cca.setSeed(seed);\n cca.setAlpha(alpha);\n cca.setDelta(delta);\n cca.setN(number_BCs); // number of output biclusters\n \n JOptionPane.showMessageDialog(null, \"CC algorithm is running... \\nThe calculations may take some time\");\n for (int i = 0; i < 500000000; i++) {} //wait\n owner.runMachine_CC.runBiclustering(cca);\n\n dialog.setVisible(false);\n dialog.dispose();\n \n }\n catch(NumberFormatException nfe) { nfe.printStackTrace(); }\n }\n\n else if(RUN_CC_DIALOG_CANCEL.equals(e.getActionCommand())) {\n dialog.setVisible(false);\n dialog.dispose();\n }\n\n }", "@Override\n public void afterActionPerformed(AnAction anAction, DataContext dataContext, AnActionEvent anActionEvent) {\n closeContentsCanceled = false;\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tthread.start();\n\t\t\t\t\t\t}", "private void runContextMenuAction(Action a, Project p) {\n if (a instanceof ContextAwareAction) {\n Lookup l = Lookups.singleton(p);\n a = ((ContextAwareAction) a).createContextAwareInstance(l);\n }\n a.actionPerformed(null);\n }", "public void postActionEvent() {\n fireActionPerformed();\n }", "protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) {\r\n\t\tif (!_isCapability) {\r\n\t\t\tnubEditPopUp = new RequirementsPopupDialog(_shell, (Unit) _dmo,\r\n\t\t\t\t\t_initialLocation != null ? _initialLocation : estimate(_editPart, TOP_RIGHT));\r\n\t\t} else if (_dmo instanceof Unit) {\r\n\t\t\tnubEditPopUp = new CapabilitiesPopupDialog(_shell, (Unit) _dmo,\r\n\t\t\t\t\t_initialLocation != null ? _initialLocation : estimate(_editPart, BOTTOM_LEFT));\r\n\t\t}\r\n\r\n\t\tif (nubEditPopUp != null) {\r\n\t\t\tnew UnitFlyOutPropertiesToggler((Unit) _dmo, _domain,\r\n\t\t\t\t\t(UnitFlyOutPropertiesTogglerDialog) nubEditPopUp);\r\n\t\t\tnubEditPopUp.open();\r\n\t\t\tif (initialSelectionProvider != null && nubEditPopUp instanceof ISetSelectionTarget) {\r\n\t\t\t\t((ISetSelectionTarget) nubEditPopUp).selectReveal(initialSelectionProvider\r\n\t\t\t\t\t\t.getSelection());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn CommandResult.newOKCommandResult();\r\n\t}", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardOptionsWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "@Override\n\tpublic void doAction(String action) {\n\t\tthis.action = action;\n\t\t\n\t\tthis.gameController.pause();\n\t}", "public void dispatchSubmit(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(1, action));\n }", "@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}", "boolean tryToPerform_with(Object anAction, Object anObject)\n {\n\treturn false;\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tResultPage resultPage = new ResultPage(Agent.agentResult);\n\t\t\t\tframe.setVisible(false);\n\t\t\t\tresultPage.setVisible(true);\n\t\t\t}", "DialogResult show();", "private void attemptTuiCommand(final TermuxSessionBridgeEnd bridgeEnd, final String command) {\n if(tuiCommandAttempt != null) tuiCommandAttempt.cancel(true);\n\n tuiCommandAttempt = workerThread.submit(new Runnable() {\n @Override\n public void run() {\n Runnable runnableCommand = tuiCore.createTuiRunnable(command);\n if (runnableCommand == null) Bridge.this.sendBackToTermux(bridgeEnd, command);\n else runnableCommand.run();\n }\n }, null);\n }", "protected void showDialog(final IJobChangeEvent event) {\r\n\t\tDisplay display = Display.getDefault();\r\n\t\tdisplay.asyncExec(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tShell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\r\n\t\t\t\tswitch (event.getResult().getSeverity()) {\r\n\t\t\t\tcase IStatus.ERROR:\r\n\t\t\t\t\tErrorDialog.openError(shell, \"Code Generation Error\", null, event.getResult());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase IStatus.CANCEL:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code Generation Canceled\", event.getJob().getName() + \"Code generation canceled!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code generation finished!\", event.getJob().getName()+\" finished without errors!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n dialog.dismiss();\n if (operatingDialog != null) {\n if (operatingDialog.isShowing()) {\n return;\n }\n if (thread != null && thread.isAlive()) {\n return;\n }\n thread.start();\n operatingDialog.show();\n }\n }", "private String performTheAction(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tString servletPath = request.getServletPath();\r\n\t\tString action = getActionName(servletPath);\r\n\t\t// Let the logged in user run his chosen action\r\n\t\treturn Action.perform(action, request);\r\n\t}", "public void doInteract(int interactionId)\r\n\t{\r\n\t\tif (interactionId == PlayerCharacter.MAIN_INTERACTION)\r\n\t\t{\r\n\t\t\tdialog.showDialog();\r\n\t\t}\r\n\t}", "private boolean performAction(int action) {\n TagEditorFragment tagEditorFragment = (TagEditorFragment) caller;\n final int size = rows.getChildCount();\n List<TagEditRow> selected = new ArrayList<>();\n for (int i = 0; i < size; ++i) {\n View view = rows.getChildAt(i);\n TagEditRow row = (TagEditRow) view;\n if (row.isSelected()) {\n selected.add(row);\n }\n }\n switch (action) {\n case MENU_ITEM_DELETE:\n if (!selected.isEmpty()) {\n for (TagEditRow r : selected) {\n r.delete();\n }\n tagEditorFragment.updateAutocompletePresetItem(null);\n }\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_COPY:\n copyTags(selected, false);\n tagEditorFragment.updateAutocompletePresetItem(null);\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_CUT:\n copyTags(selected, true);\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_CREATE_PRESET:\n CustomPreset.create(tagEditorFragment, selected);\n tagEditorFragment.presetFilterUpdate.update(null);\n break;\n case MENU_ITEM_SELECT_ALL:\n ((PropertyRows) caller).selectAllRows();\n return true;\n case MENU_ITEM_DESELECT_ALL:\n ((PropertyRows) caller).deselectAllRows();\n return true;\n case MENU_ITEM_HELP:\n HelpViewer.start(caller.getActivity(), R.string.help_propertyeditor);\n return true;\n default:\n return false;\n }\n return true;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}", "public void actionPerformed(ActionEvent e)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t\tcatch_up_thread.runCatchUp();\r\n\t\t\t}", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardSimulaneousLayerWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "public void clickFailure(ActionEvent actionEvent) {\n current.getSelector().update(Selector.AnswerType.FAILURE);\n nextCard();\n }", "public void run(IAction action) {\n\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(shell);\r\n\t\tsaveAsDialog.open();\r\n\t}", "public void clickAction() throws InterruptedException{\n\t\tThread.sleep(1000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"actionsbtn\"), \"Actions Button\");\n\t\tThread.sleep(1000);\n\t}", "abstract public void performAction();", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardConstrainedLayerWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "public void buttonShowComplete(ActionEvent actionEvent) {\n }", "public void doAction(){}", "public JCACommandThread(final Context jca_context)\n {\n super(\"JCA Command Thread\");\n this.jca_context = jca_context;\n }", "private ActionStepOrResult executeAction(ExtendedEventHandler eventHandler, Action action)\n throws LostInputsActionExecutionException, InterruptedException {\n ActionResult result;\n try (SilentCloseable c = profiler.profile(ProfilerTask.INFO, \"Action.execute\")) {\n checkForUnsoundDirectoryInputs(action, actionExecutionContext.getInputMetadataProvider());\n\n result = action.execute(actionExecutionContext);\n\n // An action's result (or intermediate state) may have been affected by lost inputs. If an\n // action filesystem is used, it may know whether inputs were lost. We should fail fast if\n // any were; rewinding may be able to fix it.\n checkActionFileSystemForLostInputs(\n actionExecutionContext.getActionFileSystem(), action, outputService);\n } catch (ActionExecutionException e) {\n Path primaryOutputPath = actionExecutionContext.getInputPath(action.getPrimaryOutput());\n maybeSignalLostInputs(e, primaryOutputPath);\n return ActionStepOrResult.of(\n processAndGetExceptionToThrow(\n eventHandler,\n primaryOutputPath,\n action,\n e,\n actionExecutionContext.getFileOutErr(),\n ErrorTiming.AFTER_EXECUTION));\n } catch (InterruptedException e) {\n return ActionStepOrResult.of(e);\n }\n\n try {\n ActionExecutionValue actionExecutionValue;\n try (SilentCloseable c =\n profiler.profile(ProfilerTask.ACTION_COMPLETE, \"actuallyCompleteAction\")) {\n actionExecutionValue = actuallyCompleteAction(eventHandler, result);\n }\n return new ActionPostprocessingStep(actionExecutionValue);\n } catch (ActionExecutionException e) {\n return ActionStepOrResult.of(e);\n }\n }", "@Override\n public void click() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n int result = fileChooser.showOpenDialog(TurtleFileOpen.this);\n\n if (result == JFileChooser.APPROVE_OPTION) {\n final File selFile = fileChooser.getSelectedFile();\n //the user selects the file\n execute(new Runnable() {\n public void run() {\n openFile(selFile);\n }\n });\n }\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tComicInfo comic = (ComicInfo)list.getSelectedValue();\n\t\t\t\tThread getContent = new SearchGetContent(comic.getTitle(),comic.getURL(),theview);\n\t\t\t\tgetContent.start();\n\t\t\t}", "public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" update requested.\" );\n // start the update thread\n final UpdateThread updateThread = new UpdateThread();\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tNewABOXJDialog getStarted = new NewABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initNew(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t\tlogme.error(\"Could not load ontology: \", e1);\n\t\t\t\t} catch (OWLOntologyStorageException e1) {\n\t\t\t\t\tcontroller.logappendError(\"Uh-oh - an exception occurred when writing the ontology: \" + e1.getMessage());\n\t\t\t\t\tlogme.error(\"Could not write ontology: \", e1);\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "public void runModalTool(final VTool tool, final DialogType dt);", "public void run(IAction action) {\n\t\tInstaSearchUI.getWorkbenchWindow().getActivePage().activate( InstaSearchUI.getActiveEditor() );\n\t\tNewSearchUI.openSearchDialog(InstaSearchUI.getWorkbenchWindow(), InstaSearchPage.ID);\n\t}", "private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "void onCompleteActionWithError(SmartEvent smartEvent);", "public interface AutofillAssistantActionHandler {\n /**\n * Returns the names of available AA actions.\n *\n * <p>This method starts AA on the current tab, if necessary, and waits for the first results.\n * Once AA is started, the results are reported immediately.\n *\n * @param userName name of the user to use when sending RPCs. Might be empty.\n * @param experimentIds comma-separated set of experiment ids. Might be empty\n * @param arguments extra arguments to include into the RPC. Might be empty.\n * @param callback callback to report the result to\n */\n void listActions(String userName, String experimentIds, Bundle arguments,\n Callback<Set<String>> callback);\n\n /**\n * Returns the available AA actions to be reported to the direct actions framework.\n *\n * <p>This method simply returns the list of actions known to AA. An empty string array means\n * either that the controller has not yet been started or there are no actions available for the\n * current website.\n *\n * @return Array of strings with the names of known actions.\n */\n String[] getActions();\n\n /** Performs onboarding and returns the result to the callback. */\n void performOnboarding(String experimentIds, Callback<Boolean> callback);\n\n /**\n * Performs an AA action.\n *\n * <p>If this method returns {@code true}, a definition for the action was successfully started.\n * It can still fail later, and the failure will be reported to the UI.\n *\n * @param name action name, might be empty to autostart\n * @param experimentIds comma-separated set of experiment ids. Might be empty.\n * @param arguments extra arguments to pass to the action. Might be empty.\n * @param callback to report the result to\n */\n void performAction(\n String name, String experimentIds, Bundle arguments, Callback<Boolean> callback);\n}", "public void executeAction( String actionInfo );", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "@Override\n\tpublic void succeed(int taskId, JSONObject jObject) {\n\t\tdimissDialog();\n\t}", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "public void actionPerformed(ActionEvent event) {\t\n\t\tif (event.getActionCommand().equals(\"comboBoxChanged\")) {\n\t\t\tthis.setBoxes((String) select.getSelectedItem());\n\t\t} else if (event.getActionCommand().equals(\"Start\")) {\t\t\t\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n public void handleTestEvent(int result) {\n ApplicationManager.getApplication().invokeLater(() -> {\n checkInProgress = false;\n setStatusAndShowResults(result);\n com.intellij.openapi.progress.Task.Backgroundable task = getAfterCheckTask(result);\n ProgressManager.getInstance().run(task);\n });\n }", "public void actionPerformed(ActionEvent e) {\r\n String ac = e.getActionCommand();\r\n if (Constants.CMD_RUN.equals(ac)) {\r\n try {\r\n stopOps = false;\r\n installAndRun(this, cfg);\r\n } catch (Exception ex) {\r\n // assume SecurityEx or some other problem...\r\n setStatus(\"Encountered problem:\\n\" + ex.toString()\r\n + \"\\n\\nPlease insure that all components are installed properly.\");\r\n } // endtry\r\n } // endif\r\n }", "public void actionPerformed(ActionEvent ae){\n if(waitingForRepaint){\n repaint();\n }\n }", "@Override\n\tpublic void runOnUiThread( final Runnable action ) {\n\t\tif ( mContext != null ) ( (Activity) mContext ).runOnUiThread( action );\n\t}", "public void actionPerformed(ActionEvent e) {\n action.actionPerformed(e);\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJOptionPane.showConfirmDialog(null, \"BOTAO CLICADO\", \"VALOR\", JOptionPane.PLAIN_MESSAGE);\n\n\t\t}", "@Override\n protected void performActionResults(Action targetingAction) {\n PhysicalCard cardToCancel = targetingAction.getPrimaryTargetCard(targetGroupId);\n PhysicalCard captiveToRelease = Filters.findFirstActive(game, self,\n SpotOverride.INCLUDE_CAPTIVE, Filters.and(Filters.captive, Filters.targetedByCardOnTable(cardToCancel)));\n\n // Perform result(s)\n action.appendEffect(\n new CancelCardOnTableEffect(action, cardToCancel));\n if (captiveToRelease != null) {\n action.appendEffect(\n new ReleaseCaptiveEffect(action, captiveToRelease));\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}", "void onCompleteActionWithSuccess(SmartEvent smartEvent);", "public void actionPerformed( ActionEvent actionEvent )\n {\n if ( _currentEntries == null || _core == null )\n return;\n\n _core.load( _currentEntries[ _comboBox.getSelectedIndex() ] );\n\n _main.requestFocus();\n // Workaround for focus handling bug in jdk1.4. BugParade 4478706.\n // TODO retest if needed on jdk1.4 -> defect is marked as fixed.\n //Window w = (Window)\n //SwingUtilities.getWindowAncestor( (JComponent)actionEvent.getSource() );\n //if ( w != null )\n //w.requestFocus();\n }", "public void actionPerformed(ActionEvent e)\n { /* actionPerformed */\n String\n cmd= e.getActionCommand();\n \n /* [1] see which button was pushed and do the right thing,\n * hide window and return default/altered data */\n if (cmd.equals(\" Cancel\") || cmd.equals(\"Continue\"))\n { /* send default data back - data is already stored into this.data */\n this.setVisible(false); /* hide frame which can be shown later */\n } /* send default data back */\n else\n if(cmd.equals(\"Ok\"))\n { /* hide window and return data back entered by user */\n data= textField.getText(); /* altered data returned */\n this.setVisible(false); /* hide frame which can be shown later*/\n }\n alertDone= true;\n }", "public static void asyncClick( final SWTWorkbenchBot bot, final SWTBotMenu menu, final ICondition waitCondition )\n throws TimeoutException\n {\n UIThreadRunnable.asyncExec( bot.getDisplay(), new VoidResult()\n {\n public void run()\n {\n menu.click();\n }\n } );\n\n if ( waitCondition != null )\n {\n bot.waitUntil( waitCondition );\n }\n }", "public void performAction(HandlerData actionInfo) throws ActionException;", "@Test\n public void testSuccess() throws ComponentInitializationException {\n final Event event = action.execute(requestCtx);\n ActionTestingSupport.assertProceedEvent(event);\n }", "@Override\n\tpublic void run(IAction action) {\n\t\n\t\twindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tif (window != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\tIStructuredSelection selection = (IStructuredSelection) window.getSelectionService().getSelection();\n\t\t Object firstElement = selection.getFirstElement();\n \t\tinit();\n \t\t\n \t\tIProject project = (IProject)((IAdaptable)firstElement).getAdapter(IProject.class);\n\t ProjectAnalyzer.firstElement = (IAdaptable)firstElement;\n\t ProjectAnalyzer.url = project.getLocationURI().getPath().toString().substring(1);\n\t File dbFile = new File(ProjectAnalyzer.url + \"\\\\\" + project.getName() + \".db\");\n\t \n\t if(dbFile.exists()){\n\t \tMessageBox dialog = new MessageBox(window.getShell(), SWT.ICON_QUESTION | SWT.OK| SWT.CANCEL);\n\t \t\tdialog.setText(\"Select\");\n\t \t\tdialog.setMessage(\"The DB file of the project exists. \\n Do you want to rebuild the project?\");\n\t \t\tint returnCode = dialog.open();\n\t \t\t\n\t \t\tif(returnCode==SWT.OK){\n\t \t\t\tdbFile.delete();\n\t \t\t\tthis.analysis(project);\n\t \t\t\tthis.showMessage(\"Complete\",\"Rebuild has been complete!\");\n\t \t\t\t//do something\n\t \t\t\tthis.doTask();\n\t \t\t}else{\n\t \t\t\t//do something\n\t \t\t\tthis.doTask();\n\t \t\t}\n\t }else{\n\t \tthis.analysis(project);\n\t \tthis.showMessage(\"Complete\",\"Rebuild has been complete!\");\n\t \t//do something\n\t \tthis.doTask();\n\t }\n \t\t\n\t \n\t\t\t}catch(java.lang.NullPointerException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}catch (java.lang.ClassCastException e2){\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"deprecation\")\n @Override\n protected void execute()\n {\n // Display the dialog and wait for the close action (the user\n // selects the Okay button or the script execution completes\n // and a Cancel button is issued)\n int option = cancelDialog.showMessageDialog(dialog,\n \"<html><b>Script execution in progress...<br><br>\"\n + CcddUtilities.colorHTMLText(\"*** Press </i>Halt<i> \"\n + \"to terminate script execution ***\",\n Color.RED),\n \"Script Executing\",\n JOptionPane.ERROR_MESSAGE,\n DialogOption.HALT_OPTION);\n\n // Check if the script execution was terminated by the user and\n // that the script is still executing\n if (option == OK_BUTTON && scriptThread.isAlive())\n {\n // Forcibly stop script execution. Note: this method is\n // deprecated due to inherent issues that can occur when a\n // thread is abruptly stopped. However, the stop method is\n // the only manner in which the script can be terminated\n // (without additional code within the script itself, which\n // cannot be assumed since the scripts are user-generated).\n // There shouldn't be a potential for object corruption in\n // the application since it doesn't reference any objects\n // created by a script\n scriptThread.stop();\n\n // Set the execution status(es) to indicate the scripts\n // didn't complete\n isBad = new boolean[associations.size()];\n Arrays.fill(isBad, true);\n }\n }", "public void actionPerformed(ActionEvent oEvent) {\n if (oEvent.getActionCommand().equals(\"OK\")) {\n try {\n addFinishedData();\n } catch (ModelException e) {\n ErrorGUI oHandler = new ErrorGUI(this);\n oHandler.writeErrorMessage(e);\n return;\n }\n\n //Close this window\n this.setVisible(false);\n this.dispose();\n }\n else if (oEvent.getActionCommand().equals(\"Cancel\")) {\n //Close this window\n this.setVisible(false);\n this.dispose();\n } \n }" ]
[ "0.6784974", "0.62197375", "0.58393127", "0.57604027", "0.57086927", "0.54286337", "0.5411149", "0.5365572", "0.5258272", "0.5250968", "0.5241448", "0.5230009", "0.5184213", "0.5182562", "0.5144984", "0.5126672", "0.5125197", "0.51036614", "0.50516635", "0.50379074", "0.5036263", "0.5033971", "0.5027835", "0.50275713", "0.5024874", "0.5023056", "0.5006327", "0.49923873", "0.49703467", "0.49633688", "0.49533355", "0.49453306", "0.49288043", "0.4909582", "0.49049118", "0.48956984", "0.4879936", "0.48791775", "0.48543614", "0.48488343", "0.48333138", "0.48255035", "0.48228812", "0.48153695", "0.48117077", "0.48117077", "0.4805939", "0.48050305", "0.47961003", "0.47919744", "0.47906873", "0.4785367", "0.47846785", "0.47841498", "0.47795588", "0.4775435", "0.4774877", "0.47738498", "0.47729376", "0.4767463", "0.4764399", "0.4763202", "0.4760383", "0.47556943", "0.47493386", "0.47455123", "0.474536", "0.4744973", "0.4743856", "0.4742263", "0.47401035", "0.47371516", "0.47312915", "0.47291678", "0.47284722", "0.47272348", "0.4726799", "0.4726238", "0.47227532", "0.4721792", "0.4719681", "0.47180638", "0.47180256", "0.47149745", "0.471173", "0.47062683", "0.47050855", "0.47049442", "0.47036976", "0.4700272", "0.46994695", "0.46963882", "0.46802786", "0.4676898", "0.4664005", "0.4662657", "0.46624985", "0.46604502", "0.46516338", "0.46494585" ]
0.5841594
2
Performs the specified action with context within the Swing Thread. If the action results in a modal dialog, waitForCompletion must be false.
public static void performDialogAction(DockingActionIf action, DialogComponentProvider provider, boolean wait) { ActionContext context = runSwing(() -> { ActionContext actionContext = provider.getActionContext(null); if (actionContext != null) { actionContext.setSourceObject(provider.getComponent()); } return actionContext; }); doPerformAction(action, context, wait); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void performAction(DockingActionIf action, boolean waitForCompletion) {\n\n\t\tActionContext context = runSwing(() -> {\n\t\t\tActionContext actionContext = new DefaultActionContext();\n\t\t\tDockingWindowManager activeInstance = DockingWindowManager.getActiveInstance();\n\t\t\tif (activeInstance == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tComponentProvider provider = activeInstance.getActiveComponentProvider();\n\t\t\tif (provider == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tActionContext providerContext = provider.getActionContext(null);\n\t\t\tif (providerContext != null) {\n\t\t\t\treturn providerContext;\n\t\t\t}\n\n\t\t\treturn actionContext;\n\t\t});\n\n\t\tdoPerformAction(action, context, waitForCompletion);\n\t}", "public static void performAction(DockingActionIf action, ComponentProvider provider,\n\t\t\tboolean wait) {\n\n\t\tActionContext context = runSwing(() -> {\n\t\t\tActionContext actionContext = new DefaultActionContext();\n\t\t\tif (provider == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tActionContext newContext = provider.getActionContext(null);\n\t\t\tif (newContext == null) {\n\t\t\t\treturn actionContext;\n\t\t\t}\n\n\t\t\tactionContext = newContext;\n\t\t\tactionContext.setSourceObject(provider.getComponent());\n\n\t\t\treturn actionContext;\n\t\t});\n\n\t\tdoPerformAction(action, context, wait);\n\t}", "public static void performAction(DockingActionIf action, ActionContext context, boolean wait) {\n\t\tdoPerformAction(action, context, wait);\n\t}", "public void runOnUiThread(Runnable action) {\n synchronized(action) {\n mActivity.runOnUiThread(action);\n try {\n action.wait();\n } catch (InterruptedException e) {\n Log.v(TAG, \"waiting for action running on UI thread is interrupted: \" +\n e.toString());\n }\n }\n }", "public void waitCursorForAction(JComponent comp, Thread thr) {\r\n waitCursorForAction(comp, thr, false);\r\n }", "abstract public boolean timedActionPerformed(ActionEvent e);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thelper_.start();\n\t\t\t}", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\n public void actionPerformed(final ActionEvent e)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n frame.blockGUI();\n navigate(e);\n frame.releaseGUI();\n }\n });\n }\n }).start();\n }", "private void bonusAction() throws InterruptedException {\n\n bonusActionPane.setVisible(true);\n PauseTransition delay = new PauseTransition(Duration.seconds(3));\n delay.setOnFinished( event -> bonusActionPane.setVisible(false) );\n delay.play();\n\n }", "public void actionPerformed(ActionEvent e)\n {\n // check thread is really finished\n if (testThread != null)\n logger.log(Level.INFO, \"testThread.isAlive()==\" + testThread.isAlive());\n else\n logger.log(Level.INFO, \"testThread==null\");\n\n // create Thread from Runnable (WorkTask)\n testThread = new Thread(new WorkerTask(null));\n // make sure thread will be killed if app is unexpectedly killed\n testThread.setDaemon(true);\n testThread.start();\n }", "protected boolean invokeAction( int action )\n {\n switch ( action )\n {\n case ACTION_INVOKE:\n {\n clickButton();\n return true;\n }\n }\n return super.invokeAction( action );\n }", "public void start(BundleContext context)\n {\n m_context = context;\n if (SwingUtilities.isEventDispatchThread())\n {\n run();\n }\n else\n {\n try\n {\n javax.swing.SwingUtilities.invokeAndWait(this);\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }\n }", "public void performAction();", "public void actionPerformed(ActionEvent evt) {\r\n if (evt.getActionCommand().equals(\"OK\")) {\r\n dispose();\r\n runRefactoring();\r\n } else if (evt.getActionCommand().equals(\"Cancel\")) {\r\n dispose();\r\n }\r\n\r\n if (currentPackage != null) {\r\n currentPackage.repaint();\r\n }\r\n }", "public void waitCursorForAction(JComponent comp, Thread thr, boolean disable) {\r\n Cursor orig = comp.getCursor();\r\n boolean status = comp.isEnabled();\r\n if (disable) comp.setEnabled(false);\r\n comp.setCursor(waitCursor);\r\n thr.start();\r\n try {\r\n thr.join();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MousePointerManager.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if (disable) comp.setEnabled(status);\r\n comp.setCursor(orig);\r\n }", "public void doAction(Action action) {\n\t\tif (!isMyTurn) {\n\t\t\treporter.log(Level.SEVERE, \"User did action but it's not his turn\");\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tconnection.send(action);\n\t\t} catch (IOException e) {\n\t\t\treporter.log(Level.SEVERE, \"Can't send action\", e);\n\t\t\treturn;\n\t\t}\n\t\tif (progress instanceof ProgressRounds) {\n\t\t\tprogress = ((ProgressRounds) progress).advance();\n\t\t}\n\t\tsetMyTurn(false);\n\t\t// notifyListeners(action);\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tOpenABOXJDialog getStarted = new OpenABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initExisting(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}", "public void doInteract()\r\n\t{\n\t}", "public void performSubmit(Action action) {\n performSubmit(action, true);\n }", "public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}", "public void run(IAction action) {\n\t\tMessageDialog.openInformation(window.getShell(), \"AccTrace\",\n\t\t\t\t\"Hello, Eclipse world\");\n\t}", "void ShowWaitDialog(String title, String message);", "static boolean sendMessage(Component paramComponent, AWTEvent paramAWTEvent)\n/* */ {\n/* 237 */ paramAWTEvent.isPosted = true;\n/* 238 */ AppContext localAppContext1 = AppContext.getAppContext();\n/* 239 */ final AppContext localAppContext2 = paramComponent.appContext;\n/* 240 */ DefaultKeyboardFocusManagerSentEvent localDefaultKeyboardFocusManagerSentEvent = new DefaultKeyboardFocusManagerSentEvent(paramAWTEvent, localAppContext1);\n/* */ \n/* */ \n/* 243 */ if (localAppContext1 == localAppContext2) {\n/* 244 */ localDefaultKeyboardFocusManagerSentEvent.dispatch();\n/* */ } else {\n/* 246 */ if (localAppContext2.isDisposed()) {\n/* 247 */ return false;\n/* */ }\n/* 249 */ SunToolkit.postEvent(localAppContext2, localDefaultKeyboardFocusManagerSentEvent);\n/* 250 */ if (EventQueue.isDispatchThread())\n/* */ {\n/* 252 */ EventDispatchThread localEventDispatchThread = (EventDispatchThread)Thread.currentThread();\n/* 253 */ localEventDispatchThread.pumpEvents(1007, new Conditional() {\n/* */ public boolean evaluate() {\n/* 255 */ return (!this.val$se.dispatched) && (!localAppContext2.isDisposed());\n/* */ }\n/* */ });\n/* */ } else {\n/* 259 */ synchronized (localDefaultKeyboardFocusManagerSentEvent) {\n/* 260 */ for (;;) { if ((!localDefaultKeyboardFocusManagerSentEvent.dispatched) && (!localAppContext2.isDisposed())) {\n/* */ try {\n/* 262 */ localDefaultKeyboardFocusManagerSentEvent.wait(1000L);\n/* */ }\n/* */ catch (InterruptedException localInterruptedException) {}\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 270 */ return localDefaultKeyboardFocusManagerSentEvent.dispatched;\n/* */ }", "public void exitingToRight() throws Exception\r\n\t{\r\n\t\t/*\r\n\t\tSwingWorker worker = new SwingWorker() {\r\n\t\t public Object construct() {\r\n\t\t \t//add the code for the background thread\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t public void finished() {\r\n\t\t \t//code that you add here will run in the UI thread\r\n\t\t \t\r\n\t\t }\r\n\t \r\n\t\t};\r\n\t\tworker.start(); //Start the background thread\r\n\r\n\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\tDoShowDialog doShowDialog = new DoShowDialog();\r\n\t\ttry {\r\n\t\t SwingUtilities.invokeAndWait(doShowDialog);\r\n\t\t}\r\n\t\tcatch \r\n\t\t (java.lang.reflect.\r\n\t\t InvocationTargetException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//EPSG\r\n\t\tblackboard.put(\"selectedImportEPSG\", jComboEPSG.getSelectedItem());\r\n\t\tblackboard.put(\"mostrarError\", true);\r\n\t\t\r\n\t\tif (chkDelete.isSelected())\r\n\t\t{\r\n\t\t\t//JOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t\t//\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t\t\r\n\t\t\tint answer = JOptionPane.showConfirmDialog(aplicacion.getMainFrame(), I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso\"));\r\n\t\t if (answer == JOptionPane.YES_OPTION) {\t\t \r\n\t\t \tblackboard.put(\"borrarNoIncluidas\", true);\r\n\t\t \tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t \t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.confirmarborrar\"));\r\n\t\t } \r\n\t\t else if (answer == JOptionPane.NO_OPTION || answer == JOptionPane.CANCEL_OPTION) {\r\n\t\t \tblackboard.put(\"borrarNoIncluidas\", false);\r\n\t\t \tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), \r\n\t\t \t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.denegarborrar\"));\r\n\t\t }\t\t\t\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tblackboard.put(\"borrarNoIncluidas\", false);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif (!rusticaValida || !urbanaValida)\r\n\t\t{\t\t\t\r\n\t\t\t/*String text = JOptionPane.showInputDialog(aplicacion.getMainFrame(), \r\n\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t if (text == null) \r\n\t\t {\t\r\n\t\t \t//wizardContext.inputChanged();\r\n\t\t \treturn; //throw new Exception();\r\n\t\t }\t\t*/ \r\n\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(aplicacion.getMainFrame(), I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.borrar.aviso.parcial\"));\r\n\t\t} \r\n\t\t\r\n\t}", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\n\n if (e.getSource() == m_StartBut) {\n if (m_RunThread == null) {\n\ttry {\n\t m_RunThread = new ExperimentRunner(m_Exp);\n\t m_RunThread.setPriority(Thread.MIN_PRIORITY); // UI has most priority\n\t m_RunThread.start();\n\t} catch (Exception ex) {\n ex.printStackTrace();\n\t logMessage(\"Problem creating experiment copy to run: \"\n\t\t + ex.getMessage());\n\t}\n }\n } else if (e.getSource() == m_StopBut) {\n m_StopBut.setEnabled(false);\n logMessage(\"User aborting experiment. \");\n if (m_Exp instanceof RemoteExperiment) {\n\tlogMessage(\"Waiting for remote tasks to \"\n\t\t +\"complete...\");\n }\n ((ExperimentRunner)m_RunThread).abortExperiment();\n // m_RunThread.stop() ??\n m_RunThread = null;\n }\n }", "public void actionPerformed(ActionEvent e)\n {\n testThread.interrupt();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint b = (int) combo.getSelectedItem();\r\n\t\t\t\t//JOptionPane.showMessageDialog(content, \"N'est Pas Complet\", \"A maintenance\",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tnew Verification(b);\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t}", "@Override\r\n\r\n\tpublic void doAction(Object object, Object param, Object extParam,Object... args) {\n\t\tString match = \"\";\r\n\t\tString ks = \"\";\r\n\t\tint time = 3000; // Default wait 3 secs before and after the dialog shows.\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t\tIWindow activeWindow = RationalTestScript.getScreen().getActiveWindow();\r\n\t\t\t// ITopWindow activeWindow = (ITopWindow)AutoObjectFactory.getHtmlDialog(\"ITopWindow\");\r\n\t\t\tif ( activeWindow != null ) {\r\n\t\t\t\tif ( activeWindow.getWindowClassName().equals(\"#32770\") ) {\r\n\t\t\t\t\tactiveWindow.inputKeys(param.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t/*int hwnd = Win32IEHelper.getDialogTop();\r\n\t\t\tTopLevelTestObject too = null;\r\n\t\t\tTestObject[] foundTOs = RationalTestScript.find(RationalTestScript.atChild(\".hwnd\", (long)hwnd, \".domain\", \"Win\"));\r\n\t\t\tif ( foundTOs!=null ) {\r\n\t\t\t\t// Maximize it\r\n\t\t\t\tif ( foundTOs[0]!=null) {\r\n\t\t\t\t\ttoo = new TopLevelTestObject(foundTOs[0]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (too!=null) {\r\n\t\t\t\ttoo.inputKeys(param.toString());\r\n\t\t\t}*/\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (NullPointerException e ) {\t\t\t\r\n\t\t} catch (ClassCastException e) {\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"Error finding the HTML dialog.\");\r\n\t\t}\r\n\t}", "public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" command \" + commandName + \" execution in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" execution requested.\" );\n // start the execute command thread\n final ExecuteCommandThread executeCommandThread = new ExecuteCommandThread();\n executeCommandThread.commandName = commandName;\n executeCommandThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( executeCommandThread.ended )\n {\n if ( executeCommandThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n executeCommandThread.message,\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n executeCommandThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" command \" + commandName + \" executed.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" executed.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }", "protected void submitAction() {\n\t\ttry {\n\t\t\tString username = userField.getText();\n\t\t\tAbstractAgent loggedClient = parent.getAgent().login(username, new String(passField.getPassword()));\n\t\t\tif (loggedClient instanceof AdminMS) {\n\t\t\t\tAdminUI adminUI = new AdminUI((AdminMS) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tadminUI.run();\n\t\t\t} else if (loggedClient instanceof IUser) {\n\t\t\t\tUserUI userUI = new UserUI((IUser) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tuserUI.run();\n\t\t\t}\n\t\t\tif (loggedClient != null)\n\t\t\t\tparent.dispose();\n\t\t} catch (LoginException e) {\n\t\t\tmessageLabel.setText(e.getMessage());\n\t\t} catch (RemoteException e) {\n\t\t\tJOptionPane.showMessageDialog(parent, e);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSwingWorker<Void,Void> worker = new SwingWorker<Void,Void>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected Void doInBackground() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t//frmIpfs.getContentPane().add(infomation,BorderLayout.CENTER);\n\t\t\t\t\t\t//new Thread(infomation).start();\n\t\t\t\t\t\tinfomation.drawStart();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}}).start();\n\t\t\t\t\t\t\tcenter.start();\n\t\t\t\t\t\t\twait.startSucess();\n\t\t\t\t\t\t\tstartButton.setEnabled(false);\n\t\t\t\t\t\t\tcloseButton.setEnabled(true);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew IODialog();\n\t\t\t\t\t\t} catch (CipherException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew BlockChainDialog();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tnew ExceptionDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t};\n\t\t\t\tworker.execute();\n\t\t\t}", "public void dispatchCancel(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(2, action));\n }", "void actionCompleted(ActionLookupData actionLookupData);", "public void actionPerformed(ActionEvent e) {\n\n if(RUN_CC.equals(e.getActionCommand())) {\n\n try {\n int seed = ( new Integer(seed_f.getText()).intValue());\n double alpha = ( new Double(alpha_f.getText()).doubleValue());\n double delta = ( new Double(delta_f.getText()).doubleValue());\n int number_BCs = ( new Integer(number_BCs_f.getText()).intValue());\n\n cca.setSeed(seed);\n cca.setAlpha(alpha);\n cca.setDelta(delta);\n cca.setN(number_BCs); // number of output biclusters\n \n JOptionPane.showMessageDialog(null, \"CC algorithm is running... \\nThe calculations may take some time\");\n for (int i = 0; i < 500000000; i++) {} //wait\n owner.runMachine_CC.runBiclustering(cca);\n\n dialog.setVisible(false);\n dialog.dispose();\n \n }\n catch(NumberFormatException nfe) { nfe.printStackTrace(); }\n }\n\n else if(RUN_CC_DIALOG_CANCEL.equals(e.getActionCommand())) {\n dialog.setVisible(false);\n dialog.dispose();\n }\n\n }", "@Override\n public void afterActionPerformed(AnAction anAction, DataContext dataContext, AnActionEvent anActionEvent) {\n closeContentsCanceled = false;\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tthread.start();\n\t\t\t\t\t\t}", "private void runContextMenuAction(Action a, Project p) {\n if (a instanceof ContextAwareAction) {\n Lookup l = Lookups.singleton(p);\n a = ((ContextAwareAction) a).createContextAwareInstance(l);\n }\n a.actionPerformed(null);\n }", "public void postActionEvent() {\n fireActionPerformed();\n }", "protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) {\r\n\t\tif (!_isCapability) {\r\n\t\t\tnubEditPopUp = new RequirementsPopupDialog(_shell, (Unit) _dmo,\r\n\t\t\t\t\t_initialLocation != null ? _initialLocation : estimate(_editPart, TOP_RIGHT));\r\n\t\t} else if (_dmo instanceof Unit) {\r\n\t\t\tnubEditPopUp = new CapabilitiesPopupDialog(_shell, (Unit) _dmo,\r\n\t\t\t\t\t_initialLocation != null ? _initialLocation : estimate(_editPart, BOTTOM_LEFT));\r\n\t\t}\r\n\r\n\t\tif (nubEditPopUp != null) {\r\n\t\t\tnew UnitFlyOutPropertiesToggler((Unit) _dmo, _domain,\r\n\t\t\t\t\t(UnitFlyOutPropertiesTogglerDialog) nubEditPopUp);\r\n\t\t\tnubEditPopUp.open();\r\n\t\t\tif (initialSelectionProvider != null && nubEditPopUp instanceof ISetSelectionTarget) {\r\n\t\t\t\t((ISetSelectionTarget) nubEditPopUp).selectReveal(initialSelectionProvider\r\n\t\t\t\t\t\t.getSelection());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn CommandResult.newOKCommandResult();\r\n\t}", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardOptionsWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "@Override\n\tpublic void doAction(String action) {\n\t\tthis.action = action;\n\t\t\n\t\tthis.gameController.pause();\n\t}", "public void dispatchSubmit(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(1, action));\n }", "@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}", "boolean tryToPerform_with(Object anAction, Object anObject)\n {\n\treturn false;\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tResultPage resultPage = new ResultPage(Agent.agentResult);\n\t\t\t\tframe.setVisible(false);\n\t\t\t\tresultPage.setVisible(true);\n\t\t\t}", "DialogResult show();", "private void attemptTuiCommand(final TermuxSessionBridgeEnd bridgeEnd, final String command) {\n if(tuiCommandAttempt != null) tuiCommandAttempt.cancel(true);\n\n tuiCommandAttempt = workerThread.submit(new Runnable() {\n @Override\n public void run() {\n Runnable runnableCommand = tuiCore.createTuiRunnable(command);\n if (runnableCommand == null) Bridge.this.sendBackToTermux(bridgeEnd, command);\n else runnableCommand.run();\n }\n }, null);\n }", "protected void showDialog(final IJobChangeEvent event) {\r\n\t\tDisplay display = Display.getDefault();\r\n\t\tdisplay.asyncExec(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tShell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\r\n\t\t\t\tswitch (event.getResult().getSeverity()) {\r\n\t\t\t\tcase IStatus.ERROR:\r\n\t\t\t\t\tErrorDialog.openError(shell, \"Code Generation Error\", null, event.getResult());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase IStatus.CANCEL:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code Generation Canceled\", event.getJob().getName() + \"Code generation canceled!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code generation finished!\", event.getJob().getName()+\" finished without errors!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n dialog.dismiss();\n if (operatingDialog != null) {\n if (operatingDialog.isShowing()) {\n return;\n }\n if (thread != null && thread.isAlive()) {\n return;\n }\n thread.start();\n operatingDialog.show();\n }\n }", "public void doInteract(int interactionId)\r\n\t{\r\n\t\tif (interactionId == PlayerCharacter.MAIN_INTERACTION)\r\n\t\t{\r\n\t\t\tdialog.showDialog();\r\n\t\t}\r\n\t}", "private String performTheAction(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tString servletPath = request.getServletPath();\r\n\t\tString action = getActionName(servletPath);\r\n\t\t// Let the logged in user run his chosen action\r\n\t\treturn Action.perform(action, request);\r\n\t}", "private boolean performAction(int action) {\n TagEditorFragment tagEditorFragment = (TagEditorFragment) caller;\n final int size = rows.getChildCount();\n List<TagEditRow> selected = new ArrayList<>();\n for (int i = 0; i < size; ++i) {\n View view = rows.getChildAt(i);\n TagEditRow row = (TagEditRow) view;\n if (row.isSelected()) {\n selected.add(row);\n }\n }\n switch (action) {\n case MENU_ITEM_DELETE:\n if (!selected.isEmpty()) {\n for (TagEditRow r : selected) {\n r.delete();\n }\n tagEditorFragment.updateAutocompletePresetItem(null);\n }\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_COPY:\n copyTags(selected, false);\n tagEditorFragment.updateAutocompletePresetItem(null);\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_CUT:\n copyTags(selected, true);\n if (currentAction != null) {\n currentAction.finish();\n }\n break;\n case MENU_ITEM_CREATE_PRESET:\n CustomPreset.create(tagEditorFragment, selected);\n tagEditorFragment.presetFilterUpdate.update(null);\n break;\n case MENU_ITEM_SELECT_ALL:\n ((PropertyRows) caller).selectAllRows();\n return true;\n case MENU_ITEM_DESELECT_ALL:\n ((PropertyRows) caller).deselectAllRows();\n return true;\n case MENU_ITEM_HELP:\n HelpViewer.start(caller.getActivity(), R.string.help_propertyeditor);\n return true;\n default:\n return false;\n }\n return true;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}", "public void actionPerformed(ActionEvent e)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t\tcatch_up_thread.runCatchUp();\r\n\t\t\t}", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardSimulaneousLayerWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "public void clickFailure(ActionEvent actionEvent) {\n current.getSelector().update(Selector.AnswerType.FAILURE);\n nextCard();\n }", "public void run(IAction action) {\n\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(shell);\r\n\t\tsaveAsDialog.open();\r\n\t}", "public void clickAction() throws InterruptedException{\n\t\tThread.sleep(1000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"actionsbtn\"), \"Actions Button\");\n\t\tThread.sleep(1000);\n\t}", "abstract public void performAction();", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardConstrainedLayerWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "public void buttonShowComplete(ActionEvent actionEvent) {\n }", "public void doAction(){}", "public JCACommandThread(final Context jca_context)\n {\n super(\"JCA Command Thread\");\n this.jca_context = jca_context;\n }", "@Override\n public void click() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n int result = fileChooser.showOpenDialog(TurtleFileOpen.this);\n\n if (result == JFileChooser.APPROVE_OPTION) {\n final File selFile = fileChooser.getSelectedFile();\n //the user selects the file\n execute(new Runnable() {\n public void run() {\n openFile(selFile);\n }\n });\n }\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tComicInfo comic = (ComicInfo)list.getSelectedValue();\n\t\t\t\tThread getContent = new SearchGetContent(comic.getTitle(),comic.getURL(),theview);\n\t\t\t\tgetContent.start();\n\t\t\t}", "private ActionStepOrResult executeAction(ExtendedEventHandler eventHandler, Action action)\n throws LostInputsActionExecutionException, InterruptedException {\n ActionResult result;\n try (SilentCloseable c = profiler.profile(ProfilerTask.INFO, \"Action.execute\")) {\n checkForUnsoundDirectoryInputs(action, actionExecutionContext.getInputMetadataProvider());\n\n result = action.execute(actionExecutionContext);\n\n // An action's result (or intermediate state) may have been affected by lost inputs. If an\n // action filesystem is used, it may know whether inputs were lost. We should fail fast if\n // any were; rewinding may be able to fix it.\n checkActionFileSystemForLostInputs(\n actionExecutionContext.getActionFileSystem(), action, outputService);\n } catch (ActionExecutionException e) {\n Path primaryOutputPath = actionExecutionContext.getInputPath(action.getPrimaryOutput());\n maybeSignalLostInputs(e, primaryOutputPath);\n return ActionStepOrResult.of(\n processAndGetExceptionToThrow(\n eventHandler,\n primaryOutputPath,\n action,\n e,\n actionExecutionContext.getFileOutErr(),\n ErrorTiming.AFTER_EXECUTION));\n } catch (InterruptedException e) {\n return ActionStepOrResult.of(e);\n }\n\n try {\n ActionExecutionValue actionExecutionValue;\n try (SilentCloseable c =\n profiler.profile(ProfilerTask.ACTION_COMPLETE, \"actuallyCompleteAction\")) {\n actionExecutionValue = actuallyCompleteAction(eventHandler, result);\n }\n return new ActionPostprocessingStep(actionExecutionValue);\n } catch (ActionExecutionException e) {\n return ActionStepOrResult.of(e);\n }\n }", "public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" update requested.\" );\n // start the update thread\n final UpdateThread updateThread = new UpdateThread();\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tNewABOXJDialog getStarted = new NewABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initNew(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t\tlogme.error(\"Could not load ontology: \", e1);\n\t\t\t\t} catch (OWLOntologyStorageException e1) {\n\t\t\t\t\tcontroller.logappendError(\"Uh-oh - an exception occurred when writing the ontology: \" + e1.getMessage());\n\t\t\t\t\tlogme.error(\"Could not write ontology: \", e1);\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "public void runModalTool(final VTool tool, final DialogType dt);", "private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }", "void onCompleteActionWithError(SmartEvent smartEvent);", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "public void run(IAction action) {\n\t\tInstaSearchUI.getWorkbenchWindow().getActivePage().activate( InstaSearchUI.getActiveEditor() );\n\t\tNewSearchUI.openSearchDialog(InstaSearchUI.getWorkbenchWindow(), InstaSearchPage.ID);\n\t}", "public interface AutofillAssistantActionHandler {\n /**\n * Returns the names of available AA actions.\n *\n * <p>This method starts AA on the current tab, if necessary, and waits for the first results.\n * Once AA is started, the results are reported immediately.\n *\n * @param userName name of the user to use when sending RPCs. Might be empty.\n * @param experimentIds comma-separated set of experiment ids. Might be empty\n * @param arguments extra arguments to include into the RPC. Might be empty.\n * @param callback callback to report the result to\n */\n void listActions(String userName, String experimentIds, Bundle arguments,\n Callback<Set<String>> callback);\n\n /**\n * Returns the available AA actions to be reported to the direct actions framework.\n *\n * <p>This method simply returns the list of actions known to AA. An empty string array means\n * either that the controller has not yet been started or there are no actions available for the\n * current website.\n *\n * @return Array of strings with the names of known actions.\n */\n String[] getActions();\n\n /** Performs onboarding and returns the result to the callback. */\n void performOnboarding(String experimentIds, Callback<Boolean> callback);\n\n /**\n * Performs an AA action.\n *\n * <p>If this method returns {@code true}, a definition for the action was successfully started.\n * It can still fail later, and the failure will be reported to the UI.\n *\n * @param name action name, might be empty to autostart\n * @param experimentIds comma-separated set of experiment ids. Might be empty.\n * @param arguments extra arguments to pass to the action. Might be empty.\n * @param callback to report the result to\n */\n void performAction(\n String name, String experimentIds, Bundle arguments, Callback<Boolean> callback);\n}", "@Override\n\tpublic void succeed(int taskId, JSONObject jObject) {\n\t\tdimissDialog();\n\t}", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "public void executeAction( String actionInfo );", "public void actionPerformed(ActionEvent event) {\t\n\t\tif (event.getActionCommand().equals(\"comboBoxChanged\")) {\n\t\t\tthis.setBoxes((String) select.getSelectedItem());\n\t\t} else if (event.getActionCommand().equals(\"Start\")) {\t\t\t\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}", "@SuppressWarnings(\"unused\")\n public void handleTestEvent(int result) {\n ApplicationManager.getApplication().invokeLater(() -> {\n checkInProgress = false;\n setStatusAndShowResults(result);\n com.intellij.openapi.progress.Task.Backgroundable task = getAfterCheckTask(result);\n ProgressManager.getInstance().run(task);\n });\n }", "public void actionPerformed(ActionEvent e) {\r\n String ac = e.getActionCommand();\r\n if (Constants.CMD_RUN.equals(ac)) {\r\n try {\r\n stopOps = false;\r\n installAndRun(this, cfg);\r\n } catch (Exception ex) {\r\n // assume SecurityEx or some other problem...\r\n setStatus(\"Encountered problem:\\n\" + ex.toString()\r\n + \"\\n\\nPlease insure that all components are installed properly.\");\r\n } // endtry\r\n } // endif\r\n }", "public void actionPerformed(ActionEvent ae){\n if(waitingForRepaint){\n repaint();\n }\n }", "@Override\n\tpublic void runOnUiThread( final Runnable action ) {\n\t\tif ( mContext != null ) ( (Activity) mContext ).runOnUiThread( action );\n\t}", "public void actionPerformed(ActionEvent e) {\n action.actionPerformed(e);\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJOptionPane.showConfirmDialog(null, \"BOTAO CLICADO\", \"VALOR\", JOptionPane.PLAIN_MESSAGE);\n\n\t\t}", "@Override\n protected void performActionResults(Action targetingAction) {\n PhysicalCard cardToCancel = targetingAction.getPrimaryTargetCard(targetGroupId);\n PhysicalCard captiveToRelease = Filters.findFirstActive(game, self,\n SpotOverride.INCLUDE_CAPTIVE, Filters.and(Filters.captive, Filters.targetedByCardOnTable(cardToCancel)));\n\n // Perform result(s)\n action.appendEffect(\n new CancelCardOnTableEffect(action, cardToCancel));\n if (captiveToRelease != null) {\n action.appendEffect(\n new ReleaseCaptiveEffect(action, captiveToRelease));\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}", "void onCompleteActionWithSuccess(SmartEvent smartEvent);", "public void actionPerformed( ActionEvent actionEvent )\n {\n if ( _currentEntries == null || _core == null )\n return;\n\n _core.load( _currentEntries[ _comboBox.getSelectedIndex() ] );\n\n _main.requestFocus();\n // Workaround for focus handling bug in jdk1.4. BugParade 4478706.\n // TODO retest if needed on jdk1.4 -> defect is marked as fixed.\n //Window w = (Window)\n //SwingUtilities.getWindowAncestor( (JComponent)actionEvent.getSource() );\n //if ( w != null )\n //w.requestFocus();\n }", "public void actionPerformed(ActionEvent e)\n { /* actionPerformed */\n String\n cmd= e.getActionCommand();\n \n /* [1] see which button was pushed and do the right thing,\n * hide window and return default/altered data */\n if (cmd.equals(\" Cancel\") || cmd.equals(\"Continue\"))\n { /* send default data back - data is already stored into this.data */\n this.setVisible(false); /* hide frame which can be shown later */\n } /* send default data back */\n else\n if(cmd.equals(\"Ok\"))\n { /* hide window and return data back entered by user */\n data= textField.getText(); /* altered data returned */\n this.setVisible(false); /* hide frame which can be shown later*/\n }\n alertDone= true;\n }", "public static void asyncClick( final SWTWorkbenchBot bot, final SWTBotMenu menu, final ICondition waitCondition )\n throws TimeoutException\n {\n UIThreadRunnable.asyncExec( bot.getDisplay(), new VoidResult()\n {\n public void run()\n {\n menu.click();\n }\n } );\n\n if ( waitCondition != null )\n {\n bot.waitUntil( waitCondition );\n }\n }", "@Test\n public void testSuccess() throws ComponentInitializationException {\n final Event event = action.execute(requestCtx);\n ActionTestingSupport.assertProceedEvent(event);\n }", "public void performAction(HandlerData actionInfo) throws ActionException;", "@Override\n\tpublic void run(IAction action) {\n\t\n\t\twindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tif (window != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\tIStructuredSelection selection = (IStructuredSelection) window.getSelectionService().getSelection();\n\t\t Object firstElement = selection.getFirstElement();\n \t\tinit();\n \t\t\n \t\tIProject project = (IProject)((IAdaptable)firstElement).getAdapter(IProject.class);\n\t ProjectAnalyzer.firstElement = (IAdaptable)firstElement;\n\t ProjectAnalyzer.url = project.getLocationURI().getPath().toString().substring(1);\n\t File dbFile = new File(ProjectAnalyzer.url + \"\\\\\" + project.getName() + \".db\");\n\t \n\t if(dbFile.exists()){\n\t \tMessageBox dialog = new MessageBox(window.getShell(), SWT.ICON_QUESTION | SWT.OK| SWT.CANCEL);\n\t \t\tdialog.setText(\"Select\");\n\t \t\tdialog.setMessage(\"The DB file of the project exists. \\n Do you want to rebuild the project?\");\n\t \t\tint returnCode = dialog.open();\n\t \t\t\n\t \t\tif(returnCode==SWT.OK){\n\t \t\t\tdbFile.delete();\n\t \t\t\tthis.analysis(project);\n\t \t\t\tthis.showMessage(\"Complete\",\"Rebuild has been complete!\");\n\t \t\t\t//do something\n\t \t\t\tthis.doTask();\n\t \t\t}else{\n\t \t\t\t//do something\n\t \t\t\tthis.doTask();\n\t \t\t}\n\t }else{\n\t \tthis.analysis(project);\n\t \tthis.showMessage(\"Complete\",\"Rebuild has been complete!\");\n\t \t//do something\n\t \tthis.doTask();\n\t }\n \t\t\n\t \n\t\t\t}catch(java.lang.NullPointerException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}catch (java.lang.ClassCastException e2){\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"deprecation\")\n @Override\n protected void execute()\n {\n // Display the dialog and wait for the close action (the user\n // selects the Okay button or the script execution completes\n // and a Cancel button is issued)\n int option = cancelDialog.showMessageDialog(dialog,\n \"<html><b>Script execution in progress...<br><br>\"\n + CcddUtilities.colorHTMLText(\"*** Press </i>Halt<i> \"\n + \"to terminate script execution ***\",\n Color.RED),\n \"Script Executing\",\n JOptionPane.ERROR_MESSAGE,\n DialogOption.HALT_OPTION);\n\n // Check if the script execution was terminated by the user and\n // that the script is still executing\n if (option == OK_BUTTON && scriptThread.isAlive())\n {\n // Forcibly stop script execution. Note: this method is\n // deprecated due to inherent issues that can occur when a\n // thread is abruptly stopped. However, the stop method is\n // the only manner in which the script can be terminated\n // (without additional code within the script itself, which\n // cannot be assumed since the scripts are user-generated).\n // There shouldn't be a potential for object corruption in\n // the application since it doesn't reference any objects\n // created by a script\n scriptThread.stop();\n\n // Set the execution status(es) to indicate the scripts\n // didn't complete\n isBad = new boolean[associations.size()];\n Arrays.fill(isBad, true);\n }\n }", "public void actionPerformed(ActionEvent oEvent) {\n if (oEvent.getActionCommand().equals(\"OK\")) {\n try {\n addFinishedData();\n } catch (ModelException e) {\n ErrorGUI oHandler = new ErrorGUI(this);\n oHandler.writeErrorMessage(e);\n return;\n }\n\n //Close this window\n this.setVisible(false);\n this.dispose();\n }\n else if (oEvent.getActionCommand().equals(\"Cancel\")) {\n //Close this window\n this.setVisible(false);\n this.dispose();\n } \n }" ]
[ "0.67856514", "0.5840263", "0.5837278", "0.57583326", "0.5710005", "0.54272604", "0.5409092", "0.5363207", "0.5255432", "0.524878", "0.52414316", "0.5226712", "0.5183037", "0.51816416", "0.51422983", "0.51255095", "0.5124252", "0.5100215", "0.5050282", "0.5034804", "0.50344", "0.50337875", "0.50275326", "0.5026633", "0.5023875", "0.501975", "0.50049824", "0.49924284", "0.49691594", "0.49613938", "0.49509168", "0.4942181", "0.49267003", "0.4906983", "0.4904198", "0.48933366", "0.48791543", "0.48787004", "0.4852772", "0.48473418", "0.483214", "0.482332", "0.48192492", "0.48124483", "0.48104435", "0.48104435", "0.48053092", "0.48028532", "0.47952747", "0.47918323", "0.47890878", "0.47844672", "0.47840434", "0.47825024", "0.4776945", "0.47740218", "0.47736007", "0.47714272", "0.477049", "0.476298", "0.4761386", "0.47599697", "0.4758068", "0.47546113", "0.47464484", "0.47461087", "0.47431096", "0.474176", "0.474118", "0.47399515", "0.47367126", "0.4735815", "0.47300318", "0.47270152", "0.47267294", "0.4726644", "0.4726019", "0.4725472", "0.4720343", "0.47197002", "0.4719453", "0.47170752", "0.4716142", "0.4716109", "0.47086886", "0.47042438", "0.47031572", "0.47021276", "0.47016767", "0.4698943", "0.46985877", "0.4696706", "0.46770796", "0.46753344", "0.46627015", "0.46616358", "0.46597728", "0.46586365", "0.4650666", "0.46471527" ]
0.6218749
1