net.sf.jmd.checks.impl
Class Check
java.lang.Object
net.sf.jmd.checks.impl.Check
- All Implemented Interfaces:
- ICheck
- Direct Known Subclasses:
- AddedPublicMethodsInImplementingClasses, AllDifferences, CheckTemplate, InterfacesAddedOrRemoved, ListOfInterfaces, MembersAdded, MembersModified, MembersRemoved, ModelItemsAdded, ModelItemsModified, ModelItemsRemoved, ModelModified, ModelOverview, ParameterAdded, ParameterRemoved, StarImports
public abstract class Check
- extends java.lang.Object
- implements ICheck
This abstract class provides a basis for Checsk. All Check should subclass
Check and can use the methods provided here.
- Author:
- Jan Hinzmann
Constructor Summary |
protected |
Check()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jmd.checks.ICheck |
check |
Check
protected Check()
setName
public void setName(java.lang.String newName)
- Specified by:
setName
in interface ICheck
getName
public java.lang.String getName()
- Specified by:
getName
in interface ICheck
setSeverity
public void setSeverity(java.lang.String newSeverity)
- Specified by:
setSeverity
in interface ICheck
getSeverity
public IDifference.Severity getSeverity()
- Specified by:
getSeverity
in interface ICheck
reduceProblemSpaceToInterfaces
protected void reduceProblemSpaceToInterfaces()
- This method reduces the problemspace to interfaces only. That is, it goes
through the list of ModelItems and filters the interfcaces. After
calling this method thegetAMModelElements and getDMModelElements method
return only Lists of interfaces.
WARNING: /!\ What if one has to expand the problemspace again? /!\
Well that doesn't matter, as other checks get a fresh instance of their
superclass (this one). There is only a problem, if you execute this check
over and over again.
initLists
protected void initLists()
getAMModelElements
protected java.util.List<IModelElement> getAMModelElements()
getDMModelElements
protected java.util.List<IModelElement> getDMModelElements()
getClasses
protected java.util.List<IModelItem> getClasses(Model.Type type)
getInterfaces
protected java.util.List<IModelItem> getInterfaces(Model.Type type)
getPublicMethods
protected java.util.List<IMember> getPublicMethods(IModelItem modelItem)
getPrivateOperations
protected java.util.List<IMember> getPrivateOperations(IModelItem modelItem)
Copyright © 2007-2010. All Rights Reserved.