[ 
https://issues.apache.org/jira/browse/UIMA-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13687155#comment-13687155
 ] 

Marshall Schor commented on UIMA-2409:
--------------------------------------

Here's what got implemented:

1) a deep copy.  This includes FSs that may be indexed in other views.  But we 
don't index the FSs in these other views in the copy...  but, we do create the 
SofaFS if needed (these are only needed for Types which are subtypes of 
AnnotationBaseFS.  Any SofaFSs added this way do *not* have their Sofa Data (if 
any) copied over

2) only checking for src/tgt CASes being the same view in the same CAS as an 
"error".

3) the bit of code in the copier to insure the SofaFS ref is set for subtypes 
of AnnotationFS was slightly extended by having it do the same thing for 
subtypes of AnnotationBaseFS.

A new version of a utility test class to (partially) compare CASes was copied 
and changed to support comparing different CAS Views.  I've only added one test 
for this that does the basics, and doesn't test the edge cases.  We can always 
do more later :-)



                
> CasCopier.copyCasView should be able to copy into a view with a different name
> ------------------------------------------------------------------------------
>
>                 Key: UIMA-2409
>                 URL: https://issues.apache.org/jira/browse/UIMA-2409
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>            Reporter: Joern Kottmann
>            Priority: Trivial
>             Fix For: 2.4.1SDK
>
>         Attachments: UIMA-2409.patch
>
>
> The CasCopier should be able to copy a CAS view into a new CAS and giving 
> this new CAS view a different name.
> A common use case is to copy a view of multi view CAS into a new single view 
> CAS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to