Class DefaultBindingConfiguration.MetaschemaBindingConfiguration

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

public static final class DefaultBindingConfiguration.MetaschemaBindingConfiguration extends Object
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

      @Nullable public IDefinitionBindingConfiguration getAssemblyDefinitionBindingConfig(@NonNull String name)
      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

      @Nullable public IDefinitionBindingConfiguration getFieldDefinitionBindingConfig(@NonNull String name)
      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

      @Nullable public IDefinitionBindingConfiguration addAssemblyDefinitionBindingConfig(@NonNull String name, @NonNull IDefinitionBindingConfiguration config)
      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

      @Nullable public IDefinitionBindingConfiguration addFieldDefinitionBindingConfig(@NonNull String name, @NonNull IDefinitionBindingConfiguration config)
      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