Module dev.metaschema.core
Package dev.metaschema.core.model
Class AbstractInlineFlagDefinition<PARENT extends IModelDefinition,DEFINITION extends IFlagDefinition,INSTANCE extends IFlagInstance>
java.lang.Object
dev.metaschema.core.model.AbstractInstance<PARENT>
dev.metaschema.core.model.AbstractNamedInstance<PARENT>
dev.metaschema.core.model.AbstractFlagInstance<PARENT,DEFINITION,INSTANCE>
dev.metaschema.core.model.AbstractInlineFlagDefinition<PARENT,DEFINITION,INSTANCE>
- Type Parameters:
PARENT- the Java type of the parent model container for this instanceDEFINITION- the Java type of the related assembly definitionINSTANCE- the expected Java type of an instance of this definition
- All Implemented Interfaces:
IFeatureValueConstrained,IValueConstrained,IAttributable,IDefaultable,IDefinition,IDescribable,IFeatureDefinitionInstanceInlined<DEFINITION,,INSTANCE> IFlag,IFlagDefinition,IFlagInstance,IInstance,IInstanceAbsolute,IJsonNamed,IModelElement,IModelElementVisitable,INamed,INamedInstance,INamedModelElement,IValued,IValuedDefinition,IValuedInstance
public abstract class AbstractInlineFlagDefinition<PARENT extends IModelDefinition,DEFINITION extends IFlagDefinition,INSTANCE extends IFlagInstance>
extends AbstractFlagInstance<PARENT,DEFINITION,INSTANCE>
implements IFlagDefinition, IFeatureDefinitionInstanceInlined<DEFINITION,INSTANCE>
A base class for an assembly instance defined inline.
-
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_SCOPEFields inherited from interface dev.metaschema.core.model.IFlagInstance
DEFAULT_FLAG_REQUIRED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractInlineFlagDefinition(PARENT parent) Construct a new inline assembly definition. -
Method Summary
Modifier and TypeMethodDescription<CONTEXT,RESULT>
RESULTaccept(IModelElementVisitor<CONTEXT, RESULT> visitor, CONTEXT context) A visitor callback.final DEFINITIONRetrieves the flag definition referenced by this instance.final INSTANCEIfIDefinition.isInline()istrue, return the instance the definition is inlined for.Methods inherited from class dev.metaschema.core.model.AbstractFlagInstance
getContainingDefinition, getContainingModule, toCoordinatesMethods inherited from class dev.metaschema.core.model.AbstractNamedInstance
getQName, getReferencedDefinitionQNameMethods inherited from class dev.metaschema.core.model.AbstractInstance
getParentContainerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.core.model.IAttributable
getProperties, getPropertyValues, hasProperty, hasPropertyValueMethods inherited from interface dev.metaschema.core.model.IDefaultable
getDefaultValue, getResolvedDefaultValueMethods inherited from interface dev.metaschema.core.model.IDefinition
getLocation, getModuleScopeMethods inherited from interface dev.metaschema.core.model.IDescribable
getDescription, getFormalNameMethods inherited from interface dev.metaschema.core.model.IFeatureDefinitionInstanceInlined
getDefinitionQName, getEffectiveDefaultValue, getEffectiveDescription, getEffectiveFormalName, getEffectiveIndex, getEffectiveName, getSource, isInline, isInlineDefinition, toCoordinatesMethods 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.IFlag
getModelTypeMethods inherited from interface dev.metaschema.core.model.IFlagInstance
getParentContainer, isRequiredMethods inherited from interface dev.metaschema.core.model.IModelElement
getContainingModule, getRemarksMethods inherited from interface dev.metaschema.core.model.INamed
getIndex, getName, getQName, getUseIndex, getUseNameMethods inherited from interface dev.metaschema.core.model.INamedInstance
getReferencedDefinitionQNameMethods inherited from interface dev.metaschema.core.model.INamedModelElement
getJsonNameMethods inherited from interface dev.metaschema.core.model.IValuedDefinition
getJavaTypeAdapter
-
Constructor Details
-
AbstractInlineFlagDefinition
Construct a new inline assembly definition.- Parameters:
parent- the parent model containing this instance
-
-
Method Details
-
getDefinition
Description copied from interface:IFlagInstanceRetrieves the flag definition referenced by this instance.- Specified by:
getDefinitionin interfaceIFeatureDefinitionInstanceInlined<PARENT extends IModelDefinition,DEFINITION extends IFlagDefinition> - Specified by:
getDefinitionin interfaceIFlagInstance- Specified by:
getDefinitionin interfaceINamedInstance- Specified by:
getDefinitionin interfaceIValuedInstance- Overrides:
getDefinitionin classAbstractFlagInstance<PARENT extends IModelDefinition,DEFINITION extends IFlagDefinition, INSTANCE extends IFlagInstance> - Returns:
- the flag definition
-
getInlineInstance
Description copied from interface:IDefinitionIfIDefinition.isInline()istrue, return the instance the definition is inlined for.If this method returns
null, thenIDefinition.getInlineInstance()must returnfalse.- Specified by:
getInlineInstancein interfaceIDefinition- Specified by:
getInlineInstancein interfaceIFeatureDefinitionInstanceInlined<PARENT extends IModelDefinition,DEFINITION extends IFlagDefinition> - Specified by:
getInlineInstancein interfaceIFlagDefinition- Returns:
- the instance or
nullotherwise - See Also:
-
accept
public <CONTEXT,RESULT> RESULT accept(@NonNull IModelElementVisitor<CONTEXT, RESULT> visitor, CONTEXT context) A visitor callback.- Specified by:
acceptin interfaceIFlagDefinition- Specified by:
acceptin interfaceIFlagInstance- Specified by:
acceptin interfaceIModelElementVisitable- Type Parameters:
CONTEXT- the type of the context parameterRESULT- the type of the visitor result- Parameters:
visitor- the calling visitorcontext- a parameter used to pass contextual information between visitors- Returns:
- the visitor result
-