Package cruise.umple.compiler
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 Summary
-
Method Summary
Modifier and Type Method Description void
addLinkedFiles(java.lang.String filename)
this is used to add command-based linked Umple files to the proper list.void
delete()
boolean
doesFileExist()
java.lang.String
getFileName()
java.io.InputStream
getFileStream()
java.lang.String
getLinkedFiles()
this is used to get list of command-based linked Umple files.java.lang.String
getName()
java.lang.String
getParent()
java.lang.String
getPath()
java.lang.String
getSimpleFileName()
java.lang.String
toString()
Methods inherited from class cruise.umple.compiler.MixsetOrFile
getFeatureLeaf, getIsMixset, getUmpleModel, getUseUmpleFile, getUseUmpleLine, hasFeatureLeaf, hasUmpleModel, isIsMixset, setFeatureLeaf, setIsMixset, setUmpleModel, setUseUmpleFile, setUseUmpleLine
-
Constructor Details
-
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 classMixsetOrFile
-
getName
public java.lang.String getName()- Specified by:
getName
in classMixsetOrFile
-
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 classMixsetOrFile
-