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