builder.addImplementsType(implementedType(builderFactory));
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, statement().argument().getLocalName());
+ module.addQNameConstant(builder, statement().argument());
// addGetterMethods(builder, builderFactory);
addConcreteInterfaceMethods(builder);
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, localName().getLocalName());
+ module.addQNameConstant(builder, localName());
addGetterMethods(builder, builderFactory);
builder.addImplementsType(BindingTypes.choiceIn(DefaultType.of(getParent().typeName())));
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, localName().getLocalName());
+ module.addQNameConstant(builder, localName());
annotateDeprecatedIfNecessary(builder);
if (builderFactory instanceof TypeBuilderFactory.Codegen) {
// newType.setSchemaPath(schemaNode.getPath());
builder.setModuleName(module.statement().argument().getLocalName());
-
return builder.build();
}
}
addConcreteInterfaceMethods(builder);
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, localName().getLocalName());
+ module.addQNameConstant(builder, localName());
addGetterMethods(builder, builderFactory);
addGetterMethods(builder, builderFactory);
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, statement().argument().getLocalName());
+ module.addQNameConstant(builder, statement().argument());
annotateDeprecatedIfNecessary(builder);
if (builderFactory instanceof TypeBuilderFactory.Codegen) {
}
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, localName().getLocalName());
+ module.addQNameConstant(builder, localName());
addCodegenInformation(module, statement(), builder);
builder.setModuleName(module.statement().argument().getLocalName());
addConcreteInterfaceMethods(builder);
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, localName().getLocalName());
+ module.addQNameConstant(builder, localName());
if (keyGen != null) {
// Add yang.binding.Identifiable and its key() method
import org.opendaylight.mdsal.binding.model.util.BindingTypes;
import org.opendaylight.mdsal.binding.model.util.TypeComments;
import org.opendaylight.mdsal.binding.spec.naming.BindingMapping;
+import org.opendaylight.yangtools.yang.common.AbstractQName;
import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.stmt.ChoiceEffectiveStatement;
return verifyNotNull(prefixMember);
}
- void addQNameConstant(final GeneratedTypeBuilderBase<?> builder, final String localName) {
+ void addQNameConstant(final GeneratedTypeBuilderBase<?> builder, final AbstractQName localName) {
builder.addConstant(BindingTypes.QNAME, BindingMapping.QNAME_STATIC_FIELD_NAME,
- Map.entry(yangModuleInfo, localName));
+ Map.entry(yangModuleInfo, localName.getLocalName()));
}
}
addGetterMethods(builder, builderFactory);
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, localName().getLocalName());
+ module.addQNameConstant(builder, localName());
addCodegenInformation(module, statement(), builder);
annotateDeprecatedIfNecessary(builder);
annotateDeprecatedIfNecessary(builder);
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, localName().getLocalName());
+ module.addQNameConstant(builder, localName());
addCodegenInformation(module, statement(), builder);
builder.setModuleName(module.statement().argument().getLocalName());
addGetterMethods(builder, builderFactory);
final ModuleGenerator module = currentModule();
- module.addQNameConstant(builder, localName().getLocalName());
+ module.addQNameConstant(builder, localName());
annotateDeprecatedIfNecessary(builder);
if (builderFactory instanceof TypeBuilderFactory.Codegen) {