Code synchronization options

Code Synchronization Options in Option List
Code Synchronization Options in Option List

Code

Code Options in Code Synchronization
Code Options in Code Synchronization

 

Option Name
Description
Default attribute type (default int) Type that will be assigned to Attribute upon code generation when type is unspecified.
Default operation return type (default void) Return Type that will be assigned to operation upon code generation when return type is unspecified.
Default parameter type (default int) Type that will be assigned to Parameter upon code generation when type is unspecified.
Generate Pre and Post Condition  
Reverse ubterface getter/ setter as association  
Auto realize interface (default false) Generate operations defined in interface in sub-classes.
Remove method body after changed to abstract method (default true) When an operation is set from non-abstract to abstract, updating code will remove the related method's body.
Use "is" prefix for getters that return boolean (default true) Generate getter's name as isXXXX() for getters that return a boolean value.
Add import statement instead of using fully qualified type name (default true) Add import statement for referencing classes in another package/namespace instead of using fully qualified name inline.
Import fully qualified type name for referenced type (default false) Use fully qualified type name in import statements instead of using wildcard character * to represent importing all classes in package.
Java Collection
  • Array - Generate one-to-many relationship as array
  • Collection - (default) Generate one-to-many relationship as collection
Use generic collections (default true) Allow to use generic collection.
Generate annotation on
  • Property method - Generate annotation on property method
  • Field - Generate annotation on field
Generate annotation in code convention (default true) Generate annotation in code convention.
Text File Encoding
  • System default - (default) The default system encoding will be selected as encoding for source files
  • Other -Specify an encoding for source files
Code Options details

Brace and indentation

Brace and Indentation Options in Code Synchronization
Brace and Indentation Options in Code Synchronization

 

Option Name
Description
Class declaration
  • Same line - (default) Brace for class declaration appear at the same line as the declaration
  • Next line - Brace for class declaration appear at the line after the declaration
Constructor declaration
  • Same line - (default) Brace for constructor appear at the same line as the declaration
  • Next line - Brace for constructor appear at the line after the declaration
Method declaration
  • Same line - (default) Brace for method appear at the same line as the declaration
  • Next line - Brace for method appear at the line after the declaration
Enum declaration
  • Same line - (default) Brace for enumeration appear at the same line as the declaration
  • Next line - Brace for enumeration tor appear at the line after the declaration
Annotation type declaration
  • Same line - (default) Brace for annotation type appear at the same line as the declaration
  • Next line - Brace for annotation type appear at the line after the declaration
Indentation policy
  • Tabs - (default) Use a tab of space as indentation
  • Spaces - Use spaces as indentation. The number of spaces can be defined below
Indentation size The number of spaces to indent.
Brace and Indentation Options details

 

New Lines Options in Code Synchronization
New Lines Options in Code Synchronization

 

Option Name
Description
Before package declaration Number of blank lines to appear before Package declaration.
After package declaration Number of blank lines to appear after Package declaration.
Before import declaration Number of blank lines to appear before import statements.
After import declaration Number of blank lines to appear after import statements.
Before first declaration Number of blank lines to appear before the first declaration within Class declarations.
Before different kind declaration Number of blank lines to appear before a different kind of declaration.
Before field declaration Number of blank lines to appear before field declaration.
Before method declaration Number of blank lines to appear before method declaration.
Before inner type declaration Number of blank lines to appear before inner type declaration.
Number of lines to empty body Number of blank lines to appear in empty method body.
New Lines Options details

Template

Template Options in Code Synchronization
Template Options in Code Synchronization
Option Name
Description
   
   
   
Template Options details