org.eclipse.ocl.examples.xtext.base.utilities
Interface BaseCSResource

All Superinterfaces:
BaseResource, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.resource.Resource
All Known Implementing Classes:
CompleteOCLCSResource, EmbeddedXtextResource, EssentialOCLCSResource, OCLinEcoreCSResource, OCLstdlibCSResource

public interface BaseCSResource
extends BaseResource

BaseResource defines the Xtext-dependent extended interface for a Concrete Syntax resource.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource
org.eclipse.emf.ecore.resource.Resource.Diagnostic, org.eclipse.emf.ecore.resource.Resource.Factory, org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.ecore.resource.Resource.IOWrappedException
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource
OPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGS
 
Method Summary
 CS2Pivot createCS2Pivot(java.util.Map<? extends org.eclipse.emf.ecore.resource.Resource,? extends ASResource> cs2asResourceMap, MetaModelManager metaModelManager)
          Create the CS2AS converter for the cs2asResourceMap conversions using metaModelManager.
 MetaModelManager createMetaModelManager()
          Return a MetaModelManager for use with this CS resource, unless one can be located via a CS2AS adapter.
 Pivot2CS createPivot2CS(java.util.Map<? extends org.eclipse.emf.ecore.resource.Resource,? extends ASResource> cs2asResourceMap, MetaModelManager metaModelManager)
          Create the AS2CS converter for the cs2asResourceMap conversions using metaModelManager.
 CS2PivotResourceAdapter findCS2ASAdapter()
          Return the CS2AS adapter for this resource, or null if none installed.
 java.lang.String getASContentType()
          Return the eContentType to be used when creating an AS resource.
 org.eclipse.emf.common.util.URI getASURI(org.eclipse.emf.common.util.URI csURI)
          Return the Abstract Syntax URI for the fiven Concrete Syntax URI.
 CS2PivotResourceAdapter getCS2ASAdapter(MetaModelManager metaModelManager)
          Return the CS2AS adapter for this resource.
 java.lang.String getEditorName()
          Return the name of the editor for use in diagnostics.
 org.eclipse.emf.common.util.URI resolve(org.eclipse.emf.common.util.URI uri)
          Return a uri against the URI of this CS resource.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.utilities.BaseResource
getASResource, getParserContext, setParserContext, updateFrom
 
Methods inherited from interface org.eclipse.emf.ecore.resource.Resource
delete, getAllContents, getContents, getEObject, getErrors, getResourceSet, getTimeStamp, getURI, getURIFragment, getWarnings, isLoaded, isModified, isTrackingModification, load, load, save, save, setModified, setTimeStamp, setTrackingModification, setURI, unload
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

createCS2Pivot

@NonNull
CS2Pivot createCS2Pivot(@NonNull
                                java.util.Map<? extends org.eclipse.emf.ecore.resource.Resource,? extends ASResource> cs2asResourceMap,
                                @NonNull
                                MetaModelManager metaModelManager)
Create the CS2AS converter for the cs2asResourceMap conversions using metaModelManager.


createPivot2CS

@NonNull
Pivot2CS createPivot2CS(@NonNull
                                java.util.Map<? extends org.eclipse.emf.ecore.resource.Resource,? extends ASResource> cs2asResourceMap,
                                @NonNull
                                MetaModelManager metaModelManager)
Create the AS2CS converter for the cs2asResourceMap conversions using metaModelManager.


createMetaModelManager

@NonNull
MetaModelManager createMetaModelManager()
Return a MetaModelManager for use with this CS resource, unless one can be located via a CS2AS adapter.


findCS2ASAdapter

@Nullable
CS2PivotResourceAdapter findCS2ASAdapter()
Return the CS2AS adapter for this resource, or null if none installed.


getASContentType

@NonNull
java.lang.String getASContentType()
Return the eContentType to be used when creating an AS resource.


getASURI

@NonNull
org.eclipse.emf.common.util.URI getASURI(@NonNull
                                                 org.eclipse.emf.common.util.URI csURI)
Return the Abstract Syntax URI for the fiven Concrete Syntax URI.


getCS2ASAdapter

@NonNull
CS2PivotResourceAdapter getCS2ASAdapter(@Nullable
                                                MetaModelManager metaModelManager)
Return the CS2AS adapter for this resource. If no CS2AS adapter installed, one is created and installed using the provided metaModelManager, which if null is also created.


getEditorName

@NonNull
java.lang.String getEditorName()
Return the name of the editor for use in diagnostics.


resolve

@NonNull
org.eclipse.emf.common.util.URI resolve(@NonNull
                                                org.eclipse.emf.common.util.URI uri)
Return a uri against the URI of this CS resource.