Class: XSD::AttributeGroup

Inherits:
BaseObject show all
Includes:
AttributeContainer, Named, Referenced
Defined in:
lib/xsd/objects/attribute_group.rb

Overview

The attributeGroup element is used to group a set of attribute declarations so that they can be incorporated as a group into complex type definitions. Parent elements: attributeGroup, complexType, schema, restriction (both simpleContent and complexContent), extension (both simpleContent and complexContent www.w3schools.com/xml/el_attributegroup.asp

Constant Summary

Constants inherited from BaseObject

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

Instance Attribute Summary collapse

Attributes included from AttributeContainer

#attribute_groups, #attributes

Attributes included from Referenced

#ref, #reference

Attributes inherited from BaseObject

#id, #options

Method Summary

Methods included from Named

#absolute_name, #namespace

Methods included from AttributeContainer

included

Methods included from Referenced

included, #referenced?

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

#nameObject

Optional. Specifies the name of the attribute group. Name and ref attributes cannot both be present

Returns:

  • String, nil



17
# File 'lib/xsd/objects/attribute_group.rb', line 17

property :name, :string