| /* |
| * Copyright (c) 2014, 2018 CEA and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v20.html |
| * |
| * Contributors: |
| * Kenn Hussey (CEA) - initial API and implementation |
| * Kenn Hussey - 535301 |
| * |
| */ |
| package org.eclipse.uml2.uml.internal.resource; |
| |
| import org.eclipse.emf.common.util.URI; |
| import org.eclipse.emf.ecore.xmi.XMLHelper; |
| import org.eclipse.emf.ecore.xmi.XMLLoad; |
| import org.eclipse.emf.ecore.xmi.XMLSave; |
| import org.eclipse.uml2.uml.resource.XMI242UMLResource; |
| |
| /** |
| * Resource that converts .xmi models. |
| * OMG: UML 2.4.x and UML 2.5 |
| * API: UML2 4.x and UML2 5.0 |
| * |
| * @since 5.0 |
| */ |
| public class XMI242UMLResourceImpl |
| extends UMLResourceImpl |
| implements XMI242UMLResource { |
| |
| public XMI242UMLResourceImpl(URI uri) { |
| super(uri); |
| } |
| |
| @Override |
| protected XMLHelper createXMLHelper() { |
| return new XMI2UMLHelperImpl(this); |
| } |
| |
| @Override |
| protected boolean assignIDsWhileLoading() { |
| return false; |
| } |
| |
| @Override |
| protected XMLLoad createXMLLoad() { |
| return new XMI242UMLLoadImpl(createXMLHelper()); |
| } |
| |
| @Override |
| protected XMLSave createXMLSave() { |
| return new XMI2UMLSaveImpl(createXMLHelper()); |
| } |
| } |