Class 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.IStringValueProvider
    A Java source fragment which has a parent.
    Author:
    Holger Eichelberger
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider

        net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private IJavaParent parent  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()  
      protected java.lang.String getNameSafe()
      Returns the name of the artifact ignoring the exception.
      protected IJavaParent getParent()
      Returns the parent of this fragment.
      protected void notifyChanged()
      Notifies the parent about a change in this artifact.
      void store()  
      void update()  
      • 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
    • 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:
        update in interface net.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:
        delete in interface net.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:
        store in interface net.ssehub.easy.instantiation.core.model.artifactModel.IArtifact
        Overrides:
        store in class net.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