Class: XSD::XSDAnySimpleType
- Includes:
- XSD
- Defined in:
- lib/action_web_service/xsd/datatypes.rb
Overview
The base class of XSD datatypes.
Direct Known Subclasses
SOAP::RPC::SOAPVoid, SOAP::SOAPAnySimpleType, XSDAnyURI, XSDBase64Binary, XSDBoolean, XSDDate, XSDDateTime, XSDDecimal, XSDDouble, XSDDuration, XSDFloat, XSDGDay, XSDGMonth, XSDGMonthDay, XSDGYear, XSDGYearMonth, XSDHexBinary, XSDNil, XSDQName, XSDString, XSDTime
Constant Summary collapse
- Type =
QName.new(Namespace, AnySimpleTypeLiteral)
Constants included from XSD
AnySimpleTypeLiteral, AnySimpleTypeName, AnyTypeLiteral, AnyTypeName, AnyURILiteral, AttrNilName, AttrType, AttrTypeName, Base64BinaryLiteral, BooleanLiteral, ByteLiteral, DateLiteral, DateTimeLiteral, DecimalLiteral, DoubleLiteral, DurationLiteral, FloatLiteral, GDayLiteral, GMonthDayLiteral, GMonthLiteral, GYearLiteral, GYearMonthLiteral, HexBinaryLiteral, InstanceNamespace, IntLiteral, IntegerLiteral, LongLiteral, Namespace, NegativeIntegerLiteral, NilLiteral, NilValue, NonNegativeIntegerLiteral, NonPositiveIntegerLiteral, NormalizedStringLiteral, PositiveIntegerLiteral, QNameLiteral, ShortLiteral, StringLiteral, TimeLiteral, UnsignedByteLiteral, UnsignedIntLiteral, UnsignedLongLiteral, UnsignedShortLiteral
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#is_nil ⇒ Object
Returns the value of attribute is_nil.
Attributes inherited from NSDBase
Instance Method Summary collapse
-
#check_lexical_format(value) ⇒ Object
true or raise.
-
#initialize(value = nil) ⇒ XSDAnySimpleType
constructor
A new instance of XSDAnySimpleType.
-
#set(value) ⇒ Object
set accepts a string which follows lexical space (ex. String: “+123”), or an object which follows canonical space (ex. Integer: 123).
-
#to_s ⇒ Object
to_s creates a string which follows lexical space (ex. String: “123”).
Methods inherited from NSDBase
Constructor Details
#initialize(value = nil) ⇒ XSDAnySimpleType
Returns a new instance of XSDAnySimpleType.
121 122 123 |
# File 'lib/action_web_service/xsd/datatypes.rb', line 121 def initialize(value = nil) init(Type, value) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
117 118 119 |
# File 'lib/action_web_service/xsd/datatypes.rb', line 117 def data @data end |
#is_nil ⇒ Object
Returns the value of attribute is_nil.
119 120 121 |
# File 'lib/action_web_service/xsd/datatypes.rb', line 119 def is_nil @is_nil end |
Instance Method Details
#check_lexical_format(value) ⇒ Object
true or raise
126 127 128 129 |
# File 'lib/action_web_service/xsd/datatypes.rb', line 126 def check_lexical_format(value) screen_data(value) true end |
#set(value) ⇒ Object
set accepts a string which follows lexical space (ex. String: “+123”), or an object which follows canonical space (ex. Integer: 123).
133 134 135 136 137 138 139 140 141 142 |
# File 'lib/action_web_service/xsd/datatypes.rb', line 133 def set(value) if value.nil? @is_nil = true @data = nil _set(nil) else @is_nil = false _set(screen_data(value)) end end |
#to_s ⇒ Object
to_s creates a string which follows lexical space (ex. String: “123”).
145 146 147 148 149 150 151 |
# File 'lib/action_web_service/xsd/datatypes.rb', line 145 def to_s() if @is_nil "" else _to_s end end |