public class BindingGeneratorImpl extends Object implements BindingGenerator, BindingRuntimeGenerator
Constructor and Description |
---|
BindingGeneratorImpl() |
Modifier and Type | Method and Description |
---|---|
BindingRuntimeTypes |
generateTypeMapping(org.opendaylight.yangtools.yang.model.api.SchemaContext context)
Generate Type mapping from specified
SchemaContext for the specified subset of 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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateTypes
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 BindingRuntimeTypes generateTypeMapping(org.opendaylight.yangtools.yang.model.api.SchemaContext context)
BindingRuntimeGenerator
SchemaContext
for the specified subset of modules. The SchemaContext
MUST contain all of the sub modules otherwise the there is no guarantee that result List of Generated Types will
contain correct Generated Types.generateTypeMapping
in interface BindingRuntimeGenerator
context
- Schema ContextCopyright © 2019 OpenDaylight. All rights reserved.