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