Modifier and Type | Method and Description |
---|---|
protected static CharSequence |
AbstractSource.assign(Type type,
String var,
CharSequence value) |
protected static CharSequence |
AbstractSource.cast(Type type,
CharSequence value) |
Modifier and Type | Method and Description |
---|---|
Collection<Type> |
BindingRuntimeTypes.findCases(Type choiceType) |
Optional<Type> |
BindingRuntimeTypes.findIdentity(org.opendaylight.yangtools.yang.common.QName qname) |
Optional<Type> |
BindingRuntimeTypes.findType(org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus schema) |
default List<Type> |
BindingGenerator.generateTypes(org.opendaylight.yangtools.yang.model.api.SchemaContext context)
Generate Types from whole Schema Context.
|
List<Type> |
BindingGenerator.generateTypes(org.opendaylight.yangtools.yang.model.api.SchemaContext context,
Set<org.opendaylight.yangtools.yang.model.api.Module> modules)
Generate Types from Schema Context restricted by sub set of specified Modules.
|
com.google.common.collect.Multimap<Type,Type> |
BindingRuntimeTypes.getChoiceToCases() |
com.google.common.collect.Multimap<Type,Type> |
BindingRuntimeTypes.getChoiceToCases() |
Modifier and Type | Method and Description |
---|---|
Optional<org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> |
BindingRuntimeTypes.findAugmentation(Type type) |
Collection<Type> |
BindingRuntimeTypes.findCases(Type choiceType) |
Optional<org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> |
BindingRuntimeTypes.findSchema(Type type) |
Class<?> |
ClassLoadingStrategy.loadClass(Type type) |
Constructor and Description |
---|
BindingRuntimeTypes(Map<Type,org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> typeToAugmentation,
com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> typeToDefiningSchema,
com.google.common.collect.Multimap<Type,Type> choiceToCases,
Map<org.opendaylight.yangtools.yang.common.QName,Type> identities) |
BindingRuntimeTypes(Map<Type,org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> typeToAugmentation,
com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> typeToDefiningSchema,
com.google.common.collect.Multimap<Type,Type> choiceToCases,
Map<org.opendaylight.yangtools.yang.common.QName,Type> identities) |
BindingRuntimeTypes(Map<Type,org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> typeToAugmentation,
com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> typeToDefiningSchema,
com.google.common.collect.Multimap<Type,Type> choiceToCases,
Map<org.opendaylight.yangtools.yang.common.QName,Type> identities) |
BindingRuntimeTypes(Map<Type,org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> typeToAugmentation,
com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> typeToDefiningSchema,
com.google.common.collect.Multimap<Type,Type> choiceToCases,
Map<org.opendaylight.yangtools.yang.common.QName,Type> identities) |
BindingRuntimeTypes(Map<Type,org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> typeToAugmentation,
com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> typeToDefiningSchema,
com.google.common.collect.Multimap<Type,Type> choiceToCases,
Map<org.opendaylight.yangtools.yang.common.QName,Type> identities) |
Modifier and Type | Method and Description |
---|---|
Type |
ModuleContext.getInnerType(org.opendaylight.yangtools.yang.model.api.SchemaPath path) |
Modifier and Type | Method and Description |
---|---|
List<Type> |
BindingGeneratorImpl.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 . |
com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.CaseSchemaNode> |
ModuleContext.getCaseTypeToSchemas() |
com.google.common.collect.Multimap<Type,Type> |
ModuleContext.getChoiceToCases() |
com.google.common.collect.Multimap<Type,Type> |
ModuleContext.getChoiceToCases() |
Map<org.opendaylight.yangtools.yang.model.api.SchemaPath,Type> |
ModuleContext.getTypedefs() |
com.google.common.collect.BiMap<Type,org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> |
ModuleContext.getTypeToAugmentation() |
Map<Type,org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus> |
ModuleContext.getTypeToSchema()
Returns mapping of type to its schema.
|
Modifier and Type | Method and Description |
---|---|
void |
ModuleContext.addChoiceToCaseMapping(Type choiceType,
Type caseType,
org.opendaylight.yangtools.yang.model.api.CaseSchemaNode schema) |
void |
ModuleContext.addTypedefType(org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> def,
Type type) |
protected void |
ModuleContext.addTypeToSchema(Type type,
org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> typedef) |
Class<?> |
GeneratedClassLoadingStrategy.loadClass(Type type) |
Modifier and Type | Method and Description |
---|---|
Type |
TypeProvider.javaTypeForSchemaDefinitionType(org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> type,
org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode)
Resolve of yang Type Definition to it's java counter part.
|
Type |
TypeProvider.javaTypeForSchemaDefinitionType(org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> type,
org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode,
Restrictions restrictions) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier,Type> |
BindingRuntimeContext.getAvailableAugmentationTypes(org.opendaylight.yangtools.yang.model.api.DataNodeContainer container) |
com.google.common.collect.ImmutableMap<Type,Map.Entry<Type,Type>> |
BindingRuntimeContext.getChoiceCaseChildren(org.opendaylight.yangtools.yang.model.api.DataNodeContainer schema) |
com.google.common.collect.ImmutableMap<Type,Map.Entry<Type,Type>> |
BindingRuntimeContext.getChoiceCaseChildren(org.opendaylight.yangtools.yang.model.api.DataNodeContainer schema) |
com.google.common.collect.ImmutableMap<Type,Map.Entry<Type,Type>> |
BindingRuntimeContext.getChoiceCaseChildren(org.opendaylight.yangtools.yang.model.api.DataNodeContainer schema) |
Modifier and Type | Field and Description |
---|---|
protected Type |
AbstractBuilderTemplate.augmentType
Generated property is set if among methods is found one with the name GET_AUGMENTATION_METHOD_NAME.
|
protected Type |
AbstractBuilderTemplate.keyType
GeneratedType for key type, null if this type does not have a key.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
YangModuleInfoTemplate.addActualTypeParameters(StringBuilder builder,
Type type) |
protected CharSequence |
BaseTemplate.checkArgument(GeneratedProperty property,
Restrictions restrictions,
Type actualType,
String value) |
String |
InterfaceGenerator.generate(Type type)
Generates JAVA source code for generated type
Type . |
String |
TOGenerator.generate(Type type)
Generates JAVA source code for generated type
Type . |
String |
BuilderGenerator.generate(Type type)
Generates JAVA source code for generated type
Type . |
String |
EnumGenerator.generate(Type type)
Generates JAVA source code for generated type
Type . |
protected CharSequence |
BaseTemplate.generateCheckers(GeneratedProperty field,
Restrictions restrictions,
Type actualType) |
protected CharSequence |
BuilderImplTemplate.generateCopyAugmentation(Type implType) |
protected abstract CharSequence |
AbstractBuilderTemplate.generateCopyAugmentation(Type implType) |
protected CharSequence |
BuilderTemplate.generateCopyAugmentation(Type implType) |
protected CharSequence |
AbstractBuilderTemplate.generateCopyConstructor(Type fromType,
Type implType) |
String |
YangModuleInfoTemplate.getExplicitType(Type type) |
String |
YangModuleInfoTemplate.getParameters(Type[] pTypes) |
String |
InterfaceGenerator.getUnitName(Type type) |
String |
TOGenerator.getUnitName(Type type) |
String |
BuilderGenerator.getUnitName(Type type) |
String |
EnumGenerator.getUnitName(Type type) |
boolean |
InterfaceGenerator.isAcceptable(Type type) |
boolean |
TOGenerator.isAcceptable(Type type) |
boolean |
BuilderGenerator.isAcceptable(Type type)
Passes via list of implemented types in
type . |
boolean |
EnumGenerator.isAcceptable(Type type) |
void |
YangModuleInfoTemplate.putTypeIntoImports(Type type) |
Constructor and Description |
---|
AbstractBuilderTemplate(org.opendaylight.mdsal.binding.java.api.generator.AbstractJavaGeneratedType javaType,
GeneratedType type,
GeneratedType targetType,
Set<GeneratedProperty> properties,
Type augmentType,
Type keyType) |
AbstractBuilderTemplate(GeneratedType type,
GeneratedType targetType,
Set<GeneratedProperty> properties,
Type augmentType,
Type keyType) |
BuilderTemplate(GeneratedType genType,
GeneratedType targetType,
Set<GeneratedProperty> properties,
Type augmentType,
Type keyType)
Constructs new instance of this class.
|
Constructor and Description |
---|
GeneratorJavaFile(Collection<? extends Type> types)
Creates instance of this class with the set of
types for which the JAVA code is generated. |
Modifier and Type | Interface and Description |
---|---|
interface |
AnnotationType
The Annotation Type interface is designed to hold information about annotation for any type that could be annotated
in Java.
For sake of simplicity the Annotation Type is not designed to model exact behaviour of annotation mechanism, but just to hold information needed to model annotation over java Type definition. |
interface |
BaseTypeWithRestrictions
The BaseTypeWithRestrictions is marker interface that encapsulates definition of java
concrete type only with changed restriction values.
|
interface |
ConcreteType
The Concrete Type is marker interface that encapsulates definition of java
concrete type.
|
interface |
Enumeration
Interface provide methods for reading data of enumeration class.
|
interface |
GeneratedTransferIdentityObject |
interface |
GeneratedTransferObject
Generated Transfer Object extends
GeneratedType and is designed to represent Java Class. |
interface |
GeneratedType
Every Java interface has to be specified with:
package that belongs into
interface name (with commentary that SHOULD be present to proper define interface and base
contracts specified for interface)
Each Generated Type can define list of types that Generated Type can implement to extend it's definition
(i.e. |
interface |
ParameterizedType
Represents an instance of simple parameterized type such as List<String>.
|
interface |
WildcardType
Marker interface which assign to object property that it is a bounded wildcard type.
|
Modifier and Type | Method and Description |
---|---|
Type[] |
ParameterizedType.getActualTypeArguments()
Returns array of Types that are defined for Parameterized Type.
|
Type |
TypeMember.getDefiningType()
Returns the Type that declares member.
|
Type |
Constant.getDefiningType()
Returns the Type that declares constant.
|
Type |
GeneratedType.getParentType()
Returns the parent type if Generated Type is defined as enclosing type, otherwise returns
null . |
Type |
Enumeration.getParentType() |
Type |
ParameterizedType.getRawType()
Returns the Raw Type definition of Parameterized Type.
|
Type |
TypeMember.getReturnType()
Get the returning Type of member.
|
Type |
MethodSignature.Parameter.getType()
Returns Type that is bounded to parameter name.
|
Type |
Constant.getType()
Returns the return Type (or just Type) of the Constant.
|
Modifier and Type | Method and Description |
---|---|
List<Type> |
GeneratedType.getImplements()
Returns List of Types that Generated Type will implement.
|
Modifier and Type | Method and Description |
---|---|
String |
CodeGenerator.generate(Type type)
Generates code for
type . |
String |
CodeGenerator.getUnitName(Type type)
Returns name of
type parameter. |
boolean |
CodeGenerator.isAcceptable(Type type)
Checks if the concrete instance of
type fit to concrete implementation of this interface (e.g. |
Modifier and Type | Interface and Description |
---|---|
interface |
AnnotationTypeBuilder
Annotation Type Builder Interface serves for creation and instantiation of
immutable copy of Annotation Type.
|
interface |
EnumBuilder
Enum Builder is interface that contains methods to build and instantiate Enumeration definition.
|
interface |
GeneratedTOBuilder
Generated Transfer Object Builder is interface that contains methods to build
and instantiate Generated Transfer Object definition.
|
interface |
GeneratedTypeBuilder
Generated Type Builder interface is helper interface for building and
defining the GeneratedType.
|
interface |
GeneratedTypeBuilderBase<T extends GeneratedTypeBuilderBase<T>> |
Modifier and Type | Method and Description |
---|---|
List<Type> |
GeneratedTypeBuilderBase.getImplementsTypes() |
Modifier and Type | Method and Description |
---|---|
Constant |
GeneratedTypeBuilderBase.addConstant(Type type,
String name,
Object value)
Adds Constant definition and returns
new Constant instance.By definition Constant MUST be defined by return Type, Name and assigned value. |
T |
GeneratedTypeBuilderBase.addImplementsType(Type genType)
Add Type to implements.
|
MethodSignatureBuilder |
MethodSignatureBuilder.addParameter(Type type,
String name)
Adds Parameter into the List of method parameters.
|
T |
TypeMemberBuilder.setReturnType(Type returnType)
Adds return Type into Builder definition for Generated Property.
|
Constant |
ConstantBuilder.toInstance(Type definingType) |
GeneratedProperty |
GeneratedPropertyBuilder.toInstance(Type definingType)
Returns
new immutable instance of Generated Property. |
MethodSignature |
MethodSignatureBuilder.toInstance(Type definingType)
Returns
new immutable instance of Method Signature. |
Enumeration |
EnumBuilder.toInstance(Type definingType) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBaseType
It is used only as ancestor for other
Type s. |
class |
ReferencedTypeImpl
Wraps combination of
packageName and name to the object representation. |
Modifier and Type | Method and Description |
---|---|
static ParameterizedType |
BindingTypes.action(Type parent,
Type input,
Type output)
Type specializing
Action for a particular type. |
static ParameterizedType |
BindingTypes.augmentable(Type type)
Specialize
Augmentable for a particular type. |
static ParameterizedType |
Types.augmentableTypeFor(Type valueType)
Creates instance of
ParameterizedType where raw type is
Augmentable and actual
parameter is valueType . |
static ParameterizedType |
Types.augmentationTypeFor(Type valueType)
Creates instance of
ParameterizedType where
raw type is Augmentation and actual parameter
is valueType . |
static ParameterizedType |
Types.builderTypeFor(Type valueType)
Returns an instance of
ParameterizedType describing the typed
Builder <V> with concrete type of value. |
static ParameterizedType |
BindingTypes.childOf(Type type)
Specialize
ChildOf for a particular type. |
static ParameterizedType |
BindingTypes.choiceIn(Type type)
Type specializing
ChoiceIn for a particular type. |
static ParameterizedType |
Types.classType(Type type)
Returns an instance of
ParameterizedType which represents JAVA java.lang.Class type
specialized to specified type. |
static @Nullable String |
Types.getOuterClassName(Type valueType) |
static ParameterizedType |
BindingTypes.identifiable(Type type)
Type specializing
Identifiable for a particular type. |
static ParameterizedType |
BindingTypes.identifier(Type type)
Type specializing
Identifier for a particular type. |
static ParameterizedType |
BindingTypes.instanceIdentifier(Type type)
Type specializing
InstanceIdentifier for a particular type. |
static boolean |
Types.isListType(Type type) |
static ParameterizedType |
BindingTypes.keyedListAction(Type parent,
Type keyType,
Type input,
Type output)
Type specializing
KeyedListAction for a particular type. |
static ParameterizedType |
Types.listenableFutureTypeFor(Type valueType)
Returns an instance of
ParameterizedType describing the typed ListenableFuture <V>
with concrete type of value. |
static ParameterizedType |
Types.listTypeFor(Type valueType)
Returns an instance of
ParameterizedType describing the typed List <V> with concrete type
of value. |
static ParameterizedType |
Types.mapTypeFor(Type keyType,
Type valueType)
Returns an instance of
ParameterizedType describing the typed Map <K,V>. |
static ParameterizedType |
Types.parameterizedTypeFor(Type type,
Type... parameters)
Creates instance of type
ParameterizedType . |
static ParameterizedType |
Types.parameterizedTypeFor(Type type,
Type... parameters)
Creates instance of type
ParameterizedType . |
static ParameterizedType |
BindingTypes.rpcResult(Type type)
Type specializing
RpcResult for a particular type. |
static ParameterizedType |
Types.setTypeFor(Type valueType)
Returns an instance of
ParameterizedType describing the typed Set <V> with concrete type
of value. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractEnumerationBuilder |
class |
CodegenEnumerationBuilder |
class |
CodegenGeneratedTOBuilder |
class |
CodegenGeneratedTypeBuilder |
class |
RuntimeEnumerationBuilder |
class |
RuntimeGeneratedTOBuilder |
class |
RuntimeGeneratedTypeBuilder |
Modifier and Type | Method and Description |
---|---|
Enumeration |
RuntimeEnumerationBuilder.toInstance(Type definingType) |
Enumeration |
CodegenEnumerationBuilder.toInstance(Type definingType) |
GeneratedProperty |
GeneratedPropertyBuilderImpl.toInstance(Type definingType) |
Modifier and Type | Class and Description |
---|---|
static class |
BaseYangTypes.UnionType
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static Type |
BaseYangTypes.BINARY_TYPE
Type representation of binary YANG type. |
static Type |
BaseYangTypes.BOOLEAN_TYPE
Type representation of boolean YANG type. |
static Type |
BaseYangTypes.DECIMAL64_TYPE
Type representation of decimal64 YANG type. |
static Type |
BaseYangTypes.EMPTY_TYPE
Type representation of empty YANG type. |
static Type |
BaseYangTypes.ENUM_TYPE |
static Type |
BaseYangTypes.INSTANCE_IDENTIFIER |
static Type |
BaseYangTypes.INT16_TYPE
Type representation of int16 YANG type. |
static Type |
BaseYangTypes.INT32_TYPE
Type representation of int32 YANG type. |
static Type |
BaseYangTypes.INT64_TYPE
Type representation of int64 YANG type. |
static Type |
BaseYangTypes.INT8_TYPE
Type representation of int8 YANG type. |
static Type |
BaseYangTypes.STRING_TYPE
Type representation of string YANG type. |
static Type |
BaseYangTypes.UINT16_TYPE
Type representation of uint16 YANG type. |
static Type |
BaseYangTypes.UINT32_TYPE
Type representation of uint32 YANG type. |
static Type |
BaseYangTypes.UINT64_TYPE
Type representation of uint64 YANG type. |
static Type |
BaseYangTypes.UINT8_TYPE
Type representation of uint8 YANG type. |
static Type |
BaseYangTypes.UNION_TYPE |
Modifier and Type | Method and Description |
---|---|
Type |
AbstractTypeProvider.generatedTypeForExtendedDefinitionType(org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> typeDefinition,
org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode)
Converts
typeDefinition to concrete JAVA Type . |
Type |
AbstractTypeProvider.javaTypeForSchemaDefinitionType(org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> typeDefinition,
org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode) |
Type |
AbstractTypeProvider.javaTypeForSchemaDefinitionType(org.opendaylight.yangtools.yang.model.api.TypeDefinition<?> typeDefinition,
org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode,
Restrictions restrictions)
Converts schema definition type
typeDefinition to JAVA Type . |
static Type |
BaseYangTypes.javaTypeForYangType(String type)
Searches
Type value to which is YANG type
mapped. |
Type |
AbstractTypeProvider.provideTypeForLeafref(org.opendaylight.yangtools.yang.model.api.type.LeafrefTypeDefinition leafrefType,
org.opendaylight.yangtools.yang.model.api.SchemaNode parentNode)
Converts
leafrefType to JAVA Type . |
Modifier and Type | Method and Description |
---|---|
Map<org.opendaylight.yangtools.yang.model.api.Module,Set<Type>> |
AbstractTypeProvider.getAdditionalTypes() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTypeProvider.putReferencedType(org.opendaylight.yangtools.yang.model.api.SchemaPath refTypePath,
Type refType)
Puts
refType to map with key refTypePath . |
Copyright © 2019 OpenDaylight. All rights reserved.