Interface IJavaParent
-
- All Known Implementing Classes:
AbstractJavaStatement,JavaAssignment,JavaAttribute,JavaCall,JavaClass,JavaFileArtifact,JavaImport,JavaMethod,JavaPackage,JavaParentFragmentArtifact,JavaQualifiedName
interface IJavaParentThe interface of an artifact / fragment which may act as the parent of a Java element.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteChild(net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact child)Notifies the parent that the given child shall be deleted.net.ssehub.easy.instantiation.core.model.artifactModel.ArtifactModelgetArtifactModel()Returns theArtifactModel.voidnotifyChildChanged(net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact child)Notifies the parent that one of its childs changed.voidstore()Stores the artifact / fragment.
-
-
-
Method Detail
-
notifyChildChanged
void notifyChildChanged(net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact child)
Notifies the parent that one of its childs changed.- Parameters:
child- the child which changed
-
deleteChild
void deleteChild(net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact child) throws net.ssehub.easy.instantiation.core.model.common.VilExceptionNotifies the parent that the given child shall be deleted. The parent is notified implicitly about the "change" so thatnotifyChildChanged(FragmentArtifact)is not needed- Parameters:
child- the child to be deleted- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException- in case that deletion fails
-
store
void store() throws net.ssehub.easy.instantiation.core.model.common.VilExceptionStores the artifact / fragment.- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException- in case that storing fails
-
getArtifactModel
net.ssehub.easy.instantiation.core.model.artifactModel.ArtifactModel getArtifactModel()
Returns theArtifactModel.- Returns:
- artifactmodel
-
-