@Beta public final class ModuleContext extends Object
Constructor and Description |
---|
ModuleContext() |
Modifier and Type | Method and Description |
---|---|
void |
addAugmentType(GeneratedTypeBuilder b) |
void |
addCaseType(org.opendaylight.yangtools.yang.model.api.SchemaPath p,
GeneratedTypeBuilder b) |
void |
addChildNodeType(org.opendaylight.yangtools.yang.model.api.SchemaNode p,
GeneratedTypeBuilder b) |
void |
addChoiceToCaseMapping(Type choiceType,
Type caseType,
org.opendaylight.yangtools.yang.model.api.CaseSchemaNode schema) |
void |
addGeneratedTOBuilder(org.opendaylight.yangtools.yang.model.api.SchemaPath schemaPath,
GeneratedTOBuilder b) |
void |
addGroupingType(org.opendaylight.yangtools.yang.model.api.GroupingDefinition p,
GeneratedTypeBuilder b) |
void |
addIdentityType(org.opendaylight.yangtools.yang.common.QName name,
GeneratedTypeBuilder b) |
void |
addInnerTypedefType(org.opendaylight.yangtools.yang.model.api.SchemaPath path,
Type builder)
Adds mapping between schema path and inner enum, inner union, inner bits.
|
void |
addKeyType(org.opendaylight.yangtools.yang.model.api.SchemaPath path,
GeneratedTypeBuilder genType) |
void |
addModuleNode(GeneratedTypeBuilder moduleNode) |
void |
addTargetToAugmentation(GeneratedTypeBuilder builder,
org.opendaylight.yangtools.yang.model.api.SchemaPath augmentTarget) |
void |
addTopLevelNodeType(GeneratedTypeBuilder b) |
void |
addTypedefType(org.opendaylight.yangtools.yang.model.api.SchemaPath p,
Type t) |
void |
addTypeToAugmentations(GeneratedTypeBuilder builder,
List<org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> schemaList) |
void |
addTypeToSchema(Type type,
org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus schema) |
void |
cleanPackagesMap() |
List<GeneratedTypeBuilder> |
getAugmentations() |
GeneratedTypeBuilder |
getCase(org.opendaylight.yangtools.yang.model.api.SchemaPath p) |
Map<org.opendaylight.yangtools.yang.model.api.SchemaPath,GeneratedTypeBuilder> |
getCases() |
com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.CaseSchemaNode> |
getCaseTypeToSchemas() |
GeneratedTypeBuilder |
getChildNode(org.opendaylight.yangtools.yang.model.api.SchemaPath p) |
Map<org.opendaylight.yangtools.yang.model.api.SchemaPath,GeneratedTypeBuilder> |
getChildNodes() |
com.google.common.collect.Multimap<Type,Type> |
getChoiceToCases() |
List<Type> |
getGeneratedTypes() |
GeneratedTypeBuilder |
getGrouping(org.opendaylight.yangtools.yang.model.api.SchemaPath p) |
Map<org.opendaylight.yangtools.yang.model.api.SchemaPath,GeneratedTypeBuilder> |
getGroupings() |
Map<org.opendaylight.yangtools.yang.common.QName,GeneratedTypeBuilder> |
getIdentities() |
Type |
getInnerType(org.opendaylight.yangtools.yang.model.api.SchemaPath path) |
GeneratedTOBuilder |
getKeyGenTO(org.opendaylight.yangtools.yang.model.api.SchemaPath path) |
GeneratedTypeBuilder |
getKeyType(org.opendaylight.yangtools.yang.model.api.SchemaPath path) |
GeneratedTypeBuilder |
getModuleNode() |
com.google.common.collect.ListMultimap<String,String> |
getPackagesMap() |
com.google.common.collect.BiMap<org.opendaylight.yangtools.yang.model.api.SchemaPath,Type> |
getTargetToAugmentation() |
Set<GeneratedTypeBuilder> |
getTopLevelNodes() |
Map<org.opendaylight.yangtools.yang.model.api.SchemaPath,Type> |
getTypedefs() |
com.google.common.collect.Multimap<Type,org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> |
getTypeToAugmentations() |
Map<Type,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> |
getTypeToSchema()
Returns mapping of type to its schema.
|
void |
putToPackagesMap(String packageName,
String actualClassName) |
public GeneratedTypeBuilder getModuleNode()
public GeneratedTypeBuilder getChildNode(org.opendaylight.yangtools.yang.model.api.SchemaPath p)
public GeneratedTypeBuilder getGrouping(org.opendaylight.yangtools.yang.model.api.SchemaPath p)
public GeneratedTypeBuilder getCase(org.opendaylight.yangtools.yang.model.api.SchemaPath p)
public void addModuleNode(GeneratedTypeBuilder moduleNode)
public void addGeneratedTOBuilder(org.opendaylight.yangtools.yang.model.api.SchemaPath schemaPath, GeneratedTOBuilder b)
public void addChildNodeType(org.opendaylight.yangtools.yang.model.api.SchemaNode p, GeneratedTypeBuilder b)
public void addGroupingType(org.opendaylight.yangtools.yang.model.api.GroupingDefinition p, GeneratedTypeBuilder b)
public void addTypedefType(org.opendaylight.yangtools.yang.model.api.SchemaPath p, Type t)
public void addCaseType(org.opendaylight.yangtools.yang.model.api.SchemaPath p, GeneratedTypeBuilder b)
public void addIdentityType(org.opendaylight.yangtools.yang.common.QName name, GeneratedTypeBuilder b)
public void addTopLevelNodeType(GeneratedTypeBuilder b)
public void addAugmentType(GeneratedTypeBuilder b)
public Map<org.opendaylight.yangtools.yang.model.api.SchemaPath,GeneratedTypeBuilder> getChildNodes()
public Map<org.opendaylight.yangtools.yang.model.api.SchemaPath,GeneratedTypeBuilder> getGroupings()
public Map<org.opendaylight.yangtools.yang.model.api.SchemaPath,GeneratedTypeBuilder> getCases()
public Map<org.opendaylight.yangtools.yang.common.QName,GeneratedTypeBuilder> getIdentities()
public Set<GeneratedTypeBuilder> getTopLevelNodes()
public List<GeneratedTypeBuilder> getAugmentations()
public com.google.common.collect.Multimap<Type,org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> getTypeToAugmentations()
public com.google.common.collect.BiMap<org.opendaylight.yangtools.yang.model.api.SchemaPath,Type> getTargetToAugmentation()
public void addTypeToAugmentations(GeneratedTypeBuilder builder, List<org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> schemaList)
public void addTargetToAugmentation(GeneratedTypeBuilder builder, org.opendaylight.yangtools.yang.model.api.SchemaPath augmentTarget)
public void addChoiceToCaseMapping(Type choiceType, Type caseType, org.opendaylight.yangtools.yang.model.api.CaseSchemaNode schema)
public com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.CaseSchemaNode> getCaseTypeToSchemas()
public Map<Type,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> getTypeToSchema()
DataSchemaNode
or AugmentationSchemaNode
public void addTypeToSchema(Type type, org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus schema)
public void addInnerTypedefType(org.opendaylight.yangtools.yang.model.api.SchemaPath path, Type builder)
path
- builder
- public Type getInnerType(org.opendaylight.yangtools.yang.model.api.SchemaPath path)
public void addKeyType(org.opendaylight.yangtools.yang.model.api.SchemaPath path, GeneratedTypeBuilder genType)
public GeneratedTypeBuilder getKeyType(org.opendaylight.yangtools.yang.model.api.SchemaPath path)
public GeneratedTOBuilder getKeyGenTO(org.opendaylight.yangtools.yang.model.api.SchemaPath path)
public void cleanPackagesMap()
Copyright © 2019 OpenDaylight. All rights reserved.