functions.ServiceObject.ext Maven / Gradle / Ivy
extension java::GeneratorCommons;
extension functions::OpenAPIDataType;
cached boolean isServiceObject(uml::Element element):
element.isStereotypeApplied("ServiceObject");
cached JMM::ServiceObject asServiceObject(uml::Element element):
(JMM::ServiceObject) element;
cached boolean generateOfOperationForServiceObject(uml::Class class):
if class.isServiceObject() && class.isOpenAPIDataType() == false
then class.asServiceObject().ofMethod.name != "NONE"
else false;