net.sf.morph.transform.converters
Class DefaultToTextConverter

java.lang.Object
  extended by net.sf.morph.transform.transformers.BaseTransformer
      extended by net.sf.morph.transform.transformers.BaseCompositeTransformer
          extended by net.sf.morph.transform.transformers.SimpleDelegatingTransformer
              extended by net.sf.morph.transform.converters.DefaultToTextConverter
All Implemented Interfaces:
java.lang.Cloneable, net.sf.composite.Component, net.sf.composite.Composite, net.sf.composite.SimpleComposite, net.sf.composite.SpecializableComposite, net.sf.composite.StrictlyTypedComposite, Converter, Copier, DecoratedConverter, DecoratedCopier, DecoratedTransformer, ExplicitTransformer, ImpreciseTransformer, Transformer

public class DefaultToTextConverter
extends SimpleDelegatingTransformer

Converts an object to a textual representation by delegating to ContainerToPrettyTextConverter, BooleanToTextConverter, TimeToTextConverter, NumberToTextConverter and ObjectToTextConverter.

Since:
Jan 1, 2005
Author:
Matt Sgarlata

Field Summary
 
Fields inherited from class net.sf.morph.transform.transformers.BaseCompositeTransformer
components
 
Fields inherited from class net.sf.morph.transform.transformers.BaseTransformer
destinationClasses, log, sourceClasses
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Constructor Summary
DefaultToTextConverter()
          Create a new DefaultToTextConverter.
DefaultToTextConverter(Transformer[] components)
          Create a new DefaultToTextConverter.
DefaultToTextConverter(Transformer[] components, boolean appendDefaultComponents)
          Create a new DefaultToTextConverter.
 
Method Summary
protected  Transformer[] createDefaultComponents()
          Create the default set of Transformer components.
 Converter getTextConverter()
          Deprecated. since Morph 1.1
 void setTextConverter(Converter textConverter)
          Deprecated. since Morph 1.1
 
Methods inherited from class net.sf.morph.transform.transformers.SimpleDelegatingTransformer
clearVisitedSourceToDestinationMapIfNecessary, clone, convertImpl, copyImpl, createReusableSource, decrementStackDepth, getCachedResult, getComponents, getCopier, getDestinationClassesImpl, getSourceClassesImpl, getSpecializer, getTransformer, getTransformer, getTransformers, getVisitedSourceToDestinationMap, hasVisited, hasVisitedDestination, incrementStackDepth, initializeImpl, isAutomaticallyHandlingNulls, isImpreciseTransformationImpl, isPerformingLogging, isPreferPreciseTransformers, isSpecializable, isTransformableImpl, recordVisit, setComponents, setPreferPreciseTransformers, setSpecializer, specialize
 
Methods inherited from class net.sf.morph.transform.transformers.BaseCompositeTransformer
getComponentType, getComponentValidator, isNarrowingComponentArray, isWrappingRuntimeExceptions, setComponentValidator, setNestedTransformer, updateNestedTransformerComponents
 
Methods inherited from class net.sf.morph.transform.transformers.BaseTransformer
convert, convert, copy, copy, createDefaultReflector, createNewInstance, createNewInstanceImpl, equals, equals, equalsUnidirectionalTest, getDestinationClasses, getInstantiatingReflector, getLocale, getLog, getNestedTransformer, getReflector, getReflector, getSourceClasses, getTransformableCallCache, getTransformerName, initialize, isCachingIsTransformableCalls, isImpreciseTransformation, isInitialized, isTransformable, setCachingIsTransformableCalls, setDestinationClasses, setInitialized, setLog, setReflector, setSourceClasses, setTransformableCallCache, setTransformerName, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.morph.transform.ExplicitTransformer
isTransformable
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.DecoratedCopier
copy
 
Methods inherited from interface net.sf.morph.transform.Copier
copy
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.ExplicitTransformer
isTransformable
 
Methods inherited from interface net.sf.morph.transform.DecoratedConverter
convert, equals, equals
 
Methods inherited from interface net.sf.morph.transform.Converter
convert
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.ExplicitTransformer
isTransformable
 
Methods inherited from interface net.sf.morph.transform.ImpreciseTransformer
isImpreciseTransformation
 

Constructor Detail

DefaultToTextConverter

public DefaultToTextConverter()
Create a new DefaultToTextConverter.


DefaultToTextConverter

public DefaultToTextConverter(Transformer[] components,
                              boolean appendDefaultComponents)
Create a new DefaultToTextConverter.

Parameters:
components -
appendDefaultComponents -

DefaultToTextConverter

public DefaultToTextConverter(Transformer[] components)
Create a new DefaultToTextConverter.

Parameters:
components -
Method Detail

createDefaultComponents

protected Transformer[] createDefaultComponents()
Create the default set of Transformer components.

Overrides:
createDefaultComponents in class SimpleDelegatingTransformer
Returns:
Transformer[]

getTextConverter

public Converter getTextConverter()
Deprecated. since Morph 1.1

Unused

Returns:

setTextConverter

public void setTextConverter(Converter textConverter)
Deprecated. since Morph 1.1

Unused

Parameters:
textConverter -


Copyright © 2004-2008.