The DvEncapsulated class and its subclasses accept at their full constructor 
the size as an argument. 
I believe that the size should be a calculated attribute and not a constructor 
argument. In my opinion, it is the responsibility of DvParsable and 
DvMultimedia to calculate the size of their content.

By the way, the xml schema defintion of DV_ENCAPSULATED, correctly does not 
declare the size attribute, because it should be calculated.

My suggestion is that:
1) Remove the size attribute from DvEncapsulated, and declare the getSize(): 
int method as abstract.
2) Let the DvParsable and DvMultimedia implement this method

                
---------------------------------
 ????????
??
 Yahoo!
 ???
?????
 ?? 
????????? ???? ???? (spam); ?? Yahoo! Mail ??????
? ??? ?????
?? ????? ?????? ???? ??? 
?????????? ???????? 
 http://login.yahoo.com/config/mail?.intl=gr 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20060428/9cfb93ad/attachment.html>

Reply via email to