如何在 Alfresco 中获取字段类型

How to get the type of a field in Alfresco

当我只知道名称时,我需要获取字段的类型。例如,对于字段 cm:title 我想得到 d:mltext。我如何使用 Alfresco 5 做到这一点。0.d?

谢谢!

QName key = ContentModel.PROP_TITLE;       
String type = serviceRegistry.getDictionaryService().getProperty(key).getDataType().getName().getPrefixString();