com.ibm.dtfj.analyzer.helpers.objectwrapper
Class CharArrayWrapper
java.lang.Object
TranslatableAnalyzer
com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
com.ibm.dtfj.analyzer.helpers.ValueWrapper
com.ibm.dtfj.analyzer.helpers.objectwrapper.ObjectWrapper
com.ibm.dtfj.analyzer.helpers.objectwrapper.CharArrayWrapper
- All Implemented Interfaces:
- IAnalyzerBase, IReport, IWrapper
public class CharArrayWrapper
- extends ObjectWrapper
Extract information from a JavaObject that represents a Java character array
Method Summary |
char[] |
getData()
Return an array of characters that represents the data contained in the original array. |
static CharArrayWrapper |
getInstance(IAnalyzerContext context,
com.ibm.dtfj.java.JavaObject parent)
Find the CharArrayWrapper bean instance associated with a given parent JavaObject
(create it if necessary) |
void |
setParent(java.lang.Object parent)
Set the parent JavaObject underlying this analyzer bean. |
java.lang.String |
showStringValue(int maxSize)
Return the contents of this character array as a printable string, suitable for use in a report |
Methods inherited from class com.ibm.dtfj.analyzer.helpers.objectwrapper.ObjectWrapper |
checkMaskedField, endPrintGroup, getCachingPriority, getInstance, getValueAtPath, getValueAtPath, getVersion, printCollectionEntriesAtPath, printCollectionEntriesAtPath, printCollectionMapEntryReportsAtPath, printCollectionSizeAtPath, printCollectionValueReportsAtPath, printReportAtPath, printValueAtPath, printValueAtPath, produceReport, setMaskedFieldPattern, startPrintGroup, toString |
Methods inherited from class com.ibm.dtfj.analyzer.helpers.ValueWrapper |
equals, getBooleanValue, getByteValue, getCharacterValue, getDoubleValue, getFloatValue, getIntegerValue, getJavaClassValue, getJavaObjectValue, getLongValue, getObjectWrapper, getObjectWrapper, getOneJavaClassValue, getOneJavaObjectValue, getRawValue, getShortValue, getStringValue, getTypeSignature, getValueWrapperInstance, hashCode, isBoolean, isByte, isCharacter, isDouble, isFloat, isInstanceOf, isInteger, isJavaClass, isJavaObject, isLong, isShort, isString |
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 |
CharArrayWrapper
public CharArrayWrapper()
getInstance
public static CharArrayWrapper getInstance(IAnalyzerContext context,
com.ibm.dtfj.java.JavaObject parent)
- Find the CharArrayWrapper bean instance associated with a given parent JavaObject
(create it if necessary)
- Parameters:
context
- the AnalyzerContext in which to locate this bean instanceparent
- the parent JavaObject underlying this analyzer bean
- Returns:
- the desired CharArrayWrapper analyzer bean
setParent
public void setParent(java.lang.Object parent)
- Set the parent JavaObject underlying this analyzer bean.
- Specified by:
setParent
in interface IWrapper
- Overrides:
setParent
in class ValueWrapper
- Parameters:
parent
- The parent object to set. Must be of type JavaObject,
and this JavaObject must represent a character array.- See Also:
IWrapper.setParent(java.lang.Object)
getData
public char[] getData()
throws com.ibm.dtfj.image.DTFJException
- Return an array of characters that represents the data contained in the original array.
- Returns:
- an array of characters that represents the data contained in the original array.
- Throws:
com.ibm.dtfj.image.DTFJException
showStringValue
public java.lang.String showStringValue(int maxSize)
throws com.ibm.dtfj.image.DTFJException
- Return the contents of this character array as a printable string, suitable for use in a report
- Parameters:
maxSize
- the maximum size of the string to return. If the character array is larger than
this size, it will be truncated, and the returned string will so indicate.
- Returns:
- the contents of this character array, or the first
maxSize
characters
in this character array, as a printable String.
- Throws:
com.ibm.dtfj.image.DTFJException
© 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.