To define the profile provider implementation:


package com.sodius.mdw.metamodel.library;
import com.sodius.mdw.metamodel.library.Book;
import com.sodius.mdw.core.model.MDWObject;
import com.sodius.mdw.corext.model.ProfileProvider;
public class LibraryProfileProvider implements ProfileProvider {
public String[] getStereotypeNames(MDWObject object) {
if (object instanceof Book) {
String kind = ((Book) object).getKind();
if (kind.length() != 0)
return new String[] { kind };
}
return null;
}
}
Refer to the Javadoc of ProfileProvider
for details on the contents of a profile provider.