public class EssentialOCLCSResource extends LazyLinkingResource implements BaseCSResource
Modifier and Type | Class and Description |
---|---|
static class |
EssentialOCLCSResource.TransientASResource
A TransientASResource acts as the ASResource while parsing the body of an ExpressionInOCL.
|
static class |
EssentialOCLCSResource.TransientASResourceFactory |
CSResource.CSResourceExtension, CSResource.CSResourceExtension2
Constructor and Description |
---|
EssentialOCLCSResource() |
Modifier and Type | Method and Description |
---|---|
NotificationChain |
basicSetResourceSet(ResourceSet resourceSet,
NotificationChain notifications) |
void |
createAndAddDiagnostic(<any> triple)
Add the unresolved reference message for EReference in EObject at INode.
|
AS2CS |
createAS2CS(Map<? extends BaseCSResource,? extends ASResource> cs2asResourceMap,
EnvironmentFactoryInternal environmentFactory)
Create the AS2CS converter for the cs2asResourceMap conversions using metamodelManager.
|
CS2AS |
createCS2AS(EnvironmentFactoryInternal environmentFactory,
ASResource asResource)
Create the CS2AS converter for the cs2asResourceMap conversions using metamodelManager.
|
void |
dispose()
Dispose of this CSResource and its conversion facilities.
|
void |
doSave(OutputStream outputStream,
Map<?,?> options) |
CS2AS |
findCS2AS()
Return the CS2AS adapter for this resource, or null if none in use.
|
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() |
URI |
getASURI(URI csURI)
Return the Abstract Syntax URI for the given Concrete Syntax URI.
|
CS2AS |
getCS2AS() |
CS2AS |
getCS2AS(EnvironmentFactoryInternal environmentFactory,
ASResource asResource)
Return the CS2AS adapter for this resource.
|
String |
getEditorName()
Return the name of the editor for use in diagnostics.
|
EnvironmentFactory |
getEnvironmentFactory() |
ParserContext |
getParserContext() |
ProjectManager |
getProjectManager()
Return the map of known projects.
|
boolean |
isDerived()
Return true if this CSResource is derived from an ASResource..
|
NamedElement |
isPathable(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(String newContent) |
URI |
resolve(URI uri)
Return a uri against the URI of this CS resource.
|
void |
resolveLazyCrossReferences(CancelIndicator mon) |
void |
setDerived(boolean isDerived)
Set whether this CSResource is derived from an ASResource..
|
void |
setParserContext(ParserContext parserContext) |
void |
setProjectManager(ProjectManager projectMap)
Set the map of known projects.
|
void |
update(IDiagnosticConsumer diagnosticsConsumer) |
void |
updateFrom(ASResource asResource,
EnvironmentFactory environmentFactory) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
update
public NotificationChain basicSetResourceSet(ResourceSet resourceSet, NotificationChain notifications)
public void createAndAddDiagnostic(<any> triple)
BaseCSResource
createAndAddDiagnostic
in interface BaseCSResource
public CS2AS createCS2AS(EnvironmentFactoryInternal environmentFactory, ASResource asResource)
BaseCSResource
createCS2AS
in interface BaseCSResource
public AS2CS createAS2CS(Map<? extends BaseCSResource,? extends ASResource> cs2asResourceMap, EnvironmentFactoryInternal environmentFactory)
BaseCSResource
createAS2CS
in interface BaseCSResource
public void dispose()
CSResource.CSResourceExtension
dispose
in interface CSResource.CSResourceExtension
public void doSave(OutputStream outputStream, Map<?,?> options) throws IOException
IOException
public final CS2AS findCS2AS()
BaseCSResource
findCS2AS
in interface BaseCSResource
public String getASContentType()
BaseCSResource
getASContentType
in interface BaseCSResource
public final ASResource getASResource()
CSResource
getASResource
in interface CSResource
public ASResourceFactory getASResourceFactory()
getASResourceFactory
in interface CSResource
public URI getASURI(URI csURI)
BaseCSResource
getASURI
in interface BaseCSResource
public CS2AS getCS2AS()
getCS2AS
in interface BaseCSResource
public final CS2AS getCS2AS(EnvironmentFactoryInternal environmentFactory, ASResource asResource)
BaseCSResource
getCS2AS
in interface BaseCSResource
public String getEditorName()
BaseCSResource
getEditorName
in interface BaseCSResource
public final ParserContext getParserContext()
getParserContext
in interface CSResource
public EnvironmentFactory getEnvironmentFactory()
getEnvironmentFactory
in interface BaseCSResource
public ProjectManager getProjectManager()
CSResource
getProjectManager
in interface CSResource
public boolean isDerived()
CSResource.CSResourceExtension2
isDerived
in interface CSResource.CSResourceExtension2
public NamedElement isPathable(EObject element)
BaseCSResource
isPathable
in interface BaseCSResource
public void reparse(String newContent) throws IOException
IOException
public final URI resolve(URI uri)
BaseCSResource
resolve
in interface BaseCSResource
public void resolveLazyCrossReferences(CancelIndicator mon)
public void setDerived(boolean isDerived)
CSResource.CSResourceExtension2
setDerived
in interface CSResource.CSResourceExtension2
public final void setParserContext(ParserContext parserContext)
setParserContext
in interface CSResource
public void setProjectManager(ProjectManager projectMap)
CSResource
setProjectManager
in interface CSResource
public void update(IDiagnosticConsumer diagnosticsConsumer)
update
in interface BaseCSResource
public void updateFrom(ASResource asResource, EnvironmentFactory environmentFactory)
updateFrom
in interface CSResource
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.