Interface IBoundInstanceModelGroupedField
- All Superinterfaces:
IAttributable
,IBoundInstanceModelGroupedNamed
,IDefaultable
,IDescribable
,IFeatureComplexItemValueHandler
,IField
,IFieldInstance
,IFieldInstanceGrouped
,IGroupable
,IInstance
,IItemValueHandler<IBoundObject>
,IJsonNamed
,IModelElement
,IModelInstance
,INamed
,INamedInstance
,INamedModelElement
,INamedModelInstance
,INamedModelInstanceGrouped
,IValuedInstance
public interface IBoundInstanceModelGroupedField
extends IBoundInstanceModelGroupedNamed, IFieldInstanceGrouped
Represents a field model instance that is a member of a choice group
instance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nist.secauto.metaschema.core.model.IAttributable
IAttributable.Key
-
Field Summary
Fields inherited from interface gov.nist.secauto.metaschema.core.model.IAttributable
DEFAULT_PROPERY_NAMESPACE
Fields inherited from interface gov.nist.secauto.metaschema.core.model.IFieldInstance
DEFAULT_FIELD_IN_XML_WRAPPED
Fields inherited from interface gov.nist.secauto.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 TypeMethodDescriptionGet the Metaschema definition representing the bound complex data.newInstance
(BoundGroupedField annotation, IBoundInstanceModelChoiceGroup container) Create a new field model instance instance that is a member of a choice group instance.default IBoundObject
readItem
(IBoundObject parent, IItemReadHandler handler) Parse and return an item.default void
writeItem
(IBoundObject item, IItemWriteHandler handler) Write the provided item.Methods inherited from interface gov.nist.secauto.metaschema.core.model.IAttributable
getProperties, getPropertyValues, hasProperty, hasPropertyValue
Methods inherited from interface gov.nist.secauto.metaschema.databind.model.IBoundInstanceModelGroupedNamed
callAfterDeserialize, callBeforeDeserialize, deepCopyItem, getContainingDefinition, getEffectiveJsonKey, getJsonKey, getName, getParentContainer
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValue, getResolvedDefaultValue
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IDescribable
getDescription, getEffectiveDescription, getEffectiveFormalName, getFormalName
Methods inherited from interface gov.nist.secauto.metaschema.databind.model.info.IFeatureComplexItemValueHandler
getBoundClass, getJsonProperties, newInstance
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IField
getModelType
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IFieldInstanceGrouped
isEffectiveValueWrappedInXml, isInXmlWrapped
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IGroupable
getEffectiveGroupAsNamespace, getEffectiveXmlGroupAsQName, getGroupAsName, getGroupAsXmlNamespace, getItemValues, getJsonGroupAsBehavior, getXmlGroupAsBehavior
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IInstance
toCoordinates
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelElement
getContainingModule, getRemarks
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamed
getEffectiveIndex, getEffectiveName, getIndex, getUseIndex, getUseName, getXmlNamespace
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelElement
getJsonName
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelInstance
getReferencedDefinitionQName, getXmlQName, hasJsonKey
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelInstanceGrouped
getDiscriminatorValue, getEffectiveDisciminatorValue, getMaxOccurs, getMinOccurs
-
Method Details
-
newInstance
@NonNull static IBoundInstanceModelGroupedField newInstance(@NonNull BoundGroupedField annotation, @NonNull IBoundInstanceModelChoiceGroup container) Create a new field model instance instance that is a member of a choice group instance.- Parameters:
annotation
- the Java annotation the instance is bound tocontainer
- the choice group instance containing the instance- Returns:
- the new instance
-
getDefinition
Description copied from interface:IFeatureComplexItemValueHandler
Get the Metaschema definition representing the bound complex data.- Specified by:
getDefinition
in interfaceIBoundInstanceModelGroupedNamed
- Specified by:
getDefinition
in interfaceIFeatureComplexItemValueHandler
- Specified by:
getDefinition
in interfaceIFieldInstance
- Specified by:
getDefinition
in interfaceINamedInstance
- Specified by:
getDefinition
in interfaceINamedModelInstance
- Specified by:
getDefinition
in interfaceIValuedInstance
- Returns:
- the definition
-
readItem
default IBoundObject readItem(IBoundObject parent, @NonNull IItemReadHandler handler) throws IOException Description copied from interface:IItemValueHandler
Parse and return an item.- Specified by:
readItem
in interfaceIItemValueHandler<IBoundObject>
- Parameters:
parent
- the parent Java object to use for serialization callbacks, ornull
if there is no parenthandler
- the item parsing handler- Returns:
- the Java object representing the parsed item
- Throws:
IOException
- if an error occurred while parsing
-
writeItem
Description copied from interface:IItemValueHandler
Write the provided item.- Specified by:
writeItem
in interfaceIItemValueHandler<IBoundObject>
- Parameters:
item
- the data to writehandler
- the item writing handler- Throws:
IOException
- if an error occurred while writing
-