Hi,
No, there's no way to do it with annotation in java code, jaxb can't
support it.
Take a look at related discussions here[1]
[1]http://cxf.547215.n5.nabble.com/JAXB-Any-way-to-incorporate-restrictions-into-annotations-td3405878.html#a3406031
Freeman
On 2011-5-27, at 下午4:39, marcin.kasin...@gmail.com wrote:
Hello.
Can you tell me what kind of annotation I can use in my JAVA to
generate xsd
restrictions in wsdl ?
I need to generate code bellow.
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="120"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="carType">
<xs:restriction base="xs:string">
<xs:enumeration value="Audi"/>
<xs:enumeration value="Golf"/>
<xs:enumeration value="BMW"/>
</xs:restriction>
</xs:simpleType>
Thanks
Marcion
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-and-xsd-restrictions-tp4431241p4431241.html
Sent from the cxf-dev mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference