public class EssentialOCLCSResource extends org.eclipse.xtext.linking.lazy.LazyLinkingResource implements BaseCSResource
Modifier and Type | Class and Description |
---|---|
protected static class |
EssentialOCLCSResource.RenamedDiagnostic |
static class |
EssentialOCLCSResource.TransientASResource
A TransientASResource acts as the ASResource while parsing the body of an ExpressionInOCL.
|
static class |
EssentialOCLCSResource.TransientASResourceFactory |
protected static class |
EssentialOCLCSResource.UnixOutputStream |
org.eclipse.xtext.linking.lazy.LazyLinkingResource.CyclicLinkingException, org.eclipse.xtext.linking.lazy.LazyLinkingResource.DiagnosticMessageContext
org.eclipse.emf.ecore.resource.impl.ResourceImpl.ContentsEList<E extends java.lang.Object & org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.resource.impl.ResourceImpl.ModificationTrackingAdapter
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
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
resolving, UNRESOLVEABLE_PROXIES_KEY
isUpdating, operationCanceledManager, OPTION_ENCODING, OPTION_FORMAT, OPTION_RESOLVE_ALL, OPTION_SERIALIZATION_OPTIONS
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warnings
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
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
Constructor and Description |
---|
EssentialOCLCSResource() |
Modifier and Type | Method and Description |
---|---|
protected void |
addLibraryError(java.util.List<org.eclipse.emf.ecore.resource.Resource.Diagnostic> errors,
IllegalLibraryException e) |
protected void |
addSyntaxErrors() |
org.eclipse.emf.common.notify.NotificationChain |
basicSetResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.common.notify.NotificationChain notifications) |
void |
createAndAddDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple)
Add the unresolved reference message for EReference in EObject at INode.
|
AS2CS |
createAS2CS(java.util.Map<? extends BaseCSResource,? extends ASResource> cs2asResourceMap,
EnvironmentFactoryInternal environmentFactory)
Create the AS2CS converter for the cs2asResourceMap conversions using metamodelManager.
|
protected ASResource |
createASResource(org.eclipse.emf.ecore.resource.ResourceSet asResourceSet) |
CS2AS |
createCS2AS(EnvironmentFactoryInternal environmentFactory,
ASResource asResource)
Create the CS2AS converter for the cs2asResourceMap conversions using metamodelManager.
|
protected org.eclipse.emf.ecore.resource.Resource.Diagnostic |
createDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple,
org.eclipse.xtext.diagnostics.DiagnosticMessage message) |
void |
dispose()
Dispose of this CSResource and its conversion facilities.
|
protected void |
doLinking() |
protected void |
doLoad(java.io.InputStream inputStream,
java.util.Map<?,?> options) |
void |
doSave(java.io.OutputStream outputStream,
java.util.Map<?,?> options) |
CS2AS |
findCS2AS()
Return the CS2AS adapter for this resource, or null if none in use.
|
java.lang.String |
getASContentType()
Return the eContentType to be used when creating an AS resource.
|
ASResource |
getASResource()
Return the Abstract Syntax representation of this Concrete Syntax resource.
|
ASResourceFactory |
getASResourceFactory() |
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.
|
CS2AS |
getCS2AS() |
CS2AS |
getCS2AS(EnvironmentFactoryInternal environmentFactory,
ASResource asResource)
Return the CS2AS adapter for this resource.
|
java.lang.String |
getEditorName()
Return the name of the editor for use in diagnostics.
|
EnvironmentFactory |
getEnvironmentFactory() |
ParserContext |
getParserContext() |
ProjectManager |
getProjectManager()
Return the map of known projects.
|
protected boolean |
hasError(ElementCS csElement) |
protected void |
initializeResourceFactory(org.eclipse.emf.ecore.resource.Resource.Factory.Registry resourceFactoryRegistry)
Install any required extension/content-type registrations to enable AS Resources
to be created satisfactorily.
|
NamedElement |
isPathable(org.eclipse.emf.ecore.EObject element)
Return a non-null NamedElement if element is able to be accessed by a qualified path; Other elements must use a quoted URI.
|
void |
reparse(java.lang.String newContent) |
org.eclipse.emf.common.util.URI |
resolve(org.eclipse.emf.common.util.URI uri)
Return a uri against the URI of this CS resource.
|
void |
resolveLazyCrossReferences(org.eclipse.xtext.util.CancelIndicator mon) |
protected void |
setHasError(ElementCS csElement) |
void |
setParserContext(ParserContext parserContext) |
void |
setProjectManager(ProjectManager projectMap)
Set the map of known projects.
|
void |
update(org.eclipse.xtext.diagnostics.IDiagnosticConsumer diagnosticsConsumer) |
void |
updateFrom(ASResource asResource,
EnvironmentFactory environmentFactory) |
addLazyProxyInformation, clearLazyProxyInformation, createAndAddDiagnostic, createDiagnosticMessage, createDiagnosticMessageContext, doResolveLazyCrossReference, getDiagnosticList, getDiagnosticMessageProvider, getEncoder, getEObject, getEObject, getLazyProxyInformation, getLinkingHelper, getLinkingService, getReferences, getUnresolvableURIFragments, handleCyclicResolution, hasLazyProxyInformation, isEagerLinking, isPotentialLazyCrossReference, isUnresolveableProxyCacheable, markUnresolvable, removeDiagnostic, removeLazyProxyInformation, resolveLazyCrossReference, setDiagnosticMessageProvider, setEagerLinking, setEncoder, setLinkingHelper, setLinkingService
addSyntaxDiagnostic, basicGetEObject, clearErrorsAndWarnings, clearInternalState, createReader, doUnload, getCache, getConcreteSyntaxValidator, getEncoding, getFragmentProvider, getLanguageName, getLinker, getModificationStamp, getParser, getParseResult, getResourceServiceProvider, getSerializer, getUnloader, getURIFragment, isValidationDisabled, reattachModificationTracker, relink, setCache, setEncodingFromOptions, setFragmentProvider, setInjectedParser, setLanguageName, setLinker, setModificationStamp, setParser, setParseResult, setResourceServiceProvider, setSerializer, setUnloader, setValidationDisabled, unload, update, updateInternalState, updateInternalState, validateConcreteSyntax
addModificationTrackingAdapters, attached, attachedHelper, createModificationTrackingAdapter, delete, detached, detachedHelper, getAllContents, getAllProperContents, getAllProperContents, getContents, getDefaultURIConverter, getEObject, getEObjectByID, getEObjectForURIFragmentRootSegment, getErrors, getIntrinsicIDToEObjectMap, getResourceSet, getTimeStamp, getUnloadingContents, getURI, getURIConverter, getURIFragmentRootSegment, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isContentZipEntry, isLoaded, isLoading, isModified, isTrackingModification, load, load, mergeMaps, newContentZipEntry, removeModificationTrackingAdapters, save, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setLoaded, setModified, setTimeStamp, setTrackingModification, setURI, toKeyString, toString, unload, unloaded, useZip
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
update
delete, getAllContents, getContents, getEObject, getErrors, getResourceSet, getTimeStamp, getURI, getURIFragment, getWarnings, isLoaded, isModified, isTrackingModification, load, load, save, save, setModified, setTimeStamp, setTrackingModification, setURI, unload
protected void addLibraryError(java.util.List<org.eclipse.emf.ecore.resource.Resource.Diagnostic> errors, IllegalLibraryException e)
protected void addSyntaxErrors()
addSyntaxErrors
in class org.eclipse.xtext.resource.XtextResource
public org.eclipse.emf.common.notify.NotificationChain basicSetResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.common.notify.NotificationChain notifications)
basicSetResourceSet
in interface org.eclipse.emf.ecore.resource.Resource.Internal
basicSetResourceSet
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
@NonNull protected ASResource createASResource(@NonNull org.eclipse.emf.ecore.resource.ResourceSet asResourceSet)
public void createAndAddDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple)
BaseCSResource
createAndAddDiagnostic
in interface BaseCSResource
createAndAddDiagnostic
in class org.eclipse.xtext.linking.lazy.LazyLinkingResource
@NonNull public CS2AS createCS2AS(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull ASResource asResource)
BaseCSResource
createCS2AS
in interface BaseCSResource
protected org.eclipse.emf.ecore.resource.Resource.Diagnostic createDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple, org.eclipse.xtext.diagnostics.DiagnosticMessage message)
createDiagnostic
in class org.eclipse.xtext.linking.lazy.LazyLinkingResource
@NonNull public AS2CS createAS2CS(@NonNull java.util.Map<? extends BaseCSResource,? extends ASResource> cs2asResourceMap, @NonNull EnvironmentFactoryInternal environmentFactory)
BaseCSResource
createAS2CS
in interface BaseCSResource
public void dispose()
BaseCSResource
dispose
in interface BaseCSResource
protected void doLinking()
doLinking
in class org.eclipse.xtext.linking.lazy.LazyLinkingResource
protected void doLoad(java.io.InputStream inputStream, java.util.Map<?,?> options) throws java.io.IOException
doLoad
in class org.eclipse.xtext.linking.lazy.LazyLinkingResource
java.io.IOException
public void doSave(java.io.OutputStream outputStream, java.util.Map<?,?> options) throws java.io.IOException
doSave
in class org.eclipse.xtext.resource.XtextResource
java.io.IOException
@Nullable public final CS2AS findCS2AS()
BaseCSResource
findCS2AS
in interface BaseCSResource
@NonNull public java.lang.String getASContentType()
BaseCSResource
getASContentType
in interface BaseCSResource
@NonNull public final ASResource getASResource()
CSResource
getASResource
in interface CSResource
@NonNull public ASResourceFactory getASResourceFactory()
getASResourceFactory
in interface CSResource
@NonNull public org.eclipse.emf.common.util.URI getASURI(@NonNull org.eclipse.emf.common.util.URI csURI)
BaseCSResource
getASURI
in interface BaseCSResource
@NonNull public CS2AS getCS2AS()
getCS2AS
in interface BaseCSResource
@NonNull public final CS2AS getCS2AS(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull ASResource asResource)
BaseCSResource
getCS2AS
in interface BaseCSResource
@NonNull public java.lang.String getEditorName()
BaseCSResource
getEditorName
in interface BaseCSResource
@Nullable public final ParserContext getParserContext()
getParserContext
in interface CSResource
@NonNull public EnvironmentFactory getEnvironmentFactory()
getEnvironmentFactory
in interface BaseCSResource
@Nullable public ProjectManager getProjectManager()
CSResource
getProjectManager
in interface CSResource
protected boolean hasError(ElementCS csElement)
protected void initializeResourceFactory(@NonNull org.eclipse.emf.ecore.resource.Resource.Factory.Registry resourceFactoryRegistry)
@Nullable public NamedElement isPathable(@NonNull org.eclipse.emf.ecore.EObject element)
BaseCSResource
isPathable
in interface BaseCSResource
public void reparse(java.lang.String newContent) throws java.io.IOException
reparse
in class org.eclipse.xtext.resource.XtextResource
java.io.IOException
@NonNull public final org.eclipse.emf.common.util.URI resolve(@NonNull org.eclipse.emf.common.util.URI uri)
BaseCSResource
resolve
in interface BaseCSResource
public void resolveLazyCrossReferences(org.eclipse.xtext.util.CancelIndicator mon)
resolveLazyCrossReferences
in class org.eclipse.xtext.linking.lazy.LazyLinkingResource
protected void setHasError(ElementCS csElement)
public final void setParserContext(@Nullable ParserContext parserContext)
setParserContext
in interface CSResource
public void setProjectManager(@Nullable ProjectManager projectMap)
CSResource
setProjectManager
in interface CSResource
public void update(@NonNull org.eclipse.xtext.diagnostics.IDiagnosticConsumer diagnosticsConsumer)
update
in interface BaseCSResource
public void updateFrom(@NonNull ASResource asResource, @NonNull EnvironmentFactory environmentFactory)
updateFrom
in interface CSResource