Hello Keith!
Thx for leting me know.. I must admit I haven't searched bugzilla. I did find this: http://bugzilla.exolab.org/show_bug.cgi?id=1699 the one you was thinking about ? Cheers, Are T. Tysnes -----Original Message----- From: Keith Visco [mailto:[EMAIL PROTECTED] Sent: 17. september 2004 22:30 To: '[EMAIL PROTECTED]' Subject: Re: [castor-user] [Serializing][AXIS] Range-Validating Enums Hi, It does look like a bug in the SourceGenerator! Actually, I think there is a bug open on this issue already. --Keith Tysnes Are Thobias wrote: > > New info: > > It looks like Enumerations is Range-Validated if restriction base is > string > > <xsd:restriction base="xsd:string"> > > In the Descriptor file I do find: > > desc = new > org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.test.webservices > .commo > n.enum.types.XXXEnum.class, "_somename", "somename", > org.exolab.castor.xml.NodeType.Element); > desc.setHandler( new > org.exolab.castor.xml.handlers.EnumFieldHandler(com.test.webservices.common. > enum.types.XXXEnum.class, handler)); > > if restriction base is int: > > <xsd:restriction base="xsd:int"> > > I do find this in the Descriptor file: > > desc = new > org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TY > PE, > "_someothername", "someothername", org.exolab.castor.xml.NodeType.Element); > desc.setHandler(handler); > //-- validation code for: _someothername > fieldValidator = new org.exolab.castor.xml.FieldValidator(); > { //-- local scope > IntegerValidator typeValidator= new IntegerValidator(); > typeValidator.setMinInclusive(-2147483648); > typeValidator.setMaxInclusive(2147483647); > fieldValidator.setValidator(typeValidator); > } > > Is this a bug in the SourceGenerator !? Or am I doing something wrong > !? > > Cheers, > Are T. Tysnes > > -----Original Message----- > From: Tysnes Are Thobias > Sent: 16. september 2004 09:27 > To: '[EMAIL PROTECTED]' > Subject: Re: [castor-user] [Serializing][AXIS] Range-Validating Enums > > Hello! > > Sorry to re-post.. but no one has experience in Enum validating with > Castor (and preferable Axis :-) !? > > Cheers, > Are T. Tysnes > > -----Original Message----- > From: Tysnes Are Thobias > Sent: 14. september 2004 21:37 > To: '[EMAIL PROTECTED]' > Subject: [castor-user] [Serializing][AXIS] Range-Validating Enums > > > Hello! > > I'm using Castor to (De)Serialize my WebServices running in an Axis > 1.2beta2 environment. I do have some trouble range-validate my Enums. > Should I expect Castor to throw an Exception when the Enum is out of > range !? > > Cheers, > Are T. Tysnes > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-user > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-user > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-user ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user
