|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ezmorph.object.SwitchingMorpher
public class SwitchingMorpher
An all-purpose Morpher that can morph to several classes.
Because this Morpher accepts any class and morphs to Object it should not be
added to a MorpherRegistry as it may be too generic for some cases and may
result in unwanted transformations.
| Constructor Summary | |
|---|---|
SwitchingMorpher(Map classMap,
MorpherRegistry morpherRegistry)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
Object |
morph(Object value)
Morphs the input object into an output object of the supported type. |
Class |
morphsTo()
Returns the target Class for conversion. |
boolean |
supports(Class clazz)
Returns true if the Morpher supports conversion from this Class. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwitchingMorpher(Map classMap,
MorpherRegistry morpherRegistry)
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Object morph(Object value)
ObjectMorpher
morph in interface ObjectMorphervalue - The input value to be morphedpublic Class morphsTo()
Morpher
morphsTo in interface Morpherpublic boolean supports(Class clazz)
Morpher
supports in interface Morpherclazz - the source Class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||