public class BindingGeneratorImpl extends Object implements BindingGenerator
Constructor and Description |
---|
BindingGeneratorImpl(boolean verboseClassComments)
Create a new binding generator.
|
Modifier and Type | Method and Description |
---|---|
List<Type> |
generateTypes(org.opendaylight.yangtools.yang.model.api.SchemaContext context)
Resolves generated types from
context schema nodes of all
modules. |
List<Type> |
generateTypes(org.opendaylight.yangtools.yang.model.api.SchemaContext context,
Set<org.opendaylight.yangtools.yang.model.api.Module> modules)
Resolves generated types from
context schema nodes only for
modules specified in modules
Generated types are created for modules, groupings, types, containers,
lists, choices, augments, rpcs, notification, identities. |
Map<org.opendaylight.yangtools.yang.model.api.Module,ModuleContext> |
getModuleContexts() |
static String |
getterMethodName(String localName,
Type returnType)
Creates the name of the getter method name from
localName . |
public BindingGeneratorImpl(boolean verboseClassComments)
verboseClassComments
- generate verbose commentspublic List<Type> generateTypes(org.opendaylight.yangtools.yang.model.api.SchemaContext context)
context
schema nodes of all
modules.
Generated types are created for modules, groupings, types, containers,
lists, choices, augments, rpcs, notification, identities.generateTypes
in interface BindingGenerator
context
- schema context which contains data about all schema nodes
saved in modulesGeneratedType
GeneratedTransferObject
which are generated from
context
data.IllegalArgumentException
- if arg context
is nullIllegalStateException
- if context
contain no modulesSchemaContext
public List<Type> generateTypes(org.opendaylight.yangtools.yang.model.api.SchemaContext context, Set<org.opendaylight.yangtools.yang.model.api.Module> modules)
context
schema nodes only for
modules specified in modules
Generated types are created for modules, groupings, types, containers,
lists, choices, augments, rpcs, notification, identities.generateTypes
in interface BindingGenerator
context
- schema context which contains data about all schema nodes
saved in modulesmodules
- set of modules for which schema nodes should be generated
typesGeneratedType
or
GeneratedTransferObject
) which:
context
schema nodes andmodules
set.IllegalArgumentException
- context
is null ormodules
is nullIllegalStateException
- if context
contain no modulesModule
,
SchemaContext
public static String getterMethodName(String localName, Type returnType)
localName
.localName
- string with the name of the getter methodreturnType
- return typemethodName
in JAVA method formatpublic Map<org.opendaylight.yangtools.yang.model.api.Module,ModuleContext> getModuleContexts()
Copyright © 2018 OpenDaylight. All rights reserved.