Package org.eclipse.emf.ecp.emf2web.util
Class AbstractReferenceHelper
- java.lang.Object
-
- org.eclipse.emf.ecp.emf2web.util.AbstractReferenceHelper
-
- All Implemented Interfaces:
ReferenceHelper
- Direct Known Subclasses:
ReferenceHelperImpl
public abstract class AbstractReferenceHelper extends java.lang.Object implements ReferenceHelper
An abstract implementation ofReferenceHelper
usingEMFFormsDatabinding
.- Author:
- Stefan Dirix
-
-
Constructor Summary
Constructors Constructor Description AbstractReferenceHelper()
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.Set<java.lang.String>
getEcorePaths()
Returns the ecore paths of the current view model.protected org.eclipse.emf.ecore.EStructuralFeature
getEStructuralFeature(VDomainModelReference reference)
Returns theEStructuralFeature
for the givenVDomainModelReference
.java.lang.String
getLabel(VDomainModelReference reference)
Determines a label for the givenreference
.protected void
handleDatabindingFailedException(DatabindingFailedException exception)
HandleDatabindingFailedException
s by reporting them to the ECP ReportService.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.ecp.emf2web.util.ReferenceHelper
getStringRepresentation
-
-
-
-
Method Detail
-
getEStructuralFeature
protected org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(VDomainModelReference reference)
Returns theEStructuralFeature
for the givenVDomainModelReference
.- Parameters:
reference
- TheVDomainModelReference
for which theEStructuralFeature
is to be determined.- Returns:
- The determined
EStructuralFeature
.
-
handleDatabindingFailedException
protected void handleDatabindingFailedException(DatabindingFailedException exception)
HandleDatabindingFailedException
s by reporting them to the ECP ReportService.- Parameters:
exception
- The handledDatabindingFailedException
.
-
getLabel
public java.lang.String getLabel(VDomainModelReference reference)
Description copied from interface:ReferenceHelper
Determines a label for the givenreference
.- Specified by:
getLabel
in interfaceReferenceHelper
- Parameters:
reference
- TheVDomainModelReference
for which a label is to be determined.- Returns:
- The label for the given
reference
.
-
getEcorePaths
protected abstract java.util.Set<java.lang.String> getEcorePaths()
Returns the ecore paths of the current view model.- Returns:
- The paths to the ecores of the current view
-
-