Hey,

I'm working on value serialization, and with the idea that they should be serialized to XML.

Basically, this ValueComposite:
interface FooValue
  extends ValueComposite
{
  Property<String> foo();
  Property<Long> bar();
}
will be serialized into something like:
<mypackage.FooValue><23BDCGEHA=>foovalue</23BDCGEHA=><dDSH32rE=>32</dDSH32rE=></mypackage.FooValue>
where the strange names are the versionized property names (SHA1 of the name+type and then BASE64'ed). This should ensure that the strings are "longlived", in te sense that we can easily deduct later what the properties actually mean, as long as the description of the value is still around(!).

One problem is the "=" padding at the end of the BASE64-encoded versions, which is not ok for XML. Alin is working on that though.

More importantly, does this seem like a decent format for values?

/Rickard


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to