public class FlexmiResource extends org.eclipse.emf.ecore.resource.impl.ResourceImpl implements PseudoSAXParser.Handler
org.eclipse.emf.ecore.resource.impl.ResourceImpl.ContentsEList<E extends Object & org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.resource.impl.ResourceImpl.ModificationTrackingAdapterorg.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.EScannableAdapterListorg.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| Modifier and Type | Field and Description |
|---|---|
protected ActionMap |
actionMap |
protected Map<org.eclipse.emf.ecore.EClass,List<org.eclipse.emf.ecore.EClass>> |
allSubtypesCache |
protected Node |
currentNode |
protected Map<String,org.eclipse.emf.ecore.EClass> |
eClassCache |
protected EObjectTraceManager |
eObjectTraceManager |
protected FrameStack |
frameStack |
protected com.google.common.collect.BiMap<String,org.eclipse.emf.ecore.EObject> |
fullyQualifiedIDs |
protected Collection<String> |
importedEolModules |
protected FlexmiResource |
importedFrom |
protected Map<org.eclipse.emf.ecore.EObject,String> |
localIDs |
protected Stack<Object> |
objectStack |
protected Collection<Operation> |
operations |
protected Map<org.eclipse.emf.ecore.EObject,List<org.eclipse.emf.ecore.EObject>> |
orderedChildren |
protected Set<org.eclipse.emf.common.util.URI> |
parsedFragmentURIs |
protected Stack<org.eclipse.emf.common.util.URI> |
parsedFragmentURIStack |
protected List<ProcessingInstruction> |
processingInstructions |
static String |
ROOT_NODE_NAME |
protected StringSimilarityProvider |
stringSimilarityProvider |
protected List<Template> |
templates |
protected List<UnresolvedReference> |
unresolvedReferences |
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warningseAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAGOPTION_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 |
|---|
FlexmiResource(org.eclipse.emf.common.util.URI uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
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) |
protected void |
doLoad(InputStream inputStream,
Map<?,?> options) |
void |
doLoadImpl(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 |
endProcessingFragment() |
protected List<org.eclipse.emf.ecore.EClass> |
getAllConcreteEClasses() |
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 |
getCurrentURI() |
org.eclipse.emf.ecore.EObject |
getEObject(String uriFragment) |
EObjectTraceManager |
getEObjectTraceManager() |
protected Object |
getEValue(org.eclipse.emf.ecore.EAttribute eAttribute,
String attributeName,
String value) |
FrameStack |
getFrameStack() |
FlexmiResource |
getImportedFrom() |
int |
getLineNumber(Node node) |
String |
getLocalId(org.eclipse.emf.ecore.EObject eObject) |
Collection<Operation> |
getOperations() |
List<org.eclipse.emf.ecore.EObject> |
getOrderedChildren(org.eclipse.emf.ecore.EObject parent) |
Set<org.eclipse.emf.common.util.URI> |
getParsedFragmentURIs() |
List<ProcessingInstruction> |
getProcessingInstructions() |
FlexmiResource |
getRootResource() |
Template |
getTemplate(String name) |
List<Template> |
getTemplates() |
List<UnresolvedReference> |
getUnresolvedReferences() |
void |
handleVarAttribute(String attribute,
VariableDeclaration.VariableDeclarationType type,
NamedNodeMap attributes,
org.eclipse.emf.ecore.EObject eObject) |
protected boolean |
isTemplateElement(Element element) |
static void |
main(String[] args) |
void |
parseEol(String uri) |
protected void |
performActions(org.eclipse.emf.ecore.EObject eObject) |
void |
processingInstruction(ProcessingInstruction processingInstruction) |
protected boolean |
resolveReference(UnresolvedReference unresolvedReference) |
protected void |
resolveReferences() |
void |
save(Map<?,?> options) |
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) |
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) |
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, useZipeAdapters, eBasicAdapters, eDeliver, eSetDelivereBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifypublic static final String ROOT_NODE_NAME
protected List<ProcessingInstruction> processingInstructions
protected EObjectTraceManager eObjectTraceManager
protected List<UnresolvedReference> unresolvedReferences
protected Node currentNode
protected Collection<String> importedEolModules
protected Map<org.eclipse.emf.ecore.EClass,List<org.eclipse.emf.ecore.EClass>> allSubtypesCache
protected StringSimilarityProvider stringSimilarityProvider
protected Stack<org.eclipse.emf.common.util.URI> parsedFragmentURIStack
protected Set<org.eclipse.emf.common.util.URI> parsedFragmentURIs
protected com.google.common.collect.BiMap<String,org.eclipse.emf.ecore.EObject> fullyQualifiedIDs
protected FrameStack frameStack
protected ActionMap actionMap
protected Map<org.eclipse.emf.ecore.EObject,List<org.eclipse.emf.ecore.EObject>> orderedChildren
protected Collection<Operation> operations
protected FlexmiResource importedFrom
public void startProcessingFragment(org.eclipse.emf.common.util.URI uri)
public void endProcessingFragment()
public Set<org.eclipse.emf.common.util.URI> getParsedFragmentURIs()
protected void doLoad(InputStream inputStream, Map<?,?> options) throws IOException
doLoad in class org.eclipse.emf.ecore.resource.impl.ResourceImplIOExceptionpublic void save(Map<?,?> options) throws IOException
save in interface org.eclipse.emf.ecore.resource.Resourcesave in class org.eclipse.emf.ecore.resource.impl.ResourceImplIOExceptionprotected void setEObjectId(org.eclipse.emf.ecore.EObject eObject,
String id)
public void doLoadImpl(InputStream inputStream, Map<?,?> options) throws Exception
Exceptionpublic org.eclipse.emf.ecore.EObject getEObject(String uriFragment)
getEObject in interface org.eclipse.emf.ecore.resource.ResourcegetEObject in class org.eclipse.emf.ecore.resource.impl.ResourceImplpublic void startDocument(Document document)
startDocument in interface PseudoSAXParser.Handlerpublic void startElement(Element element)
startElement in interface PseudoSAXParser.Handlerpublic void endElement(Element element)
endElement in interface PseudoSAXParser.Handlerpublic void processingInstruction(ProcessingInstruction processingInstruction)
processingInstruction in interface PseudoSAXParser.Handlerpublic List<ProcessingInstruction> getProcessingInstructions()
public void endDocument(Document document)
endDocument in interface PseudoSAXParser.Handlerpublic List<UnresolvedReference> getUnresolvedReferences()
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)
protected void performActions(org.eclipse.emf.ecore.EObject eObject)
protected void resolveReferences()
protected boolean resolveReference(UnresolvedReference unresolvedReference)
public int getLineNumber(Node node)
public void handleVarAttribute(String attribute, VariableDeclaration.VariableDeclarationType type, NamedNodeMap attributes, org.eclipse.emf.ecore.EObject eObject)
protected void setAttributes(org.eclipse.emf.ecore.EObject eObject,
Element element)
public org.eclipse.emf.common.util.URI getCurrentURI()
protected void setEAttributeValue(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EAttribute eAttribute,
String attributeName,
String value)
protected Object getEValue(org.eclipse.emf.ecore.EAttribute eAttribute, String attributeName, String value)
protected List<org.eclipse.emf.ecore.EStructuralFeature> getCandidateStructuralFeaturesForAttribute(org.eclipse.emf.ecore.EClass eClass)
protected List<org.eclipse.emf.ecore.EClass> getAllConcreteEClasses()
protected List<org.eclipse.emf.ecore.EClass> getAllSubtypes(org.eclipse.emf.ecore.EClass eClass)
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)
public EObjectTraceManager getEObjectTraceManager()
protected org.eclipse.emf.ecore.ENamedElement eNamedElementForName(String name, Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates, boolean fuzzy)
public void addOrderedChild(org.eclipse.emf.ecore.EObject parent,
org.eclipse.emf.ecore.EObject child)
public List<org.eclipse.emf.ecore.EObject> getOrderedChildren(org.eclipse.emf.ecore.EObject parent)
protected boolean isTemplateElement(Element element)
public FrameStack getFrameStack()
public String getLocalId(org.eclipse.emf.ecore.EObject eObject)
public Collection<Operation> getOperations()
public FlexmiResource getImportedFrom()
public void setImportedFrom(FlexmiResource importedFrom)
public FlexmiResource getRootResource()
Copyright © 2020. All rights reserved.