org.eclipse.emfforms.internal.core.services.databinding.index
Class IndexDomainModelReferenceConverter
java.lang.Object
org.eclipse.emfforms.internal.core.services.databinding.index.IndexDomainModelReferenceConverter
- All Implemented Interfaces:
- DomainModelReferenceConverter
public class IndexDomainModelReferenceConverter
- extends Object
- implements DomainModelReferenceConverter
An implementation of DomainModelReferenceConverter
that converts VIndexDomainModelReferences
.
- Author:
- Lucas Koehler
IndexDomainModelReferenceConverter
public IndexDomainModelReferenceConverter()
isApplicable
public double isApplicable(VDomainModelReference domainModelReference)
- Checks whether the given
VDomainModelReference
can be converted by this
DomainModelReferenceConverter
to a IValueProperty
. The return value is the priority of this
converter. The higher the priority, the better suits the converter the given VDomainModelReference
.
- Specified by:
isApplicable
in interface DomainModelReferenceConverter
- Parameters:
domainModelReference
- The VDomainModelReference
whose priority is wanted.
- Returns:
- The priority of the given
VDomainModelReference
; negative infinity if this converter is not
applicable. - See Also:
DomainModelReferenceConverter.isApplicable(VDomainModelReference)
convertToValueProperty
public org.eclipse.core.databinding.property.value.IValueProperty convertToValueProperty(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
throws DatabindingFailedException
- Converts a
VDomainModelReference
to a IValueProperty
.
- Specified by:
convertToValueProperty
in interface DomainModelReferenceConverter
- Parameters:
domainModelReference
- The VDomainModelReference
that will be converted to a IValueProperty
object
- The root object of the rendered form
- Returns:
- The created
IValueProperty
, does not return null
.
- Throws:
DatabindingFailedException
- if no value property could be created due to an invalid
VDomainModelReference
.- See Also:
DomainModelReferenceConverter.convertToValueProperty(VDomainModelReference,EObject)
convertToListProperty
public org.eclipse.core.databinding.property.list.IListProperty convertToListProperty(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject object)
throws DatabindingFailedException
- Converts a
VDomainModelReference
to an IListProperty
.
- Specified by:
convertToListProperty
in interface DomainModelReferenceConverter
- Parameters:
domainModelReference
- The VDomainModelReference
that will be converted to an IListProperty
object
- The root object of the rendered form
- Returns:
- The created
IListProperty
, does not return null
.
- Throws:
DatabindingFailedException
- if no value property could be created due to an invalid
VDomainModelReference
.- See Also:
DomainModelReferenceConverter.convertToListProperty(VDomainModelReference,EObject)
Copyright © 2015. All Rights Reserved.