Ben Caradoc-Davies wrote:
> Justin,
> 
> I am running into severe problems writing generic support for encoding 
> of application schema WFS responses. I must have support for XML 
> attributes and for new complex types defined in schemas. ComplexBinding 
> has getProperty and getProperties methods:
> 
> (1) getProperty returns a single property by name
> 
> (2) getProperties returns all the properties, determined from the 
> children of the XSD element declaration
> 
> I need both because I need to support XML attributes (stored as GeoAPI 
> Attributes) and these are accessed with (1) via AttributeEncodeExecutor, 
> but, for application schemas, encoding is driven by XSD declarations 
> using (2) via ElementEncodeExecutor, which also uses (1).
> 
> It looks like these *must* return disjoint sets of properties, or I get 
> duplicate encoding of elements. Is this expected?
Yes. We could perhaps make the encoder skip entries that already been 
returned... but then you get into problems with order.
> 
> Orchestrating these methods is hard because getProperty goes not have 
> access to the XSDElementDeclaration. It cannot set an XSDParticle for 
> returned objects, yet how can it know which properties to leave for 
> getProperties without knowing the XSDElementDeclaration?
I am having a bit of a hard time understanding... an example might help. 
  That said, it may just be a hole in the api (i admit, without 
understanding the problem i can't comment). If it is, it should be 
possible to pass the XSDElementDeclaration down into getProperty(), 
perhaps deprecating the old method. Would that fix your problem?
> 
> Kind regards,
> 


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to