Class BuilderGenerator
- java.lang.Object
-
- org.opendaylight.mdsal.binding.java.api.generator.BuilderGenerator
-
- All Implemented Interfaces:
CodeGenerator
public final class BuilderGenerator extends Object implements CodeGenerator
Transformator of the data from the virtual form to JAVA programming language. The result source code represent java class. For generation of the source code is used the template written in XTEND language.
-
-
Constructor Summary
Constructors Constructor Description BuilderGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generate(Type type)
Generates JAVA source code for generated typeType
.String
getUnitName(Type type)
Returns name oftype
parameter.boolean
isAcceptable(Type type)
Passes via list of implemented types intype
.
-
-
-
Method Detail
-
isAcceptable
public boolean isAcceptable(Type type)
Passes via list of implemented types intype
.- Specified by:
isAcceptable
in interfaceCodeGenerator
- Parameters:
type
- JAVAType
- Returns:
- boolean value which is true if any of implemented types is of the type
Augmentable
.
-
generate
public String generate(Type type)
Generates JAVA source code for generated typeType
. The code is generated according to the template source code template which is written in XTEND language.- Specified by:
generate
in interfaceCodeGenerator
- Parameters:
type
- Input type to be processed- Returns:
- generated JAVA code
-
getUnitName
public String getUnitName(Type type)
Description copied from interface:CodeGenerator
Returns name oftype
parameter.- Specified by:
getUnitName
in interfaceCodeGenerator
- Parameters:
type
- Input type to be processed- Returns:
- name of generated unit
-
-