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

functions.Example.ext Maven / Gradle / Ivy

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

boolean hasExample(uml::NamedElement element):
    element.isStereotypeApplied("Example");
  
JMM::Example asExample(uml::NamedElement element):
    (JMM::Example) element;
    
cached boolean hasExampleValue(JMM::Example example):
    example.exampleValues.isEmpty == false && example.exampleValues.selectFirst(e|e.length > 0) != null;
  




© 2015 - 2024 Weber Informatics LLC | Privacy Policy