4040 * <br/><br/>
4141 * Created on Apr 17, 2010 by Fabian
4242 */
43+ @ SuppressWarnings ("unused" )
4344public 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