Class JavaFragmentArtifact
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact
-
- net.ssehub.easy.instantiation.java.artifacts.JavaFragmentArtifact
-
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.artifactModel.IArtifact,net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider,net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
- Direct Known Subclasses:
JavaAnnotation,JavaParentFragmentArtifact
abstract class JavaFragmentArtifact extends net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact implements net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProviderA Java source fragment which has aparent.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private IJavaParentparent
-
Constructor Summary
Constructors Modifier Constructor Description protectedJavaFragmentArtifact(IJavaParent parent)Creates a Java fragment artifact.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected java.lang.StringgetNameSafe()Returns the name of the artifact ignoring the exception.protected IJavaParentgetParent()Returns the parent of this fragment.protected voidnotifyChanged()Notifies the parent about a change in this artifact.voidstore()voidupdate()-
Methods inherited from class net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact
exists, lastModification
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
parent
private IJavaParent parent
-
-
Constructor Detail
-
JavaFragmentArtifact
protected JavaFragmentArtifact(IJavaParent parent)
Creates a Java fragment artifact.- Parameters:
parent- the parent
-
-
Method Detail
-
getParent
protected IJavaParent getParent()
Returns the parent of this fragment.- Returns:
- the parent
-
update
public void update() throws net.ssehub.easy.instantiation.core.model.common.VilException- Specified by:
updatein interfacenet.ssehub.easy.instantiation.core.model.artifactModel.IArtifact- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException
-
delete
public void delete() throws net.ssehub.easy.instantiation.core.model.common.VilException- Specified by:
deletein interfacenet.ssehub.easy.instantiation.core.model.artifactModel.IArtifact- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException
-
notifyChanged
protected void notifyChanged()
Notifies the parent about a change in this artifact.
-
store
public void store() throws net.ssehub.easy.instantiation.core.model.common.VilException- Specified by:
storein interfacenet.ssehub.easy.instantiation.core.model.artifactModel.IArtifact- Overrides:
storein classnet.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact- Throws:
net.ssehub.easy.instantiation.core.model.common.VilException
-
getNameSafe
protected java.lang.String getNameSafe()
Returns the name of the artifact ignoring the exception.- Returns:
- the name of the artifact
-
-