Last change
on this file since 99 was 96, checked in by Bart Vastenhouw, 2 years ago |
Fixed small issues in domaineditor.
|
File size:
445 bytes
|
Rev | Line | |
---|
[96] | 1 | from _decimal import Decimal
|
---|
| 2 | from pyson.JsonValue import JsonValue
|
---|
| 3 | from geniusweb.issuevalue.Value import Value
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | class NumberValue (Value):
|
---|
| 7 | '''
|
---|
| 8 | A value containing a number, that should be in some {@link NumberValueSet}.
|
---|
| 9 | immutable
|
---|
| 10 | '''
|
---|
| 11 |
|
---|
| 12 | def __init__(self, value:Decimal):
|
---|
| 13 | if not isinstance(value, Decimal):
|
---|
| 14 | raise ValueError("NumberValue must be Decimal, but got "+str(value)+ " of type "+str(type(value)))
|
---|
| 15 | super().__init__( value )
|
---|
| 16 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.