public class EnumGenerator extends Object implements CodeGenerator
| Constructor and Description | 
|---|
EnumGenerator()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
generate(Type type)
Generates JAVA source code for generated type  
Type. | 
String | 
getUnitName(Type type)
Returns name of  
type parameter. | 
boolean | 
isAcceptable(Type type)
Checks if the concrete instance of  
type fit to concrete
 implementation of this interface. | 
public boolean isAcceptable(Type type)
CodeGeneratortype fit to concrete
 implementation of this interface.
 (e. g. method return true if in EnumGenerator (which
 implements this interface) has input parameter of type Enumeration (which
 is subtype of Type)isAcceptable in interface CodeGeneratortype - Input type to be processedpublic String generate(Type type)
Type. The code
 is generated according to the template source code template which is
 written in XTEND language.generate in interface CodeGeneratortype - Input type to be processedpublic String getUnitName(Type type)
CodeGeneratortype parameter.getUnitName in interface CodeGeneratortype - Input type to be processedCopyright © 2018 OpenDaylight. All rights reserved.