Module dev.metaschema.core
Package dev.metaschema.core.model
Class AbstractChoiceGroupInstance<PARENT extends IAssemblyDefinition,NAMED_MODEL extends INamedModelInstanceGrouped,FIELD extends IFieldInstanceGrouped,ASSEMBLY extends IAssemblyInstanceGrouped>
java.lang.Object
dev.metaschema.core.model.AbstractInstance<PARENT>
dev.metaschema.core.model.AbstractChoiceGroupInstance<PARENT,NAMED_MODEL,FIELD,ASSEMBLY>
- Type Parameters:
PARENT- the Java type of the containing assembly definitionNAMED_MODEL- the Java type of child named model instances supported by this choice groupFIELD- the Java type of child field instances supported by this choice groupASSEMBLY- the Java type of child assembly instances supported by this choice group
- All Implemented Interfaces:
IChoiceGroupInstance,IContainer,IContainerModel,IContainerModelGrouped,IDefaultable,IFeatureContainerModelGrouped<NAMED_MODEL,,FIELD, ASSEMBLY> IGroupable,IInstance,IInstanceAbsolute,IJsonInstance,IModelElement,IModelElementVisitable,IModelInstance,IModelInstanceAbsolute,IValued
public abstract class AbstractChoiceGroupInstance<PARENT extends IAssemblyDefinition,NAMED_MODEL extends INamedModelInstanceGrouped,FIELD extends IFieldInstanceGrouped,ASSEMBLY extends IAssemblyInstanceGrouped>
extends AbstractInstance<PARENT>
implements IChoiceGroupInstance, IFeatureContainerModelGrouped<NAMED_MODEL,FIELD,ASSEMBLY>
A base class for a choice group that is a member of a containing model.
-
Field Summary
Fields inherited from interface dev.metaschema.core.model.IChoiceGroupInstance
DEFAULT_CHOICE_GROUP_GROUP_AS_MAX_OCCURS, DEFAULT_JSON_DISCRIMINATOR_PROPERTY_NAMEFields inherited from interface dev.metaschema.core.model.IGroupable
DEFAULT_GROUP_AS_MAX_OCCURS, DEFAULT_GROUP_AS_MIN_OCCURS, DEFAULT_JSON_GROUP_AS_BEHAVIOR, DEFAULT_XML_GROUP_AS_BEHAVIOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractChoiceGroupInstance(PARENT parent) Construct a new choice group instance that is contained with the provided parent assembly definition container. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the Metaschema assembly definition on which this instance is declared.Retrieves the Metaschema module that contains the information element's declaration.Methods inherited from class dev.metaschema.core.model.AbstractInstance
getParentContainerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.core.model.IChoiceGroupInstance
accept, getItemInstance, getJsonDiscriminatorProperty, getJsonKeyFlagInstanceName, getJsonName, getMaxOccurs, getModelType, getRemarks, isEffectiveValueWrappedInXml, toCoordinatesMethods inherited from interface dev.metaschema.core.model.IContainerModelGrouped
getOwningDefinitionMethods inherited from interface dev.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValue, getResolvedDefaultValueMethods inherited from interface dev.metaschema.core.model.IFeatureContainerModelGrouped
getAssemblyInstanceByName, getAssemblyInstances, getFieldInstanceByName, getFieldInstances, getModelContainer, getModelInstances, getNamedModelInstanceByName, getNamedModelInstances, hasChildrenMethods inherited from interface dev.metaschema.core.model.IGroupable
getEffectiveXmlGroupAsQName, getGroupAsName, getItemValues, getJsonGroupAsBehavior, getMinOccurs, getXmlGroupAsBehaviorMethods inherited from interface dev.metaschema.core.model.IModelInstance
getParentContainer
-
Constructor Details
-
AbstractChoiceGroupInstance
Construct a new choice group instance that is contained with the provided parent assembly definition container.- Parameters:
parent- the parent assembly definition container for this instance
-
-
Method Details
-
getContainingDefinition
Retrieve the Metaschema assembly definition on which this instance is declared.- Specified by:
getContainingDefinitionin interfaceIInstance- Specified by:
getContainingDefinitionin interfaceIModelInstance- Returns:
- the parent Metaschema assembly definition
-
getContainingModule
Description copied from interface:IModelElementRetrieves the Metaschema module that contains the information element's declaration.- Specified by:
getContainingModulein interfaceIModelElement- Returns:
- the Metaschema module
-