public abstract class AbstractBundleClassFilter
extends java.lang.Object
Constructor and Description |
---|
AbstractBundleClassFilter() |
Modifier and Type | Method and Description |
---|---|
void |
addBundleClassFilterListener(BundleClassFilterListener classListener)
Adds the bundle class filter listener.
|
void |
addBusyMarker(java.rmi.server.UID busyMarker)
Adds a marker that this filter is in use by an evaluation process .
|
void |
addClassFound(java.lang.String className,
java.lang.String symbolicBundleName)
Adds the specified class to the vector of classes found, if not already there.
|
boolean |
equals(java.lang.Object obj) |
java.util.Vector<java.lang.String> |
getBundlesFiltered()
Returns the ordered vector of bundles filtered.
|
java.util.Vector<java.lang.String> |
getClassesFound()
Returns the ordered vector of all classes found.
|
java.util.Vector<java.lang.String> |
getClassesFound(java.lang.String symbolicBundleName)
Returns the ordered vector of classes found for the specified bundle or null in case that the symbolic bundle name is null.
|
ClassLocaton |
getClassLocation(java.lang.String className)
Returns the class location of the specified class name.
|
abstract java.lang.String |
getFilterScope()
Has to return the unique filter scope as String (e.g. the super class reference that is used for the filter).
|
abstract boolean |
isFilterCriteria(java.lang.Class<?> clazz)
Has to check if the specified class represents the current filter criteria.
|
abstract boolean |
isInFilterScope(java.lang.Class<?> clazz)
Has to return
true in case that the specified class fulfills the individual filter requirements. |
boolean |
isUsedInSearch()
Return if this filter is currently used by an evaluation process.
|
void |
printFilterResult()
Prints the filter result.
|
void |
removeBundleClasses(java.lang.String symbolicBundleName)
Removes all classes found for the specified bundle.
|
void |
removeBundleClassFilterListener(BundleClassFilterListener classListener)
Removes the specified bundle class filter listener.
|
void |
removeBusyMarker(java.rmi.server.UID busyMarker)
Removes the busy marker.
|
java.lang.String |
toString() |
public abstract java.lang.String getFilterScope()
public abstract boolean isFilterCriteria(java.lang.Class<?> clazz)
clazz
- the class to checkpublic abstract boolean isInFilterScope(java.lang.Class<?> clazz)
true
in case that the specified class fulfills the individual filter requirements.clazz
- the actual class to check by the current filterpublic void addBusyMarker(java.rmi.server.UID busyMarker)
busyMarker
- the busy markerpublic void removeBusyMarker(java.rmi.server.UID busyMarker)
busyMarker
- the busy markerpublic boolean isUsedInSearch()
BundleEvaluator
public void addBundleClassFilterListener(BundleClassFilterListener classListener)
classListener
- the class listenerpublic void removeBundleClassFilterListener(BundleClassFilterListener classListener)
classListener
- the class listenerpublic void addClassFound(java.lang.String className, java.lang.String symbolicBundleName)
symbolicBundleName
- the symbolic bundle nameclassName
- the class namepublic java.util.Vector<java.lang.String> getClassesFound()
public java.util.Vector<java.lang.String> getClassesFound(java.lang.String symbolicBundleName)
symbolicBundleName
- the symbolic bundle namepublic java.util.Vector<java.lang.String> getBundlesFiltered()
public void removeBundleClasses(java.lang.String symbolicBundleName)
symbolicBundleName
- the symbolic bundle namepublic ClassLocaton getClassLocation(java.lang.String className)
className
- the class namepublic void printFilterResult()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object