com.ibm.dtfj.analyzer.j2se.wrappers
Class LongTimestampWrapper

java.lang.Object
  extended by TranslatableAnalyzer
      extended by com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
          extended by com.ibm.dtfj.analyzer.helpers.ValueWrapper
              extended by com.ibm.dtfj.analyzer.helpers.objectwrapper.ObjectWrapper
                  extended by com.ibm.dtfj.analyzer.j2se.wrappers.LongTimestampWrapper
All Implemented Interfaces:
IAnalyzerBase, IReport, IWrapper

public class LongTimestampWrapper
extends ObjectWrapper

A utility class to extract a date from a JavaObject that represents a Long or a primitive long value, that represent a timestamp as number of milliseconds since the "epoch".


Field Summary
 
Fields inherited from class com.ibm.dtfj.analyzer.helpers.objectwrapper.ObjectWrapper
MODE_ALL, MODE_DEFAULT, MODE_INCLUDE_HEADER, MODE_INCLUDE_SIGNATURE, MODE_NONE, MODE_SHOW_INSTANCE_FINAL_FIELDS, MODE_SHOW_INSTANCE_NONFINAL_FIELDS, MODE_SHOW_STATIC_FINAL_FIELDS, MODE_SHOW_STATIC_NONFINAL_FIELDS, MODE_SPECIAL_FULL_REPORT
 
Constructor Summary
LongTimestampWrapper()
           
 
Method Summary
 java.util.Date getDateValue()
           
 java.lang.String getIdentityString()
          Provide a way for an analyzer to specify a customized identity string, that will be used in report references created with IAnalysisReport.printIdent().
 void setParent(java.lang.Object parent)
          Set the parent JavaObject underlying this analyzer bean.
 
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, 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
 

Constructor Detail

LongTimestampWrapper

public LongTimestampWrapper()
Method Detail

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 either a Long, or a JavaObject representing a Long.
See Also:
IWrapper.setParent(java.lang.Object)

getDateValue

public java.util.Date getDateValue()
                            throws com.ibm.dtfj.image.DTFJException
Returns:
a Date object that represents the data contained in the original timestamp from the dump.
Throws:
com.ibm.dtfj.image.DTFJException

getIdentityString

public java.lang.String getIdentityString()
                                   throws com.ibm.dtfj.image.DTFJException
Description copied from interface: IWrapper
Provide a way for an analyzer to specify a customized identity string, that will be used in report references created with IAnalysisReport.printIdent(). If this method returns null (which should be the default for most analyzers), then the system will create an identity string derived from the identity string of the parent object, using default rules.

Specified by:
getIdentityString in interface IWrapper
Overrides:
getIdentityString in class SimpleAnalyzerBean
Returns:
the custom identity string for this analyzer instance, or null if the system default should be used
Throws:
com.ibm.dtfj.image.DTFJException
See Also:
IWrapper.getIdentityString()


© 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.