Module dev.metaschema.databind
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 Summary
Modifier and TypeMethodDescriptionSet the binding configuration for theIAssemblyDefinitionwith the providedname.Set the binding configuration for theIFieldDefinitionwith the providedname.addPropertyBindingConfig(String definitionName, String propertyName, IPropertyBindingConfiguration config) Set the property binding configuration for a specific property within a definition.Get the binding configuration for theIAssemblyDefinitionwith the providedname.Get the binding configuration for theIFieldDefinitionwith the providedname.getPropertyBindingConfig(String definitionName, String propertyName) Get the property binding configuration for a specific property within a definition.
-
Method Details
-
getAssemblyDefinitionBindingConfig
@Nullable public IDefinitionBindingConfiguration getAssemblyDefinitionBindingConfig(@NonNull String name) Get the binding configuration for theIAssemblyDefinitionwith the providedname.- Parameters:
name- the definition name- Returns:
- the definition's binding configuration or
nullif no configuration is provided
-
getFieldDefinitionBindingConfig
@Nullable public IDefinitionBindingConfiguration getFieldDefinitionBindingConfig(@NonNull String name) Get the binding configuration for theIFieldDefinitionwith the providedname.- Parameters:
name- the definition name- Returns:
- the definition's binding configuration or
nullif no configuration is provided
-
addAssemblyDefinitionBindingConfig
@Nullable public IDefinitionBindingConfiguration addAssemblyDefinitionBindingConfig(@NonNull String name, @NonNull IDefinitionBindingConfiguration config) Set the binding configuration for theIAssemblyDefinitionwith the providedname.- Parameters:
name- the definition nameconfig- the new binding configuration for the definition- Returns:
- the definition's old binding configuration or
nullif no configuration was previously provided
-
addFieldDefinitionBindingConfig
@Nullable public IDefinitionBindingConfiguration addFieldDefinitionBindingConfig(@NonNull String name, @NonNull IDefinitionBindingConfiguration config) Set the binding configuration for theIFieldDefinitionwith the providedname.- Parameters:
name- the definition nameconfig- the new binding configuration for the definition- Returns:
- the definition's old binding configuration or
nullif 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 definitionpropertyName- the name of the property- Returns:
- the property binding configuration, or
nullif 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 definitionpropertyName- the name of the propertyconfig- the property binding configuration- Returns:
- the old property binding configuration, or
nullif none was previously configured
-