Class: WsdlMapper::Dom::SimpleType

Inherits:
TypeBase
  • Object
show all
Defined in:
lib/wsdl_mapper/dom/simple_type.rb

Instance Attribute Summary (collapse)

Attributes inherited from TypeBase

#documentation, #name

Instance Method Summary (collapse)

Methods inherited from TypeBase

#==, #eql?, #hash, to_proc

Constructor Details

- (SimpleType) initialize(name)

Returns a new instance of SimpleType



10
11
12
13
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 10

def initialize(name)
  super
  @enumeration_values = []
end

Instance Attribute Details

- (Object) base

Returns the value of attribute base



7
8
9
# File 'lib/wsdl_mapper/dom/simple_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/simple_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/simple_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/simple_type.rb', line 7

def containing_property
  @containing_property
end

- (Object) enumeration_values (readonly)

Returns the value of attribute enumeration_values



8
9
10
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 8

def enumeration_values
  @enumeration_values
end

- (Object) fraction_digits

Returns the value of attribute fraction_digits



7
8
9
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7

def fraction_digits
  @fraction_digits
end

- (Object) max

Returns the value of attribute max



7
8
9
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7

def max
  @max
end

- (Object) max_inclusive

Returns the value of attribute max_inclusive



7
8
9
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7

def max_inclusive
  @max_inclusive
end

- (Object) min

Returns the value of attribute min



7
8
9
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7

def min
  @min
end

- (Object) min_inclusive

Returns the value of attribute min_inclusive



7
8
9
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7

def min_inclusive
  @min_inclusive
end

- (Object) pattern

Returns the value of attribute pattern



7
8
9
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7

def pattern
  @pattern
end

- (Object) total_digits

Returns the value of attribute total_digits



7
8
9
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 7

def total_digits
  @total_digits
end

Instance Method Details

- (Boolean) enumeration?

Returns:

  • (Boolean)


15
16
17
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 15

def enumeration?
  @enumeration_values.any?
end

- (Boolean) pattern?

Returns:

  • (Boolean)


23
24
25
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 23

def pattern?
  !!@pattern
end

- (Object) root



19
20
21
# File 'lib/wsdl_mapper/dom/simple_type.rb', line 19

def root
  @base ? @base.root : self
end