The base class of XSD datatypes.
true or raise
# File lib/xsd/datatypes.rb, line 127 127: def check_lexical_format(value) 128: screen_data(value) 129: true 130: end
set accepts a string which follows lexical space (ex. String: “+123”), or an object which follows canonical space (ex. Integer: 123).
# File lib/xsd/datatypes.rb, line 134 134: def set(value) 135: if value.nil? 136: @is_nil = true 137: @data = nil 138: _set(nil) 139: else 140: @is_nil = false 141: _set(screen_data(value)) 142: end 143: end
to_s creates a string which follows lexical space (ex. String: “123”).
# File lib/xsd/datatypes.rb, line 146 146: def to_s() 147: if @is_nil 148: "" 149: else 150: _to_s 151: end 152: end
# File lib/xsd/datatypes.rb, line 166 166: def _set(value) 167: @data = value 168: end
# File lib/xsd/datatypes.rb, line 170 170: def _to_s 171: @data.to_s 172: end
# File lib/xsd/datatypes.rb, line 156 156: def init(type, value) 157: super(type) 158: set(value) 159: end
raises ValueSpaceError if check failed
# File lib/xsd/datatypes.rb, line 162 162: def screen_data(value) 163: value 164: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.