/**
* <copyright>
* </copyright>
*
*
*/
package robot.resource.robot.mopp;
/**
* A factory for ContextDependentURIFragments. Given a feasible reference
* resolver, this factory returns a matching fragment that used the resolver to
* resolver proxy objects.
*
* @param <ContainerType> the type of the class containing the reference to be
* resolved
* @param <ReferenceType> the type of the reference to be resolved
*/
public class RobotContextDependentURIFragmentFactory<ContainerType extends org.eclipse.emf.ecore.EObject, ReferenceType extends org.eclipse.emf.ecore.EObject> implements robot.resource.robot.IRobotContextDependentURIFragmentFactory<ContainerType, ReferenceType> {
private final robot.resource.robot.IRobotReferenceResolver<ContainerType, ReferenceType> resolver;
public RobotContextDependentURIFragmentFactory(robot.resource.robot.IRobotReferenceResolver<ContainerType, ReferenceType> resolver) {
this.resolver = resolver;
}
public robot.resource.robot.IRobotContextDependentURIFragment<?> create(String identifier, ContainerType container, org.eclipse.emf.ecore.EReference reference, int positionInReference, org.eclipse.emf.ecore.EObject proxy) {
return new robot.resource.robot.mopp.RobotContextDependentURIFragment<ContainerType, ReferenceType>(identifier, container, reference, positionInReference, proxy) {
public robot.resource.robot.IRobotReferenceResolver<ContainerType, ReferenceType> getResolver() {
return resolver;
}
};
}
}