org.jboss.reflect.plugins
Class NullProgressionConvertor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullProgressionConvertor
public NullProgressionConvertor()
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 classsource
- 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 typevalue
- 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.