Ignore:
Timestamp:
08/29/12 15:19:28 (12 years ago)
Author:
olhsha
Message:

#50 fix is refactored and the test is refined (the result is written in the file). Next: try the fix on the specs generated via TomCat?.
#181 how to send the generated channel to the RssReader?? where to get "practical abstract description files", largeProfile is not marshallable to abstract/profile/component!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/CMDComponentTypeWrapper.java

    r2153 r2174  
    3434        if (component != null) {component.setFilename(null);}
    3535       
    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);
    3945                }
     46   
     47    }
     48   
     49    private void setFileNamesToNullCurrent(CMDComponentType currentcomponent){
     50     
     51      currentcomponent.setFilename(null);
     52      setFileNamesFromListToNull(currentcomponent.getCMDComponent());
    4053   
    4154    }
Note: See TracChangeset for help on using the changeset viewer.