cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11861] New: - Patch to extend castortransformer to handle collections
Date Tue, 20 Aug 2002 14:36:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11861>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11861

Patch to extend castortransformer to handle collections

           Summary: Patch to extend castortransformer to handle collections
           Product: Cocoon 2
           Version: 2.0.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: m.homeijer@devote.nl


I used (cygwin)diff -u OldFile NewFile to create the diff (I have no CVS access 
here). Hope it works.

The current castortransformer is not able to handle collections.
The following lines of code adds Collection handling to the
CastorTransformer:

	if (Collection.class.isAssignableFrom(bean.getClass())) {
		Iterator i = ((Collection)bean).iterator();
		while (i.hasNext()) {
		      marshaller.marshal(i.next());
		}
	} else {
	      marshaller.marshal(bean); // THIS line is currently only
implemented.
	}

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message