@Beta public class BindingGeneratorImpl extends Object implements BindingGenerator
Constructor and Description |
---|
BindingGeneratorImpl(boolean verboseClassComments)
Creates a new binding generator v2.
|
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 |
Map<org.opendaylight.yangtools.yang.model.api.Module,ModuleContext> |
getModuleContexts(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
Return module contexts from generated types according to context.
|
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 Map<org.opendaylight.yangtools.yang.model.api.Module,ModuleContext> getModuleContexts(org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext)
schemaContext
- - for generating typesCopyright © 2019 OpenDaylight. All rights reserved.