Re: [Geotools-devel] ComplexAttribute with simpleContent in GeoAPI 2.2

2008-10-21 Thread Jody Garnett
Hi Garbiel; I am going to be mostly out of touch over the next couple of weeks can you field this one. If this is indeed a case we do not handle well then we will need to go through the usual process; make a change proposal etc... I do understand the central conflict; a "simple type" and a compl

Re: [Geotools-devel] ComplexAttribute with simpleContent in GeoAPI 2.2

2008-10-20 Thread Ben Caradoc-Davies
Jody, it has been brought to my attention that, for compliance with even level zero of the simple features profile, we need to support xs:complexType/xs:simpleContent types such as gml:MeasureType and gml:CodeType [See 8.4.4.1, p14, "Geography Markup Language (GML) simple features profile" (OG

Re: [Geotools-devel] ComplexAttribute with simpleContent in GeoAPI 2.2

2008-10-20 Thread Ben Caradoc-Davies
Jody, ComplexAttribute subclasses Attribute by restricting its getValue to a Collection. Another approach would be for ComplexAttribute to subclass Attribute by extending it with accessors for a Collection, while preserving the getValue inherited from Property. That is, at the moment, a Compl

Re: [Geotools-devel] ComplexAttribute with simpleContent in GeoAPI 2.2

2008-10-18 Thread Gabriel Roldán
humm may the answer be that AttributeType needs a getAssociations():Collection so we can model the xml attributes of an xs:complexType with xs:simpleContent as associations? This also made me question the hineritance relationship between ComplexType and AttributeType for a while, in xml they're

Re: [Geotools-devel] ComplexAttribute with simpleContent in GeoAPI 2.2

2008-10-18 Thread Gabriel Roldán
Jody we had this discussion a couple times now and you keep telling we can model an xs:complexType with xs:simpleContent as a ComplexAttribute but I keep not seeing it that easy. Basically, in xml any type with simple content that allows xml attributes is a xs:complexType with xs:simpleContent.

Re: [Geotools-devel] ComplexAttribute with simpleContent in GeoAPI 2.2

2008-10-17 Thread Jody Garnett
Ben Caradoc-Davies wrote: > Jody and Justin, > > I am having trouble understanding the use of GeoAPI 2.2 > ComplexAttribute, particularly for complex types with simple content. > As I noted earlier, GML3 on trunk binds every ComplexAttribute, > including CodeType, to Collection. I now suspect th

[Geotools-devel] ComplexAttribute with simpleContent in GeoAPI 2.2

2008-10-17 Thread Ben Caradoc-Davies
Jody and Justin, I am having trouble understanding the use of GeoAPI 2.2 ComplexAttribute, particularly for complex types with simple content. As I noted earlier, GML3 on trunk binds every ComplexAttribute, including CodeType, to Collection. I now suspect that my problems are in GeoAPI 2.2 (or