- All Superinterfaces:
IAttributable,IDefaultable,IDescribable,IGroupable,IInstance,IJsonNamed,IModelElement,IModelElementVisitable,IModelInstance,INamed,INamedInstance,INamedModelElement,INamedModelInstance
- All Known Subinterfaces:
IAssemblyInstanceGrouped,IBoundInstanceModelGroupedAssembly,IBoundInstanceModelGroupedField,IBoundInstanceModelGroupedNamed,IFieldInstanceGrouped
Represents an arbitrary grouping of Metaschema model instances.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.model.IAttributable
IAttributable.Key -
Field Summary
Fields inherited from interface dev.metaschema.core.model.IAttributable
DEFAULT_PROPERY_NAMESPACEFields 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 -
Method Summary
Modifier and TypeMethodDescriptiondefault IAssemblyDefinitionRetrieve the Metaschema module definition on which the instance was declared.Get the discriminator JSON property name to use to identify the type of a given instance object.default StringGet the effective discriminator JSON property name to use to identify the type of a given instance object.default IFlagInstanceGet the JSON key flag instance for this model instance, if one is configured.default IFlagInstanceGet the JSON key associated with this instance.default intGet the maximum cardinality for this associated instance.default intGet the minimum cardinality for this associated instance.Get the parent model definition that serves as the container of this instance.Methods inherited from interface dev.metaschema.core.model.IAttributable
getProperties, getPropertyValues, hasProperty, hasPropertyValueMethods inherited from interface dev.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValue, getResolvedDefaultValueMethods inherited from interface dev.metaschema.core.model.IDescribable
getDescription, getEffectiveDescription, getEffectiveFormalName, getFormalNameMethods inherited from interface dev.metaschema.core.model.IGroupable
getEffectiveXmlGroupAsQName, getGroupAsName, getItemValues, getJsonGroupAsBehavior, getXmlGroupAsBehaviorMethods inherited from interface dev.metaschema.core.model.IInstance
toCoordinatesMethods inherited from interface dev.metaschema.core.model.IModelElement
getContainingModule, getModelType, getRemarksMethods inherited from interface dev.metaschema.core.model.IModelElementVisitable
acceptMethods inherited from interface dev.metaschema.core.model.IModelInstance
isEffectiveValueWrappedInXmlMethods inherited from interface dev.metaschema.core.model.INamed
getEffectiveIndex, getEffectiveName, getIndex, getName, getQName, getUseIndex, getUseNameMethods inherited from interface dev.metaschema.core.model.INamedInstance
getReferencedDefinitionQName, isInlineDefinitionMethods inherited from interface dev.metaschema.core.model.INamedModelElement
getJsonNameMethods inherited from interface dev.metaschema.core.model.INamedModelInstance
getDefinition, hasJsonKey
-
Method Details
-
getParentContainer
IChoiceGroupInstance getParentContainer()Description copied from interface:IInstanceGet the parent model definition that serves as the container of this instance.- Specified by:
getParentContainerin interfaceIInstance- Specified by:
getParentContainerin interfaceIModelInstance- Returns:
- the container
-
getContainingDefinition
Description copied from interface:IInstanceRetrieve the Metaschema module definition on which the instance was declared.- Specified by:
getContainingDefinitionin interfaceIInstance- Specified by:
getContainingDefinitionin interfaceIModelInstance- Returns:
- the Metaschema module definition on which the instance was declared
-
getDiscriminatorValue
Get the discriminator JSON property name to use to identify the type of a given instance object.- Returns:
- the discriminator property name or
nullif the effective name should be used instead
-
getEffectiveDisciminatorValue
Get the effective discriminator JSON property name to use to identify the type of a given instance object.- Returns:
- the discriminator property name
-
getEffectiveJsonKey
Description copied from interface:INamedModelInstanceGet the JSON key flag instance for this model instance, if one is configured.- Specified by:
getEffectiveJsonKeyin interfaceINamedModelInstance- Returns:
- the JSON key flag instance or
nullif no JSON key is configured
-
getJsonKey
Description copied from interface:INamedModelInstanceGet the JSON key associated with this instance.- Specified by:
getJsonKeyin interfaceINamedModelInstance- Returns:
- the configured JSON key or
nullif no JSON key is configured
-
getMinOccurs
default int getMinOccurs()Description copied from interface:IGroupableGet the minimum cardinality for this associated instance. This value must be less than or equal to the maximum cardinality returned byIGroupable.getMaxOccurs().- Specified by:
getMinOccursin interfaceIGroupable- Returns:
0or a positive integer value- See Also:
-
getMaxOccurs
default int getMaxOccurs()Description copied from interface:IGroupableGet the maximum cardinality for this associated instance. This value must be greater than or equal to the minimum cardinality returned byIGroupable.getMinOccurs(), or-1if unbounded.- Specified by:
getMaxOccursin interfaceIGroupable- Returns:
- a positive integer value or
-1if unbounded - See Also:
-