formatter package
The formatter package contains different formatting classes:
- BinaryDiffFormatter: This class formats the difference of two contents.
- HexFormatter: This class formats data as hex representation.
- SQLFileFormatter: The SQLFileFormatter formats a SQL content.
- JavaFileFormatter: The JavaFileFormatter formats a Java content.
JavaFileFormatterConfig
The following table shows the JavaFileFormatter
configuration:
Key |
Default value |
Description |
---|---|---|
|
Defines the file header |
|
|
Defines the file license |
|
|
Defines the file trailer |
|
|
|
Flag to overwrite an existing file |
|
|
Flag to update an existing file |
|
|
Defines the newline characters |
|
|
Defines the indention symbol |
|
|
The number of indent symbols for an indention step |
|
|
Defines the line max. length |
|
|
Flag to force line breaks |
|
|
Defines the newlines after a package |
|
|
Defines the newlines after an import |
|
|
Defines the newlines after a static import |
|
|
Defines the newlines after a static block |
|
|
Defines the newlines between static blocks |
|
|
Defines the newlines after an enum type |
|
|
Defines the newlines betwwn enum types |
|
|
Defines the newlines after an enumeration block |
|
|
Defines the newlines between enumeration blocks |
|
|
Defines the newlines after a annotation declaration |
|
|
Defines the newlines between annotation declarations |
|
|
Defines the newlines between annotation methods |
|
|
Defines the newlines after a method |
|
|
Defines the newlines between methods |
|
|
Defines the newlines before an attribute comment |
|
|
Defines the newlines between attributes |
|
|
Defines the newlines after the attribute definitions |
|
|
Defines the newlines before a brace |
|
|
Defines the newlines before the footer comment |
|
|
Flag to force a new line before throws defintion |
|
|
Defines the spaces left of a assign statement |
|
|
Defines the spaces right of a assign statement |
|
|
Defines the spaces between string constants |
|
|
Flag to keep concat string format |
|
|
Defines the spaces around a type casting |
|
|
Defines the spaces in parameterlist |
|
|
Defines the spaces after a comma in the parameter list |
|
|
Defines the spaces after comma in throws definion |
|
|
Defines the spaces in catch block |
|
|
Defines the spaces in for loop |
|
|
Defines the spaces in while loop |
|
|
Defines the spaces in if block |
|
|
Flag to indent attribute length by attribute initialisation |
|
|
True means attributes are placed at the end of a class, otherwise false |
|
|
Flag to enable the alphabetical sort order for attributes. |
|
|
Flag to enable the alphabetical sort order for methods. |
|
Defines a mapping of a system user identification and a name. Example: |
|
|
Defines a mapping between a package/class and the output path. The package/class
represent the key which supports a regular expression!
Example: The first entry defines the rule to paste all tests subpackages into the src-tests directory. The second rule moves everything from the jptools.demo subpackage into the src-demo directory. IMPORTANT: The sort order of the entries are defined with the number before the packagename. The sort order corresponds to the rules and is important! |
|
|
|
Defines the javadoc version tag |
file header:
/**************************************************************************** * File : @FILENAME@ * Author : @AUTHOR@ * Date : @CREATION_DATE@ * Last change : @LAST_CHANGE@ * Version : @VERSION@
file license:
* * Copyright (C) @YEAR@ by @AUTHOR@ * **************************************************************************** * This file is part of the jpTools library * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * **************************************************************************** * @ID@ **************************************************************************** */
file footer:
/****************************************************************************/ /* EOF */ /****************************************************************************/