Interface IBoundNamedModelInstance
-
- All Superinterfaces:
IBoundNamedInstance,IInstance,IModelElement,IModelInstance,INamedInstance,INamedModelElement,INamedModelInstance
- All Known Subinterfaces:
IBoundAssemblyInstance,IBoundFieldInstance
- All Known Implementing Classes:
AbstractFieldProperty
public interface IBoundNamedModelInstance extends IBoundNamedInstance, INamedModelInstance
This marker interface provides common methods for interacting with bound object values.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ObjectcopyItem(Object fromItem, Object toInstance)IDataTypeHandlergetDataTypeHandler()default Class<?>getItemType()Get the item type of the bound object.static Class<?>getItemType(Field field)Collection<? extends Object>getItemValues(Object value)Get the item values associated with the provided value.IAssemblyClassBindinggetParentClassBinding()Get theIClassBindingfor the Java class within which this property exists.IModelPropertyInfogetPropertyInfo()-
Methods inherited from interface gov.nist.secauto.metaschema.databind.model.IBoundNamedInstance
copyBoundObject, defaultValue, getField, getJavaFieldName, getName, getProperties, getType, getValue, setValue
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IInstance
getContainingModule
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelElement
getModelType, getRemarks
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelInstance
getContainingDefinition, getGroupAsName, getGroupAsXmlNamespace, getJsonGroupAsBehavior, getMaxOccurs, getMinOccurs, getParentContainer, getXmlGroupAsBehavior, getXmlGroupAsQName
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedInstance
getEffectiveDescription, getEffectiveFormalName, getEffectiveName, getXmlNamespace, getXmlQName, toCoordinates
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelElement
getDescription, getFormalName, getPropertyValues, getUseName, hasProperty, hasPropertyValue
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelInstance
getDefinition, getJsonName
-
-
-
-
Method Detail
-
getItemType
@NonNull static Class<?> getItemType(@NonNull Field field)
-
getItemType
default Class<?> getItemType()
Description copied from interface:IBoundNamedInstanceGet the item type of the bound object. An item type is the primitive or specialized type that represents that data associated with this binding.- Specified by:
getItemTypein interfaceIBoundNamedInstance- Returns:
- the item type of the bound object
-
getParentClassBinding
IAssemblyClassBinding getParentClassBinding()
Description copied from interface:IBoundNamedInstanceGet theIClassBindingfor the Java class within which this property exists.- Specified by:
getParentClassBindingin interfaceIBoundNamedInstance- Returns:
- the containing class's binding
-
getPropertyInfo
@NonNull IModelPropertyInfo getPropertyInfo()
-
getDataTypeHandler
@NonNull IDataTypeHandler getDataTypeHandler()
-
getItemValues
@NonNull Collection<? extends Object> getItemValues(Object value)
Get the item values associated with the provided value.- Specified by:
getItemValuesin interfaceINamedModelInstance- Parameters:
value- the value which may be a singleton or a collection- Returns:
- the ordered collection of values
-
copyItem
@NonNull Object copyItem(@NonNull Object fromItem, @NonNull Object toInstance) throws BindingException
- Throws:
BindingException
-
-