Class AbstractInstance<P extends IContainer>
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.AbstractInstance<P>
-
- All Implemented Interfaces:
IInstance
,IModelElement
- Direct Known Subclasses:
AbstractFlagInstance
,AbstractModelInstance
public abstract class AbstractInstance<P extends IContainer> extends Object implements IInstance
-
-
Constructor Summary
Constructors Constructor Description AbstractInstance(P parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFlagContainer
getContainingDefinition()
Retrieve the Metaschema definition on which the instance was declared.P
getParentContainer()
Get the parent model definition that serves as the container of this instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IInstance
getContainingModule, toCoordinates
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelElement
getModelType, getRemarks
-
-
-
-
Constructor Detail
-
AbstractInstance
public AbstractInstance(@NonNull P parent)
-
-
Method Detail
-
getParentContainer
@NonNull public P getParentContainer()
Description copied from interface:IInstance
Get the parent model definition that serves as the container of this instance.- Specified by:
getParentContainer
in interfaceIInstance
- Returns:
- the container
-
getContainingDefinition
public IFlagContainer getContainingDefinition()
Description copied from interface:IInstance
Retrieve the Metaschema definition on which the instance was declared.- Specified by:
getContainingDefinition
in interfaceIInstance
- Returns:
- the Metaschema definition on which the instance was declared
-
-