- Type Parameters:
ITEM- the Java type for associated bound objects
- All Superinterfaces:
IBoundModelElement,IBoundModelObject<ITEM>,IBoundProperty<ITEM>,IDefaultable,IFeatureJavaField,IInstance,IItemValueHandler<ITEM>,IJsonNamed,IModelElement,IModelElementVisitable,IValued,IValuedMutable
- All Known Subinterfaces:
IBoundInstanceFlag,IBoundInstanceModel<ITEM>,IBoundInstanceModelAssembly,IBoundInstanceModelChoiceGroup,IBoundInstanceModelField<ITEM>,IBoundInstanceModelFieldComplex,IBoundInstanceModelFieldScalar,IBoundInstanceModelNamed<ITEM>
Represents a Metaschema module instance bound to Java data.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the Metaschema module definition on which the instance was declared.default IBoundModuleRetrieves the Metaschema module that contains the information element's declaration.default ObjectGet the current value from the providedparentInstanceobject.default voidSet the provided value on the provided object.Methods inherited from interface dev.metaschema.databind.model.IBoundModelObject
canHandleXmlQNameMethods inherited from interface dev.metaschema.databind.model.IBoundProperty
deepCopyMethods inherited from interface dev.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValue, getResolvedDefaultValueMethods inherited from interface dev.metaschema.databind.model.IFeatureJavaField
getField, getItemType, getTypeMethods inherited from interface dev.metaschema.core.model.IInstance
getParentContainer, toCoordinatesMethods inherited from interface dev.metaschema.databind.model.info.IItemValueHandler
deepCopyItem, readItem, writeItemMethods inherited from interface dev.metaschema.core.model.IJsonNamed
getJsonNameMethods inherited from interface dev.metaschema.core.model.IModelElement
getModelType, getRemarksMethods inherited from interface dev.metaschema.core.model.IModelElementVisitable
accept
-
Method Details
-
getContainingDefinition
IBoundDefinitionModel<IBoundObject> getContainingDefinition()Description copied from interface:IInstanceRetrieve the Metaschema module definition on which the instance was declared.- Specified by:
getContainingDefinitionin interfaceIInstance- Returns:
- the Metaschema module definition on which the instance was declared
-
getContainingModule
Description copied from interface:IModelElementRetrieves the Metaschema module that contains the information element's declaration.- Specified by:
getContainingModulein interfaceIBoundModelElement- Specified by:
getContainingModulein interfaceIModelElement- Returns:
- the Metaschema module
-
getValue
Get the current value from the providedparentInstanceobject.The provided object must be of the type associated with the definition containing this instance.
Always bound to a field.
- Specified by:
getValuein interfaceIFeatureJavaField- Specified by:
getValuein interfaceIValued- Parameters:
parent- the object associated with the definition containing this property- Returns:
- the value if available, or
nullotherwise
-
setValue
Set the provided value on the provided object. The provided object must be of the item's type associated with this instance.Always bound to a field.
- Specified by:
setValuein interfaceIFeatureJavaField- Specified by:
setValuein interfaceIValuedMutable- Parameters:
parentObject- the objectvalue- a value, which may be a simpleTypeor aParameterizedTypefor a collection
-