Module dev.metaschema.core
Package dev.metaschema.core.model
Interface IFeatureContainerFlag<FI extends IFlagInstance>
- Type Parameters:
FI- the flag instance Java type
- All Superinterfaces:
IAttributable,IContainer,IDefaultable,IDefinition,IDescribable,IFeatureValueConstrained,IJsonNamed,IModelDefinition,IModelElement,IModelElementVisitable,INamed,INamedModelElement,IValueConstrained
- All Known Subinterfaces:
IBoundDefinitionModel<ITEM>,IBoundDefinitionModelAssembly,IBoundDefinitionModelComplex,IBoundDefinitionModelField<ITEM>,IBoundDefinitionModelFieldComplex,IBoundInstanceModelFieldScalar
- All Known Implementing Classes:
AbstractGlobalAssemblyDefinition,AbstractGlobalFieldDefinition,AbstractInlineAssemblyDefinition,AbstractInlineFieldDefinition
Represents a definition that may contain flags.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.model.IAttributable
IAttributable.KeyNested classes/interfaces inherited from interface dev.metaschema.core.model.IDefinition
IDefinition.ModuleScope -
Field Summary
Fields inherited from interface dev.metaschema.core.model.IAttributable
DEFAULT_PROPERY_NAMESPACEFields inherited from interface dev.metaschema.core.model.IDefinition
DEFAULT_MODULE_SCOPE -
Method Summary
Modifier and TypeMethodDescriptionLazy initialize the flag instances associated with this definition.default FIgetFlagInstanceByName(Integer index) Retrieves a flag instance, by the flag's effective name-based qualified name index.default Collection<? extends FI>Retrieves the flag instances for all flags defined on the containing definition.default FIRetrieves the flag instance to use as the property name for the containing object in JSON whose value will be the object containing the flag.Methods inherited from interface dev.metaschema.core.model.IAttributable
getProperties, getPropertyValues, hasProperty, hasPropertyValueMethods inherited from interface dev.metaschema.core.model.IDefaultable
getDefaultValue, getEffectiveDefaultValue, getResolvedDefaultValueMethods inherited from interface dev.metaschema.core.model.IDefinition
getDefinitionQName, getInlineInstance, getLocation, getModuleScope, isInline, toCoordinatesMethods inherited from interface dev.metaschema.core.model.IDescribable
getDescription, getEffectiveDescription, getEffectiveFormalName, getFormalNameMethods inherited from interface dev.metaschema.core.model.constraint.IFeatureValueConstrained
addConstraint, addConstraint, addConstraint, addConstraint, addConstraint, addLetExpression, getAllowedValuesConstraints, getConstraints, getConstraintSupport, getExpectConstraints, getIndexHasKeyConstraints, getLetExpressions, getMatchesConstraints, getReportConstraintsMethods inherited from interface dev.metaschema.core.model.IModelDefinition
hasChildrenMethods inherited from interface dev.metaschema.core.model.IModelElement
getContainingModule, getModelType, getRemarksMethods inherited from interface dev.metaschema.core.model.IModelElementVisitable
acceptMethods inherited from interface dev.metaschema.core.model.INamed
getEffectiveIndex, getEffectiveName, getIndex, getName, getQName, getUseIndex, getUseNameMethods inherited from interface dev.metaschema.core.model.INamedModelElement
getJsonNameMethods inherited from interface dev.metaschema.core.model.constraint.IValueConstrained
getSource
-
Method Details
-
getFlagContainer
Lazy initialize the flag instances associated with this definition.- Returns:
- the flag container
-
getFlagInstanceByName
Description copied from interface:IModelDefinitionRetrieves a flag instance, by the flag's effective name-based qualified name index.- Specified by:
getFlagInstanceByNamein interfaceIModelDefinition- Parameters:
index- the flag's name-based qualified name index- Returns:
- the matching flag instance, or
nullif there is no flag matching the specified name
-
getFlagInstances
Description copied from interface:IModelDefinitionRetrieves the flag instances for all flags defined on the containing definition.- Specified by:
getFlagInstancesin interfaceIModelDefinition- Returns:
- the flags
-
getJsonKey
Description copied from interface:IModelDefinitionRetrieves the flag instance to use as the property name for the containing object in JSON whose value will be the object containing the flag.- Specified by:
getJsonKeyin interfaceIModelDefinition- Returns:
- the flag instance if a JSON key is configured, or
nullotherwise
-