Class DefaultBindingConfiguration.MetaschemaBindingConfiguration

java.lang.Object
dev.metaschema.databind.codegen.config.DefaultBindingConfiguration.MetaschemaBindingConfiguration
Enclosing class:
DefaultBindingConfiguration

Holds binding configurations for a specific Metaschema module.

This class maintains mappings from definition names to their binding configurations for both assembly and field definitions.

  • Method Details

    • getAssemblyDefinitionBindingConfig

      Get the binding configuration for the IAssemblyDefinition with the provided name.
      Parameters:
      name - the definition name
      Returns:
      the definition's binding configuration or null if no configuration is provided
    • getFieldDefinitionBindingConfig

      Get the binding configuration for the IFieldDefinition with the provided name.
      Parameters:
      name - the definition name
      Returns:
      the definition's binding configuration or null if no configuration is provided
    • addAssemblyDefinitionBindingConfig

      Set the binding configuration for the IAssemblyDefinition with the provided name.
      Parameters:
      name - the definition name
      config - the new binding configuration for the definition
      Returns:
      the definition's old binding configuration or null if no configuration was previously provided
    • addFieldDefinitionBindingConfig

      Set the binding configuration for the IFieldDefinition with the provided name.
      Parameters:
      name - the definition name
      config - the new binding configuration for the definition
      Returns:
      the definition's old binding configuration or null if no configuration was previously provided
    • getPropertyBindingConfig

      @Nullable public IPropertyBindingConfiguration getPropertyBindingConfig(@NonNull String definitionName, @NonNull String propertyName)
      Get the property binding configuration for a specific property within a definition.
      Parameters:
      definitionName - the name of the containing definition
      propertyName - the name of the property
      Returns:
      the property binding configuration, or null if none is configured
    • addPropertyBindingConfig

      @Nullable public IPropertyBindingConfiguration addPropertyBindingConfig(@NonNull String definitionName, @NonNull String propertyName, @NonNull IPropertyBindingConfiguration config)
      Set the property binding configuration for a specific property within a definition.
      Parameters:
      definitionName - the name of the containing definition
      propertyName - the name of the property
      config - the property binding configuration
      Returns:
      the old property binding configuration, or null if none was previously configured