Forums Register Login

How to transform Restriction elements in the schema when we do wsimport for the artifects

+Pie Number of slices to send: Send
Dear All ,
I have an existing schema which has an elments like :<xsd:element name="AcctNo" type="AcctNoT" />, 'The Name attribute information 'AcctNoT' in this case it is defined in Commons.xsd (another schema).This has got an rectrictions child elements like shown below.

<xsd:simpleType name="AcctNoT">
<xsd:restriction base="char14"/>

</xsd:simpleType>

My question is when we do a wsimport and when the Java artifacts get generateds.Can we also get the restriction related value in Java file.'Char14' in this case.


Thnks in Advance

Java_80
+Pie Number of slices to send: Send
Hi!
Sorry, I have never seen JAXB generate code that implements restrictions, like the one in your question.
You could probably use BeanValidation annotations (JSR-303), but you would have to add them by hand.
Best wishes!
Nothing up my sleeve ... and ... presto! A tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 823 times.
Similar Threads
parsing an empty tag
wsimport problem from wsdl created from axis
POJO not generating for the xsd which contains enumeration list with jaxb tool. Its urgent please
General XML problem with namespaces
optional attributes with defaults vs. length-restriction->cvc-length-valid: Value '' with length =
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:55:44.