Class: SOAP::Mapping::SchemaDefinition
- Defined in:
- lib/soap/mapping/schemadefinition.rb
Constant Summary collapse
- EMPTY =
SchemaEmptyDefinition.new
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#basetype ⇒ Object
Returns the value of attribute basetype.
-
#class_for ⇒ Object
readonly
Returns the value of attribute class_for.
-
#elements ⇒ Object
Returns the value of attribute elements.
-
#elename ⇒ Object
readonly
Returns the value of attribute elename.
-
#qualified ⇒ Object
readonly
Returns the value of attribute qualified.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #choice? ⇒ Boolean
-
#initialize(class_for, elename, type, anonymous, qualified) ⇒ SchemaDefinition
constructor
A new instance of SchemaDefinition.
- #is_anonymous? ⇒ Boolean
Constructor Details
#initialize(class_for, elename, type, anonymous, qualified) ⇒ SchemaDefinition
Returns a new instance of SchemaDefinition.
148 149 150 151 152 153 154 155 156 157 |
# File 'lib/soap/mapping/schemadefinition.rb', line 148 def initialize(class_for, elename, type, anonymous, qualified) @class_for = class_for @elename = elename @type = type @anonymous = anonymous @qualified = qualified @basetype = nil @elements = EMPTY @attributes = nil end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
145 146 147 |
# File 'lib/soap/mapping/schemadefinition.rb', line 145 def attributes @attributes end |
#basetype ⇒ Object
Returns the value of attribute basetype.
144 145 146 |
# File 'lib/soap/mapping/schemadefinition.rb', line 144 def basetype @basetype end |
#class_for ⇒ Object (readonly)
Returns the value of attribute class_for.
141 142 143 |
# File 'lib/soap/mapping/schemadefinition.rb', line 141 def class_for @class_for end |
#elements ⇒ Object
Returns the value of attribute elements.
146 147 148 |
# File 'lib/soap/mapping/schemadefinition.rb', line 146 def elements @elements end |
#elename ⇒ Object (readonly)
Returns the value of attribute elename.
142 143 144 |
# File 'lib/soap/mapping/schemadefinition.rb', line 142 def elename @elename end |
#qualified ⇒ Object (readonly)
Returns the value of attribute qualified.
143 144 145 |
# File 'lib/soap/mapping/schemadefinition.rb', line 143 def qualified @qualified end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
142 143 144 |
# File 'lib/soap/mapping/schemadefinition.rb', line 142 def type @type end |
Instance Method Details
#choice? ⇒ Boolean
163 164 165 |
# File 'lib/soap/mapping/schemadefinition.rb', line 163 def choice? @elements.choice? end |
#is_anonymous? ⇒ Boolean
159 160 161 |
# File 'lib/soap/mapping/schemadefinition.rb', line 159 def is_anonymous? @anonymous end |