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(FragmentArtifact child)Notifies the parent that the given child shall be deleted.ArtifactModelgetArtifactModel()Returns theArtifactModel.voidnotifyChildChanged(FragmentArtifact child)Notifies the parent that one of its childs changed.voidstore()Stores the artifact / fragment.
-
-
-
Method Detail
-
notifyChildChanged
void notifyChildChanged(FragmentArtifact child)
Notifies the parent that one of its childs changed.- Parameters:
child- the child which changed
-
deleteChild
void deleteChild(FragmentArtifact child) throws VilException
Notifies 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:
VilException- in case that deletion fails
-
store
void store() throws VilExceptionStores the artifact / fragment.- Throws:
VilException- in case that storing fails
-
getArtifactModel
ArtifactModel getArtifactModel()
Returns theArtifactModel.- Returns:
- artifactmodel
-
-