Module dev.metaschema.core
Package dev.metaschema.core.model
Class AbstractFlagInstance<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>
- Type Parameters:
PARENT- the Java type of the parent model (i.e., assembly, field).DEFINITION- the Java type of the definition for this member flagINSTANCE- the Java type of the instance for this member flag
- All Implemented Interfaces:
IAttributable,IDefaultable,IDescribable,IFlag,IFlagInstance,IInstance,IInstanceAbsolute,IJsonNamed,IModelElement,IModelElementVisitable,INamed,INamedInstance,INamedModelElement,IValued,IValuedInstance
- Direct Known Subclasses:
AbstractInlineFlagDefinition
public abstract class AbstractFlagInstance<PARENT extends IModelDefinition,DEFINITION extends IFlagDefinition,INSTANCE extends IFlagInstance>
extends AbstractNamedInstance<PARENT>
implements IFlagInstance
A base class for a flag that is a member of a containing model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.model.IAttributable
IAttributable.Key -
Field Summary
Fields inherited from interface dev.metaschema.core.model.IAttributable
DEFAULT_PROPERY_NAMESPACEFields inherited from interface dev.metaschema.core.model.IFlagInstance
DEFAULT_FLAG_REQUIRED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFlagInstance(PARENT parent) Construct a new flag instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal PARENTRetrieve the Metaschema module definition on which the instance was declared.Retrieves the Metaschema module that contains the information element's declaration.Retrieves the flag definition referenced by this instance.Generates a "coordinate" string for the assembly instance.Methods 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, getEffectiveDefaultValue, getResolvedDefaultValueMethods inherited from interface dev.metaschema.core.model.IDescribable
getDescription, getEffectiveDescription, getEffectiveFormalName, getFormalNameMethods inherited from interface dev.metaschema.core.model.IFlag
getModelTypeMethods inherited from interface dev.metaschema.core.model.IFlagInstance
accept, getParentContainer, isRequiredMethods inherited from interface dev.metaschema.core.model.IModelElement
getRemarksMethods inherited from interface dev.metaschema.core.model.INamed
getEffectiveIndex, getEffectiveName, getIndex, getName, getQName, getUseIndex, getUseNameMethods inherited from interface dev.metaschema.core.model.INamedInstance
getReferencedDefinitionQName, isInlineDefinitionMethods inherited from interface dev.metaschema.core.model.INamedModelElement
getJsonName
-
Constructor Details
-
AbstractFlagInstance
Construct a new flag instance.- 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 interfaceIFlagInstance- Specified by:
getDefinitionin interfaceINamedInstance- Specified by:
getDefinitionin interfaceIValuedInstance- Returns:
- the flag definition
-
getContainingDefinition
Description copied from interface:IInstanceRetrieve the Metaschema module definition on which the instance was declared.- Specified by:
getContainingDefinitionin interfaceIFlagInstance- Specified by:
getContainingDefinitionin interfaceIInstance- Returns:
- the Metaschema module definition on which the instance was declared
-
toCoordinates
Generates a "coordinate" string for the assembly instance.- Specified by:
toCoordinatesin interfaceIInstance- Specified by:
toCoordinatesin interfaceIModelElement- Returns:
- the coordinate
-
getContainingModule
Description copied from interface:IModelElementRetrieves the Metaschema module that contains the information element's declaration.- Specified by:
getContainingModulein interfaceIModelElement- Returns:
- the Metaschema module
-