Class: WsdlMapper::Dom::ComplexType
- Inherits:
-
TypeBase
- Object
- TypeBase
- WsdlMapper::Dom::ComplexType
- Defined in:
- lib/wsdl_mapper/dom/complex_type.rb
Instance Attribute Summary (collapse)
-
- (Object) attributes
readonly
Returns the value of attribute attributes.
-
- (Object) base
Returns the value of attribute base.
-
- (Object) base_type_name
Returns the value of attribute base_type_name.
-
- (Object) containing_element
Returns the value of attribute containing_element.
-
- (Object) containing_property
Returns the value of attribute containing_property.
-
- (Object) properties
readonly
Returns the value of attribute properties.
-
- (Object) simple_content
Returns the value of attribute simple_content.
-
- (Object) soap_array
Returns the value of attribute soap_array.
-
- (Object) soap_array_type
Returns the value of attribute soap_array_type.
-
- (Object) soap_array_type_name
Returns the value of attribute soap_array_type_name.
Attributes inherited from TypeBase
Instance Method Summary (collapse)
- - (Object) add_attribute(attribute)
- - (Object) add_property(property)
- - (Object) bases
- - (Object) each_attribute(&block)
- - (Object) each_property(&block)
- - (Object) each_property_with_bases(&block)
-
- (ComplexType) initialize(name)
constructor
A new instance of ComplexType.
- - (Object) root
- - (Boolean) simple_content?
- - (Boolean) soap_array?
Methods inherited from TypeBase
Constructor Details
- (ComplexType) initialize(name)
Returns a new instance of ComplexType
10 11 12 13 14 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 10 def initialize(name) super @properties = {} @attributes = {} end |
Instance Attribute Details
- (Object) attributes (readonly)
Returns the value of attribute attributes
6 7 8 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 6 def attributes @attributes end |
- (Object) base
Returns the value of attribute base
7 8 9 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 7 def base @base end |
- (Object) base_type_name
Returns the value of attribute base_type_name
7 8 9 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 7 def base_type_name @base_type_name end |
- (Object) containing_element
Returns the value of attribute containing_element
7 8 9 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 7 def containing_element @containing_element end |
- (Object) containing_property
Returns the value of attribute containing_property
7 8 9 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 7 def containing_property @containing_property end |
- (Object) properties (readonly)
Returns the value of attribute properties
6 7 8 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 6 def properties @properties end |
- (Object) simple_content
Returns the value of attribute simple_content
7 8 9 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 7 def simple_content @simple_content end |
- (Object) soap_array
Returns the value of attribute soap_array
7 8 9 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 7 def soap_array @soap_array end |
- (Object) soap_array_type
Returns the value of attribute soap_array_type
7 8 9 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 7 def soap_array_type @soap_array_type end |
- (Object) soap_array_type_name
Returns the value of attribute soap_array_type_name
7 8 9 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 7 def soap_array_type_name @soap_array_type_name end |
Instance Method Details
- (Object) add_attribute(attribute)
16 17 18 19 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 16 def add_attribute(attribute) attribute.containing_type = self @attributes[attribute.name] = attribute end |
- (Object) add_property(property)
21 22 23 24 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 21 def add_property(property) property.containing_type = self @properties[property.name] = property end |
- (Object) bases
52 53 54 55 56 57 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 52 def bases # TODO: test return [] unless @base [*@base.bases, @base] end |
- (Object) each_attribute(&block)
36 37 38 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 36 def each_attribute(&block) attributes.values.each &block end |
- (Object) each_property(&block)
26 27 28 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 26 def each_property(&block) properties.values.each &block end |
- (Object) each_property_with_bases(&block)
30 31 32 33 34 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 30 def each_property_with_bases(&block) [*bases, self].inject([]) do |arr, type| arr + type.each_property.to_a end.each(&block) end |
- (Object) root
48 49 50 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 48 def root @base ? @base.root : self end |
- (Boolean) simple_content?
40 41 42 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 40 def simple_content? !!@simple_content end |
- (Boolean) soap_array?
44 45 46 |
# File 'lib/wsdl_mapper/dom/complex_type.rb', line 44 def soap_array? !!@soap_array end |