Class | XSD::XSDInteger |
In: |
lib/xsd/datatypes.rb
|
Parent: | XSDDecimal |
Type | = | QName.new(Namespace, IntegerLiteral) |
PositiveMinInclusive | = | 1 |
# File lib/xsd/datatypes.rb, line 1006 1006: def initialize(value = nil) 1007: init(Type, value) 1008: end
# File lib/xsd/datatypes.rb, line 1047 1047: def positive(v) 1048: PositiveMinInclusive <= v 1049: end
# File lib/xsd/datatypes.rb, line 1012 1012: def screen_data_str(str) 1013: begin 1014: data = Integer(str) 1015: rescue ArgumentError 1016: raise ValueSpaceError.new("#{ type }: cannot accept '#{ str }'.") 1017: end 1018: unless validate(data) 1019: raise ValueSpaceError.new("#{ type }: cannot accept '#{ str }'.") 1020: end 1021: data 1022: end