1 17 package org.alfresco.repo.dictionary; 18 19 import java.util.Map ; 20 21 import org.alfresco.service.cmr.dictionary.AssociationDefinition; 22 import org.alfresco.service.cmr.dictionary.ModelDefinition; 23 import org.alfresco.service.cmr.dictionary.PropertyDefinition; 24 import org.alfresco.service.cmr.dictionary.TypeDefinition; 25 import org.alfresco.service.namespace.NamespacePrefixResolver; 26 import org.alfresco.service.namespace.QName; 27 28 29 34 class M2TypeDefinition extends M2ClassDefinition 35 implements TypeDefinition 36 { 37 M2TypeDefinition(ModelDefinition model, M2Type m2Type, NamespacePrefixResolver resolver, Map <QName, PropertyDefinition> modelProperties, Map <QName, AssociationDefinition> modelAssociations) 38 { 39 super(model, m2Type, resolver, modelProperties, modelAssociations); 40 } 41 42 @Override 43 public String getDescription() 44 { 45 String value = M2Label.getLabel(model, "type", name, "description"); 46 47 if (value == null) 49 { 50 value = super.getDescription(); 51 } 52 53 return value; 54 } 55 56 @Override 57 public String getTitle() 58 { 59 String value = M2Label.getLabel(model, "type", name, "title"); 60 61 if (value == null) 63 { 64 value = super.getTitle(); 65 } 66 67 return value; 68 } 69 } 70 | Popular Tags |