mercredi 16 septembre 2015

Is it possible to convert a List to a JCR Value?

So I am using reflection to create a new instance of a List. I then want to set that list to a Node. The problem is Nodes only take primitives, Strings, Value, and Value[]. I get a ClassCastException when I try to do this:

 Value[] valueArray = (Value[])Array.newInstance(elementType,size);

I would like to do :

node.setProperty(name,valueArray);

Has anyone come across a way to do this properly? Or places that would lead me in the right direction? Is this even possible? Thanks for looking.





Aucun commentaire:

Enregistrer un commentaire