Class ReferenceHelperImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.emf2web.util.AbstractReferenceHelper
-
- org.eclipse.emf.ecp.emf2web.json.util.ReferenceHelperImpl
-
- All Implemented Interfaces:
ReferenceHelper
public class ReferenceHelperImpl extends AbstractReferenceHelper
- Author:
- Stefan Dirix
-
-
Constructor Summary
Constructors Constructor Description ReferenceHelperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEcorePath(java.lang.String ecorePath)
Allows to add an ecore path to the current view model.protected java.util.Set<java.lang.String>
getEcorePaths()
Returns the ecore paths of the current view model.java.lang.String
getStringRepresentation(VDomainModelReference reference)
Determines a string representation for the givenreference
, for example a path.-
Methods inherited from class org.eclipse.emf.ecp.emf2web.util.AbstractReferenceHelper
getEStructuralFeature, getLabel, handleDatabindingFailedException
-
-
-
-
Method Detail
-
getStringRepresentation
public java.lang.String getStringRepresentation(VDomainModelReference reference)
Description copied from interface:ReferenceHelper
Determines a string representation for the givenreference
, for example a path.- Parameters:
reference
- TheVDomainModelReference
for which a string representation is to be determined.- Returns:
- The string representation of the given
reference
.
-
addEcorePath
public void addEcorePath(java.lang.String ecorePath)
Allows to add an ecore path to the current view model.- Parameters:
ecorePath
- The path to the ecore of the current view model
-
getEcorePaths
protected java.util.Set<java.lang.String> getEcorePaths()
Description copied from class:AbstractReferenceHelper
Returns the ecore paths of the current view model.- Specified by:
getEcorePaths
in classAbstractReferenceHelper
- Returns:
- The paths to the ecores of the current view
-
-