1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.featuremodel.util; |
8 | |
9 | import org.eclipse.emf.common.util.URI; |
10 | import org.eclipse.emf.ecore.resource.Resource; |
11 | import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; |
12 | import org.eclipse.emf.ecore.xmi.XMLResource; |
13 | |
14 | /** |
15 | * <!-- begin-user-doc --> |
16 | * The <b>Resource Factory</b> associated with the package. |
17 | * <!-- end-user-doc --> |
18 | * @see de.uka.ipd.sdq.featuremodel.util.featuremodelResourceImpl |
19 | * @generated |
20 | */ |
21 | public class featuremodelResourceFactoryImpl extends ResourceFactoryImpl { |
22 | /** |
23 | * Creates an instance of the resource factory. |
24 | * <!-- begin-user-doc --> |
25 | * <!-- end-user-doc --> |
26 | * @generated |
27 | */ |
28 | public featuremodelResourceFactoryImpl() { |
29 | super(); |
30 | } |
31 | |
32 | /** |
33 | * Creates an instance of the resource. |
34 | * <!-- begin-user-doc --> |
35 | * <!-- end-user-doc --> |
36 | * @generated |
37 | */ |
38 | @Override |
39 | public Resource createResource(URI uri) { |
40 | XMLResource result = new featuremodelResourceImpl(uri); |
41 | result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); |
42 | result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); |
43 | |
44 | result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); |
45 | |
46 | result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); |
47 | result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); |
48 | |
49 | result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); |
50 | return result; |
51 | } |
52 | |
53 | } //featuremodelResourceFactoryImpl |