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

#initialize(name) ⇒ SimpleType

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

#baseObject

Returns the value of attribute base.



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

def base
  @base
end

#base_type_nameObject

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

#containing_elementObject

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

#containing_propertyObject

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

#enumeration_valuesObject (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

#fraction_digitsObject

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

#maxObject

Returns the value of attribute max.



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

def max
  @max
end

#max_inclusiveObject

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

#minObject

Returns the value of attribute min.



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

def min
  @min
end

#min_inclusiveObject

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

#patternObject

Returns the value of attribute pattern.



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

def pattern
  @pattern
end

#total_digitsObject

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

#enumeration?Boolean

Returns:

  • (Boolean)


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

def enumeration?
  @enumeration_values.any?
end

#pattern?Boolean

Returns:

  • (Boolean)


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

def pattern?
  !!@pattern
end

#rootObject



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

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