public class EMFFormsDatabindingImpl extends Object implements EMFFormsDatabindingEMF, EMFFormsSegmentResolver
EMFFormsDatabindingEMF
.Constructor and Description |
---|
EMFFormsDatabindingImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDomainModelReferenceConverter(DomainModelReferenceConverterEMF converter)
Adds the given
DomainModelReferenceConverterEMF to the Set of reference converters. |
protected void |
addDomainModelReferenceSegmentConverter(DomainModelReferenceSegmentConverterEMF converter)
Adds the given
DomainModelReferenceSegmentConverterEMF to the Set of segment converters. |
org.eclipse.emf.ecore.EStructuralFeature |
extractFeature(org.eclipse.core.databinding.observable.list.IObservableList observableList)
Extracts the
EStructuralFeature from the provided IObservableList . |
org.eclipse.emf.ecore.EStructuralFeature |
extractFeature(org.eclipse.core.databinding.observable.value.IObservableValue observableValue)
Extracts the
EStructuralFeature from the provided IObservableValue . |
org.eclipse.emf.ecore.EObject |
extractObserved(org.eclipse.core.databinding.observable.list.IObservableList observableList)
Extracts the observed
EObject from the provided IObservableList . |
org.eclipse.emf.ecore.EObject |
extractObserved(org.eclipse.core.databinding.observable.value.IObservableValue observableValue)
Extracts the observed
EObject from the provided IObservableValue . |
org.eclipse.emf.databinding.IEMFListProperty |
getListProperty(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
Returns an
IListProperty described by the given VDomainModelReference . |
org.eclipse.core.databinding.observable.list.IObservableList |
getObservableList(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
Returns an
IObservableList by observing the list described by the given VDomainModelReference of
the given EObject . |
org.eclipse.core.databinding.observable.value.IObservableValue |
getObservableValue(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
Returns an
IObservableValue by observing the value described by the given VDomainModelReference
of the given EObject . |
org.eclipse.emf.ecore.EStructuralFeature.Setting |
getSetting(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
Retrieve the Setting which is described by the provided
VDomainModelReference and the provided
EObject . |
org.eclipse.emf.databinding.IEMFValueProperty |
getValueProperty(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EClass rootEClass)
Returns an
IValueProperty described by the given VDomainModelReference . |
org.eclipse.emf.databinding.IEMFValueProperty |
getValueProperty(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EClass rootEClass,
org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Returns an
IValueProperty described by the given VDomainModelReference and using the given
EditingDomain . |
org.eclipse.emf.databinding.IEMFValueProperty |
getValueProperty(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
Returns an
IValueProperty described by the given VDomainModelReference . |
protected void |
removeDomainModelReferenceConverter(DomainModelReferenceConverterEMF converter)
Removes the given
DomainModelReferenceConverterEMF to the Set of reference converters. |
protected void |
removeDomainModelReferenceSegmentConverter(DomainModelReferenceSegmentConverterEMF converter)
Removes the given
DomainModelReferenceSegmentConverterEMF from the Set of segment converters. |
org.eclipse.emf.ecore.EStructuralFeature.Setting |
resolveSegment(VDomainModelReferenceSegment segment,
org.eclipse.emf.ecore.EObject domainObject)
Resolves the given
segment from the given domain object and
returns the resulting EStructuralFeature.Setting . |
protected void addDomainModelReferenceSegmentConverter(DomainModelReferenceSegmentConverterEMF converter)
DomainModelReferenceSegmentConverterEMF
to the Set of segment converters.converter
- The DomainModelReferenceSegmentConverterEMF
to addprotected void removeDomainModelReferenceSegmentConverter(DomainModelReferenceSegmentConverterEMF converter)
DomainModelReferenceSegmentConverterEMF
from the Set of segment converters.converter
- The DomainModelReferenceSegmentConverterEMF
to removepublic org.eclipse.core.databinding.observable.value.IObservableValue getObservableValue(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
EMFFormsDatabinding
IObservableValue
by observing the value described by the given VDomainModelReference
of the given EObject
.getObservableValue
in interface EMFFormsDatabindingEMF
getObservableValue
in interface EMFFormsDatabinding
domainModelReference
- The domain model reference pointing to the desired valueobject
- The root object of the rendered form. If the VDomainModelReference
contains a path, the
object is the first node of the path. Therefore, the IObservableValue
can be bound to a
feature of a sub element in case of a path.IObservableValue
, does not return null
.DatabindingFailedException
- if the databinding could not be executed successfully.public org.eclipse.emf.databinding.IEMFValueProperty getValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
EMFFormsDatabinding
IValueProperty
described by the given VDomainModelReference
.getValueProperty
in interface EMFFormsDatabindingEMF
getValueProperty
in interface EMFFormsDatabinding
domainModelReference
- The domain model reference pointing to the desired valueobject
- The root object of the rendered form. If the VDomainModelReference
contains a path, the
object is the first node of the path. Therefore, the IValueProperty
can be bound to a feature
of a sub element in case of a path.IValueProperty
, does not return null
.DatabindingFailedException
- if the databinding could not be executed successfully.public org.eclipse.emf.databinding.IEMFValueProperty getValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EClass rootEClass) throws DatabindingFailedException
EMFFormsDatabindingEMF
IValueProperty
described by the given VDomainModelReference
. Using this method, value
properties are created without an EditingDomain
.getValueProperty
in interface EMFFormsDatabindingEMF
domainModelReference
- The domain model reference pointing to the desired valuerootEClass
- The root EClass
of the rendered formIValueProperty
, does not return null
.DatabindingFailedException
- if the databinding could not be executed successfully.public org.eclipse.emf.databinding.IEMFValueProperty getValueProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EClass rootEClass, org.eclipse.emf.edit.domain.EditingDomain editingDomain) throws DatabindingFailedException
EMFFormsDatabindingEMF
IValueProperty
described by the given VDomainModelReference
and using the given
EditingDomain
.getValueProperty
in interface EMFFormsDatabindingEMF
domainModelReference
- The domain model reference pointing to the desired valuerootEClass
- The root EClass
of the rendered formeditingDomain
- The EditingDomain
for which the value property is created. May be
null
IValueProperty
, does not return null
.DatabindingFailedException
- if the databinding could not be executed successfully.protected void addDomainModelReferenceConverter(DomainModelReferenceConverterEMF converter)
DomainModelReferenceConverterEMF
to the Set of reference converters.converter
- The DomainModelReferenceConverterEMF
to addprotected void removeDomainModelReferenceConverter(DomainModelReferenceConverterEMF converter)
DomainModelReferenceConverterEMF
to the Set of reference converters.converter
- The DomainModelReferenceConverterEMF
to removepublic org.eclipse.core.databinding.observable.list.IObservableList getObservableList(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
EMFFormsDatabinding
IObservableList
by observing the list described by the given VDomainModelReference
of
the given EObject
.getObservableList
in interface EMFFormsDatabindingEMF
getObservableList
in interface EMFFormsDatabinding
domainModelReference
- The domain model reference pointing to the desired listobject
- The root object of the rendered form. If the VDomainModelReference
contains a path, the
object is the first node of the path. Therefore, the IObservableValue
can be bound to a
feature of a sub element in case of a path.IObservableList
, does not return null
DatabindingFailedException
- if the databinding could not be executed successfully.public org.eclipse.emf.databinding.IEMFListProperty getListProperty(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
EMFFormsDatabinding
IListProperty
described by the given VDomainModelReference
.getListProperty
in interface EMFFormsDatabindingEMF
getListProperty
in interface EMFFormsDatabinding
domainModelReference
- The domain model reference pointing to the desired listobject
- The root object of the rendered form. If the VDomainModelReference
contains a path, the
object is the first node of the path. Therefore, the IValueProperty
can be bound to a feature
of a sub element in case of a path.IListProperty
, does not return null
.DatabindingFailedException
- if the databinding could not be executed successfully.public org.eclipse.emf.ecore.EStructuralFeature extractFeature(org.eclipse.core.databinding.observable.value.IObservableValue observableValue) throws DatabindingFailedException
EMFFormsDatabindingEMF
EStructuralFeature
from the provided IObservableValue
.extractFeature
in interface EMFFormsDatabindingEMF
observableValue
- The IObservableValue
to extract the EStructuralFeature
fromEStructuralFeature
DatabindingFailedException
- when the IObservableValue
doesn't implement
IEMFObservable
public org.eclipse.emf.ecore.EStructuralFeature extractFeature(org.eclipse.core.databinding.observable.list.IObservableList observableList) throws DatabindingFailedException
EMFFormsDatabindingEMF
EStructuralFeature
from the provided IObservableList
.extractFeature
in interface EMFFormsDatabindingEMF
observableList
- The IObservableList
to extract the EStructuralFeature
fromEStructuralFeature
DatabindingFailedException
- when the IObservableValue
doesn't implement
IEMFObservable
public org.eclipse.emf.ecore.EObject extractObserved(org.eclipse.core.databinding.observable.value.IObservableValue observableValue) throws DatabindingFailedException
EMFFormsDatabindingEMF
EObject
from the provided IObservableValue
.extractObserved
in interface EMFFormsDatabindingEMF
observableValue
- The IObservableValue
to extract the observed EObject
fromEObject
DatabindingFailedException
- when the IObservableValue
doesn't implement
IEMFObservable
public org.eclipse.emf.ecore.EObject extractObserved(org.eclipse.core.databinding.observable.list.IObservableList observableList) throws DatabindingFailedException
EMFFormsDatabindingEMF
EObject
from the provided IObservableList
.extractObserved
in interface EMFFormsDatabindingEMF
observableList
- The IObservableList
to extract the observed EObject
fromEObject
DatabindingFailedException
- when the IObservableValue
doesn't implement
IEMFObservable
public org.eclipse.emf.ecore.EStructuralFeature.Setting getSetting(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject object) throws DatabindingFailedException
EMFFormsDatabindingEMF
VDomainModelReference
and the provided
EObject
.getSetting
in interface EMFFormsDatabindingEMF
domainModelReference
- The VDomainModelReference
to use to retrieve the settingobject
- The EObject
to use to retrieve the settingVDomainModelReference
DatabindingFailedException
- if the databinding could not be executed successfully.public org.eclipse.emf.ecore.EStructuralFeature.Setting resolveSegment(VDomainModelReferenceSegment segment, org.eclipse.emf.ecore.EObject domainObject) throws DatabindingFailedException
EMFFormsSegmentResolver
segment
from the given domain object
and
returns the resulting EStructuralFeature.Setting
.resolveSegment
in interface EMFFormsSegmentResolver
segment
- The VDomainModelReferenceSegment
to resolvedomainObject
- The segment's root for which the segment is resolvedEStructuralFeature.Setting
DatabindingFailedException
- if no EStructuralFeature.Setting
could be resolvedCopyright © 2019. All rights reserved.