Class: Lutaml::Xml::NamespaceInheritanceStrategy
- Inherits:
-
Object
- Object
- Lutaml::Xml::NamespaceInheritanceStrategy
- Defined in:
- lib/lutaml/xml/namespace_inheritance_strategy.rb
Overview
Base class for namespace inheritance strategies Determines if child elements inherit parent namespace based on W3C rules
W3C XML Schema defines elementFormDefault attribute which controls whether locally declared elements are in the target namespace by default.
-
“unqualified” (W3C default): children in blank namespace
-
“qualified”: children inherit parent namespace
Direct Known Subclasses
QualifiedInheritanceStrategy, UnqualifiedInheritanceStrategy
Instance Method Summary collapse
-
#inherits?(element_type:, parent_ns_decl:, mapping:) ⇒ Boolean
Determine if child element should inherit parent namespace.
Instance Method Details
#inherits?(element_type:, parent_ns_decl:, mapping:) ⇒ Boolean
Determine if child element should inherit parent namespace
21 22 23 |
# File 'lib/lutaml/xml/namespace_inheritance_strategy.rb', line 21 def inherits?(element_type:, parent_ns_decl:, mapping:) raise NotImplementedError, "#{self.class} must implement #inherits?" end |