Class: Lutaml::Model::Schema::XmlCompiler::ComplexContent

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/model/schema/xml_compiler/complex_content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(restriction = nil) ⇒ ComplexContent

Returns a new instance of ComplexContent.



8
9
10
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 8

def initialize(restriction = nil)
  @restriction = restriction
end

Instance Attribute Details

#restrictionObject

Returns the value of attribute restriction.



6
7
8
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 6

def restriction
  @restriction
end

Instance Method Details

#required_filesObject



20
21
22
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 20

def required_files
  restriction&.required_files
end

#to_attributes(indent) ⇒ Object



12
13
14
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 12

def to_attributes(indent)
  restriction&.to_attributes(indent)
end

#to_xml_mapping(indent) ⇒ Object



16
17
18
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 16

def to_xml_mapping(indent)
  restriction&.to_xml_mapping(indent)
end