Troubles with xmlcodegen on wcs 1.1.1 schemas
---------------------------------------------

                 Key: GEOT-1634
                 URL: http://jira.codehaus.org/browse/GEOT-1634
             Project: GeoTools
          Issue Type: Bug
          Components: core xml
    Affects Versions: 2.5-M0
            Reporter: Andrea Aime
            Assignee: Justin Deoliveira
             Fix For: 2.5-M1


Trying to generate the wcs 1.1.1 bindings was quite troublesome due to some 
bugs in the xml code generator. 
The attached patch allowed me to generate the bindings, yet the bindings are 
generated and registered multiple times, e.g., the configuration class has 
binding registration looking like:

{code}
        
container.registerComponentImplementation(WCS.FieldType,FieldTypeBinding.class);
        
container.registerComponentImplementation(WCS.GridCrsType,GridCrsTypeBinding.class);
        
container.registerComponentImplementation(WCS.GridCrsType,GridCrsTypeBinding.class);
        
container.registerComponentImplementation(WCS.IdentifierType,IdentifierTypeBinding.class);
        
container.registerComponentImplementation(WCS.IdentifierType,IdentifierTypeBinding.class);
        
container.registerComponentImplementation(WCS.IdentifierType,IdentifierTypeBinding.class);
        
container.registerComponentImplementation(WCS.ImageCRSRefType,ImageCRSRefTypeBinding.class);
        
container.registerComponentImplementation(WCS.InterpolationMethodBaseType,InterpolationMethodBaseTypeBinding.class);
        
container.registerComponentImplementation(WCS.InterpolationMethodType,InterpolationMethodTypeBinding.class);
        
container.registerComponentImplementation(WCS.OutputType,OutputTypeBinding.class);
        
container.registerComponentImplementation(WCS.RangeSubsetType,RangeSubsetTypeBinding.class);
        
container.registerComponentImplementation(WCS.RangeType,RangeTypeBinding.class);
        
container.registerComponentImplementation(WCS.RequestBaseType,RequestBaseTypeBinding.class);
        
container.registerComponentImplementation(WCS.RequestBaseType,RequestBaseTypeBinding.class);
        
container.registerComponentImplementation(WCS.RequestBaseType,RequestBaseTypeBinding.class);
{code}

I can of course fix it by hand, so it's not a blocker in itself, just an 
annoyance. The real issue is related to the patch I'm attaching, thought it's 
just something I tried to figure out by myself time ago and I don't really 
remember what the problem was (besides the fact the bindings were not 
generated...)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to