Module dev.metaschema.core
Package dev.metaschema.core.model
Class DefaultChoiceGroupModelBuilder<NMI extends INamedModelInstance,FI extends IFieldInstance,AI extends IAssemblyInstance>
java.lang.Object
dev.metaschema.core.model.DefaultChoiceGroupModelBuilder<NMI,FI,AI>
- Type Parameters:
NMI- the named model instance Java typeFI- the field instance Java typeAI- the assembly instance Java type
- Direct Known Subclasses:
DefaultChoiceModelBuilder
public class DefaultChoiceGroupModelBuilder<NMI extends INamedModelInstance,FI extends IFieldInstance,AI extends IAssemblyInstance>
extends Object
A choice group model builder.
Is extended to support other model builders (i.e. choice and assembly model builders).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend the instance.voidAppend the instance.Build an immutable choice group model container based on the appended instances.Get the appended assembly instances.Get the appended field instances.Get the appended named model instances.
-
Constructor Details
-
DefaultChoiceGroupModelBuilder
public DefaultChoiceGroupModelBuilder()
-
-
Method Details
-
append
Append the instance.- Parameters:
instance- the instance to append
-
append
Append the instance.- Parameters:
instance- the instance to append
-
getNamedModelInstances
Get the appended named model instances.- Returns:
- the instances or an empty map if no instances were appended
-
getFieldInstances
Get the appended field instances.- Returns:
- the instances or an empty map if no instances were appended
-
getAssemblyInstances
Get the appended assembly instances.- Returns:
- the instances or an empty map if no instances were appended
-
buildChoiceGroup
Build an immutable choice group model container based on the appended instances.- Returns:
- the container
-