Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Setters should use any min/max values from the WADL/XSD  #75

Description

@glassfishrobot

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions