Method: Element::ClassModule#effectiveType

Defined in:
lib/rgen/xsd/xml_schema_metamodel_ext.rb

#effectiveTypeObject



7
8
9
10
11
12
13
# File 'lib/rgen/xsd/xml_schema_metamodel_ext.rb', line 7

def effectiveType
  e = effectiveElement
  if e.getType && e.complexType
    puts "WARN: element has both, a type reference and a contained type"
  end
  e.getType || e.complexType || e.simpleType
end