|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Transformer | |
---|---|
net.sf.morph.integration.commons.beanutils | Integration with Apache Commons Beanutils. |
net.sf.morph.integration.commons.collections | Integration with Apache Commons Collections. |
net.sf.morph.transform | Defines a standard way to transform information from one format or source to another. |
net.sf.morph.transform.converters | Converter implementations. |
net.sf.morph.transform.copiers | Copier implementations. |
net.sf.morph.transform.transformers | Transformer implementations. |
net.sf.morph.util | Utility classes used to implement the Morph framework. |
Uses of Transformer in net.sf.morph.integration.commons.beanutils |
---|
Classes in net.sf.morph.integration.commons.beanutils that implement Transformer | |
---|---|
class |
BeanUtilsConverter
A converter which delegates to Commons BeanUtils. |
Uses of Transformer in net.sf.morph.integration.commons.collections |
---|
Classes in net.sf.morph.integration.commons.collections that implement Transformer | |
---|---|
class |
TransformerToDecoratedConverterAdapter
Adapt a org.apache.commons.collections.Transformer to our DecoratedConverter interface. |
Uses of Transformer in net.sf.morph.transform |
---|
Subinterfaces of Transformer in net.sf.morph.transform | |
---|---|
interface |
Converter
An object that can convert one type of object into another type of object. |
interface |
Copier
An object that can copy information from a source object to a destination object. |
interface |
DecoratedConverter
An extension of the Converter interface that defines a few more convenient methods. |
interface |
DecoratedCopier
An extension of the Copier interface that defines a few more convenient methods. |
interface |
DecoratedTransformer
An extension of the Transformer interface that defines extra methods. |
interface |
ImpreciseTransformer
Defines a transformer whose operation may result in a loss of data precision. |
interface |
NodeCopier
A copier used by a net.sf.morph.transform.GraphTransformer to
assist in the transformation of one object graph into another object graph. |
Methods in net.sf.morph.transform that return Transformer | |
---|---|
Transformer |
NodeCopier.getNestedTransformer()
Retrieves the transformer used to perform nested transformations. |
Methods in net.sf.morph.transform with parameters of type Transformer | |
---|---|
void |
NodeCopier.setNestedTransformer(Transformer nestedTransformer)
Sets the transformer used to perform nested transformations. |
Uses of Transformer in net.sf.morph.transform.converters |
---|
Classes in net.sf.morph.transform.converters that implement Transformer | |
---|---|
class |
ArbitraryObjectMappingConverter
A transformer which transforms defined arbitrary objects to other defined arbitrary objects based on this class' mapping property. |
class |
ArbitraryTypeMappingConverter
A transformer which transforms objects which are instances of a type into other defined objects based on this class' mapping property. |
class |
BaseToPrettyTextConverter
Base class for converts that convert objects to a pretty programmer-friendly representation using information retrieved using a reflector. |
class |
BeanToPrettyTextConverter
Converts a bean to a textual representation (String or StringBuffer only). |
class |
BooleanToTextConverter
Converts boolean values to text values. |
class |
ConstantConverter
Converter that always returns a certain destination object. |
class |
ContainerToPrettyTextConverter
Converts a container to a textual representation (String or StringBuffer only). |
class |
ContainerToTraverserConverter
Converts an object to a traverser type (an Iterator or an Enumeration). |
class |
ConverterDecorator
Decorates any Converter so that it implements DecoratedConverter . |
class |
DefaultToBooleanConverter
Converts any object to a Boolean by delegating to TextToBooleanConverter ,
NumberToBooleanConverter and
ObjectToBooleanConverter . |
class |
DefaultToTextConverter
Converts an object to a textual representation by delegating to ContainerToPrettyTextConverter ,
BooleanToTextConverter ,
TimeToTextConverter ,
NumberToTextConverter and
ObjectToTextConverter . |
class |
EvaluateExpressionConverter
A Converter that returns the result of evaluating a property against an object using a DecoratedLanguage. |
class |
IdentityConverter
Converts objects that are already instances of the destination class by simply returning the object unchanged. |
class |
ImmutableTypesOnlyIdentityConverter
An identity converter that only converts immutable types. |
class |
NullConverter
Deprecated. an IdentityConverter can do the same thing. |
class |
NumberConverter
Converts a number from one number type to another. |
class |
NumberToBooleanConverter
Converts numbers to boolean values. |
class |
NumberToTextConverter
Converts Number s into basic text types (String ,
StringBuffer or Character ). |
class |
NumberToTimeConverter
|
class |
ObjectToBooleanConverter
Converts any object to a Boolean. |
class |
ObjectToClassConverter
Converts an object into that object's class. |
class |
ObjectToPrettyTextConverter
. |
class |
ObjectToTextConverter
Converts an object to a textual representation by calling the object's toString method. |
class |
PrimitiveWrapperConverter
Converts primitive objects to their Object wrappers and vice-versa. |
class |
TextConverter
Converts text types ( String ,
StringBuffer and Character ,
char[] and byte[] from one type to another. |
class |
TextToBooleanConverter
Converts text values to Booleans. |
class |
TextToClassConverter
Converts a basic text type ( String or
StringBuffer ) into a Class . |
class |
TextToNumberConverter
Converts basic text types into primitive numbers or Number
objects. |
class |
TextToTimeConverter
|
class |
TimeConverter
Converts information from one of the basic time types to the other. |
class |
TimeToNumberConverter
|
class |
TimeToTextConverter
Converts the basic time types ( Date and
Calendar ) to one of the text types (
String , StringBuffer and
Character ). |
Methods in net.sf.morph.transform.converters that return Transformer | |
---|---|
protected Transformer[] |
DefaultToTextConverter.createDefaultComponents()
Create the default set of Transformer components. |
protected Transformer[] |
DefaultToBooleanConverter.createDefaultComponents()
Create the default set of Transformer components. |
Constructors in net.sf.morph.transform.converters with parameters of type Transformer | |
---|---|
DefaultToTextConverter(Transformer[] components)
Create a new DefaultToTextConverter. |
|
DefaultToTextConverter(Transformer[] components,
boolean appendDefaultComponents)
Create a new DefaultToTextConverter. |
Uses of Transformer in net.sf.morph.transform.copiers |
---|
Classes in net.sf.morph.transform.copiers that implement Transformer | |
---|---|
class |
ArrayCopier
TODO tests with 3-dimensional arrays |
class |
AssemblerCopier
A copier that copies multiple source objects to a single destination object, implementing an "Assembler." |
class |
AssemblyCopierSupport
Support for AssemblerCopier/DisassemblerCopier. |
class |
BasePropertyNameCopier
Base class for copiers that copy information from one bean to another based on the property names in the source and destination objects. |
class |
CombiningCopier
Combines all of the contents of a container into a single container. |
class |
ConditionalCopier
This copier uses an if Converter to convert an incoming object to a Boolean. |
class |
ContainerCopier
Copies information from any container object to any object that has either a GrowableContainerReflector or a
MutableIndexedContainerReflector . |
class |
ContainerOfBeansCopier
Deprecated. it's not clear what the intent of this copier was |
class |
CopierDecorator
Decorates any Copier so that it implements DecoratedCopier. |
class |
CumulativeCopier
Composite Transformer whose children must be Copiers and which invokes each child Copier in turn in the course of performing a copy operation. |
class |
DisassemblerCopier
A copier that copies a source to multiple destination objects, implementing a "Disassembler." |
class |
ImmutableComponentArrayCopier
Copies arrays of matching immutable component types using System.arraycopy. |
class |
MapCopier
Copies one Map to another. |
class |
MultipleDestinationConverter
Deprecated. since v1.1 in favor of DisassemblerCopier |
class |
NOPCopier
No-op Copier / instantiation-only Converter. |
class |
PropertyExpressionMappingCopier
Maps property expressions between objects using a Morph Language. |
class |
PropertyNameMappingCopier
Copies properties from the source to the destination based on a mapping of property names. |
class |
PropertyNameMatchingCopier
Copies the properties specified by the propertiesToCopy
property of this class from the source to the destination. |
class |
SetExpressionCopier
Uses a DecoratedLanguage to set the property denoted by an expression on the destination object. |
class |
TextToContainerCopier
Parses text into multiple parts for storage in a container. |
Methods in net.sf.morph.transform.copiers that return Transformer | |
---|---|
protected Transformer |
BasePropertyNameCopier.chooseTransformer(java.lang.String sourceProperty,
java.lang.Object source,
java.lang.String destinationProperty,
java.lang.Object destination,
java.util.Locale locale,
java.lang.Integer preferredTransformationType)
Choose the appropriate property transformer. |
protected Transformer |
ContainerOfBeansCopier.getBeanTransformer()
Deprecated. |
Transformer |
ConditionalCopier.getElseTransformer()
Get the elseTransformer. |
Transformer |
PropertyExpressionMappingCopier.getNestedTransformer()
NodeCopier.getNestedTransformer() |
Transformer |
ContainerCopier.getNestedTransformer()
NodeCopier.getNestedTransformer() |
Transformer |
BasePropertyNameCopier.getNestedTransformer()
NodeCopier.getNestedTransformer() |
Transformer |
AssemblyCopierSupport.getNestedTransformer()
Get the transformer (Copier) which, in the absence of a components list, will be used to perform nested transformations. |
Transformer |
ConditionalCopier.getThenTransformer()
Get the thenTransformer. |
Methods in net.sf.morph.transform.copiers with parameters of type Transformer | |
---|---|
void |
ConditionalCopier.setElseTransformer(Transformer elseTransformer)
Set the elseTransformer. |
void |
PropertyExpressionMappingCopier.setNestedTransformer(Transformer nestedTransformer)
NodeCopier.setNestedTransformer(Transformer) |
protected void |
CopierDecorator.setNestedTransformer(Transformer nestedTransformer)
NodeCopier.setNestedTransformer(Transformer) |
void |
ContainerCopier.setNestedTransformer(Transformer transformer)
NodeCopier.setNestedTransformer(Transformer) |
void |
BasePropertyNameCopier.setNestedTransformer(Transformer transformer)
NodeCopier.setNestedTransformer(Transformer) |
void |
AssemblyCopierSupport.setNestedTransformer(Transformer nestedTransformer)
Set the transformer (Copier) which, in the absence of a components list, will be used to perform nested transformations. |
void |
ConditionalCopier.setThenTransformer(Transformer thenTransformer)
Set the thenTransformer. |
Constructors in net.sf.morph.transform.copiers with parameters of type Transformer | |
---|---|
CumulativeCopier(Transformer[] components)
Create a new CumulativeCopier. |
Uses of Transformer in net.sf.morph.transform.transformers |
---|
Classes in net.sf.morph.transform.transformers that implement Transformer | |
---|---|
class |
BaseCompositeTransformer
|
class |
BaseReflectorTransformer
A base class for transformers that are implemented using a Reflector. |
class |
BaseTransformer
Convenient base class for transformers. |
class |
ChainedTransformer
Runs one or more transformers in a chain. |
class |
SimpleDelegatingTransformer
Delegates transformations to a list of transformers. |
class |
TransformerDecorator
Decorates any Transformer so that it implements DecoratedTransformer. |
class |
TypeChangingGraphTransformer
A transformer that performs a deep copy of the data in an object graph while also allowing the types in the destination graph to be different than the types in the source graph. |
Methods in net.sf.morph.transform.transformers that return Transformer | |
---|---|
protected Transformer[] |
SimpleDelegatingTransformer.createDefaultComponents()
Create the default set of Transformer components. |
protected Transformer[] |
ChainedTransformer.getChain()
Get the components array narrowed to a Transformer[]. |
protected Transformer |
BaseTransformer.getNestedTransformer()
NodeCopier.getNestedTransformer() |
Transformer |
TransformerDecorator.getTransformer()
|
protected Transformer |
TypeChangingGraphTransformer.getTransformer(java.lang.Class transformerType)
|
protected Transformer |
SimpleDelegatingTransformer.getTransformer(java.lang.Class destinationClass,
java.lang.Class sourceClass)
Finds a Transformer that is capable of transforming sourceClass to destinationClass . |
protected Transformer |
SimpleDelegatingTransformer.getTransformer(java.util.Map registry,
java.lang.Class transformerType,
java.lang.Class destinationClass,
java.lang.Class sourceClass)
Finds a transformer of type transformerType that is
capable of transforming sourceClass to
destinationClass . |
Transformer[] |
SimpleDelegatingTransformer.getTransformers()
Get our components as a typesafe Transformer array. |
Methods in net.sf.morph.transform.transformers with parameters of type Transformer | |
---|---|
protected void |
BaseTransformer.setNestedTransformer(Transformer nestedTransformer)
NodeCopier.setNestedTransformer(Transformer) |
protected void |
BaseCompositeTransformer.setNestedTransformer(Transformer nestedTransformer)
|
void |
TransformerDecorator.setTransformer(Transformer transformer)
|
protected void |
BaseCompositeTransformer.updateNestedTransformerComponents(Transformer incoming,
Transformer outgoing)
Propagate our nested transformer to any component NodeCopiers. |
Constructors in net.sf.morph.transform.transformers with parameters of type Transformer | |
---|---|
ChainedTransformer(Transformer[] chain)
Create a new ChainedTransformer. |
|
SimpleDelegatingTransformer(Transformer[] components)
Construct a new SimpleDelegatingTransformer. |
|
SimpleDelegatingTransformer(Transformer[] components,
boolean appendDefaultComponents)
Construct a new SimpleDelegatingTransformer. |
|
TransformerDecorator(Transformer transformer)
|
Uses of Transformer in net.sf.morph.util |
---|
Methods in net.sf.morph.util with parameters of type Transformer | |
---|---|
static java.lang.Class[] |
TransformerUtils.getDestinationClasses(Transformer transformer,
java.lang.Class sourceType)
Get the set of destination classes available from the specified Transformer for the specified source type. |
static java.lang.Class[] |
TransformerUtils.getDestinationClassIntersection(Transformer[] transformers)
Get the set of destination classes common to all specified Transformers. |
static java.lang.Class[] |
TransformerUtils.getSourceClasses(Transformer transformer,
java.lang.Class destinationType)
Get the set of source classes available from the specified Transformer for the specified destination type. |
static java.lang.Class[] |
TransformerUtils.getSourceClassIntersection(Transformer[] transformers)
Get the set of source classes common to all specified Transformers. |
static boolean |
TransformerUtils.isImplicitlyTransformable(Transformer transformer,
java.lang.Class destinationClass,
java.lang.Class sourceClass)
Learn whether sourceClass is transformable to destinationClass
by transformer considering only source and destination types. |
static boolean |
TransformerUtils.isImpreciseTransformation(Transformer transformer,
java.lang.Class destinationClass,
java.lang.Class sourceClass)
Learn whether transformer 's transformation
of sourceClass to destinationClass might yield an imprecise result. |
static boolean |
TransformerUtils.isTransformable(Transformer transformer,
java.lang.Class destinationClass,
java.lang.Class sourceClass)
Learn whether sourceClass is transformable to destinationClass
by transformer by implicit or explicit rules. |
static java.lang.Object |
TransformerUtils.transform(Transformer transformer,
java.lang.Class destinationType,
java.lang.Object destination,
java.lang.Object source,
java.util.Locale locale,
java.lang.Integer preferredTransformationType)
Performs a transformation of one object graph into another object graph. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |