On Monday 08 Aug 2005 16:46, Ken.Williams@... wrote:
> Hi Ian,
> Any news on this?
Sorry it's taken so long to get around to this. I've integrated a
slimmed-down version of your patch as follows:
1) I added the AnnotationFactory interface in gate.annotation, along with
DefaultAnnotationFactory that always creates AnnotationImpl instances. I
haven't added your dynamic factory to GATE, but you can provide that in your
own code if you need it.
2) I modified AnnotationSetImpl to use the factory to create annotations
instead of doing new AnnotationImpl itself.
3) I added the static method setAnnotationFactory to AnnotationSetImpl to
allow you to override the default factory.
4) I changed the visibility of the start node, end node and constructor in
AnnotationImpl to be protected.
The changes should get into the next nightly build.
Ian Roberts | Department of Computer Science
i.roberts@... | University of Sheffield, UK