Class: Lutaml::Xml::Schema::Xsd::SchemaNameResolver
- Inherits:
-
Object
- Object
- Lutaml::Xml::Schema::Xsd::SchemaNameResolver
- Defined in:
- lib/lutaml/xml/schema/xsd/schema_name_resolver.rb
Overview
Resolves schema names for serialization Uses the basename directly as provided by the XSD bundler The bundler has already renamed files with namespace prefixes to ensure uniqueness This class provides clean separation of naming concerns from serialization logic
Instance Method Summary collapse
-
#initialize(namespace_mappings) ⇒ SchemaNameResolver
constructor
Initialize with namespace mappings from repository.
-
#resolve_name(basename, _schema) ⇒ String
Resolve schema name for serialization Simply returns the basename as-is, since the XSD bundler has already renamed files with namespace prefixes to make them unique and semantic.
Constructor Details
#initialize(namespace_mappings) ⇒ SchemaNameResolver
Initialize with namespace mappings from repository
14 15 16 |
# File 'lib/lutaml/xml/schema/xsd/schema_name_resolver.rb', line 14 def initialize(namespace_mappings) @namespace_mappings = namespace_mappings || [] end |
Instance Method Details
#resolve_name(basename, _schema) ⇒ String
Resolve schema name for serialization Simply returns the basename as-is, since the XSD bundler has already renamed files with namespace prefixes to make them unique and semantic
24 25 26 27 |
# File 'lib/lutaml/xml/schema/xsd/schema_name_resolver.rb', line 24 def resolve_name(basename, _schema) # Use basename directly - the bundler has already made it unique basename end |