org.pf.tools.cda.core.dependency.analyzer
Class ClassDuplicatesDetector

java.lang.Object
  extended by org.pf.tools.cda.base.model.processing.AClassInformationProcessor<java.util.Map<java.lang.String,java.util.List>>
      extended by org.pf.tools.cda.core.dependency.analyzer.ClassDuplicatesDetector
All Implemented Interfaces:
org.pf.bif.filter.IObjectFilter, IAnalyzableElementProcessor<ClassInformation>, IClassInformationProcessor<java.util.Map<java.lang.String,java.util.List>>

public class ClassDuplicatesDetector
extends AClassInformationProcessor<java.util.Map<java.lang.String,java.util.List>>

This class processor is capable to find duplicate class names.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
ClassDuplicatesDetector()
          Initialize the new instance with default values.
ClassDuplicatesDetector(int initialCapacity)
          Initialize the new instance with default values.
 
Method Summary
 java.util.Map<java.lang.String,java.util.List> getResultData()
          Returns any data that has been produced during the processing.
 boolean matches(ClassInformation classInfo)
          Here it always returns false because the classes will be selected separately in the process(ClassInformation) method.
 boolean process(ClassInformation classInfo)
          Collects all classes to detect duplicates.
 
Methods inherited from class org.pf.tools.cda.base.model.processing.AClassInformationProcessor
matches
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDuplicatesDetector

public ClassDuplicatesDetector()
Initialize the new instance with default values.


ClassDuplicatesDetector

public ClassDuplicatesDetector(int initialCapacity)
Initialize the new instance with default values.

Method Detail

matches

public boolean matches(ClassInformation classInfo)
Here it always returns false because the classes will be selected separately in the process(ClassInformation) method.

Parameters:
classInfo - Any element object or even null

process

public boolean process(ClassInformation classInfo)
Collects all classes to detect duplicates.

Parameters:
classInfo - The element object to be processed
Returns:
true if processing should continue, false if processing should stop

getResultData

public java.util.Map<java.lang.String,java.util.List> getResultData()
Returns any data that has been produced during the processing.

Specified by:
getResultData in interface IClassInformationProcessor<java.util.Map<java.lang.String,java.util.List>>
Overrides:
getResultData in class AClassInformationProcessor<java.util.Map<java.lang.String,java.util.List>>
Returns:
The dictionary containing the duplicate classes