added some comments to generation templates.

pull/10/head
Markus Kreth 3 years ago
parent 4c2b2a5580
commit 959b7e924c
  1. 38
      .classpath
  2. 6
      .gitignore
  3. 2
      src/main/resources/template/enum_template.tpl
  4. 3
      src/main/resources/template/enum_template_with_initializer.tpl
  5. 2
      src/main/resources/template/enum_template_with_inner_propertyresourcebundle.tpl

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

6
.gitignore vendored

@ -1,3 +1,5 @@
.classpath
\.settings/ .project
.factorypath
.settings
target target

@ -8,6 +8,8 @@ import javax.annotation.processing.Generated;
/** /**
* Property keys from ${fileName} * Property keys from ${fileName}
* {@link #getValue()} gives the key for the entry, with {@link #getString(UnaryOperator<String>)}
* the value is given directly.
*/ */
@Generated(date = "${generation_date}", value = "${generator_name}") @Generated(date = "${generation_date}", value = "${generator_name}")
public enum ${classname} { public enum ${classname} {

@ -8,6 +8,8 @@ import javax.annotation.processing.Generated;
/** /**
* Property keys from ${fileName} * Property keys from ${fileName}
* {@link #getValue()} gives the key for the entry, with {@link #getText()} the value for the key is given directly.
* This enum needs to be initialized before any use by {@link #init(UnaryOperator)}.
*/ */
@Generated(date = "${generation_date}", value = "${generator_name}") @Generated(date = "${generation_date}", value = "${generator_name}")
public enum ${classname} { public enum ${classname} {
@ -19,6 +21,7 @@ public enum ${classname} {
${e.constant} ("${e.key}")<#sep>, ${e.constant} ("${e.key}")<#sep>,
</#sep> </#sep>
</#list>; </#list>;
private static UnaryOperator<String> function; private static UnaryOperator<String> function;
private final String value; private final String value;

@ -9,6 +9,8 @@ import javax.annotation.processing.Generated;
/** /**
* Property keys from ${fileName} * Property keys from ${fileName}
* {@link #getValue()} gives the key for the entry, with {@link #getText()} the value for the key is given directly.
* Initializationis generated also.
*/ */
@Generated(date = "${generation_date}", value = "${generator_name}") @Generated(date = "${generation_date}", value = "${generator_name}")
public enum ${classname} { public enum ${classname} {

Loading…
Cancel
Save