1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.featuremodel.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 de.uka.ipd.sdq.featuremodel.featuremodelPackage; |
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 featuremodelXMLProcessor extends XMLProcessor { |
24 | |
25 | /** |
26 | * Public constructor to instantiate the helper. |
27 | * <!-- begin-user-doc --> |
28 | * <!-- end-user-doc --> |
29 | * @generated |
30 | */ |
31 | public featuremodelXMLProcessor() { |
32 | super((EPackage.Registry.INSTANCE)); |
33 | featuremodelPackage.eINSTANCE.eClass(); |
34 | } |
35 | |
36 | /** |
37 | * Register for "*" and "xml" file extensions the featuremodelResourceFactoryImpl 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 featuremodelResourceFactoryImpl()); |
47 | registrations.put(STAR_EXTENSION, new featuremodelResourceFactoryImpl()); |
48 | } |
49 | return registrations; |
50 | } |
51 | |
52 | } //featuremodelXMLProcessor |