org.eclipse.gmt.umlx.registry.km3.resource
Class KM3ResourceFactoryImpl

java.lang.Object
  extended by org.eclipse.gmt.umlx.registry.km3.resource.KM3ResourceFactoryImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Factory, ModelContentAnalyser

public class KM3ResourceFactoryImpl
extends java.lang.Object
implements org.eclipse.emf.ecore.resource.Resource.Factory, ModelContentAnalyser


Nested Class Summary
static class KM3ResourceFactoryImpl.Km3ModelContentAnalysis
           
 
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
 
Constructor Summary
KM3ResourceFactoryImpl()
           
 
Method Summary
 ModelContentAnalysis analyze(java.io.InputStream inputStream, org.eclipse.emf.common.util.URI uri)
          Analyze the input stream and return an analyssis if the inputStream corresponds to a valid model content.
 org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KM3ResourceFactoryImpl

public KM3ResourceFactoryImpl()
Method Detail

analyze

public ModelContentAnalysis analyze(java.io.InputStream inputStream,
                                    org.eclipse.emf.common.util.URI uri)
Description copied from interface: ModelContentAnalyser
Analyze the input stream and return an analyssis if the inputStream corresponds to a valid model content. Return null if the inputStream clearly does not correspond to this content.

Specified by:
analyze in interface ModelContentAnalyser
Parameters:
inputStream - to be analysed
uri - from which this input stream derived
Returns:
non-null Analysis for valid and semi-valid content, null for incompatible content

createResource

public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
Specified by:
createResource in interface org.eclipse.emf.ecore.resource.Resource.Factory