Class NamespaceAwareElementExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.commons.NamespaceAwareElementExtension
-
public class NamespaceAwareElementExtension extends Object
-
-
Constructor Summary
Constructors Constructor Description NamespaceAwareElementExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConcreteClassifier
getClassifierAtNamespaces(NamespaceAwareElement me)
Assuming the namespace identifies a classifier, that classifier is returned.static String
getNamespacesAsString(NamespaceAwareElement me)
Converts the namespaces array of the given namespace aware element into a String representation using package (.) and class ($) delimiters.
-
-
-
Method Detail
-
getNamespacesAsString
public static String getNamespacesAsString(NamespaceAwareElement me)
Converts the namespaces array of the given namespace aware element into a String representation using package (.) and class ($) delimiters. The method uses the JavaClasspath to determine for each element of the namespace if it identifies a package or a class.- Parameters:
me
- the given namespace aware element.- Returns:
- single string representation of namespace.
-
getClassifierAtNamespaces
public static ConcreteClassifier getClassifierAtNamespaces(NamespaceAwareElement me)
Assuming the namespace identifies a classifier, that classifier is returned.- Parameters:
me
- the namespace aware element.- Returns:
- classifier at namespace.
-
-