Package cruise.umple.compiler
Class Uigu2Generator
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
cruise.umple.compiler.SuperCodeGenerator
cruise.umple.compiler.PhpGenerator
cruise.umple.compiler.Uigu2Generator
- All Implemented Interfaces:
CodeGenerator
,CodeTranslator
public class Uigu2Generator extends PhpGenerator
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.Charset
CHARSET
static java.lang.String
NL
static java.lang.String
SETUP_RELATIVE_PATHNAME
Pathname to setup.php file, relative to outputPath We'll only know outputPath at execution time, so leave it as a String pathnameFields inherited from class cruise.umple.compiler.SuperCodeGenerator
ConstraintLookupMap, TraceLookupMap, UmpleToPrimitiveMap
-
Constructor Summary
Constructors Constructor Description Uigu2Generator()
-
Method Summary
Modifier and Type Method Description void
delete()
void
generate()
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.java.nio.file.Path
getOutputPath()
Path to where the PhpGenerator will place the domain classesboolean
setOutputPath(java.nio.file.Path aOutputPath)
java.lang.String
toString()
Methods inherited from class cruise.umple.compiler.PhpGenerator
getLanguageFor, initializeLangaugeBasedVariables, isNullable, nameOf, prepare, relatedTranslate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translateInterfaceValue, typeOf, umpleCVarToLanguagePrimitive
Methods inherited from class cruise.umple.compiler.SuperCodeGenerator
getConstraintWithinConstructor, getDontDisplayNextAccessor, getModel, getOutput, getParameterConstraintName, getType, isConstraintWithinConstructor, isDontDisplayNextAccessor, postpare, prepareConstraint, prepareConstraints, setConstraintWithinConstructor, setDontDisplayNextAccessor, setModel, setOutput, setParameterConstraintName, translate, translate, translate
Methods inherited from class cruise.umple.compiler.CodeGeneratorWithSubptions
addSuboption, getSuboption, getSuboptions, getSuboptionValue, hasSuboption, hasSuboptions, indexOfSuboption, numberOfSuboptions, removeSuboption, setSuboption
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface cruise.umple.compiler.CodeTranslator
translate, translate, translate
-
Field Details
-
CHARSET
public static final java.nio.charset.Charset CHARSET -
NL
public static final java.lang.String NL -
SETUP_RELATIVE_PATHNAME
public static final java.lang.String SETUP_RELATIVE_PATHNAMEPathname to setup.php file, relative to outputPath We'll only know outputPath at execution time, so leave it as a String pathname- See Also:
- Constant Field Values
-
-
Constructor Details
-
Uigu2Generator
public Uigu2Generator()
-
-
Method Details
-
setOutputPath
public boolean setOutputPath(java.nio.file.Path aOutputPath) -
getOutputPath
public java.nio.file.Path getOutputPath()Path to where the PhpGenerator will place the domain classes -
delete
public void delete()- Overrides:
delete
in classPhpGenerator
-
generate
public void generate()Description copied from class:CodeGeneratorWithSubptions
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
generate
in interfaceCodeGenerator
- Overrides:
generate
in classPhpGenerator
-
toString
public java.lang.String toString()- Overrides:
toString
in classSuperCodeGenerator
-