import org.opendaylight.mdsal.binding.model.api.Type;
/**
- *
- * Transformator of the data from the virtual form to JAVA source code. The
- * result source code represents JAVA enumeration. For generation of the source
- * code is used the template written in XTEND language.
- *
+ * Transformator of the data from the virtual form to JAVA source code. The result source code represents JAVA
+ * enumeration. For generation of the source code is used the template written in XTEND language.
*/
public class EnumGenerator implements CodeGenerator {
-
@Override
- public boolean isAcceptable(Type type) {
+ public boolean isAcceptable(final Type type) {
return type instanceof Enumeration;
}
/**
- * Generates JAVA source code for generated type <code>Type</code>. The code
- * is generated according to the template source code template which is
- * written in XTEND language.
+ * Generates JAVA source code for generated type <code>Type</code>. The code is generated according to the template
+ * source code template which is written in XTEND language.
*/
@Override
- public String generate(Type type) {
+ public String generate(final Type type) {
if (type instanceof Enumeration) {
final Enumeration enums = (Enumeration) type;
final EnumTemplate enumTemplate = new EnumTemplate(enums);
}
@Override
- public String getUnitName(Type type) {
+ public String getUnitName(final Type type) {
return type.getName();
}
-
}