use of org.molgenis.metadata.manager.model.EditorAttributeIdentifier in project molgenis by molgenis.
the class EntityTypeParentMapper method toEditorEntityTypeParent.
EditorEntityTypeParent toEditorEntityTypeParent(EntityType entityType) {
if (entityType == null) {
return null;
}
String id = entityType.getId();
String label = entityType.getLabel();
ImmutableList<EditorAttributeIdentifier> attributes = attributeReferenceMapper.toEditorAttributeIdentifiers(entityType.getOwnAllAttributes());
EditorEntityTypeParent parent = toEditorEntityTypeParent(entityType.getExtends());
return EditorEntityTypeParent.create(id, label, attributes, parent);
}
Aggregations