what a GREAT question!
in an xsd you know put in this custom definition..

  <xs:simpleType name="JonHorsman" id="JonHorsman">
    <xs:annotation>
      <xs:appinfo>
        <hfp:hasProperty name="bounded" value="true"/>
        <hfp:hasProperty name="cardinality" value="finite"/>
      </xs:appinfo>
      <xs:documentation
        source="http://www.w3.org/TR/xmlschema-2/#long"/>
    </xs:annotation>
    <xs:restriction base="xs:integer">
      <xs:minInclusive value="-9223372036854775808" id="long.minInclusive"/>
      <xs:maxInclusive value="9223372036854775807" id="long.maxInclusive"/>
    </xs:restriction>
  </xs:simpleType>


----- Original Message -----
From: "Jon Horsman" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, October 25, 2007 4:33 PM
Subject: Min/Max Inclusive


> Hey,
>
> I have some POJO classes that I use java2wsdl to generate a wsdl file
> for me.  I'm curious if there is any syntax that can be used in those
> java classes that will automatically add min/max inclusive to the
> generated WSDL?
>
> Lets say i have a simple class like
>
> public class TestClass
> {
>   private int testInt;
>   public void setTestInt(int i)
>   {
>     testInt = i;
>   }
>   public int getTestInt()
>   {
>     return 0;
>   }
> }
>
> Say that i want the WSDL to insure that setTestInt only accepts values
> between 0 and 10, is there a way to make a change in TestClass so that
> min/max Inclusive gets put into the WSDL or do you have to manually
> tweak the generated WSDL and add some like the following?
>
> <xs:minInclusive value="0" />
> <xs:maxInclusive value="10" />
>
> Thanks,
>
> Jon.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to