Module dev.metaschema.databind
Package dev.metaschema.databind.model
Interface IBoundInstanceModelField<ITEM>
- Type Parameters:
ITEM- the Java type for associated bound objects
- All Superinterfaces:
IAttributable,IBoundInstance<ITEM>,IBoundInstanceModel<ITEM>,IBoundInstanceModelNamed<ITEM>,IBoundModelElement,IBoundModelObject<ITEM>,IBoundProperty<ITEM>,IDefaultable,IDescribable,IFeatureJavaField,IField,IFieldInstance,IFieldInstanceAbsolute,IGroupable,IInstance,IInstanceAbsolute,IItemValueHandler<ITEM>,IJsonInstance,IJsonNamed,IModelElement,IModelElementVisitable,IModelInstance,IModelInstanceAbsolute,INamed,INamedInstance,INamedModelElement,INamedModelInstance,INamedModelInstanceAbsolute,IValued,IValuedInstance,IValuedMutable
- All Known Subinterfaces:
IBoundInstanceModelFieldComplex,IBoundInstanceModelFieldScalar
public interface IBoundInstanceModelField<ITEM>
extends IBoundInstanceModelNamed<ITEM>, IFieldInstanceAbsolute
Represents a field instance bound to a Java field.
This interface handles both scalar (simple type) and complex (class-bound) field 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.IFieldInstance
DEFAULT_FIELD_IN_XML_WRAPPEDFields 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 booleancanHandleXmlQName(IEnhancedQName qname) Determine if the provided XML qualified name is associated with this property.Retrieve the definition of this instance.static IBoundInstanceModelField<?>newInstance(Field field, IBoundDefinitionModelAssembly containingDefinition) Create a new bound field instance.Methods inherited from interface dev.metaschema.core.model.IAttributable
getProperties, getPropertyValues, hasProperty, hasPropertyValueMethods inherited from interface dev.metaschema.databind.model.IBoundInstance
getContainingModule, getValue, setValueMethods inherited from interface dev.metaschema.databind.model.IBoundInstanceModel
deepCopy, getCollectionInfo, getContainingDefinition, getResolvedDefaultValueMethods inherited from interface dev.metaschema.databind.model.IBoundInstanceModelNamed
getEffectiveJsonKey, getIndex, getItemJsonKey, getItemValues, getJsonKey, getNameMethods inherited from interface dev.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValueMethods inherited from interface dev.metaschema.core.model.IDescribable
getDescription, getEffectiveDescription, getEffectiveFormalName, getFormalNameMethods inherited from interface dev.metaschema.databind.model.IFeatureJavaField
getField, getItemType, getTypeMethods inherited from interface dev.metaschema.core.model.IField
getModelTypeMethods inherited from interface dev.metaschema.core.model.IFieldInstance
isInXmlWrappedMethods inherited from interface dev.metaschema.core.model.IFieldInstanceAbsolute
accept, isEffectiveValueWrappedInXmlMethods inherited from interface dev.metaschema.core.model.IGroupable
getEffectiveXmlGroupAsQName, getGroupAsName, getJsonGroupAsBehavior, getMaxOccurs, getMinOccurs, getXmlGroupAsBehaviorMethods inherited from interface dev.metaschema.core.model.IInstance
toCoordinatesMethods inherited from interface dev.metaschema.databind.model.info.IItemValueHandler
deepCopyItem, readItem, writeItemMethods inherited from interface dev.metaschema.core.model.IModelElement
getRemarksMethods inherited from interface dev.metaschema.core.model.IModelInstance
getContainingDefinition, getParentContainerMethods inherited from interface dev.metaschema.core.model.INamed
getEffectiveIndex, getEffectiveName, getQName, getUseIndex, getUseNameMethods inherited from interface dev.metaschema.core.model.INamedInstance
getReferencedDefinitionQName, isInlineDefinitionMethods inherited from interface dev.metaschema.core.model.INamedModelInstance
hasJsonKeyMethods inherited from interface dev.metaschema.core.model.INamedModelInstanceAbsolute
getJsonName
-
Method Details
-
getDefinition
IBoundDefinitionModelField<ITEM> getDefinition()Description copied from interface:INamedInstanceRetrieve the definition of this instance.- Specified by:
getDefinitionin interfaceIBoundInstanceModelNamed<ITEM>- Specified by:
getDefinitionin interfaceIFieldInstance- Specified by:
getDefinitionin interfaceINamedInstance- Specified by:
getDefinitionin interfaceINamedModelInstance- Specified by:
getDefinitionin interfaceIValuedInstance- Returns:
- the corresponding definition
-
newInstance
@NonNull static IBoundInstanceModelField<?> newInstance(@NonNull Field field, @NonNull IBoundDefinitionModelAssembly containingDefinition) Create a new bound field instance.- Parameters:
field- the Java field the instance is bound tocontainingDefinition- the definition containing the instance- Returns:
- the new instance
-
canHandleXmlQName
Description copied from interface:IBoundModelObjectDetermine if the provided XML qualified name is associated with this property.- Specified by:
canHandleXmlQNamein interfaceIBoundInstanceModelNamed<ITEM>- Specified by:
canHandleXmlQNamein interfaceIBoundModelObject<ITEM>- Parameters:
qname- the XML qualified name of the property being parsed- Returns:
trueif the instance will handle this name, orfalseotherwise
-