Class: Lutaml::Xsd::SchemaNameResolver
- Inherits:
-
Object
- Object
- Lutaml::Xsd::SchemaNameResolver
- Defined in:
- lib/lutaml/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
12 13 14 |
# File 'lib/lutaml/xsd/schema_name_resolver.rb', line 12 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
22 23 24 25 |
# File 'lib/lutaml/xsd/schema_name_resolver.rb', line 22 def resolve_name(basename, _schema) # Use basename directly - the bundler has already made it unique basename end |