|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.backend.types.uml2.UmlTypesystem
public final class UmlTypesystem
This typesystem implementation takes care of UML specifics, i.e. additional UML representations
for primitive types and the mapping of UML stereotypes to backend types. It builds on top
of the EmfTypesystem, which takes care of the "normal" mapping of UML elements to their
corresponding types.
In other words, this typesystem implementation resolves all EMF types
using the EmfTypesystem, so if you use UmlTypesystem, there is no need to use EmfTypesystem
as well. But if you use both, make sure UmlTypesystem comes before EmfTypesystem.
Field Summary | |
---|---|
static java.lang.String |
UNIQUE_REPRESENTATION_PREFIX
|
Constructor Summary | |
---|---|
UmlTypesystem(java.util.Collection<org.eclipse.uml2.uml.Profile> profiles,
boolean errorIfStereotypeIsMissing)
|
Method Summary | |
---|---|
BackendType |
findType(java.lang.Class<?> cls)
returns the type for instances of a given class or, if this type system does not feel responsible, null. |
BackendType |
findType(java.lang.Object o)
returns the type for a given object or, if this type system does not feel responsible, null. |
BackendType |
findType(java.lang.String uniqueRepresentation)
returns the type corresponding with the unique representation. |
static void |
fixName(org.eclipse.uml2.uml.NamedElement elem)
replace all whitespace in the element's name by underscore characters |
BackendTypesystem |
getRootTypesystem()
|
BackendType |
getTypeForEClassifier(org.eclipse.emf.ecore.EClassifier eClassifier)
|
BackendType |
getTypeForStereotypeProperty(org.eclipse.uml2.uml.Type t)
|
static java.lang.String |
getUniqueIdentifier(org.eclipse.uml2.uml.NamedElement cls)
|
void |
registerProfile(org.eclipse.uml2.uml.Profile profile)
|
void |
setRootTypesystem(BackendTypesystem ts)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String UNIQUE_REPRESENTATION_PREFIX
Constructor Detail |
---|
public UmlTypesystem(java.util.Collection<org.eclipse.uml2.uml.Profile> profiles, boolean errorIfStereotypeIsMissing)
Method Detail |
---|
public void registerProfile(org.eclipse.uml2.uml.Profile profile)
public static void fixName(org.eclipse.uml2.uml.NamedElement elem)
public BackendType findType(java.lang.Object o)
BackendTypesystem
findType
in interface BackendTypesystem
public BackendType getTypeForEClassifier(org.eclipse.emf.ecore.EClassifier eClassifier)
public BackendType findType(java.lang.Class<?> cls)
BackendTypesystem
findType
in interface BackendTypesystem
public BackendTypesystem getRootTypesystem()
getRootTypesystem
in interface BackendTypesystem
public void setRootTypesystem(BackendTypesystem ts)
setRootTypesystem
in interface BackendTypesystem
public BackendType findType(java.lang.String uniqueRepresentation)
BackendTypesystem
findType
in interface BackendTypesystem
public static java.lang.String getUniqueIdentifier(org.eclipse.uml2.uml.NamedElement cls)
public BackendType getTypeForStereotypeProperty(org.eclipse.uml2.uml.Type t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |