commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Traut <>
Subject Digester - parsing nodes to generic type objects
Date Fri, 22 Jun 2007 09:44:40 GMT
Hi all

I'm stuck trying to cast node to generic type.
I have a class Pair<E,T>. In my xml I have entries like <size width="175"
height="160"/> and want to parse it to Pair BUT to Pair<Integer, Integer>

If I'll write

digester.addObjectCreate("registry/size", Pair.class)

Digester will cast width/height values to String. How can I specify type for

Best regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message