|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.swissbox.converter.helpers.EmptyConverter
public class EmptyConverter
JAVADOC
Constructor Summary | |
---|---|
EmptyConverter()
|
Method Summary | |
---|---|
boolean |
canConvert(java.lang.Object sourceObject,
ReifiedType targetType)
Return if this converter is able to convert the specified object to the specified type. |
java.lang.Object |
convert(java.lang.Object sourceObject,
ReifiedType targetType)
Convert the specified object to an instance of the specified type. |
static EmptyConverter |
noConversionConverter()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyConverter()
Method Detail |
---|
public boolean canConvert(java.lang.Object sourceObject, ReifiedType targetType)
Converter
canConvert
in interface Converter
sourceObject
- The source object s
to convert.targetType
- The target type T
.
true
if the conversion is possible,
false
otherwise.public java.lang.Object convert(java.lang.Object sourceObject, ReifiedType targetType) throws java.lang.Exception
Converter
convert
in interface Converter
sourceObject
- The source object s
to convert.targetType
- The target type T
.
java.lang.Exception
- If the conversion cannot succeed. This exception should
not be thrown when the canConvert
method has
returned true
.public static EmptyConverter noConversionConverter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |