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 Object
copyItem(Object fromItem, Object toInstance)
IDataTypeHandler
getDataTypeHandler()
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.IAssemblyClassBinding
getParentClassBinding()
Get theIClassBinding
for the Java class within which this property exists.IModelPropertyInfo
getPropertyInfo()
-
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:IBoundNamedInstance
Get 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:
getItemType
in interfaceIBoundNamedInstance
- Returns:
- the item type of the bound object
-
getParentClassBinding
IAssemblyClassBinding getParentClassBinding()
Description copied from interface:IBoundNamedInstance
Get theIClassBinding
for the Java class within which this property exists.- Specified by:
getParentClassBinding
in 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:
getItemValues
in 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
-
-