| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package edu.kit.ipd.sdq.completionfeaturemodel.util; |
| 8 | |
| 9 | import java.util.Map; |
| 10 | |
| 11 | import org.eclipse.emf.ecore.EPackage; |
| 12 | import org.eclipse.emf.ecore.resource.Resource; |
| 13 | import org.eclipse.emf.ecore.xmi.util.XMLProcessor; |
| 14 | |
| 15 | import edu.kit.ipd.sdq.completionfeaturemodel.completionfeaturemodelPackage; |
| 16 | |
| 17 | /** |
| 18 | * This class contains helper methods to serialize and deserialize XML documents |
| 19 | * <!-- begin-user-doc --> |
| 20 | * <!-- end-user-doc --> |
| 21 | * @generated |
| 22 | */ |
| 23 | public class completionfeaturemodelXMLProcessor extends XMLProcessor { |
| 24 | |
| 25 | /** |
| 26 | * Public constructor to instantiate the helper. |
| 27 | * <!-- begin-user-doc --> |
| 28 | * <!-- end-user-doc --> |
| 29 | * @generated |
| 30 | */ |
| 31 | public completionfeaturemodelXMLProcessor() { |
| 32 | super((EPackage.Registry.INSTANCE)); |
| 33 | completionfeaturemodelPackage.eINSTANCE.eClass(); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Register for "*" and "xml" file extensions the completionfeaturemodelResourceFactoryImpl factory. |
| 38 | * <!-- begin-user-doc --> |
| 39 | * <!-- end-user-doc --> |
| 40 | * @generated |
| 41 | */ |
| 42 | @Override |
| 43 | protected Map<String, Resource.Factory> getRegistrations() { |
| 44 | if (registrations == null) { |
| 45 | super.getRegistrations(); |
| 46 | registrations.put(XML_EXTENSION, new completionfeaturemodelResourceFactoryImpl()); |
| 47 | registrations.put(STAR_EXTENSION, new completionfeaturemodelResourceFactoryImpl()); |
| 48 | } |
| 49 | return registrations; |
| 50 | } |
| 51 | |
| 52 | } //completionfeaturemodelXMLProcessor |