Changeset 2174
- Timestamp:
- 08/29/12 15:19:28 (12 years ago)
- Location:
- ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/CMDComponentTypeWrapper.java
r2153 r2174 34 34 if (component != null) {component.setFilename(null);} 35 35 36 for (CMDComponentType currentcomponent : listofcomponents) { 37 CMDComponentTypeWrapper currentwrapper = new CMDComponentTypeWrapper(currentcomponent); 38 currentwrapper.setFileNamesToNull(); 36 setFileNamesFromListToNull(listofcomponents); 37 38 } 39 40 41 private void setFileNamesFromListToNull(List<CMDComponentType> listofcomponents){ 42 43 for (CMDComponentType currentcomponent : listofcomponents) { 44 setFileNamesToNullCurrent(currentcomponent); 39 45 } 46 47 } 48 49 private void setFileNamesToNullCurrent(CMDComponentType currentcomponent){ 50 51 currentcomponent.setFilename(null); 52 setFileNamesFromListToNull(currentcomponent.getCMDComponent()); 40 53 41 54 } -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/CMDComponentTypeWrapperTest.java
r2173 r2174 256 256 writeSpecToFile(compspec, "src/test/resources/xml/largeProfileDummyFilenames.xml"); 257 257 258 259 260 258 } 261 259 … … 280 278 281 279 checkNullnessOfFilenamesInListOfComponents(newcompspec.getCMDComponent()); 282 } 283 284 285 286 } 287 288 289 290 291 280 writeSpecToFile(newcompspec, "src/test/resources/xml/largeProfileUndummied.xml"); 281 282 283 } 284 285 286 287 } 288 289 290 291 292 -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/test/resources/xml/Component1.xml
r2173 r2174 1 1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2 2 <componentDescription xmlns:ns2="http://www.w3.org/1999/xlink"> 3 <id>clarin.eu:cr1:c_134625 1472675</id>3 <id>clarin.eu:cr1:c_1346252981279</id> 4 4 <description>description1dum</description> 5 5 <name>name1dum</name> 6 <registrationDate>2012-08-29T1 4:44:32+00:00</registrationDate>6 <registrationDate>2012-08-29T15:12:50+00:00</registrationDate> 7 7 <creatorName>God</creatorName> 8 8 <userId>uid1dum</userId> -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/test/resources/xml/Component2.xml
r2173 r2174 1 1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2 2 <componentDescription xmlns:ns2="http://www.w3.org/1999/xlink"> 3 <id>clarin.eu:cr1:c_134625 1472676</id>3 <id>clarin.eu:cr1:c_1346252981280</id> 4 4 <description>description2dum</description> 5 5 <name>name2dum</name> 6 <registrationDate>2012-08-29T1 4:44:32+00:00</registrationDate>6 <registrationDate>2012-08-29T15:12:50+00:00</registrationDate> 7 7 <creatorName>Allah</creatorName> 8 8 <userId>uid2dum</userId> -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/test/resources/xml/rssTest.xml
r2173 r2174 1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>1 ,<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2 2 <rss> 3 3 <channel> … … 7 7 <link>href1dum</link> 8 8 <author>God</author> 9 <pubDate>2012-08-29T1 4:44:09+00:00</pubDate>9 <pubDate>2012-08-29T15:05:08+00:00</pubDate> 10 10 </item> 11 11 <item> … … 14 14 <link>href2dum</link> 15 15 <author>Allah</author> 16 <pubDate>2012-08-29T1 4:44:10+00:00</pubDate>16 <pubDate>2012-08-29T15:05:08+00:00</pubDate> 17 17 </item> 18 18 </channel>
Note: See TracChangeset
for help on using the changeset viewer.