File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
main/java/org/metafacture/io
test/java/org/metafacture/io Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ public void setQuery(final String query) {
118118 *
119119 * @param totalrecords total number of records to be retrieved
120120 */
121- public void setTotal (final String totalrecords ) {
122- this .totalRecords = Integer . parseInt ( totalrecords ) ;
121+ public void setTotal (final int totalrecords ) {
122+ this .totalRecords = totalrecords ;
123123 }
124124
125125 /**
@@ -128,17 +128,17 @@ public void setTotal(final String totalrecords) {
128128 *
129129 * @param maximumRecords maximum of records returned in one lookup
130130 */
131- public void setMaximumRecords (final String maximumRecords ) {
132- this .maximumRecords = Integer . parseInt ( maximumRecords ) ;
131+ public void setMaximumRecords (final int maximumRecords ) {
132+ this .maximumRecords = maximumRecords ;
133133 }
134134
135135 /**
136136 * Sets where to start when retrieving records. <strong>Default value: {@value START_RECORD}</strong>.
137137 *
138138 * @param startRecord where to start when retrieving records
139139 */
140- public void setStartRecord (final String startRecord ) {
141- this .startRecord = Integer . parseInt ( startRecord ) ;
140+ public void setStartRecord (final int startRecord ) {
141+ this .startRecord = startRecord ;
142142 }
143143
144144 /**
Original file line number Diff line number Diff line change @@ -86,9 +86,9 @@ public void test_(){
8686 sruOpener .setQuery ("WVN%3D24A05" );
8787 sruOpener .setRecordSchema ("MARC21plus-xml" );
8888 sruOpener .setVersion ("1.1" );
89- sruOpener .setStartRecord (" 1890" );
90- sruOpener .setMaximumRecords ("1" );
91- sruOpener .setTotal ("3" );
89+ sruOpener .setStartRecord (1890 );
90+ sruOpener .setMaximumRecords (1 );
91+ sruOpener .setTotal (3 );
9292 sruOpener .process ("https://services.dnb.de/sru/dnb" );
9393 System .out .println (resultCollector .toString ());
9494 }
@@ -187,9 +187,9 @@ public void process(final XmlReceiver obj) {
187187 // sruOpener.setQuery("WVN%3D24A05");
188188 sruOpener .setRecordSchema ("MARC21plus-xml" );
189189 sruOpener .setVersion ("1.1" );
190- sruOpener .setStartRecord (" 3029" );
191- sruOpener .setMaximumRecords ("1" );
192- sruOpener .setTotal ("1" );
190+ sruOpener .setStartRecord (3029 );
191+ sruOpener .setMaximumRecords (1 );
192+ sruOpener .setTotal (1 );
193193 // sruOpener.process("https://services.dnb.de/sru/dnb");
194194 sruOpener .process ("https://services.dnb.de/sru/zdb" );
195195 // sruOpener.process("https://amsquery.stadt-zuerich.ch/sru/");
You can’t perform that action at this time.
0 commit comments