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