All Downloads are FREE. Search and download functionalities are using the official Maven repository.

functions.Package.ext Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
extension java::GeneratorCommons;


cached boolean isAlias(uml::Element element) :
  element.isStereotypeApplied("Alias");
  
cached JMM::Alias asAlias(uml::Element element):
    (JMM::Alias) element;
    

cached String getAlternateName(uml::NamedElement element):
    if element.isAlias()
    then element.getStereotypeValue("Alias", "alternateName")
    else "";
    
cached String getAlternateNameForMarkup(uml::NamedElement element):
    element.getAlternateName().replaceAll("\n", "
"); cached String getAlternateNameForJavadoc(uml::NamedElement element): element.getAlternateName().replaceAll("\n", "
");




© 2015 - 2024 Weber Informatics LLC | Privacy Policy