Skip to content

Commit 7cddabf

Browse files
committed
Made some methods protected instead of private.
1 parent eac5f02 commit 7cddabf

2 files changed

Lines changed: 41 additions & 18 deletions

File tree

src/main/java/com/imsweb/validation/entities/SimpleMapValidatable.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,42 +42,42 @@ public class SimpleMapValidatable implements Validatable {
4242
/**
4343
* Display ID for this validatable.
4444
*/
45-
private String _displayId;
45+
protected String _displayId;
4646

4747
/**
4848
* Used to keep track of the property paths (prefix) when an error is reported; this is the full path with the indexes.
4949
*/
50-
private final String _prefix;
50+
protected final String _prefix;
5151

5252
/**
5353
* The current alias.
5454
*/
55-
private final String _alias;
55+
protected final String _alias;
5656

5757
/**
5858
* Current map being validated.
5959
*/
60-
private final Map<String, Object> _current;
60+
protected final Map<String, Object> _current;
6161

6262
/**
6363
* Link to the parent validatable.
6464
*/
65-
private final SimpleMapValidatable _parent;
65+
protected final SimpleMapValidatable _parent;
6666

6767
/**
6868
* Map of prefixes, contains the prefixes of this validatable plus any prefixes from the parents.
6969
*/
70-
private final Map<String, String> _prefixes;
70+
protected final Map<String, String> _prefixes;
7171

7272
/**
7373
* Map of scopes, contains the scope of this validatable plus any scopes from the parents.
7474
*/
75-
private final Map<String, Object> _scopes;
75+
protected final Map<String, Object> _scopes;
7676

7777
/**
7878
* Set of failing properties.
7979
*/
80-
private final Set<String> _propertiesWithError;
80+
protected final Set<String> _propertiesWithError;
8181

8282
/**
8383
* Constructor.

src/main/java/com/imsweb/validation/entities/SimpleNaaccrLinesValidatable.java

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
* <br/><br/>
4141
* Created on Apr 17, 2010 by Fabian
4242
*/
43+
@SuppressWarnings("unused")
4344
public class SimpleNaaccrLinesValidatable implements Validatable {
4445

4546
/**
@@ -55,52 +56,52 @@ public class SimpleNaaccrLinesValidatable implements Validatable {
5556
/**
5657
* Used to keep track of the property paths (prefix) when an error is reported; this is the full path with the indexes
5758
*/
58-
private final String _prefix;
59+
protected final String _prefix;
5960

6061
/**
6162
* The current alias
6263
*/
63-
private final String _alias;
64+
protected final String _alias;
6465

6566
/**
6667
* Current collections of lines (applied only to the root validatable)
6768
*/
68-
private final List<Map<String, String>> _lines;
69+
protected final List<Map<String, String>> _lines;
6970

7071
/**
7172
* Context entries
7273
*/
73-
private final Map<String, Object> _context;
74+
protected final Map<String, Object> _context;
7475

7576
/**
7677
* Current map being validated
7778
*/
78-
private final Map<String, String> _currentLine;
79+
protected final Map<String, String> _currentLine;
7980

8081
/**
8182
* Link to the parent validatable
8283
*/
83-
private final SimpleNaaccrLinesValidatable _parent;
84+
protected final SimpleNaaccrLinesValidatable _parent;
8485

8586
/**
8687
* Map of prefixes, contains the prefixes of this validatable plus any prefixes from the parents
8788
*/
88-
private final Map<String, String> _prefixes;
89+
protected final Map<String, String> _prefixes;
8990

9091
/**
9192
* Map of scopes, contains the scope of this validatable plus any scopes from the parents
9293
*/
93-
private final Map<String, Object> _scopes;
94+
protected final Map<String, Object> _scopes;
9495

9596
/**
9697
* Set of failing properties
9798
*/
98-
private final Set<String> _propertiesWithError;
99+
protected final Set<String> _propertiesWithError;
99100

100101
/**
101102
* If true, the untrimmed notation will be used ('untrimmedline' instead of 'line')
102103
*/
103-
private final boolean _useUntrimmedNotation;
104+
protected final boolean _useUntrimmedNotation;
104105

105106
/**
106107
* Constructor.
@@ -112,6 +113,17 @@ public SimpleNaaccrLinesValidatable(Map<String, String> map) {
112113
this(Collections.singletonList(map), null);
113114
}
114115

116+
/**
117+
* Constructor.
118+
* <p/>
119+
* Created on Jun 18, 2025 by depryf
120+
* @param map entity (a map representing one NAACCR record)
121+
* @param useUntrimmedNotation if true, the untrimmed notation will be used ('untrimmedline' instead of 'line')
122+
*/
123+
public SimpleNaaccrLinesValidatable(Map<String, String> map, boolean useUntrimmedNotation) {
124+
this(Collections.singletonList(map), null, useUntrimmedNotation);
125+
}
126+
115127
/**
116128
* Constructor.
117129
* <p/>
@@ -122,6 +134,17 @@ public SimpleNaaccrLinesValidatable(List<Map<String, String>> list) {
122134
this(list, null);
123135
}
124136

137+
/**
138+
* Constructor.
139+
* <p/>
140+
* Created on Aug 7, 2011 by depryf
141+
* @param list wrapped entity (a list of map representing one or several NAACCR records for one patient set)
142+
* @param useUntrimmedNotation if true, the untrimmed notation will be used ('untrimmedline' instead of 'line')
143+
*/
144+
public SimpleNaaccrLinesValidatable(List<Map<String, String>> list, boolean useUntrimmedNotation) {
145+
this(list, null, useUntrimmedNotation);
146+
}
147+
125148
/**
126149
* Constructor.
127150
* <p/>

0 commit comments

Comments
 (0)