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.ModificationTrackingAdapterNested 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.EScannableAdapterListNested 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 ActionMapprotected Nodeprotected booleanprotected EObjectTraceManagerprotected FlexmiFlavourprotected FrameStackprotected com.google.common.collect.BiMap<String,org.eclipse.emf.ecore.EObject> protected Collection<String>protected FlexmiResourceprotected Collection<Operation>protected Set<org.eclipse.emf.common.util.URI>protected Stack<org.eclipse.emf.common.util.URI>protected List<ProcessingInstruction>static final Stringprotected StringSimilarityProviderprotected 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, warningsFields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAGFields 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 TypeMethodDescriptionvoidaddOrderedChild(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EObject child) protected voidaddParseWarning(String message) protected voidaddParseWarning(String message, int line) protected voidaddParseWarning(String message, org.eclipse.emf.common.util.URI uri, int line) voidaddTemplate(Template template) createParser(BufferedInputStream inputStream) protected voiddoLoad(InputStream inputStream, Map<?, ?> options) protected org.eclipse.emf.ecore.EClasseClassForName(String name) protected org.eclipse.emf.ecore.ENamedElementeNamedElementForName(String name, Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates) protected org.eclipse.emf.ecore.ENamedElementeNamedElementForName(String name, Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates, boolean fuzzy) voidendDocument(Document document) voidendElement(Element element) voidprotected 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.URIorg.eclipse.emf.ecore.EObjectgetEObject(String uriFragment) protected ObjectintgetLineNumber(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) voidhandleVarAttribute(String attribute, VariableDeclaration.VariableDeclarationType type, NamedNodeMap attributes, org.eclipse.emf.ecore.EObject eObject) booleanstatic booleanisXml(BufferedInputStream inputStream) static voidvoidprotected voidperformActions(org.eclipse.emf.ecore.EObject eObject) voidprocessingInstruction(ProcessingInstruction processingInstruction) protected booleanresolveReference(UnresolvedReference unresolvedReference) protected voidvoidprotected voidsetAttributes(org.eclipse.emf.ecore.EObject eObject, Element element) protected voidsetEAttributeValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute eAttribute, String attributeName, String value, boolean split) protected voidsetEObjectId(org.eclipse.emf.ecore.EObject eObject, String id) voidsetImportedFrom(FlexmiResource importedFrom) voidstartDocument(Document document) voidstartElement(Element element) voidstartProcessingFragment(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, useZipMethods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eBasicAdapters, eDeliver, eSetDeliverMethods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
doLoadin classorg.eclipse.emf.ecore.resource.impl.ResourceImpl- Throws:
IOException
-
getFlavour
-
save
- Specified by:
savein interfaceorg.eclipse.emf.ecore.resource.Resource- Overrides:
savein classorg.eclipse.emf.ecore.resource.impl.ResourceImpl- Throws:
IOException
-
setEObjectId
-
createParser
-
isXml
-
getEObject
- Specified by:
getEObjectin interfaceorg.eclipse.emf.ecore.resource.Resource- Overrides:
getEObjectin classorg.eclipse.emf.ecore.resource.impl.ResourceImpl
-
startDocument
- Specified by:
startDocumentin interfaceFlexmiXmlParser.Handler
-
startElement
- Specified by:
startElementin interfaceFlexmiXmlParser.Handler
-
endElement
- Specified by:
endElementin interfaceFlexmiXmlParser.Handler
-
processingInstruction
- Specified by:
processingInstructionin interfaceFlexmiXmlParser.Handler
-
parseEol
- Throws:
Exception
-
getProcessingInstructions
-
isDocumentEnded
public boolean isDocumentEnded() -
endDocument
- Specified by:
endDocumentin 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
-