|
Hi everybody, After generating classes from schema, at setter methods for attributes of type "positiveinteger" the generated code looks like the snapshot below, whithout having the cast operator (): Did I made something wrong, or is a known issue? Thank you very much, Doru the schema sequence: <xsd:simpleType name="YearType"> <xsd:restriction base="xsd:positiveInteger"> <xsd:totalDigits value="4"/> </xsd:restriction> </xsd:simpleType> public void setYear(java.math.BigInteger pYear) { if (pYear.signum() == -1) { if (pYear.toString().length() - 1 > 4) { throw new java.lang.IllegalArgumentException("Length of 4 digits exceeded: " + java.math.BigInteger pYear); } } else { if (pYear.toString().length() > 4) { throw new java.lang.IllegalArgumentException("Length of 4 digits exceeded: " + java.math.BigInteger pYear); } } Jahr = pYear; } |
- Re: Problems at generating java sources Doru Sular
- Re: Problems at generating java sources Jochen Wiedmann
