Class: XSD::ComplexContent

Inherits:
BaseObject show all
Defined in:
lib/xsd/objects/complex_content.rb

Overview

The complexContent element defines extensions or restrictions on a complex type that contains mixed content or elements only. Parent elements: complexType www.w3schools.com/xml/el_complexcontent.asp

Constant Summary

Constants inherited from BaseObject

BaseObject::NO_ATTRIBUTES_CONTAINER, BaseObject::NO_ELEMENTS_CONTAINER, BaseObject::XML_SCHEMA

Instance Attribute Summary collapse

Attributes inherited from BaseObject

#id, #options

Method Summary

Methods inherited from BaseObject

#[], #collect_attributes, #collect_elements, #documentation, #documentation_for, #get_prefix, #initialize, #inspect, #map_child, #map_children, #namespaces, #node, #node_to_object, #nodes, #object_by_name, #parent, #reader, #schema, #schemas_for_namespace, #strip_prefix

Constructor Details

This class inherits a constructor from XSD::BaseObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class XSD::BaseObject

Instance Attribute Details

#extensionObject

Get nested extension

Returns:

  • Extension, nil



18
# File 'lib/xsd/objects/complex_content.rb', line 18

child :extension, :extension

#mixedObject

Optional. Specifies whether character data is allowed to appear between the child elements of this complexType element. Default is false

Returns:

  • Boolean



13
# File 'lib/xsd/objects/complex_content.rb', line 13

property :mixed, :boolean, default: false

#restrictionObject

Get nested restriction

Returns:

  • Restriction, nil



23
# File 'lib/xsd/objects/complex_content.rb', line 23

child :restriction, :restriction