Package com._1c.g5.v8.dt.rights.resource
Class RightsResourceFactory
java.lang.Object
org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
com._1c.g5.v8.dt.rights.resource.RightsResourceFactory
- All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Factory
public class RightsResourceFactory
extends org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
The implementation of a resource factory specially for Rights
Resources created by this factory support next options for serialize resource like 1C xml:
- an element handle for serializing xsi type for root element;
- custom rights extended matadata implementation
RightsExtendedMetaData
; - whitespace indentation as tab literal;
- keeps default content;
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource.Factory
org.eclipse.emf.ecore.resource.Resource.Factory.Descriptor, org.eclipse.emf.ecore.resource.Resource.Factory.Registry
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRightsResourceFactory
(com.google.inject.Provider<org.eclipse.emf.ecore.xmi.XMLResource> resourceProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.resource.Resource
createResource
(org.eclipse.emf.common.util.URI uri)
-
Field Details
-
OPTION_CUSTOM_INDENT
- See Also:
-
-
Constructor Details
-
RightsResourceFactory
@Inject public RightsResourceFactory(com.google.inject.Provider<org.eclipse.emf.ecore.xmi.XMLResource> resourceProvider)
-
-
Method Details
-
createResource
public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri) - Specified by:
createResource
in interfaceorg.eclipse.emf.ecore.resource.Resource.Factory
- Overrides:
createResource
in classorg.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
-