Class AlternativeFragment

    • Constructor Detail

      • AlternativeFragment

        AlternativeFragment​(FragmentArtifact thenFragment,
                            FragmentArtifact elseFragment)
        Creates a new alternative fragment.
        Parameters:
        thenFragment - the then-fragment
        elseFragment - the else-fragment
    • Method Detail

      • getThenFragment

        public FragmentArtifact getThenFragment()
        Returns the then-fragment.
        Returns:
        the then-fragment
      • getElseFragment

        public FragmentArtifact getElseFragment()
        Returns the else-fragment.
        Returns:
        the else-fragment
      • delete

        public void delete()
                    throws VilException
        Description copied from interface: IArtifact
        Deletes this artifact.
        Throws:
        VilException - in case of serious problems so that this operation cannot continue
      • getName

        public java.lang.String getName()
                                 throws VilException
        Description copied from interface: IArtifact
        Returns the name of this artifact.
        Returns:
        the name of this artifact
        Throws:
        VilException - in case of serious problems so that this operation cannot continue
      • rename

        public void rename​(java.lang.String name)
                    throws VilException
        Description copied from interface: IArtifact
        Renames this artifact.
        Parameters:
        name - the new name of this artifact
        Throws:
        VilException - in case of serious problems so that this operation cannot continue
      • getText

        public Text getText()
                     throws VilException
        Description copied from interface: IArtifact
        Returns the textual representation of the contents of this artifact for manipulation. In case of binary artifacts, the returned object may be empty.
        Returns:
        the textual representation of the contents
        Throws:
        VilException - in case of obtaining the representation causes serious problems
      • getBinary

        public Binary getBinary()
                         throws VilException
        Description copied from interface: IArtifact
        Returns the binary representation of the contents of this artifact for manipulation.
        Returns:
        the binary representation of the contents
        Throws:
        VilException - in case of obtaining the representation causes serious problems
      • accept

        public void accept​(IArtifactVisitor visitor)
        Description copied from interface: IArtifact
        Visits this artifact (and dependent on the visitor also contained artifacts and fragments) using the given visitor.
        Specified by:
        accept in interface IArtifact
        Overrides:
        accept in class VariabilityFragment
        Parameters:
        visitor - the visitor used for visiting this artifact
      • update

        public void update()
                    throws VilException
        Description copied from interface: IArtifact
        Called if the underlying real artifact may have been updated, e.g., by overriding it by another file.
        Throws:
        VilException - in case that updating fails