Class TacticDslExtensions

java.lang.Object
org.contextmapper.tactic.dsl.TacticDslExtensions

public class TacticDslExtensions extends Object
Extensions for model elements of the domain model.
  • Constructor Details

    • TacticDslExtensions

      public TacticDslExtensions()
  • Method Details

    • eAllOfClass

      public static <T extends org.eclipse.emf.ecore.EObject> Iterator<T> eAllOfClass(org.eclipse.emf.ecore.EObject obj, Class<T> clazz)
      Extensions for model elements of the domain model.
    • domainObjectsForAttributeType

      public static 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