Package org.eclipse.epsilon.emc.emf.xml
Class XmlModel
- java.lang.Object
-
- org.eclipse.epsilon.eol.models.Model
-
- org.eclipse.epsilon.eol.models.CachedModel<org.eclipse.emf.ecore.EObject>
-
- org.eclipse.epsilon.emc.emf.AbstractEmfModel
-
- org.eclipse.epsilon.emc.emf.AbstractReflectiveEmfModel
-
- org.eclipse.epsilon.emc.emf.EmfModel
-
- org.eclipse.epsilon.emc.emf.xml.XmlModel
-
- All Implemented Interfaces:
AutoCloseable
,IOperationContributorProvider
,IModel
,IReflectiveModel
public class XmlModel extends EmfModel implements IOperationContributorProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.epsilon.emc.emf.EmfModel
EmfModel.CachedContentsAdapter
-
Nested classes/interfaces inherited from interface org.eclipse.epsilon.eol.models.IModel
IModel.AmbiguityCheckResult
-
-
Field Summary
Fields Modifier and Type Field Description protected MixedElementOperationContributor
mixedElementOperationContributor
static String
PROPERTY_XSD_FILE
Deprecated.Replaced byPROPERTY_XSD_URI
.static String
PROPERTY_XSD_URI
One of the keys used to construct the first argument toModel.load(StringProperties, String)
.protected org.eclipse.emf.common.util.URI
xsdUri
-
Fields inherited from class org.eclipse.epsilon.emc.emf.EmfModel
fileBasedMetamodels, fileBasedMetamodelTimestamps, isMetamodelFileBased, metamodelFileUris, metamodelUris, modelUri, packages, PROPERTY_FILE_BASED_METAMODEL_URI, PROPERTY_IS_METAMODEL_FILE_BASED, PROPERTY_METAMODEL_FILE, PROPERTY_METAMODEL_URI, PROPERTY_MODEL_FILE, PROPERTY_MODEL_URI, PROPERTY_REUSE_UNMODIFIED_FILE_BASED_METAMODELS, PROPERTY_VALIDATE, reuseUnmodifiedFileBasedMetamodels, useExtendedMetadata, validate
-
Fields inherited from class org.eclipse.epsilon.emc.emf.AbstractEmfModel
expand, modelImpl, PROPERTY_EXPAND, PROPERTY_PARALLELALLOF, registry, resourceLoadOptions, resourceStoreOptions, transactionSupport
-
Fields inherited from class org.eclipse.epsilon.eol.models.CachedModel
allContentsCache, kindCache, PROPERTY_CACHED, PROPERTY_CONCURRENT, typeCache
-
Fields inherited from class org.eclipse.epsilon.eol.models.Model
aliases, ENV_PREFIX, name, PROPERTY_ALIASES, PROPERTY_NAME, PROPERTY_READONLOAD, PROPERTY_READONLY, PROPERTY_STOREONDISPOSAL, propertyGetter, propertySetter, readOnLoad, storeOnDisposal
-
-
Constructor Summary
Constructors Constructor Description XmlModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.emf.ecore.resource.ResourceSet
createResourceSet()
protected void
determinePackagesFrom(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
OperationContributor
getOperationContributor()
void
load(StringProperties properties, IRelativePathResolver resolver)
Load the model using the set of properties specified by the first argument.-
Methods inherited from class org.eclipse.epsilon.emc.emf.EmfModel
addToCache, forceAddToCache, forceRemoveFromCache, getMetamodel, getMetamodelFiles, getMetamodelFileUris, getMetamodelUris, getModelFile, getModelFileUri, isMetamodelFileBased, isReuseUnmodifiedFileBasedMetamodels, isValidate, loadModel, loadModelFromUri, removeFromCache, setCachingEnabled, setMetamodelFile, setMetamodelFileBased, setMetamodelFiles, setMetamodelFileUri, setMetamodelFileUris, setMetamodelUri, setMetamodelUris, setModelFile, setModelFileUri, setReuseUnmodifiedFileBasedMetamodels, setupContainmentChangeListeners, setValidate, store, toString
-
Methods inherited from class org.eclipse.epsilon.emc.emf.AbstractReflectiveEmfModel
getEnumerationLabelOf, getEnumerationTypeOf, getPropertiesOf, getPropertySetter, hasPackage, hasProperty, isEnumerationValue, preventLoadingOfExternalModelElements
-
Methods inherited from class org.eclipse.epsilon.emc.emf.AbstractEmfModel
addMetamodelUri, allContentsFromModel, checkAmbiguity, classesForName, classForName, classForName, classForName, createInstanceInModel, deleteElementInModel, disposeModel, getAllOfKindFromModel, getAllOfTypeFromModel, getAllTypeNamesOf, getCacheKeyForType, getContainerOf, getElementById, getElementId, getEnumerationValue, getFullyQualifiedName, getFullyQualifiedTypeNameOf, getInputStream, getModelImpl, getPackageRegistry, getResource, getResourceLoadOptions, getResources, getResourceStoreOptions, getTransactionSupport, getTypeNameOf, getTypeOf, hasAdapter, hasType, initCaches, isExpand, isInstantiable, isLoaded, isModelElement, isOfKind, isOfType, isParallelAllOf, isPropertySet, knowsAboutProperty, knowsAboutProperty, owns, putResourceLoadOption, putResourceStoreOption, setElementId, setExpand, setModelImpl, setParallelAllOf, setResource, setResourceLoadOptions, setResourceStoreOptions, store, store, store, validate
-
Methods inherited from class org.eclipse.epsilon.eol.models.CachedModel
allContents, clearCache, createInstance, deleteElement, dispose, getAllOfKind, getAllOfKindOrType, getAllOfType, isCachingEnabled, isConcurrent, load, setConcurrent, wrap
-
Methods inherited from class org.eclipse.epsilon.eol.models.Model
allInstances, createInstance, getAliases, getName, getPropertyGetter, isReadOnLoad, isStoredOnDisposal, load, load, setName, setReadOnLoad, setStoredOnDisposal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.models.IModel
allContents, checkAmbiguity, close, createInstance, createInstance, deleteElement, dispose, getAliases, getAllOfKind, getAllOfType, getElementById, getElementId, getEnumerationValue, getFullyQualifiedTypeNameOf, getName, getPropertyGetter, getTransactionSupport, getTypeNameOf, getTypeOf, hasType, isInstantiable, isModelElement, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, load, owns, setElementId, setName, setReadOnLoad, setStoredOnDisposal, store
-
Methods inherited from interface org.eclipse.epsilon.eol.models.IReflectiveModel
getContainerOf
-
-
-
-
Field Detail
-
PROPERTY_XSD_URI
public static final String PROPERTY_XSD_URI
One of the keys used to construct the first argument toModel.load(StringProperties, String)
. This key is paired with aURI
that can be used to locate this model. This key must always be paired with a value.- See Also:
- Constant Field Values
-
PROPERTY_XSD_FILE
@Deprecated public static final String PROPERTY_XSD_FILE
Deprecated.Replaced byPROPERTY_XSD_URI
.- See Also:
- Constant Field Values
-
xsdUri
protected org.eclipse.emf.common.util.URI xsdUri
- Since:
- 1.6
-
mixedElementOperationContributor
protected MixedElementOperationContributor mixedElementOperationContributor
-
-
Method Detail
-
load
public void load(StringProperties properties, IRelativePathResolver resolver) throws EolModelLoadingException
Description copied from class:EmfModel
Load the model using the set of properties specified by the first argument.- Specified by:
load
in interfaceIModel
- Overrides:
load
in classEmfModel
- Throws:
EolModelLoadingException
- See Also:
EmfModel.PROPERTY_MODEL_URI
,EmfModel.PROPERTY_IS_METAMODEL_FILE_BASED
,AbstractEmfModel.PROPERTY_EXPAND
, Rationale for deprecating the FILE properties.
-
determinePackagesFrom
protected void determinePackagesFrom(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) throws EolModelLoadingException
- Overrides:
determinePackagesFrom
in classEmfModel
- Throws:
EolModelLoadingException
-
createResourceSet
protected org.eclipse.emf.ecore.resource.ResourceSet createResourceSet()
- Overrides:
createResourceSet
in classEmfModel
-
getOperationContributor
public OperationContributor getOperationContributor()
- Specified by:
getOperationContributor
in interfaceIOperationContributorProvider
-
-