Class InterfaceGenerator
java.lang.Object
org.opendaylight.yangtools.binding.codegen.InterfaceGenerator
- All Implemented Interfaces:
CodeGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates JAVA source code for generated typeType
.getUnitName
(Type type) Returns name oftype
parameter.boolean
isAcceptable
(Type type) Checks if the concrete instance oftype
fit to concrete implementation of this interface (e.g.
-
Constructor Details
-
InterfaceGenerator
public InterfaceGenerator()
-
-
Method Details
-
isAcceptable
Description copied from interface:CodeGenerator
Checks if the concrete instance oftype
fit to concrete implementation of this interface (e.g. method return true if inEnumGenerator
(which implements this interface) has input parameter of type Enumeration (which is subtype of Type).- Specified by:
isAcceptable
in interfaceCodeGenerator
- Parameters:
type
- Input type to be processed- Returns:
- true if type is acceptable for processing.
-
generate
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
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
-