

Return toString(StereotypesHelper.getStereotypePropertyFirst(element, getInstance(element).getPerson(), static void setFriends(Element element, value) tStereotypePropertyValue(element, getInstance(element).getPerson(), COUNTRY, static String getCountry(Element element) stereotype Person and its static final String STEREOTYPE_NAME = static final String COUNTRY = static final String FRIENDS = static void setCountry(Element element, String value) Public static class Person extends AbstractStereotypeWrapper Public static CustomProfile Project project)ĬustomProfile instance = _getInstance(CustomProfile.class, project) Super(project, PROFILE_NAME, PROFILE_URI) Return getInstance(Project.getProject(element)) Public static CustomProfile BaseElement element) Public static final String PROFILE_NAME = "Custom Profile" Public static final String PROFILE_URI = "" Public class CustomProfile extends StereotypeByProfileCache No more need to work with strings and casting values to primitives as in StereotypesHelper case.

Signature of these methods corresponds to tag multiplicity type and etc. There is a setter/getter method available for every stereotype tag.There are constants defined for all stereotype tags names.There is a constant defined for Stereotype name.Inner java class is generate for every Stereotype defined in the profile.Java enumeration is generated for every Enumeration element defined in the profile.There is a static check method to check if Element has specific stereotype applied.There is a getter for every Stereotype element defined in the profile.There is a getter for every DataType element defined in the profile.There is a constant defined for every DataType, Enumeration or EnumerationLiteral name.Profile implementation class has these features Generate profile implementation code using Tools->Development Tools->Generate Profile Class Implementation.Install Development Tools plugin from Help->Resource Manager.To create your own custom profile implementation you need to follow these steps See Standard profiles implementation page for details. MagicDraw comes with already generated profiles implementation for standard profiles. This implementation class wraps all mapping, naming details with a nice Java API. Instead of using low level . API to access information about profile elements, it is possible to generate a profile implementation class out of the UML Profile model.
