Class JavaFragmentArtifact
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.artifactModel.FragmentArtifact
-
- net.ssehub.easy.instantiation.java.artifacts.JavaFragmentArtifact
-
- All Implemented Interfaces:
IArtifact,IStringValueProvider,IVilType
- Direct Known Subclasses:
JavaAnnotation,JavaParentFragmentArtifact
abstract class JavaFragmentArtifact extends FragmentArtifact implements IStringValueProvider
A Java source fragment which has aparent.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider
IStringValueProvider.StringComparator
-
-
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()Deletes this artifact.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()Stores this artifact in case of changes.voidupdate()Called if the underlying real artifact may have been updated, e.g., by overriding it by another file.-
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
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.artifactModel.IArtifact
accept, getBinary, getName, getText, rename
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider
getStringValue
-
-
-
-
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 VilExceptionDescription copied from interface:IArtifactCalled if the underlying real artifact may have been updated, e.g., by overriding it by another file.- Specified by:
updatein interfaceIArtifact- Throws:
VilException- in case that updating fails
-
delete
public void delete() throws VilExceptionDescription copied from interface:IArtifactDeletes this artifact.- Specified by:
deletein interfaceIArtifact- Throws:
VilException- in case of serious problems so that this operation cannot continue
-
notifyChanged
protected void notifyChanged()
Notifies the parent about a change in this artifact.
-
store
public void store() throws VilExceptionDescription copied from interface:IArtifactStores this artifact in case of changes.- Specified by:
storein interfaceIArtifact- Overrides:
storein classFragmentArtifact- Throws:
VilException- in case of problems storing this artifact
-
getNameSafe
protected java.lang.String getNameSafe()
Returns the name of the artifact ignoring the exception.- Returns:
- the name of the artifact
-
-