|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public 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.
A node copier is responsible for transforming a single node in the graph.
The GraphTransformer chooses the appropriate node transformer for each node
in the object graph.
Field Summary |
---|
Fields inherited from interface net.sf.morph.transform.Transformer |
---|
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY |
Method Summary | |
---|---|
java.lang.Object |
createNewInstance(java.lang.Class destinationClass,
java.lang.Object source)
Creates a new instance of the destination class that is capable of holding the information contained in the given source. |
java.lang.Object |
createReusableSource(java.lang.Class destinationClass,
java.lang.Object source)
Returns a version of the given source object that can be used multiple times by this copier. |
Transformer |
getNestedTransformer()
Retrieves the transformer used to perform nested transformations. |
void |
setNestedTransformer(Transformer nestedTransformer)
Sets the transformer used to perform nested transformations. |
Methods inherited from interface net.sf.morph.transform.Copier |
---|
copy |
Methods inherited from interface net.sf.morph.transform.Transformer |
---|
getDestinationClasses, getSourceClasses |
Method Detail |
---|
java.lang.Object createReusableSource(java.lang.Class destinationClass, java.lang.Object source)
destinationClass
- the destination class to which this source object will be
transformedsource
- a source object that will undergo a transformation by this
copier
java.lang.Object createNewInstance(java.lang.Class destinationClass, java.lang.Object source)
destinationClass
- the type of the new instance to be returnedsource
- the source to be transformed by this transformer
Transformer getNestedTransformer()
void setNestedTransformer(Transformer nestedTransformer)
nestedTransformer
- the transformer used to perform nested transformations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |