Module: Attribute::ClassModule
- Defined in:
- lib/rgen/xsd/xml_schema_metamodel_ext.rb
Instance Method Summary collapse
Instance Method Details
#effectiveAttribute ⇒ Object
17 18 19 |
# File 'lib/rgen/xsd/xml_schema_metamodel_ext.rb', line 17 def effectiveAttribute ref || self end |
#effectiveType ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/rgen/xsd/xml_schema_metamodel_ext.rb', line 20 def effectiveType e = effectiveAttribute if e.getType && e.simpleType puts "WARN: attribute has both, a type reference and a contained type" end e.getType || e.simpleType end |