org.eclipse.emf.ecp.view.internal.table.model
Class TableDMRConverter
java.lang.Object
org.eclipse.emf.ecp.view.internal.table.model.TableDMRConverter
- All Implemented Interfaces:
- DomainModelReferenceConverter
public class TableDMRConverter
- extends Object
- implements DomainModelReferenceConverter
- Author:
- Eugen
TableDMRConverter
public TableDMRConverter()
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(org.eclipse.emf.ecp.view.spi.model.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.