|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.blueprint.sample.DateTypeConverter
public class DateTypeConverter
Constructor Summary | |
---|---|
DateTypeConverter()
|
Method Summary | |
---|---|
boolean |
canConvert(java.lang.Object fromValue,
ReifiedType toType)
Return if this converter is able to convert the specified object to the specified type. |
java.lang.Object |
convert(java.lang.Object source,
ReifiedType toType)
Convert the specified object to an instance of the specified type. |
void |
setFormat(java.lang.String format)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateTypeConverter()
Method Detail |
---|
public void setFormat(java.lang.String format)
public java.lang.Object convert(java.lang.Object source, ReifiedType toType) throws java.lang.Exception
Converter
convert
in interface Converter
source
- The source object s
to convert.toType
- 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 boolean canConvert(java.lang.Object fromValue, ReifiedType toType)
Converter
canConvert
in interface Converter
fromValue
- The source object s
to convert.toType
- The target type T
.
true
if the conversion is possible,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |