@@ -97,6 +97,24 @@ private EncodableSection getOrCreateSection(String sectionName) {
9797 case UsTx .NAME :
9898 section = new UsTx ();
9999 break ;
100+ case UsDe .NAME :
101+ section = new UsDe ();
102+ break ;
103+ case UsIa .NAME :
104+ section = new UsIa ();
105+ break ;
106+ case UsNe .NAME :
107+ section = new UsNe ();
108+ break ;
109+ case UsNh .NAME :
110+ section = new UsNh ();
111+ break ;
112+ case UsNj .NAME :
113+ section = new UsNj ();
114+ break ;
115+ case UsTn .NAME :
116+ section = new UsTn ();
117+ break ;
100118 }
101119 if (section != null ) {
102120 this .sections .put (sectionName , section );
@@ -111,7 +129,6 @@ public void setFieldValue(String sectionName, String fieldName, Object value) {
111129 this .dirty = false ;
112130 this .decoded = true ;
113131 }
114-
115132 EncodableSection section = getOrCreateSection (sectionName );
116133 if (section != null ) {
117134 section .setFieldValue (fieldName , value );
@@ -131,7 +148,6 @@ public Object getFieldValue(String sectionName, String fieldName) {
131148 this .dirty = false ;
132149 this .decoded = true ;
133150 }
134-
135151 EncodableSection field = this .sections .get (sectionName );
136152 if (field != null ) {
137153 return field .getFieldValue (fieldName );
@@ -150,7 +166,6 @@ public boolean hasField(String sectionName, String fieldName) {
150166 this .dirty = false ;
151167 this .decoded = true ;
152168 }
153-
154169 EncodableSection field = this .sections .get (sectionName );
155170 if (field != null ) {
156171 return field .hasField (fieldName );
@@ -199,7 +214,6 @@ public EncodableSection getSection(String sectionName) {
199214 this .dirty = false ;
200215 this .decoded = true ;
201216 }
202-
203217 return this .sections .get (sectionName );
204218 }
205219
@@ -213,7 +227,6 @@ public void deleteSection(String sectionName) {
213227 this .dirty = false ;
214228 this .decoded = true ;
215229 }
216-
217230 if (this .sections .remove (sectionName ) != null ) {
218231 this .dirty = true ;
219232 }
@@ -308,7 +321,6 @@ public List<Integer> getSectionIds() {
308321 this .dirty = false ;
309322 this .decoded = true ;
310323 }
311-
312324 int length = Sections .SECTION_ORDER .size ();
313325 List <Integer > sectionIds = new ArrayList <>(length );
314326 for (int i = 0 ; i < length ; i ++) {
@@ -396,6 +408,24 @@ protected Map<String, EncodableSection> decodeModel(String str) {
396408 case UsTx .ID :
397409 sections .put (UsTx .NAME , new UsTx (section ));
398410 break ;
411+ case UsDe .ID :
412+ sections .put (UsDe .NAME , new UsDe (section ));
413+ break ;
414+ case UsIa .ID :
415+ sections .put (UsIa .NAME , new UsIa (section ));
416+ break ;
417+ case UsNe .ID :
418+ sections .put (UsNe .NAME , new UsNe (section ));
419+ break ;
420+ case UsNh .ID :
421+ sections .put (UsNh .NAME , new UsNh (section ));
422+ break ;
423+ case UsNj .ID :
424+ sections .put (UsNj .NAME , new UsNj (section ));
425+ break ;
426+ case UsTn .ID :
427+ sections .put (UsTn .NAME , new UsTn (section ));
428+ break ;
399429 }
400430 }
401431 }
@@ -428,7 +458,6 @@ public String encodeSection(String sectionName) {
428458 this .dirty = false ;
429459 this .decoded = true ;
430460 }
431-
432461 EncodableSection section = this .sections .get (sectionName );
433462 if (section != null ) {
434463 return section .encode ();
@@ -449,7 +478,6 @@ public void decodeSection(String sectionName, String encodedString) {
449478 }
450479
451480 EncodableSection section = getOrCreateSection (sectionName );
452-
453481 if (section != null ) {
454482 section .decode (encodedString );
455483 this .dirty = true ;
0 commit comments