Package org.contextmapper.tactic.dsl
Class TacticDslExtensions
- java.lang.Object
-
- org.contextmapper.tactic.dsl.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 Summary
Constructors Constructor Description TacticDslExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Iterable<SimpleDomainObject>
domainObjectsForAttributeType(Attribute attr)
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.static SimpleDomainObject
firstDomainObjectForType(ComplexType complexType)
-
-
-
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
-
-