|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
org.eclipse.ocl.examples.pivot.resource.AbstractASResourceFactory
org.eclipse.ocl.examples.pivot.uml.UMLASResourceFactory
public final class UMLASResourceFactory
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource.Factory |
|---|
org.eclipse.emf.ecore.resource.Resource.Factory.Descriptor, org.eclipse.emf.ecore.resource.Resource.Factory.Registry |
| Field Summary | |
|---|---|
static UMLASResourceFactory |
INSTANCE
|
| Fields inherited from class org.eclipse.ocl.examples.pivot.resource.AbstractASResourceFactory |
|---|
contentType, fileExtension |
| Fields inherited from interface org.eclipse.ocl.examples.pivot.resource.ASResourceFactory |
|---|
CAN_HANDLE, CANNOT_HANDLE, MAY_HANDLE |
| Constructor Summary | |
|---|---|
protected |
UMLASResourceFactory()
|
| Method Summary | ||
|---|---|---|
void |
configure(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Configure the MetaModelManager's external ResourceSet. |
|
org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI uri)
Creates an instance of the resource. |
|
|
getASElement(MetaModelManager metaModelManager,
java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EObject eObject)
Return the OCL AS element corresponding to eObject using metaModelManager to supervise the correspondence and ensuring that the result is of asClass. |
|
protected org.eclipse.uml2.uml.Constraint |
getConstraintForEOperation(org.eclipse.emf.ecore.EOperation eOperation)
|
|
org.eclipse.emf.ecore.EOperation |
getEOperation(ASResource asResource,
org.eclipse.emf.ecore.EObject eObject)
Return an EOperation for a pivot Operation if one is available. |
|
org.eclipse.emf.ecore.EReference |
getEReference(ASResource asResource,
org.eclipse.emf.ecore.EObject eObject)
|
|
int |
getHandlerPriority(org.eclipse.emf.ecore.EObject eObject)
Return a positive handler priority if this factory can handle creation of an OCL AS type from the available object, negative if it cannot. |
|
int |
getHandlerPriority(org.eclipse.emf.ecore.resource.Resource resource)
Return a positive handler priority if this factory can handle creation of an OCL AS resource from the available resource, negative if it cannot. |
|
int |
getHandlerPriority(org.eclipse.emf.common.util.URI uri)
Return a positive handler priority if this factory can handle creation of an OCL AS resource from the available URI, negative if it cannot. |
|
java.lang.String |
getMetamodelNsURI(org.eclipse.emf.ecore.EPackage ePackage)
Return a specific metamodel NsURI if ePackage has particular requirements as is the case for UML. |
|
org.eclipse.emf.common.util.URI |
getPackageURI(org.eclipse.emf.ecore.EObject eObject)
Return the URI of an eObject if it can be treated as a Package. |
|
Element |
importFromResource(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.resource.Resource umlResource,
org.eclipse.emf.common.util.URI uri)
Return the root element in the Pivot resource resulting from import of the available resource. |
|
| Methods inherited from class org.eclipse.ocl.examples.pivot.resource.AbstractASResourceFactory |
|---|
configureResource, createAS2MonikerVisitor, createAS2XMIidVisitor, createASSaverLocateVisitor, createASSaverNormalizeVisitor, createASSaverResolveVisitor, createPrettyPrintVisitor, createToStringVisitor, getContentType, installContentHandler, isCompatibleResource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@NonNull public static final UMLASResourceFactory INSTANCE
| Constructor Detail |
|---|
protected UMLASResourceFactory()
| Method Detail |
|---|
public void configure(@NonNull
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
ASResourceFactory
configure in interface ASResourceFactoryconfigure in class AbstractASResourceFactory@NonNull public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
AbstractASResourceFactory
createResource in interface org.eclipse.emf.ecore.resource.Resource.FactorycreateResource in class AbstractASResourceFactory
@Nullable
public <T extends Element> T getASElement(@NonNull
MetaModelManager metaModelManager,
@NonNull
java.lang.Class<T> pivotClass,
@NonNull
org.eclipse.emf.ecore.EObject eObject)
throws ParserException
ASResourceFactory
getASElement in interface ASResourceFactorygetASElement in class AbstractASResourceFactoryParserExceptionprotected org.eclipse.uml2.uml.Constraint getConstraintForEOperation(org.eclipse.emf.ecore.EOperation eOperation)
@Nullable
public org.eclipse.emf.ecore.EOperation getEOperation(@NonNull
ASResource asResource,
@NonNull
org.eclipse.emf.ecore.EObject eObject)
ASResourceFactory
getEOperation in interface ASResourceFactorygetEOperation in class AbstractASResourceFactory
@Nullable
public org.eclipse.emf.ecore.EReference getEReference(@NonNull
ASResource asResource,
@NonNull
org.eclipse.emf.ecore.EObject eObject)
getEReference in interface ASResourceFactorygetEReference in class AbstractASResourceFactory
public int getHandlerPriority(@NonNull
org.eclipse.emf.ecore.EObject eObject)
ASResourceFactory
getHandlerPriority in interface ASResourceFactorygetHandlerPriority in class AbstractASResourceFactory
public int getHandlerPriority(@NonNull
org.eclipse.emf.ecore.resource.Resource resource)
ASResourceFactory
getHandlerPriority in interface ASResourceFactorygetHandlerPriority in class AbstractASResourceFactory
public int getHandlerPriority(@NonNull
org.eclipse.emf.common.util.URI uri)
ASResourceFactory
getHandlerPriority in interface ASResourceFactorygetHandlerPriority in class AbstractASResourceFactory
@Nullable
public java.lang.String getMetamodelNsURI(@NonNull
org.eclipse.emf.ecore.EPackage ePackage)
ASResourceFactory
getMetamodelNsURI in interface ASResourceFactorygetMetamodelNsURI in class AbstractASResourceFactory
@Nullable
public org.eclipse.emf.common.util.URI getPackageURI(@NonNull
org.eclipse.emf.ecore.EObject eObject)
ASResourceFactory
getPackageURI in interface ASResourceFactorygetPackageURI in class AbstractASResourceFactory
@Nullable
public Element importFromResource(@NonNull
MetaModelManager metaModelManager,
@NonNull
org.eclipse.emf.ecore.resource.Resource umlResource,
@Nullable
org.eclipse.emf.common.util.URI uri)
throws ParserException
ASResourceFactory
importFromResource in interface ASResourceFactoryimportFromResource in class AbstractASResourceFactoryParserException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||