Produced by Araxis Merge on 12/5/2017 12:06:39 PM Central 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 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\DicomServiceProvider\main\src\java\gov\va\med\imaging\dicom\parser\impl\rawvalueparsers | RawValueParser_UI.java | Mon Dec 4 21:35:30 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\DicomServiceProvider\main\src\java\gov\va\med\imaging\dicom\parser\impl\rawvalueparsers | RawValueParser_UI.java | Mon Dec 4 21:59:34 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 90 |
| 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 | /** | |
| 2 | * | |
| 3 | */ | |
| 4 | package go v.va.med.i maging.dic om.parser. impl.rawva lueparsers ; | |
| 5 | ||
| 6 | import gov .va.med.im aging.dico m.dataset. elements.D ataElement _UI; | |
| 7 | import gov .va.med.im aging.dico m.exceptio ns.DicomFo rmatExcept ion; | |
| 8 | import gov .va.med.im aging.dico m.exceptio ns.DicomFo rmatExcept ion_UI; | |
| 9 | import gov .va.med.im aging.dico m.parser.i mpl.DataEl ementFacto ry; | |
| 10 | import gov .va.med.im aging.dico m.parser.i mpl.RawVal ueParser; | |
| 11 | ||
| 12 | import jav a.util.reg ex.Matcher ; | |
| 13 | import jav a.util.reg ex.Pattern ; | |
| 14 | ||
| 15 | import org .apache.lo gging.log4 j.Level; | |
| 16 | ||
| 17 | /** | |
| 18 | * @author
|
|
| 19 | * | |
| 20 | */ | |
| 21 | public cla ss RawValu eParser_UI | |
| 22 | extends Ra wValuePars er<String, DataEleme nt_UI> | |
| 23 | { | |
| 24 | privat e static P attern UID _PATTERN = Pattern.c ompile("([ \\d]+)(\\x 2e[\\d]+)* "); | |
| 25 | ||
| 26 | public RawValueP arser_UI(D ataElement Factory fa ctory, Dat aElement_U I dataElem ent) | |
| 27 | { | |
| 28 | su per(factor y, dataEle ment); | |
| 29 | } | |
| 30 | ||
| 31 | @Overr ide | |
| 32 | public void pars eRawValue( ) | |
| 33 | throws DicomForm atExceptio n | |
| 34 | { | |
| 35 | St ring value = new Str ing(getDat aElement() .getRawVal ue()); | |
| 36 | va lue = valu e.trim(); | |
| 37 | Ma tcher matc her = UID_ PATTERN.ma tcher(valu e); | |
| 38 | if ( ! matche r.matches( ) ) | |
| 39 | { | |
| 40 | getLogge r().log(Le vel.WARN, "UID '" + value + "' is not in the corre ct form.") ; | |
| 41 | throw ne w DicomFor matExcepti on_UI(valu e); | |
| 42 | } | |
| 43 | ge tDataEleme nt().setVa lue(value) ; | |
| 44 | } | |
| 45 | ||
| 46 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.