Package org.eclipse.epsilon.flexmi
Class FlexmiResource
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.NotifierImpl
org.eclipse.emf.ecore.resource.impl.ResourceImpl
org.eclipse.epsilon.flexmi.FlexmiResource
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.resource.Resource
,org.eclipse.emf.ecore.resource.Resource.Internal
,FlexmiXmlParser.Handler
public class FlexmiResource
extends org.eclipse.emf.ecore.resource.impl.ResourceImpl
implements FlexmiXmlParser.Handler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl
org.eclipse.emf.ecore.resource.impl.ResourceImpl.ContentsEList<E extends Object & org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.resource.impl.ResourceImpl.ModificationTrackingAdapter
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
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
FieldsModifier and TypeFieldDescriptionprotected ActionMap
protected Node
protected boolean
protected EObjectTraceManager
protected FlexmiFlavour
protected FrameStack
protected com.google.common.collect.BiMap<String,
org.eclipse.emf.ecore.EObject> protected Collection<String>
protected FlexmiResource
protected Collection<Operation>
protected Set<org.eclipse.emf.common.util.URI>
protected Stack<org.eclipse.emf.common.util.URI>
protected List<ProcessingInstruction>
static final String
protected StringSimilarityProvider
protected List<UnresolvedReference>
Fields inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warnings
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrderedChild
(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EObject child) protected void
addParseWarning
(String message) protected void
addParseWarning
(String message, int line) protected void
addParseWarning
(String message, org.eclipse.emf.common.util.URI uri, int line) void
addTemplate
(Template template) createParser
(BufferedInputStream inputStream) protected void
doLoad
(InputStream inputStream, Map<?, ?> options) protected org.eclipse.emf.ecore.EClass
eClassForName
(String name) protected org.eclipse.emf.ecore.ENamedElement
eNamedElementForName
(String name, Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates) protected org.eclipse.emf.ecore.ENamedElement
eNamedElementForName
(String name, Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates, boolean fuzzy) void
endDocument
(Document document) void
endElement
(Element element) void
protected List<org.eclipse.emf.ecore.EClass>
protected List<org.eclipse.emf.ecore.EClass>
getAllSubtypes
(org.eclipse.emf.ecore.EClass eClass) protected List<org.eclipse.emf.ecore.EStructuralFeature>
getCandidateStructuralFeaturesForAttribute
(org.eclipse.emf.ecore.EClass eClass) org.eclipse.emf.common.util.URI
org.eclipse.emf.ecore.EObject
getEObject
(String uriFragment) protected Object
int
getLineNumber
(Node node) getLocalId
(org.eclipse.emf.ecore.EObject eObject) List<org.eclipse.emf.ecore.EObject>
getOrderedChildren
(org.eclipse.emf.ecore.EObject parent) Set<org.eclipse.emf.common.util.URI>
getTemplate
(String templateName) void
handleVarAttribute
(String attribute, VariableDeclaration.VariableDeclarationType type, NamedNodeMap attributes, org.eclipse.emf.ecore.EObject eObject) boolean
static boolean
isXml
(BufferedInputStream inputStream) static void
void
protected void
performActions
(org.eclipse.emf.ecore.EObject eObject) void
processingInstruction
(ProcessingInstruction processingInstruction) protected boolean
resolveReference
(UnresolvedReference unresolvedReference) protected void
void
protected void
setAttributes
(org.eclipse.emf.ecore.EObject eObject, Element element) protected void
setEAttributeValue
(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute eAttribute, String attributeName, String value, boolean split) protected void
setEObjectId
(org.eclipse.emf.ecore.EObject eObject, String id) void
setImportedFrom
(FlexmiResource importedFrom) void
startDocument
(Document document) void
startElement
(Element element) void
startProcessingFragment
(org.eclipse.emf.common.util.URI uri) Methods inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl
addModificationTrackingAdapters, attached, attachedHelper, basicSetResourceSet, createModificationTrackingAdapter, delete, detached, detachedHelper, doSave, doUnload, getAllContents, getAllProperContents, getAllProperContents, getContents, getDefaultURIConverter, getEObject, getEObjectByID, getEObjectForURIFragmentRootSegment, getErrors, getIDForEObject, getIntrinsicIDToEObjectMap, getResourceSet, getTimeStamp, getUnloadingContents, getURI, getURIConverter, getURIFragment, getURIFragmentRootSegment, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isContentZipEntry, isLoaded, isLoading, isModified, isTrackingModification, load, load, mergeMaps, newContentZipEntry, removeModificationTrackingAdapters, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setLoaded, setModified, setTimeStamp, setTrackingModification, setURI, supportIDRelativeURIFragmentPaths, toKeyString, toString, unload, unloaded, useZip
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Field Details
-
ROOT_NODE_NAME
- See Also:
-
processingInstructions
-
eObjectTraceManager
-
unresolvedReferences
-
objectStack
-
currentNode
-
importedEolModules
-
eClassCache
-
allSubtypesCache
-
stringSimilarityProvider
-
parsedFragmentURIStack
-
parsedFragmentURIs
-
templates
-
fullyQualifiedIDs
-
localIDs
-
frameStack
-
actionMap
-
orderedChildren
-
operations
-
importedFrom
-
flavour
-
documentEnded
protected boolean documentEnded
-
-
Constructor Details
-
FlexmiResource
public FlexmiResource(org.eclipse.emf.common.util.URI uri)
-
-
Method Details
-
startProcessingFragment
public void startProcessingFragment(org.eclipse.emf.common.util.URI uri) -
endProcessingFragment
public void endProcessingFragment() -
getParsedFragmentURIs
-
addTemplate
-
getTemplate
-
getTemplates
-
main
- Throws:
Exception
-
doLoad
- Overrides:
doLoad
in classorg.eclipse.emf.ecore.resource.impl.ResourceImpl
- Throws:
IOException
-
getFlavour
-
save
- Specified by:
save
in interfaceorg.eclipse.emf.ecore.resource.Resource
- Overrides:
save
in classorg.eclipse.emf.ecore.resource.impl.ResourceImpl
- Throws:
IOException
-
setEObjectId
-
createParser
-
isXml
-
getEObject
- Specified by:
getEObject
in interfaceorg.eclipse.emf.ecore.resource.Resource
- Overrides:
getEObject
in classorg.eclipse.emf.ecore.resource.impl.ResourceImpl
-
startDocument
- Specified by:
startDocument
in interfaceFlexmiXmlParser.Handler
-
startElement
- Specified by:
startElement
in interfaceFlexmiXmlParser.Handler
-
endElement
- Specified by:
endElement
in interfaceFlexmiXmlParser.Handler
-
processingInstruction
- Specified by:
processingInstruction
in interfaceFlexmiXmlParser.Handler
-
parseEol
- Throws:
Exception
-
getProcessingInstructions
-
isDocumentEnded
public boolean isDocumentEnded() -
endDocument
- Specified by:
endDocument
in interfaceFlexmiXmlParser.Handler
-
getUnresolvedReferences
-
addParseWarning
-
addParseWarning
-
addParseWarning
-
performActions
protected void performActions(org.eclipse.emf.ecore.EObject eObject) -
resolveReferences
protected void resolveReferences() -
resolveReference
-
getLineNumber
-
handleVarAttribute
public void handleVarAttribute(String attribute, VariableDeclaration.VariableDeclarationType type, NamedNodeMap attributes, org.eclipse.emf.ecore.EObject eObject) -
setAttributes
-
getCurrentURI
public org.eclipse.emf.common.util.URI getCurrentURI() -
setEAttributeValue
-
getEValue
-
getCandidateStructuralFeaturesForAttribute
protected List<org.eclipse.emf.ecore.EStructuralFeature> getCandidateStructuralFeaturesForAttribute(org.eclipse.emf.ecore.EClass eClass) -
getAllConcreteEClasses
-
getAllSubtypes
-
eClassForName
-
eNamedElementForName
protected org.eclipse.emf.ecore.ENamedElement eNamedElementForName(String name, Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates) -
getEObjectTraceManager
-
eNamedElementForName
protected org.eclipse.emf.ecore.ENamedElement eNamedElementForName(String name, Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates, boolean fuzzy) -
addOrderedChild
public void addOrderedChild(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EObject child) -
getOrderedChildren
-
getFrameStack
-
getLocalId
-
getOperations
-
getImportedFrom
-
setImportedFrom
-
getRootResource
-