Class CodeGeneratorWithSubptions

java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
All Implemented Interfaces:
CodeGenerator
Direct Known Subclasses:
AlloyGenerator, CodeAnalysisGenerator, EcoreGenerator, EventSequenceGenerator, ExternalGrammarGenerator, GvFeatureDiagramGenerator, GvStateDiagramGenerator, JsonGenerator, JsonMixedGenerator, NothingGenerator, NuSMVGenerator, NuSMVOptimizerGenerator, PapyrusGenerator, RTCppGenerator, ScxmlGenerator, SimpleMetricsGenerator, SimulateGenerator, StateTablesGenerator, StructureDiagramGenerator, SuperCodeGenerator, SuperGvGenerator, TestGenerator, TextUmlGenerator, UmpleAnnotaiveToCompositionGenerator, UmpleSelfGenerator, USEGenerator, XmiGenerator, XtextGenerator, YumlGenerator

public class CodeGeneratorWithSubptions
extends java.lang.Object
implements CodeGenerator
Default implementation for generators with suboptions
  • Constructor Summary

    Constructors 
    Constructor Description
    CodeGeneratorWithSubptions()  
  • Method Summary

    Modifier and Type Method Description
    boolean addSuboption​(java.lang.String aSuboption)  
    void delete()  
    void generate()
    Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
    java.lang.String getSuboption​(int index)  
    java.lang.String[] getSuboptions()  
    double getSuboptionValue​(java.lang.String subopt, java.lang.Double defaultVal)
    this is used to get the separator value after the = for suboptions and can be used for any other
    boolean hasSuboption​(java.lang.String subopt)  
    boolean hasSuboptions()  
    int indexOfSuboption​(java.lang.String aSuboption)  
    int numberOfSuboptions()  
    void postpare()
    Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
    void prepare()
    Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
    boolean removeSuboption​(java.lang.String aSuboption)  
    boolean setModel​(UmpleModel aUmpleModel)
    Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
    boolean setOutput​(java.lang.String aString)
    Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
    boolean setSuboption​(java.lang.String subopt)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • addSuboption

      public boolean addSuboption​(java.lang.String aSuboption)
    • removeSuboption

      public boolean removeSuboption​(java.lang.String aSuboption)
    • getSuboption

      public java.lang.String getSuboption​(int index)
    • getSuboptions

      public java.lang.String[] getSuboptions()
    • numberOfSuboptions

      public int numberOfSuboptions()
    • hasSuboptions

      public boolean hasSuboptions()
    • indexOfSuboption

      public int indexOfSuboption​(java.lang.String aSuboption)
    • delete

      public void delete()
    • hasSuboption

      public boolean hasSuboption​(java.lang.String subopt)
      Specified by:
      hasSuboption in interface CodeGenerator
    • setSuboption

      public boolean setSuboption​(java.lang.String subopt)
      Specified by:
      setSuboption in interface CodeGenerator
    • getSuboptionValue

      public double getSuboptionValue​(java.lang.String subopt, java.lang.Double defaultVal)
      this is used to get the separator value after the = for suboptions and can be used for any other
      Specified by:
      getSuboptionValue in interface CodeGenerator
    • setModel

      public boolean setModel​(UmpleModel aUmpleModel)
      Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
      Specified by:
      setModel in interface CodeGenerator
    • setOutput

      public boolean setOutput​(java.lang.String aString)
      Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
      Specified by:
      setOutput in interface CodeGenerator
    • generate

      public void generate()
      Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
      Specified by:
      generate in interface CodeGenerator
    • prepare

      public void prepare()
      Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
      Specified by:
      prepare in interface CodeGenerator
    • postpare

      public void postpare()
      Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.
      Specified by:
      postpare in interface CodeGenerator
    • toString

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