|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel
public class ProfileMetaModel
The ProfileMetaModel maps Stereotypes defined in UML profiles to virtual
types that extend the base UML metaclasses. Use this MetaModel
implementation when using profiled UML models.
<bean id="mm_profile" class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel"> <profile value="platform:/resource/yourproject/path/to/The.profile.uml"/> <profile value="platform:/resource/yourproject/path/to/Another.profile.uml"/> </bean> ... <component class="org.eclipse.xpand2.Generator"> <metaModel idRef="mm_profile"/> ... </component>Use the ProfileMetaModel always as first metaModel registration for expression using workflow components (Generator, XtendComponent, etc.). It is not necessary to add an instance of
UML2MetaModel
or
EmfRegistryMetaModel
additionally, since the ProfileMetaModel delegates
to those metamodel implementations when it is not responsible for resolving a type.
Nested Class Summary | |
---|---|
static class |
ProfileMetaModel.ProfilesUMLUtil
|
Field Summary | |
---|---|
java.util.List<org.eclipse.uml2.uml.Profile> |
profiles
|
Constructor Summary | |
---|---|
ProfileMetaModel()
|
|
ProfileMetaModel(org.eclipse.uml2.uml.Profile... profiles)
|
Method Summary | |
---|---|
void |
addProfile(java.lang.String profile)
|
java.lang.String |
getFullName(org.eclipse.uml2.uml.Type type)
|
java.util.Set<Type> |
getKnownTypes()
returns all types this metamodel is responsible for |
java.lang.String |
getName()
|
java.util.Set<java.lang.String> |
getNamespaces()
Returns all namespaces provided by this metamodel. |
Type |
getType(java.lang.Object obj)
if this metamodel is responsible for a types which are responsible for the given object, it returns the corresponding type. |
Type |
getTypeForName(java.lang.String typeName)
if this metamodel is responsible for a type with the given name, it returns the corresponding type. |
TypeSystem |
getTypeSystem()
Returns the underlying typesystem. |
void |
reloadMetaModel(java.util.List<org.eclipse.uml2.uml.Profile> profiles)
Reloads this meta model by cleaning all cached and stereotype information and re-initializing them with the given profiles. |
void |
setErrorIfStereotypeMissing(boolean errorIfStereotypeMissing)
|
void |
setTypeSystem(TypeSystem typeSystem)
Sets the underlying typesystem. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.List<org.eclipse.uml2.uml.Profile> profiles
Constructor Detail |
---|
public ProfileMetaModel()
public ProfileMetaModel(org.eclipse.uml2.uml.Profile... profiles)
Method Detail |
---|
public void setErrorIfStereotypeMissing(boolean errorIfStereotypeMissing)
public void addProfile(java.lang.String profile)
public void reloadMetaModel(java.util.List<org.eclipse.uml2.uml.Profile> profiles)
public java.lang.String getFullName(org.eclipse.uml2.uml.Type type)
public Type getTypeForName(java.lang.String typeName)
MetaModel
null
getTypeForName
in interface MetaModel
typeName
- name of type
public Type getType(java.lang.Object obj)
MetaModel
null
getType
in interface MetaModel
obj
- object for which a corresponding object is requested
public java.util.Set<Type> getKnownTypes()
MetaModel
getKnownTypes
in interface MetaModel
public TypeSystem getTypeSystem()
MetaModel
getTypeSystem
in interface MetaModel
public void setTypeSystem(TypeSystem typeSystem)
MetaModel
setTypeSystem
in interface MetaModel
typeSystem
- the typesystempublic java.lang.String getName()
public java.util.Set<java.lang.String> getNamespaces()
MetaModel
getNamespaces
in interface MetaModel
Set
containing the names of all namespaces provided by
this metamodel.MetaModel.getNamespaces()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |