private static void addAnnotationTypePayloads(DocumentmanagerConfig config, DocumentTypeManager manager) { for (DocumentmanagerConfig.Annotationtype annType : config.annotationtype()) { AnnotationType annotationType = manager.getAnnotationTypeRegistry().getType(annType.id()); DataType payload = manager.getDataType(annType.datatype(), ""); if (!payload.equals(DataType.NONE)) { annotationType.setDataType(payload); } } }
if (sa.getSdDocType() != null) { StructDataType s = handleStruct(dt, sa.getSdDocType()); annotation.setDataType(s); if ((sa.getInherits() != null)) { structInheritance.put(s, "annotation."+sa.getInherits()); StructDataType s = new StructDataType("annotation."+annotation.getName()); if (anyParentsHavePayLoad(sa, sdoc)) { annotation.setDataType(s); addType(dt, s);