Interface IBoundInstanceFlag
- All Superinterfaces:
IAttributable,IBoundDefinition,IBoundDefinitionFlag,IBoundInstance<Object>,IBoundModelElement,IBoundModelObject<Object>,IBoundProperty<Object>,IDefaultable,IDefinition,IDescribable,IFeatureDefinitionInstanceInlined<IBoundDefinitionFlag,,IBoundInstanceFlag> IFeatureJavaField,IFeatureScalarItemValueHandler,IFeatureValueConstrained,IFlag,IFlagDefinition,IFlagInstance,IInstance,IInstanceAbsolute,IItemValueHandler<Object>,IJsonNamed,IModelElement,IModelElementVisitable,INamed,INamedInstance,INamedModelElement,IValueConstrained,IValued,IValuedDefinition,IValuedInstance,IValuedMutable
public interface IBoundInstanceFlag
extends IFlagInstance, IBoundDefinitionFlag, IFeatureScalarItemValueHandler, IBoundInstance<Object>, IFeatureDefinitionInstanceInlined<IBoundDefinitionFlag,IBoundInstanceFlag>
Represents a flag instance bound to Java data.
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nist.secauto.metaschema.core.model.IAttributable
IAttributable.KeyNested classes/interfaces inherited from interface gov.nist.secauto.metaschema.core.model.IDefinition
IDefinition.ModuleScope -
Field Summary
Fields inherited from interface gov.nist.secauto.metaschema.core.model.IAttributable
DEFAULT_PROPERY_NAMESPACEFields inherited from interface gov.nist.secauto.metaschema.core.model.IDefinition
DEFAULT_MODULE_SCOPEFields inherited from interface gov.nist.secauto.metaschema.core.model.IFlagInstance
DEFAULT_FLAG_REQUIRED -
Method Summary
Modifier and TypeMethodDescriptiondefault <CONTEXT,RESULT>
RESULTaccept(IModelElementVisitor<CONTEXT, RESULT> visitor, CONTEXT context) default booleancanHandleXmlQName(IEnhancedQName qname) Determine if the provided XML qualified name is associated with this property.default voiddeepCopy(IBoundObject fromInstance, IBoundObject toInstance) Copy this instance from one parent object to another.default IBoundInstanceFlagdefault IBoundDefinitionModel<IBoundObject>booleanDetermines if this flag's value is used as the property name for the JSON object that holds the remaining data based on this flag's containing definition.booleanDetermines if this flag is used as a JSON "value key".static IBoundInstanceFlagnewInstance(Field field, IBoundDefinitionModel<IBoundObject> containingDefinition) Create a new bound flag instance.default ObjectreadItem(IBoundObject parent, IItemReadHandler handler) Parse and return an item.default voidwriteItem(Object item, IItemWriteHandler handler) Write the provided item.Methods inherited from interface gov.nist.secauto.metaschema.core.model.IAttributable
getProperties, getPropertyValues, hasProperty, hasPropertyValueMethods inherited from interface gov.nist.secauto.metaschema.databind.model.IBoundInstance
getContainingModule, getValue, setValueMethods inherited from interface gov.nist.secauto.metaschema.core.model.IDefaultable
getDefaultValue, getResolvedDefaultValueMethods inherited from interface gov.nist.secauto.metaschema.core.model.IDefinition
getLocation, getModuleScopeMethods inherited from interface gov.nist.secauto.metaschema.core.model.IDescribable
getDescription, getFormalNameMethods inherited from interface gov.nist.secauto.metaschema.core.model.IFeatureDefinitionInstanceInlined
getDefinitionQName, getEffectiveDefaultValue, getEffectiveDescription, getEffectiveFormalName, getEffectiveIndex, getEffectiveName, getSource, isInline, isInlineDefinition, toCoordinatesMethods inherited from interface gov.nist.secauto.metaschema.databind.model.IFeatureJavaField
getField, getItemType, getTypeMethods inherited from interface gov.nist.secauto.metaschema.databind.model.info.IFeatureScalarItemValueHandler
deepCopyItem, getJavaTypeAdapter, getValueFromString, setValueMethods inherited from interface gov.nist.secauto.metaschema.core.model.constraint.IFeatureValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, addLetExpression, getAllowedValuesConstraints, getConstraints, getConstraintSupport, getExpectConstraints, getIndexHasKeyConstraints, getLetExpressions, getMatchesConstraintsMethods inherited from interface gov.nist.secauto.metaschema.core.model.IFlag
getModelTypeMethods inherited from interface gov.nist.secauto.metaschema.core.model.IFlagInstance
isRequiredMethods inherited from interface gov.nist.secauto.metaschema.core.model.IInstance
toCoordinatesMethods inherited from interface gov.nist.secauto.metaschema.core.model.IModelElement
getRemarksMethods inherited from interface gov.nist.secauto.metaschema.core.model.INamed
getIndex, getName, getQName, getUseIndex, getUseNameMethods inherited from interface gov.nist.secauto.metaschema.core.model.INamedInstance
getReferencedDefinitionQNameMethods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelElement
getJsonNameMethods inherited from interface gov.nist.secauto.metaschema.core.model.IValuedDefinition
getJavaTypeAdapter
-
Method Details
-
newInstance
@NonNull static IBoundInstanceFlag newInstance(@NonNull Field field, @NonNull IBoundDefinitionModel<IBoundObject> containingDefinition) Create a new bound flag instance.- Parameters:
field- the Java field the instance is bound tocontainingDefinition- the definition containing the instance- Returns:
- the new instance
-
isJsonKey
boolean isJsonKey()Determines if this flag's value is used as the property name for the JSON object that holds the remaining data based on this flag's containing definition.- Returns:
trueif this flag is used as a JSON key, orfalseotherwise
-
isJsonValueKey
boolean isJsonValueKey()Determines if this flag is used as a JSON "value key". A "value key" is a flag who's value is used as the property name for the containing objects value.- Returns:
trueif the flag is used as a JSON "value key", orfalseotherwise
-
getContainingDefinition
- Specified by:
getContainingDefinitionin interfaceIBoundInstance<Object>- Specified by:
getContainingDefinitionin interfaceIFlagInstance- Specified by:
getContainingDefinitionin interfaceIInstance
-
getParentContainer
- Specified by:
getParentContainerin interfaceIFlagInstance- Specified by:
getParentContainerin interfaceIInstance
-
getDefinition
For an inline instance, this instance is the definition.
- Specified by:
getDefinitionin interfaceIFeatureDefinitionInstanceInlined<IBoundDefinitionFlag,IBoundInstanceFlag> - Specified by:
getDefinitionin interfaceIFlagInstance- Specified by:
getDefinitionin interfaceINamedInstance- Specified by:
getDefinitionin interfaceIValuedInstance
-
getInlineInstance
- Specified by:
getInlineInstancein interfaceIDefinition- Specified by:
getInlineInstancein interfaceIFeatureDefinitionInstanceInlined<IBoundDefinitionFlag,IBoundInstanceFlag> - Specified by:
getInlineInstancein interfaceIFlagDefinition
-
deepCopy
default void deepCopy(@NonNull IBoundObject fromInstance, @NonNull IBoundObject toInstance) throws BindingException Description copied from interface:IBoundPropertyCopy this instance from one parent object to another.- Specified by:
deepCopyin interfaceIBoundProperty<Object>- Parameters:
fromInstance- the object to copy fromtoInstance- the object to copy to- Throws:
BindingException- if an error occurred while processing the object bindings
-
readItem
@NonNull default Object readItem(IBoundObject parent, @NonNull IItemReadHandler handler) throws IOException Description copied from interface:IItemValueHandlerParse and return an item.- Specified by:
readItemin interfaceIItemValueHandler<Object>- Parameters:
parent- the parent Java object to use for serialization callbacks, ornullif there is no parenthandler- the item parsing handler- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
writeItem
Description copied from interface:IItemValueHandlerWrite the provided item.- Specified by:
writeItemin interfaceIItemValueHandler<Object>- Parameters:
item- the data to writehandler- the item writing handler- Throws:
IOException- if an error occurred while writing
-
canHandleXmlQName
Description copied from interface:IBoundModelObjectDetermine if the provided XML qualified name is associated with this property.- Specified by:
canHandleXmlQNamein interfaceIBoundModelObject<Object>- Parameters:
qname- the XML qualified name of the property being parsed- Returns:
trueif the instance will handle this name, orfalseotherwise
-
accept
default <CONTEXT,RESULT> RESULT accept(IModelElementVisitor<CONTEXT, RESULT> visitor, CONTEXT context) - Specified by:
acceptin interfaceIFlagDefinition- Specified by:
acceptin interfaceIFlagInstance- Specified by:
acceptin interfaceIModelElementVisitable
-