Produced by Araxis Merge on 12/21/2017 6:15:12 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Genisis_2.0_v7_bld7.zip\TS\CLI\src\main\java\gov\va\genisis2 | TermCliModel.java | Thu Dec 14 19:56:37 2017 UTC |
| 2 | Genisis_2.0_v7_bld7.zip\TS\CLI\src\main\java\gov\va\genisis2 | TermCliModel.java | Thu Dec 21 21:04:38 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 346 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package go v.va.genis is2; | |
| 2 | ||
| 3 | import jav a.util.Lis t; | |
| 4 | ||
| 5 | import com .fasterxml .jackson.c ore.JsonPr ocessingEx ception; | |
| 6 | import com .fasterxml .jackson.d atabind.Ob jectMapper ; | |
| 7 | ||
| 8 | import gov .va.genisi s2.ts.comm on.dto.Tri pleDTO; | |
| 9 | ||
| 10 | /** | |
| 11 | * Model c lass to ho ld Term-Cl i argument s | |
| 12 | * @author PII | |
| 13 | * | |
| 14 | */ | |
| 15 | public cla ss TermCli Model { | |
| 16 | pr ivate bool ean noErro rs; | |
| 17 | pr ivate bool ean checkO nly; | |
| 18 | pr ivate bool ean ignore Errors; | |
| 19 | pr ivate bool ean report Errors; | |
| 20 | pr ivate bool ean allowE rrors; | |
| 21 | pr ivate bool ean add; | |
| 22 | pr ivate bool ean drop; | |
| 23 | pr ivate bool ean verbos e; | |
| 24 | pr ivate List <TripleDTO > properti es; | |
| 25 | ||
| 26 | pu blic TermC liModel() { | |
| 27 | noEr rors = fal se; | |
| 28 | chec kOnly = fa lse; | |
| 29 | igno reErrors = false; | |
| 30 | repo rtErrors = false; | |
| 31 | allo wErrors = false; | |
| 32 | verb ose = fals e; | |
| 33 | add = false; | |
| 34 | drop = false; | |
| 35 | prop erties = n ull; | |
| 36 | } | |
| 37 | ||
| 38 | /* * | |
| 39 | * @return t he allowEr rors | |
| 40 | * / | |
| 41 | pu blic boole an isAllow Errors() { | |
| 42 | retu rn allowEr rors; | |
| 43 | } | |
| 44 | ||
| 45 | /* * | |
| 46 | * @param al lowErrors the allowE rrors to s et | |
| 47 | * / | |
| 48 | pu blic void setAllowEr rors(boole an allowEr rors) { | |
| 49 | this .allowErro rs = allow Errors; | |
| 50 | } | |
| 51 | ||
| 52 | /* * | |
| 53 | * @return t he verbose | |
| 54 | * / | |
| 55 | pu blic boole an isVerbo se() { | |
| 56 | retu rn verbose ; | |
| 57 | } | |
| 58 | ||
| 59 | /* * | |
| 60 | * @param ve rbose the verbose to set | |
| 61 | * / | |
| 62 | pu blic void setVerbose (boolean v erbose) { | |
| 63 | this .verbose = verbose; | |
| 64 | } | |
| 65 | ||
| 66 | /* * | |
| 67 | * @return t he add | |
| 68 | * / | |
| 69 | pu blic boole an isAdd() { | |
| 70 | retu rn add; | |
| 71 | } | |
| 72 | ||
| 73 | /* * | |
| 74 | * @param ad d the add to set | |
| 75 | * / | |
| 76 | pu blic void setAdd(boo lean add) { | |
| 77 | this .add = add ; | |
| 78 | } | |
| 79 | ||
| 80 | /* * | |
| 81 | * @return t he drop | |
| 82 | * / | |
| 83 | pu blic boole an isDrop( ) { | |
| 84 | retu rn drop; | |
| 85 | } | |
| 86 | ||
| 87 | /* * | |
| 88 | * @param dr op the dro p to set | |
| 89 | * / | |
| 90 | pu blic void setDrop(bo olean drop ) { | |
| 91 | this .drop = dr op; | |
| 92 | } | |
| 93 | ||
| 94 | /* * | |
| 95 | * @return t he noError s | |
| 96 | * / | |
| 97 | pu blic boole an isNoErr ors() { | |
| 98 | retu rn noError s; | |
| 99 | } | |
| 100 | ||
| 101 | /* * | |
| 102 | * @param no Errors the noErrors to set | |
| 103 | * / | |
| 104 | pu blic void setNoError s(boolean noErrors) { | |
| 105 | this .noErrors = noErrors ; | |
| 106 | } | |
| 107 | ||
| 108 | /* * | |
| 109 | * @return t he checkOn ly | |
| 110 | * / | |
| 111 | pu blic boole an isCheck Only() { | |
| 112 | retu rn checkOn ly; | |
| 113 | } | |
| 114 | ||
| 115 | /* * | |
| 116 | * @param ch eckOnly th e checkOnl y to set | |
| 117 | * / | |
| 118 | pu blic void setCheckOn ly(boolean checkOnly ) { | |
| 119 | this .checkOnly = checkOn ly; | |
| 120 | } | |
| 121 | ||
| 122 | /* * | |
| 123 | * @return t he ignoreE rrors | |
| 124 | * / | |
| 125 | pu blic boole an isIgnor eErrors() { | |
| 126 | retu rn ignoreE rrors; | |
| 127 | } | |
| 128 | ||
| 129 | /* * | |
| 130 | * @param ig noreErrors the ignor eErrors to set | |
| 131 | * / | |
| 132 | pu blic void setIgnoreE rrors(bool ean ignore Errors) { | |
| 133 | this .ignoreErr ors = igno reErrors; | |
| 134 | } | |
| 135 | ||
| 136 | /* * | |
| 137 | * @return t he reportE rrors | |
| 138 | * / | |
| 139 | pu blic boole an isRepor tErrors() { | |
| 140 | retu rn reportE rrors; | |
| 141 | } | |
| 142 | ||
| 143 | /* * | |
| 144 | * @param re portErrors the repor tErrors to set | |
| 145 | * / | |
| 146 | pu blic void setReportE rrors(bool ean report Errors) { | |
| 147 | this .reportErr ors = repo rtErrors; | |
| 148 | } | |
| 149 | ||
| 150 | /* * | |
| 151 | * @return t he propert ies | |
| 152 | * / | |
| 153 | pu blic List< TripleDTO> getProper ties() { | |
| 154 | retu rn propert ies; | |
| 155 | } | |
| 156 | ||
| 157 | /* * | |
| 158 | * @param pr operties t he propert ies to set | |
| 159 | * / | |
| 160 | pu blic void setPropert ies(List<T ripleDTO> properties ) { | |
| 161 | this .propertie s = proper ties; | |
| 162 | } | |
| 163 | ||
| 164 | pu blic Strin g toJson() { | |
| 165 | Obje ctMapper m apper = ne w ObjectMa pper(); | |
| 166 | Stri ng json = ""; | |
| 167 | try { | |
| 168 | json = mapper.wr iteValueAs String(thi s); | |
| 169 | } ca tch (JsonP rocessingE xception e ) { | |
| 170 | e.prin tStackTrac e(); | |
| 171 | } | |
| 172 | retu rn json; | |
| 173 | } | |
| 174 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.