cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Ma" <jim...@iona.com>
Subject RE: locator.query.FilterType.setField() parameter type looks wrong
Date Mon, 06 Nov 2006 03:50:50 GMT
Hi Mike ,

I think this is correct .  Conform to  JAXB2.0 specification(Proposed Final
Draft September 30, 2005) section 6.2 ,  simple type will be mapped to java
built in type , Object or List .

This case  is similar to the example on  JAXB2.0 sepc page 89 :

The following schema fragment:
<xs:complexType name="CTType">
<xs:attribute name="state" type="ZipOrName"/>
</xs:complexType>
<xs:simpleTypename="ZipOrName" memberTypes="xs:integer xs:string"/>

is bound to the following Java representation.

public class CTType {
String getState() {...}
void setState(String value) {...}
}


Regards

Jim

> -----Original Message-----
> From: Ramnarine, Michael [mailto:Michael.Ramnarine@iona.com]
> Sent: Monday, November 06, 2006 9:54 AM
> To: cxf-dev@incubator.apache.org
> Subject: locator.query.FilterType.setField() parameter type looks wrong
>
>
> Looking at:
>
>
> testutils/target/generated/src/main/java/com/iona/ws/_2005/_11/locator/q
> uery/FilterType.java
>
> Which is generated from:
>
>    testutils/src/main/resources/wsdl/locator.wsdl
>
>
>
> The following method signature doesn't look right:
>
>     public void setField(String value) {
>
>
>
> Shouldn't it be:
>
>     public void setField(FilterFieldType value) {
>
>
>
> Here's the relevant wsdl:
>
>             <xs:complexType name="FilterType">
>
>                 <xs:simpleContent>
>
>                     <xs:extension base="xs:string">
>
>                         <xs:attribute name="field"
> type="tns:FilterFieldType"
>
>                             use="required"/>
>
>                     </xs:extension>
>
>                 </xs:simpleContent>
>
>             </xs:complexType>
>
>
>
> -Mike
>
>
>
>


Mime
View raw message