Interface IInstance
-
- All Superinterfaces:
IModelElement
- All Known Subinterfaces:
IAssemblyInstance,IChoiceInstance,IFieldInstance,IFlagInstance,IModelInstance,INamedInstance,INamedModelInstance
- All Known Implementing Classes:
AbstractAssemblyInstance,AbstractChoiceInstance,AbstractFieldInstance,AbstractFlagInstance,AbstractInstance,AbstractModelInstance
public interface IInstance extends IModelElement
This marker interface indicates that this object is an instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IFlagContainergetContainingDefinition()Retrieve the Metaschema definition on which the instance was declared.default IModulegetContainingModule()Retrieves the Metaschema module that contains the information element's declaration.IContainergetParentContainer()Get the parent model definition that serves as the container of this instance.default StringtoCoordinates()Generates a "coordinate" string for the provided information element instance.-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelElement
getModelType, getRemarks
-
-
-
-
Method Detail
-
getContainingDefinition
@NonNull IFlagContainer getContainingDefinition()
Retrieve the Metaschema definition on which the instance was declared.- Returns:
- the Metaschema definition on which the instance was declared
-
getParentContainer
@NonNull IContainer getParentContainer()
Get the parent model definition that serves as the container of this instance.- Returns:
- the container
-
getContainingModule
default IModule getContainingModule()
Description copied from interface:IModelElementRetrieves the Metaschema module that contains the information element's declaration.- Specified by:
getContainingModulein interfaceIModelElement- Returns:
- the Metaschema module
-
toCoordinates
default String toCoordinates()
Generates a "coordinate" string for the provided information element instance. A coordinate consists of the element's:- containing Metaschema module's short name
- model type
- name
- hash code
- the hash code of the definition
- Specified by:
toCoordinatesin interfaceIModelElement- Returns:
- the coordinate
-
-