OK, that explains it.

EMPTY_ANNOTATION is a place holder to avoid getting a null pointer when 
you ask for the Annotation. It will not let you add properties as it would 
no longer be EMPTY. Best to not use this unless you don't plan to do 
anything with the Annotation.

- Mark





"Christian Köberle" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
11/22/2005 09:35 PM

 
        To:     "Christian Köberle" <[EMAIL PROTECTED]>
        cc:     biojava-l@biojava.org, (bcc: Mark Schreiber/GP/Novartis)
        Subject:        Re: [Biojava-l] Annotation


Christian Köberle wrote:

> Hi,
>
> I have a problem with Annotation. If I try to add a new Property to an 
> Annotation I get a ChangeVetoException. What can I do?
>
Problem is solved:
The Problem was: I have initializide my Object with EMPTY_ANNOTATION.
Now I use new SimpleAnnotation()

-- 
Christian Köberle

Max Planck Institute for Infection Biology
Department: Immunology
Schumannstr. 21/22
10117 Berlin

Tel: +49 30 28 460 562
e-mail: [EMAIL PROTECTED]

_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l




_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to