EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][LqnCore.util]

COVERAGE SUMMARY FOR SOURCE FILE [LqnCoreResourceFactoryImpl.java]

nameclass, %method, %block, %line, %
LqnCoreResourceFactoryImpl.java0%   (0/1)0%   (0/2)0%   (0/62)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class LqnCoreResourceFactoryImpl0%   (0/1)0%   (0/2)0%   (0/62)0%   (0/12)
LqnCoreResourceFactoryImpl (): void 0%   (0/1)0%   (0/17)0%   (0/4)
createResource (URI): Resource 0%   (0/1)0%   (0/45)0%   (0/8)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package LqnCore.util;
8 
9import LqnCore.LqnCorePackage;
10 
11import org.eclipse.emf.common.util.URI;
12 
13import org.eclipse.emf.ecore.EPackage;
14 
15import org.eclipse.emf.ecore.impl.EPackageRegistryImpl;
16 
17import org.eclipse.emf.ecore.resource.Resource;
18 
19import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
20 
21import org.eclipse.emf.ecore.util.BasicExtendedMetaData;
22import org.eclipse.emf.ecore.util.ExtendedMetaData;
23 
24import org.eclipse.emf.ecore.xmi.XMLResource;
25 
26/**
27 * <!-- begin-user-doc -->
28 * The <b>Resource Factory</b> associated with the package.
29 * <!-- end-user-doc -->
30 * @see LqnCore.util.LqnCoreResourceImpl
31 * @generated
32 */
33public class LqnCoreResourceFactoryImpl extends ResourceFactoryImpl {
34        /**
35         * <!-- begin-user-doc -->
36         * <!-- end-user-doc -->
37         * @generated
38         */
39        protected ExtendedMetaData extendedMetaData;
40 
41        /**
42         * Creates an instance of the resource factory.
43         * <!-- begin-user-doc -->
44         * <!-- end-user-doc -->
45         * @generated
46         */
47        public LqnCoreResourceFactoryImpl() {
48                super();
49                extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE));
50                extendedMetaData.putPackage(null, LqnCorePackage.eINSTANCE);
51        }
52 
53        /**
54         * Creates an instance of the resource.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @generated
58         */
59        @Override
60        public Resource createResource(URI uri) {
61                XMLResource result = new LqnCoreResourceImpl(uri);
62                result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
63                result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
64 
65                result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
66 
67                result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
68                result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
69 
70                result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
71                return result;
72        }
73 
74} //LqnCoreResourceFactoryImpl

[all classes][LqnCore.util]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov