|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.compare.match.statistic.MetamodelFilter
public class MetamodelFilter
This class determines the unused features in a metamodel using models.
A feature is considered "unused" if its value is never changed throughout all the model's classes.
Field Summary | |
---|---|
protected java.util.Map<org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.compare.match.statistic.FeatureInformation> |
featuresToInformation
Keeps track of all the informations of the features. |
protected java.util.List<org.eclipse.emf.ecore.EStructuralFeature> |
unusedFeatures
List of the unused features' informations. |
Constructor Summary | |
---|---|
MetamodelFilter()
|
Method Summary | |
---|---|
void |
analyseModel(org.eclipse.emf.ecore.EObject root)
Analyses a model and changes the stats using this model. |
void |
clear()
Clears all recorded information. |
java.util.List<org.eclipse.emf.ecore.EStructuralFeature> |
getFilteredFeatures(org.eclipse.emf.ecore.EObject eObj)
Returns a list of the pertinent features for this EObject . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map<org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.compare.match.statistic.FeatureInformation> featuresToInformation
protected java.util.List<org.eclipse.emf.ecore.EStructuralFeature> unusedFeatures
Constructor Detail |
---|
public MetamodelFilter()
Method Detail |
---|
public void analyseModel(org.eclipse.emf.ecore.EObject root)
root
- Model to analyze.public void clear()
public java.util.List<org.eclipse.emf.ecore.EStructuralFeature> getFilteredFeatures(org.eclipse.emf.ecore.EObject eObj)
EObject
.
eObj
- EObject
from which we seek the features.
EObject
.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |