org.eclipse.gmt.umlx.registry.resource
Interface ModelContentAnalysis
public interface ModelContentAnalysis
ModelContentAnalysis captures the result of an attempt at textaul anlysis
of a model by a ModelContentAnalyser
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. |
getErrorCount
int getErrorCount()
- Return the number of errors detected by the analysis.
(An error is a problem that must be resolved before the model can be used.)
- Returns:
- the number of errors
getResource
org.eclipse.emf.ecore.resource.Resource getResource()
- 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.
- Returns:
- the resource
getWarningCount
int getWarningCount()
- 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.)
- Returns:
- the number of warnings