functions.AddToJSON.ext Maven / Gradle / Ivy
extension java::GeneratorCommons;
extension functions::Class;
cached boolean isAddToJSON(uml::Element element) :
element.isStereotypeApplied("AddToJSON");
cached JMM::AddToJSON asAddToJSON(uml::Element element):
(JMM::AddToJSON) element;
cached boolean hasAddToJSONProperty(uml::Class class):
!class.getAllPropertiesFromHierarchy().select(e|e.isAddToJSON()).isEmpty;