org.mmbase.util
Interface Caster
- All Known Implementing Classes:
- BasicCaster, BridgeCaster
public interface Caster
- Since:
- MMBase-2.0
toType
<C> C toType(Class<C> type,
Object cloud,
Object value)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
wrap
Object wrap(Object o,
CharTransformer escaper)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
unWrap
Object unWrap(Object o)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
toMap
Map toMap(Object o)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
toInt
int toInt(Object i)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
toLong
long toLong(Object i)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
toFloat
float toFloat(Object i)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
toDouble
double toDouble(Object i)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
toBoolean
boolean toBoolean(Object i)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
toString
String toString(Object o)
throws Caster.NotRecognized
- Throws:
Caster.NotRecognized
isStringRepresentable
boolean isStringRepresentable(Class<?> type)
MMBase 2.0-SNAPSHOT - null