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

java.lang.Object
  extended by org.eclipse.gmt.umlx.registry.km3.resource.KM3ResourceFactoryImpl.Km3ModelContentAnalysis
All Implemented Interfaces:
ModelContentAnalysis
Enclosing class:
KM3ResourceFactoryImpl

public static class KM3ResourceFactoryImpl.Km3ModelContentAnalysis
extends java.lang.Object
implements ModelContentAnalysis


Constructor Summary
KM3ResourceFactoryImpl.Km3ModelContentAnalysis(org.eclipse.emf.ecore.xmi.XMIResource resource, int errorCount, int warningCount)
           
 
Method Summary
 int getErrorCount()
          Return the number of errors detected by the analysis.
 org.eclipse.emf.ecore.resource.Resource getResource()
          Return the resource resulting from the analysis.
 int getWarningCount()
          Return the number of warnings detected by the analysis.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KM3ResourceFactoryImpl.Km3ModelContentAnalysis

public KM3ResourceFactoryImpl.Km3ModelContentAnalysis(org.eclipse.emf.ecore.xmi.XMIResource resource,
                                                      int errorCount,
                                                      int warningCount)
Method Detail

getErrorCount

public int getErrorCount()
Description copied from interface: ModelContentAnalysis
Return the number of errors detected by the analysis. (An error is a problem that must be resolved before the model can be used.)

Specified by:
getErrorCount in interface ModelContentAnalysis
Returns:
the number of errors

getResource

public org.eclipse.emf.ecore.resource.Resource getResource()
Description copied from interface: ModelContentAnalysis
Return the resource resulting from the analysis. Multi-pass analysers for similar modeling languages may benefit by implementing this lazily. getResource() is only invoked for the resource with the lowest errorCount.

Specified by:
getResource in interface ModelContentAnalysis
Returns:
the resource

getWarningCount

public int getWarningCount()
Description copied from interface: ModelContentAnalysis
Return the number of warnings detected by the analysis. (A warning is a problem that need not be resolved before the model can be used.)

Specified by:
getWarningCount in interface ModelContentAnalysis
Returns:
the number of warnings