Interface IClassBinding
-
- All Superinterfaces:
IConstrained,IContainer,IDefinition,IFeatureFlagContainer<IBoundFlagInstance>,gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained,IFlagContainer,IModelElement,INamedModelElement,IValueConstrained
- All Known Subinterfaces:
IAssemblyClassBinding,IFieldClassBinding
- All Known Implementing Classes:
DefaultAssemblyClassBinding,DefaultFieldClassBinding
public interface IClassBinding extends IFeatureFlagContainer<IBoundFlagInstance>
-
-
Field Summary
-
Fields inherited from interface gov.nist.secauto.metaschema.core.model.IDefinition
DEFAULT_DEFINITION_MODEL_SCOPE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcallAfterDeserialize(Object targetObject, Object parentObject)voidcallBeforeDeserialize(Object targetObject, Object parentObject)ObjectcopyBoundObject(Object item, Object parentInstance)Create a deep copy of the provided bound object.IBindingContextgetBindingContext()Class<?>getBoundClass()The class this binding is for.<CLASS> CLASSnewInstance()-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IDefinition
getModuleScope, isInline, toCoordinates
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IFeatureFlagContainer
getFlagContainer, getFlagInstanceByName, getFlagInstances, getJsonKeyFlagInstance
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, getAllowedValuesConstraints, getConstraints, getConstraintSupport, getExpectConstraints, getIndexHasKeyConstraints, getMatchesConstraints
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IFlagContainer
getInlineInstance, getOwningDefinition, hasJsonKey, isSimple
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelElement
getContainingModule, getModelType, getRemarks
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelElement
getDescription, getEffectiveDescription, getEffectiveFormalName, getEffectiveName, getFormalName, getJsonName, getName, getProperties, getPropertyValues, getUseName, hasProperty, hasPropertyValue
-
-
-
-
Method Detail
-
getBindingContext
@NonNull IBindingContext getBindingContext()
-
newInstance
@NonNull <CLASS> CLASS newInstance() throws BindingException
- Throws:
BindingException
-
getBoundClass
@NonNull Class<?> getBoundClass()
The class this binding is for.- Returns:
- the bound class
-
callBeforeDeserialize
void callBeforeDeserialize(@NonNull Object targetObject, @Nullable Object parentObject) throws BindingException
- Throws:
BindingException
-
callAfterDeserialize
void callAfterDeserialize(@NonNull Object targetObject, @Nullable Object parentObject) throws BindingException
- Throws:
BindingException
-
copyBoundObject
@NonNull Object copyBoundObject(@NonNull Object item, Object parentInstance) throws BindingException
Create a deep copy of the provided bound object.- Parameters:
item- the bound object to copyparentInstance- the new object's parent instance ornull- Returns:
- the copy
- Throws:
BindingException- if an error occurred copying content between java instances
-
-