class XSD::XSDString
Primitive datatypes.
Constants
- Type
Public Class Methods
new(value = nil)
click to toggle source
# File lib/xsd/datatypes.rb, line 191 def initialize(value = nil) init(Type, value) end
strict_ces_validation()
click to toggle source
# File lib/xsd/datatypes.rb, line 201 def self.strict_ces_validation @@strict_ces_validation end
strict_ces_validation=(strict_ces_validation)
click to toggle source
# File lib/xsd/datatypes.rb, line 197 def self.strict_ces_validation=(strict_ces_validation) @@strict_ces_validation = strict_ces_validation end
Private Instance Methods
screen_data(value)
click to toggle source
# File lib/xsd/datatypes.rb, line 207 def screen_data(value) if ::XSD::XSDString.strict_ces_validation externalces = XSD::Charset.encoding unless XSD::Charset.is_ces(value, externalces) raise ValueSpaceError.new("#{ type }: cannot accept '#{ value }'.") end end value end