Class TacticDslExtensions


  • public class TacticDslExtensions
    extends java.lang.Object
    Extensions for model elements of the domain model. Usage in Xtend files:
    Inject:
    extension TacticDslExtensions // ... element.rootContainer.eAllOfClass(typeof(DslService))
    • Constructor Detail

      • TacticDslExtensions

        public TacticDslExtensions()
    • Method Detail

      • eAllOfClass

        public static <T extends org.eclipse.emf.ecore.EObject> java.util.Iterator<T> eAllOfClass​(org.eclipse.emf.ecore.EObject obj,
                                                                                                  java.lang.Class<T> clazz)
        Extensions for model elements of the domain model. Usage in Xtend files:
        Inject:
        extension SculptordslExtensions // ... element.rootContainer.eAllOfClass(typeof(DslService))
      • domainObjectsForAttributeType

        public static java.lang.Iterable<SimpleDomainObject> domainObjectsForAttributeType​(Attribute attr)
        Returns:
        DslSimpleDomainObjects whose type matches attr.type
      • firstDomainObjectForType

        public static SimpleDomainObject firstDomainObjectForType​(ComplexType complexType)
        Returns:
        the first DslSimpleDomainObject whose type matches complexType, or null