/**
* <copyright>
* </copyright>
*
*
*/
package org.feature.multi.perspective.mapping.viewmapping.resource.mtext.mopp;
/**
* A FuzzyResolveResult is an implementation of the IMtextReferenceResolveResult
* interface that delegates all method calls to a given
* IMtextReferenceResolveResult with ReferenceType EObject. It is used by
* reference resolver switches to collect results from different reference
* resolvers in a type safe manner.
*
* @param <ReferenceType> the type of the reference that is resolved
*/
public class MtextFuzzyResolveResult<ReferenceType extends org.eclipse.emf.ecore.EObject> implements org.feature.multi.perspective.mapping.viewmapping.resource.mtext.IMtextReferenceResolveResult<ReferenceType> {
private org.feature.multi.perspective.mapping.viewmapping.resource.mtext.IMtextReferenceResolveResult<org.eclipse.emf.ecore.EObject> delegate;
public MtextFuzzyResolveResult(org.feature.multi.perspective.mapping.viewmapping.resource.mtext.IMtextReferenceResolveResult<org.eclipse.emf.ecore.EObject> delegate) {
this.delegate = delegate;
}
public String getErrorMessage() {
return delegate.getErrorMessage();
}
public java.util.Collection<org.feature.multi.perspective.mapping.viewmapping.resource.mtext.IMtextReferenceMapping<ReferenceType>> getMappings() {
return null;
}
public boolean wasResolved() {
return delegate.wasResolved();
}
public boolean wasResolvedMultiple() {
return delegate.wasResolvedMultiple();
}
public boolean wasResolvedUniquely() {
return delegate.wasResolvedUniquely();
}
public void setErrorMessage(String message) {
delegate.setErrorMessage(message);
}
public void addMapping(String identifier, ReferenceType target) {
delegate.addMapping(identifier, (org.eclipse.emf.ecore.EObject) target);
}
public void addMapping(String identifier, org.eclipse.emf.common.util.URI uri) {
delegate.addMapping(identifier, uri);
}
public void addMapping(String identifier, ReferenceType target, String warning) {
delegate.addMapping(identifier, (org.eclipse.emf.ecore.EObject) target, warning);
}
public void addMapping(String identifier, org.eclipse.emf.common.util.URI uri, String warning) {
delegate.addMapping(identifier, uri, warning);
}
public java.util.Collection<org.feature.multi.perspective.mapping.viewmapping.resource.mtext.IMtextQuickFix> getQuickFixes() {
return delegate.getQuickFixes();
}
public void addQuickFix(org.feature.multi.perspective.mapping.viewmapping.resource.mtext.IMtextQuickFix quickFix) {
delegate.addQuickFix(quickFix);
}
}