Module dev.metaschema.databind
Package dev.metaschema.databind.model
Interface IBoundInstanceModelGroupedNamed
- All Superinterfaces:
IAttributable,IDefaultable,IDescribable,IFeatureComplexItemValueHandler,IGroupable,IInstance,IItemValueHandler<IBoundObject>,IJsonNamed,IModelElement,IModelElementVisitable,IModelInstance,INamed,INamedInstance,INamedModelElement,INamedModelInstance,INamedModelInstanceGrouped
- All Known Subinterfaces:
IBoundInstanceModelGroupedAssembly,IBoundInstanceModelGroupedField
public interface IBoundInstanceModelGroupedNamed
extends INamedModelInstanceGrouped, IFeatureComplexItemValueHandler
Represents a model instance that is a member of a choice group instance.
-
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 voidcallAfterDeserialize(IBoundObject targetObject, IBoundObject parentObject) Invoke the after-deserialize lifecycle callback on the target object.default voidcallBeforeDeserialize(IBoundObject targetObject, IBoundObject parentObject) Invoke the before-deserialize lifecycle callback on the target object.default IBoundObjectdeepCopyItem(IBoundObject item, IBoundObject parentInstance) Create and return a deep copy of the provided item.default IBoundDefinitionModelAssemblyRetrieve the Metaschema module definition on which the instance was declared.Retrieve the definition of this instance.default IBoundInstanceFlagGet the JSON key flag instance for this model instance, if one is configured.default IBoundInstanceFlagGet the JSON key associated with this instance.default StringgetName()Retrieve the name of the model element.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.databind.model.info.IFeatureComplexItemValueHandler
getBoundClass, getJsonProperties, newInstanceMethods 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.databind.model.info.IItemValueHandler
readItem, writeItemMethods 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, 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
hasJsonKeyMethods inherited from interface dev.metaschema.core.model.INamedModelInstanceGrouped
getDiscriminatorValue, getEffectiveDisciminatorValue, getMaxOccurs, getMinOccurs
-
Method Details
-
getParentContainer
IBoundInstanceModelChoiceGroup 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- Specified by:
getParentContainerin interfaceINamedModelInstanceGrouped- Returns:
- the container
-
getDefinition
IBoundDefinitionModelComplex getDefinition()Description copied from interface:INamedInstanceRetrieve the definition of this instance.- Specified by:
getDefinitionin interfaceIFeatureComplexItemValueHandler- Specified by:
getDefinitionin interfaceINamedInstance- Specified by:
getDefinitionin interfaceINamedModelInstance- Returns:
- the corresponding definition
-
getEffectiveJsonKey
Description copied from interface:INamedModelInstanceGet the JSON key flag instance for this model instance, if one is configured.- Specified by:
getEffectiveJsonKeyin interfaceINamedModelInstance- Specified by:
getEffectiveJsonKeyin interfaceINamedModelInstanceGrouped- 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- Specified by:
getJsonKeyin interfaceINamedModelInstanceGrouped- Returns:
- the configured JSON key or
nullif no JSON key is configured
-
getContainingDefinition
Description copied from interface:IInstanceRetrieve the Metaschema module definition on which the instance was declared.- Specified by:
getContainingDefinitionin interfaceIInstance- Specified by:
getContainingDefinitionin interfaceIModelInstance- Specified by:
getContainingDefinitionin interfaceINamedModelInstanceGrouped- Returns:
- the Metaschema module definition on which the instance was declared
-
getName
Description copied from interface:INamedRetrieve the name of the model element. -
deepCopyItem
default IBoundObject deepCopyItem(IBoundObject item, IBoundObject parentInstance) throws BindingException Description copied from interface:IItemValueHandlerCreate and return a deep copy of the provided item.- Specified by:
deepCopyItemin interfaceIFeatureComplexItemValueHandler- Specified by:
deepCopyItemin interfaceIItemValueHandler<IBoundObject>- Parameters:
item- the item to copyparentInstance- an optional parent object to use for serialization callbacks- Returns:
- the new deep copy
- Throws:
BindingException- if an error occurred while analyzing the bound objects
-
callBeforeDeserialize
default void callBeforeDeserialize(IBoundObject targetObject, IBoundObject parentObject) throws BindingException Description copied from interface:IFeatureComplexItemValueHandlerInvoke the before-deserialize lifecycle callback on the target object.- Specified by:
callBeforeDeserializein interfaceIFeatureComplexItemValueHandler- Parameters:
targetObject- the object being deserializedparentObject- the parent object containing the target, ornullif there is no parent- Throws:
BindingException- if an error occurs during the callback
-
callAfterDeserialize
default void callAfterDeserialize(IBoundObject targetObject, IBoundObject parentObject) throws BindingException Description copied from interface:IFeatureComplexItemValueHandlerInvoke the after-deserialize lifecycle callback on the target object.- Specified by:
callAfterDeserializein interfaceIFeatureComplexItemValueHandler- Parameters:
targetObject- the object that was deserializedparentObject- the parent object containing the target, ornullif there is no parent- Throws:
BindingException- if an error occurs during the callback
-