You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An XSD type like this:
<xs:simpleType name="CTSMW">
<xs:restriction base="xs:integer">
<xs:minInclusive value="-9999"/>
<xs:maxInclusive value="9999"/>
</xs:restriction>
</xs:simpleType>
Should generate a Setter that doe something like:
public void setCtsMW(int value) {
if (value <= 9999 && value >= -9999)
{ this.ctsMW = value; }
else
{ throw new Exception("Value out of range"); }
}
Environment
Wihdows 7
java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
An XSD type like this:
<xs:simpleType name="CTSMW">
<xs:restriction base="xs:integer">
<xs:minInclusive value="-9999"/>
<xs:maxInclusive value="9999"/>
</xs:restriction>
</xs:simpleType>
Should generate a Setter that doe something like:
public void setCtsMW(int value) {
if (value <= 9999 && value >= -9999)
{ this.ctsMW = value; }
else
{ throw new Exception("Value out of range"); }
}
Environment
Wihdows 7
java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
Affected Versions
[1.1.3]