org.jboss.reflect.plugins
Class NullProgressionConvertor

java.lang.Object
  extended by org.jboss.reflect.plugins.NullProgressionConvertor
All Implemented Interfaces:
ProgressionConvertor

public class NullProgressionConvertor
extends Object
implements ProgressionConvertor

Null progression implementation - doesn't progress at all.

Author:
Ales Justin

Constructor Summary
NullProgressionConvertor()
           
 
Method Summary
 boolean canProgress(Class<? extends Object> target, Class<? extends Object> source)
          Check if progression is supported.
 Object doProgression(Class<? extends Object> target, Object value)
          Do the actual progression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullProgressionConvertor

public NullProgressionConvertor()
Method Detail

canProgress

public boolean canProgress(Class<? extends Object> target,
                           Class<? extends Object> source)
Description copied from interface: ProgressionConvertor
Check if progression is supported.

Specified by:
canProgress in interface ProgressionConvertor
Parameters:
target - target's class
source - source's class
Returns:
true, if we can progress source's value class type to target class

doProgression

public Object doProgression(Class<? extends Object> target,
                            Object value)
                     throws Throwable
Description copied from interface: ProgressionConvertor
Do the actual progression.

Specified by:
doProgression in interface ProgressionConvertor
Parameters:
target - class type
value - to progress
Returns:
progressed value - it's class type now equals to target
Throws:
Throwable - for any error


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.