com.ibm.dtfj.analyzer.helpers.objectwrapper
Class ListObjectInstancesWithSubClasses
java.lang.Object
TranslatableAnalyzer
com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
com.ibm.dtfj.analyzer.base.CollectionAnalyzerBase
com.ibm.dtfj.analyzer.helpers.objectwrapper.ObjectWrapperCollection
com.ibm.dtfj.analyzer.helpers.objectwrapper.ListObjectInstancesWithSubClasses
- All Implemented Interfaces:
- IAnalyzerBase, IReport, IWrapper, java.lang.Iterable, java.util.Collection
public class ListObjectInstancesWithSubClasses
- extends ObjectWrapperCollection
Find the list of all object instances that match a given class name (passed as a parent to this analyzer)
or that are subclasses of the given class.
This analyzer represents a ObjectWrapperCollection corresponding to the desired list of instances.
Method Summary |
static ListObjectInstancesWithSubClasses |
getInstance(IAnalyzerContext context,
java.lang.String className)
Find the ListObjectInstancesWithSubClasses bean instance with all the instances of a given class
as well as all instances of subclasses of the given class. |
void |
setParent(java.lang.Object parent)
Set the parent Object underlying this analyzer bean. |
Methods inherited from class com.ibm.dtfj.analyzer.helpers.objectwrapper.ObjectWrapperCollection |
get, getCachingPriority, getClassDefinitions, getObjectInstances, getObjectInstancesWithSubClasses, getObjectWrapper, getObjectWrapper, getValueAtPath, getVersion, iterator, printReportAtPath, printValueAtPath, produceReport, size |
Methods inherited from class com.ibm.dtfj.analyzer.base.CollectionAnalyzerBase |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean |
allocateReport, allocateReportOptions, allocateSecondaryReport, getCategories, getContext, getIdentityString, getInstance, getLogger, getLongDescription, getName, getNextValidObject, getParent, getReportExtensionHelper, getResourceBundleName, getShortDescription, isPrimaryAnalyzer, printEmbeddedReport, printEmbeddedReport, printEmbeddedReportWithOptions, printEmbeddedReportWithOptions, printReportInfoHeader, recordInternalExceptionStatic, setContext |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ListObjectInstancesWithSubClasses
public ListObjectInstancesWithSubClasses()
getInstance
public static ListObjectInstancesWithSubClasses getInstance(IAnalyzerContext context,
java.lang.String className)
- Find the ListObjectInstancesWithSubClasses bean instance with all the instances of a given class
as well as all instances of subclasses of the given class.
(create it if necessary)
- Parameters:
context
- the AnalyzerContext in which to locate this bean instanceclassName
- the class name for the instances in this collection
- Returns:
- the desired ListObjectInstancesWithSubClasses analyzer bean
setParent
public void setParent(java.lang.Object parent)
- Set the parent Object underlying this analyzer bean.
The parent must be of type String, which represents the class for
which we want to find all instances and all subclass instances.
- Specified by:
setParent
in interface IWrapper
- Overrides:
setParent
in class ObjectWrapperCollection
- Parameters:
parent
- The parent object to set (as a String)- See Also:
IWrapper.setParent(java.lang.Object)
© Copyright IBM Corp. 2007, 2008 All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted
by GSA ADP Schedule Contract with IBM Corp.