Module: Lutaml::Xml::XmlOrderable

Defined in:
lib/lutaml/xml/xml_orderable.rb

Overview

Mixin for XML element/attribute ordering state.

Included by:

- Lutaml::Xml::Serialization::InstanceMethods (Serialize instances)
- Plain model classes via add_format_specific_model_methods

Enables Lutaml::Model to check ordering capability with is_a? instead of respond_to?, following proper OOP type-checking.

Instance Attribute Summary collapse

Instance Attribute Details

#attribute_orderObject

Returns the value of attribute attribute_order.



14
15
16
# File 'lib/lutaml/xml/xml_orderable.rb', line 14

def attribute_order
  @attribute_order
end

#element_orderObject

Returns the value of attribute element_order.



14
15
16
# File 'lib/lutaml/xml/xml_orderable.rb', line 14

def element_order
  @element_order
end

#mixedObject

Returns the value of attribute mixed.



14
15
16
# File 'lib/lutaml/xml/xml_orderable.rb', line 14

def mixed
  @mixed
end

#orderedObject

Returns the value of attribute ordered.



14
15
16
# File 'lib/lutaml/xml/xml_orderable.rb', line 14

def ordered
  @ordered
end