Fix for illegal names in profiles when code generating
This commit is contained in:
parent
1a95532924
commit
1321ae421e
|
@ -343,6 +343,7 @@ public class PECodeGenerator {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void defineField(PEDefinition source, PEDefinition field) {
|
private void defineField(PEDefinition source, PEDefinition field) {
|
||||||
if (field.types().size() == 1) {
|
if (field.types().size() == 1) {
|
||||||
StructureDefinition sd = workerContext.fetchTypeDefinition(field.types().get(0).getUrl());
|
StructureDefinition sd = workerContext.fetchTypeDefinition(field.types().get(0).getUrl());
|
||||||
|
@ -846,7 +847,7 @@ public class PECodeGenerator {
|
||||||
|
|
||||||
private PEGenClass genClass(PEDefinition source) {
|
private PEGenClass genClass(PEDefinition source) {
|
||||||
PEGenClass cls = new PEGenClass();
|
PEGenClass cls = new PEGenClass();
|
||||||
cls.name = source.getProfile().getName();
|
cls.name = Utilities.javaTokenize(source.getProfile().getName(), true);
|
||||||
cls.base = source.getProfile().getType();
|
cls.base = source.getProfile().getType();
|
||||||
cls.doco = source.documentation();
|
cls.doco = source.documentation();
|
||||||
cls.url = source.getProfile().getVersionedUrl();
|
cls.url = source.getProfile().getVersionedUrl();
|
||||||
|
|
Loading…
Reference in New Issue