Class UmpleFile

java.lang.Object
cruise.umple.compiler.MixsetOrFile
cruise.umple.compiler.UmpleFile

public class UmpleFile
extends MixsetOrFile
This class already exists in the util subdirectory It is used for the main file, and there is code to add linkedfiles. It would seem logical to consider using UmpleFile as a subclass of MixsetOrFile. An instance would have to be populated for every file not just the main file. TODO: Users of this can most likely just use File, so this could be refactored out
  • Constructor Details

    • UmpleFile

      public UmpleFile​(java.io.File aFile)
    • UmpleFile

      public UmpleFile​(java.lang.String aPath, java.lang.String aFilename)
    • UmpleFile

      public UmpleFile​(java.lang.String aFullFilename)
  • Method Details

    • getFileName

      public java.lang.String getFileName()
    • getPath

      public java.lang.String getPath()
    • getParent

      public java.lang.String getParent()
    • delete

      public void delete()
      Overrides:
      delete in class MixsetOrFile
    • getName

      public java.lang.String getName()
      Specified by:
      getName in class MixsetOrFile
    • getSimpleFileName

      public java.lang.String getSimpleFileName()
    • getFileStream

      public java.io.InputStream getFileStream() throws java.io.FileNotFoundException
      Throws:
      java.io.FileNotFoundException
    • doesFileExist

      public boolean doesFileExist()
    • addLinkedFiles

      public void addLinkedFiles​(java.lang.String filename)
      this is used to add command-based linked Umple files to the proper list.
    • getLinkedFiles

      public java.lang.String getLinkedFiles()
      this is used to get list of command-based linked Umple files.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class MixsetOrFile