public final class RuleConditionDmrUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<org.eclipse.emf.ecore.EClass> |
getDmrRootEClass(EMFFormsDatabindingEMF databinding,
ReportService reportService,
org.eclipse.emf.ecore.EObject owner)
Get the root EClass for the
VDomainModelReference to create. |
static List<org.eclipse.emf.ecore.EObject> |
getDmrRootObject(EMFFormsDatabindingEMF databinding,
ReportService reportService,
org.eclipse.emf.ecore.EObject domainRoot,
org.eclipse.emf.ecore.EObject owner)
Get the root EObjects for the owner's domain model reference.
|
public static Optional<org.eclipse.emf.ecore.EClass> getDmrRootEClass(EMFFormsDatabindingEMF databinding, ReportService reportService, org.eclipse.emf.ecore.EObject owner)
VDomainModelReference
to create. If the rule Condition
is contained
in another Condition with a DMR, the root EClass is determined by resolving the container Condition(s) down from
the domain root.
Otherwise, the root EClass is the EClass of the domain root.databinding
- The EMFFormsDatabindingEMF
used to resolve DMRsreportService
- The ReportService
used to report databinding failuresowner
- The condition containing the the DMR whose root EClass is neededpublic static List<org.eclipse.emf.ecore.EObject> getDmrRootObject(EMFFormsDatabindingEMF databinding, ReportService reportService, org.eclipse.emf.ecore.EObject domainRoot, org.eclipse.emf.ecore.EObject owner)
domainRoot
. IF the owner is nested in one or more
IterateConditions
, the iterate conditions' dmrs are resolved and all possible root
objects collected and returned.databinding
- The EMFFormsDatabindingEMF
used to resolve dmrsreportService
- The ReportService
to report databinding errorsdomainRoot
- The domain root (usually the view model context's domain model)owner
- The eObject containing the dmr (usually a Condition
)null
Copyright © 2020. All rights reserved.