CeON/CoAnSys — pull request #13 by pdendek (2012-08-01 09:39:59+00:00)
Title: Model changes and code refactoring

1. changes in bw2.proto file and associated DocumentProtos class (a) removing obsolute class Document (b) generalizing fields like "pacsCode", "mscCode" into message ClassifCode with fields 'type' (e.g. may be set to "pacs", "msc") and 'value'

2. changes refactoring of ZipDirToProto: (a) name change to ZipDirToDocumentDTOIterator (b) introducing DocumentDTO class instead of Document class generated from proto file (c) splitting functionality of the class into the iterator (ZipDirToDocumentDTOIterator class) and the transformer (YElementFromZip2DocumentDto class) converting given bwmeta xml into DocumentDTO (d) introducing ProtoConstants class containing codes specializing types of generalized classes like ExtId (specialization example: documentExtIdZbl)

3. adjustments in test classes to meet classes after refactoring

4. additional transformer class DocumentDto2KeyValue converting DocumentDTO into the convenient for HBase insertion form