Class DefaultAssemblyModelBuilder<MI extends IModelInstance,NMI extends INamedModelInstance,FI extends IFieldInstance,AI extends IAssemblyInstance,CI extends IChoiceInstance,CGI extends IChoiceGroupInstance>

java.lang.Object
dev.metaschema.core.model.DefaultChoiceGroupModelBuilder<NMI,FI,AI>
dev.metaschema.core.model.DefaultChoiceModelBuilder<MI,NMI,FI,AI>
dev.metaschema.core.model.DefaultAssemblyModelBuilder<MI,NMI,FI,AI,CI,CGI>
Type Parameters:
MI - the model instance Java type
NMI - the named model instance Java type
FI - the field instance Java type
AI - the assembly instance Java type
CI - the choice instance Java type
CGI - the choice group instance Java type

public class DefaultAssemblyModelBuilder<MI extends IModelInstance,NMI extends INamedModelInstance,FI extends IFieldInstance,AI extends IAssemblyInstance,CI extends IChoiceInstance,CGI extends IChoiceGroupInstance> extends DefaultChoiceModelBuilder<MI,NMI,FI,AI>
An assembly model builder.
See Also:
  • Constructor Details

    • DefaultAssemblyModelBuilder

      public DefaultAssemblyModelBuilder()
  • Method Details

    • append

      public void append(@NonNull CI instance)
      Append the instance.
      Parameters:
      instance - the instance to append
    • append

      public void append(@NonNull CGI instance)
      Append the instance.
      Parameters:
      instance - the instance to append
    • getChoiceInstances

      @NonNull protected List<CI> getChoiceInstances()
      Get the appended choice instances.
      Returns:
      the instances or an empty list if no instances were appended
    • getChoiceGroupInstances

      @NonNull protected Map<String,CGI> getChoiceGroupInstances()
      Get the appended choice group instances.
      Returns:
      the instances or an empty map if no instances were appended
    • buildAssembly

      @NonNull public IContainerModelAssemblySupport<MI,NMI,FI,AI,CI,CGI> buildAssembly()
      Build an immutable assembly model container based on the appended instances.
      Returns:
      the container