@@ -276,8 +276,8 @@ private CElementPropertyInfo createElementPropertyInfo(final Model model,
276
276
final CElementInfo elementInfo ) {
277
277
final CElementPropertyInfo elementPropertyInfo ;
278
278
final String propertyName = createPropertyName (model , property , element );
279
- final CElementPropertyInfo originalPropertyInfo = elementInfo
280
- . getProperty ();
279
+ final CElementPropertyInfo originalPropertyInfo = elementInfo . getProperty ();
280
+
281
281
elementPropertyInfo = new CElementPropertyInfo (propertyName ,
282
282
property .isCollection () ? CollectionMode .REPEATED_ELEMENT
283
283
: CollectionMode .NOT_REPEATED , ID .NONE , null ,
@@ -288,6 +288,9 @@ private CElementPropertyInfo createElementPropertyInfo(final Model model,
288
288
if (adapter != null ) {
289
289
elementPropertyInfo .setAdapter (adapter );
290
290
}
291
+ if (property .realization != null ) {
292
+ elementPropertyInfo .realization = property .realization ;
293
+ }
291
294
292
295
elementPropertyInfo .getTypes ().add (
293
296
new CTypeRef (elementInfo .getContentType (), element
@@ -306,6 +309,9 @@ private CElementPropertyInfo createElementPropertyInfo(final Model model,
306
309
: CollectionMode .NOT_REPEATED , ID .NONE , null ,
307
310
element .getSchemaComponent (), element .getCustomizations (),
308
311
element .getLocator (), false );
312
+ if (property .realization != null ) {
313
+ elementPropertyInfo .realization = property .realization ;
314
+ }
309
315
elementPropertyInfo .getTypes ().add (
310
316
new CTypeRef (classInfo , element .getElementName (), classInfo
311
317
.getTypeName (), false , null ));
@@ -337,6 +343,9 @@ private CReferencePropertyInfo createReferencePropertyInfo(
337
343
element .getCustomizations (), element .getLocator (),
338
344
property .isDummy (), property .isContent (),
339
345
property .isMixedExtendedCust ());
346
+ if (property .realization != null ) {
347
+ referencePropertyInfo .realization = property .realization ;
348
+ }
340
349
referencePropertyInfo .getElements ().add (element );
341
350
return referencePropertyInfo ;
342
351
}
@@ -349,6 +358,9 @@ private CReferencePropertyInfo createContentReferencePropertyInfo(
349
358
true , property .getSchemaComponent (),
350
359
property .getCustomizations (), property .getLocator (), false ,
351
360
true , property .isMixedExtendedCust ());
361
+ if (property .realization != null ) {
362
+ referencePropertyInfo .realization = property .realization ;
363
+ }
352
364
return referencePropertyInfo ;
353
365
}
354
366
@@ -367,6 +379,9 @@ private CElementPropertyInfo createElementPropertyInfo(final Model model,
367
379
if (adapter != null ) {
368
380
elementPropertyInfo .setAdapter (adapter );
369
381
}
382
+ if (property .realization != null ) {
383
+ elementPropertyInfo .realization = property .realization ;
384
+ }
370
385
elementPropertyInfo .getTypes ().add (typeRef );
371
386
return elementPropertyInfo ;
372
387
}
0 commit comments